df95702527620e79e1f6bac92c4a46948e32e8b4
[gnulib.git] / ChangeLog
1 2011-09-21  Bruno Haible  <bruno@clisp.org>
2
3         Consolidate all uses of PATH_MAX in *.m4 files.
4         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
5         macros.
6         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
7         and gl_PATHMAX_SNIPPET.
8         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10         * modules/chdir-long (Files): Add m4/pathmax.m4.
11         * modules/getcwd (Files): Likewise.
12
13 2011-09-21  Bruno Haible  <bruno@clisp.org>
14
15         ftruncate: Un-deprecate, concentrate on Win32 support.
16         * modules/ftruncate (Status, Notice): Remove sections.
17         (Depends-on): Add largefile.
18         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
19         non-mingw platforms.
20         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
21         include <io.h>.
22         * modules/perror-tests (Depends-on): Add ftruncate.
23         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
24         'ftruncate' module.
25
26 2011-09-21  Bruno Haible  <bruno@clisp.org>
27
28         Add dependencies to new dirent related modules.
29         * modules/opendir (Depends-on): Add closedir.
30         * modules/getcwd (Depends-on): Add opendir, closedir.
31         * modules/dirent-safer-tests (Depends-on): Likewise.
32         * modules/fdopendir-tests (Depends-on): Likewise.
33         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
34         * modules/renameat-tests (Depends-on): Likewise.
35
36 2011-09-21  Bruno Haible  <bruno@clisp.org>
37
38         opendir: Avoid compilation error on mingw.
39         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
40         * modules/opendir (Depends-on): Add unistd.
41
42 2011-09-21  Bruno Haible  <bruno@clisp.org>
43
44         ftruncate tests: Avoid a test failure on mingw.
45         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
46
47 2011-09-21  Bruno Haible  <bruno@clisp.org>
48
49         select tests: Avoid test failures on OSF/1 5.1 and mingw.
50         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
51         native Windows.
52
53 2011-09-21  Bruno Haible  <bruno@clisp.org>
54
55         New module 'fdopen'.
56         * lib/stdio.in.h (fdopen): New declaration.
57         * lib/fdopen.c: New file.
58         * m4/fdopen.m4: New file.
59         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
60         REPLACE_FDOPEN.
61         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
62         REPLACE_FDOPEN.
63         * modules/fdopen: New file.
64         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
65         * tests/test-stdio-c++.cc: Check signature of fdopen.
66         * doc/posix-functions/fdopen.texi: Mention the new module.
67
68 2011-09-21  Bruno Haible  <bruno@clisp.org>
69
70         unlockpt tests: Avoid test failure on NetBSD 5.1.
71         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
72         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
73
74 2011-09-21  Bruno Haible  <bruno@clisp.org>
75
76         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
77         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
78         * tests/test-getlogin_r.c (main): Likewise.
79
80 2011-09-20  Bruno Haible  <bruno@clisp.org>
81
82         time tests: Don't require pid_t.
83         * doc/posix-headers/time.texi: Revert last change.
84         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
85         * tests/test-time.c: Comment out the check for pid_t.
86
87 2011-09-20  Bruno Haible  <bruno@clisp.org>
88
89         fsync tests: Avoid a test failure on mingw.
90         * tests/test-fsync.c (main): Allow a failure with EIO.
91
92 2011-09-20  Bruno Haible  <bruno@clisp.org>
93
94         euidaccess: Update comments.
95         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
96
97 2011-09-20  Bruno Haible  <bruno@clisp.org>
98
99         Ensure EBADF returns for socket functions on mingw.
100         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
101         descriptor is invalid.
102         * lib/bind.c (rpl_bind): Likewise.
103         * lib/connect.c (rpl_connect): Likewise.
104         * lib/getpeername.c (rpl_getpeername): Likewise.
105         * lib/getsockname.c (rpl_getsockname): Likewise.
106         * lib/getsockopt.c (rpl_getsockopt): Likewise.
107         * lib/listen.c (rpl_listen): Likewise.
108         * lib/recv.c (rpl_recv): Likewise.
109         * lib/recvfrom.c (rpl_recvfrom): Likewise.
110         * lib/send.c (rpl_send): Likewise.
111         * lib/sendto.c (rpl_sendto): Likewise.
112         * lib/setsockopt.c (rpl_setsockopt): Likewise.
113         * lib/shutdown.c (rpl_shutdown): Likewise.
114
115 2011-09-20  Bruno Haible  <bruno@clisp.org>
116
117         select tests: EBADF tests.
118         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
119         test_bad_fd): New functions.
120         (test_function): Invoke also test_bad_fd.
121
122 2011-09-20  Bruno Haible  <bruno@clisp.org>
123
124         Tests for module 'posix_spawn_file_actions_addopen.
125         * modules/posix_spawn_file_actions_addopen-tests: New file.
126         * tests/test-posix_spawn_file_actions_addopen.c: New file.
127
128         Tests for module 'posix_spawn_file_actions_adddup2'.
129         * modules/posix_spawn_file_actions_adddup2-tests: New file.
130         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
131
132         Tests for module 'posix_spawn_file_actions_addclose'.
133         * modules/posix_spawn_file_actions_addclose-tests: New file.
134         * tests/test-posix_spawn_file_actions_addclose.c: New file.
135
136 2011-09-20  Bruno Haible  <bruno@clisp.org>
137
138         Tests for module 'unlockpt'.
139         * modules/unlockpt-tests: New file.
140         * tests/test-unlockpt.c: New file.
141         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
142
143         Tests for module 'grantpt'.
144         * modules/grantpt-tests: New file.
145         * tests/test-grantpt.c: New file.
146         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
147
148 2011-09-20  Bruno Haible  <bruno@clisp.org>
149
150         freopen tests: EBADF tests.
151         * tests/test-freopen.c: Include errno.h, unistd.h.
152         (main): Add tests for EBADF, commented out for the moment.
153
154         fclose tests: EBADF tests.
155         * tests/test-fclose.c (main): Add tests for EBADF.
156
157         fflush tests: EBADF tests.
158         * tests/test-fflush.c: Include errno.h, macros.h.
159         (main): Add tests for EBADF.
160
161         ftello tests: EBADF tests.
162         * tests/test-ftello4.sh: New file.
163         * tests/test-ftello4.c: New file.
164         * modules/ftello-tests (Files): Add them.
165         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
166
167         fseeko tests: EBADF tests.
168         * tests/test-fseeko4.sh: New file.
169         * tests/test-fseeko4.c: New file.
170         * modules/fseeko-tests (Files): Add them.
171         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
172
173         Tests for function fputc().
174         * modules/fputc-tests: New file.
175         * tests/test-fputc.c: New file.
176         * modules/stdio-tests (Depends-on): Add fputc-tests.
177
178         Tests for function fgetc().
179         * modules/fgetc-tests: New file.
180         * tests/test-fgetc.c: New file.
181         * modules/stdio-tests (Depends-on): Add fgetc-tests.
182
183         Tests for function fdopen().
184         * modules/fdopen-tests: New file.
185         * tests/test-fdopen.c: New file.
186         * modules/stdio-tests (Depends-on): Add fdopen-tests.
187
188         Tests for module 'vdprintf'.
189         * modules/vdprintf-tests: New file.
190         * tests/test-vdprintf.c: New file.
191
192         Tests for module 'dprintf'.
193         * modules/dprintf-tests: New file.
194         * tests/test-dprintf.c: New file.
195
196 2011-09-20  Bruno Haible  <bruno@clisp.org>
197
198         Tests for module 'ioctl'.
199         * modules/ioctl-tests: New file.
200         * tests/test-ioctl.c: New file.
201
202 2011-09-20  Bruno Haible  <bruno@clisp.org>
203
204         fcntl tests: EBADF tests.
205         * tests/test-fcntl.c (main): Add more tests for EBADF.
206
207 2011-09-20  Bruno Haible  <bruno@clisp.org>
208
209         utimensat tests: EBADF tests.
210         * tests/test-utimensat.c (main): Add tests for EBADF.
211
212         renameat tests: EBADF tests.
213         * tests/test-renameat.c (main): Add tests for EBADF.
214
215         mkfifoat tests: EBADF tests.
216         * tests/test-mkfifoat.c (main): Add tests for EBADF.
217
218         readlinkat tests: EBADF tests.
219         * tests/test-readlinkat.c (main): Add tests for EBADF.
220
221         symlinkat tests: EBADF tests.
222         * tests/test-symlinkat.c (main): Add tests for EBADF.
223
224         linkat tests: EBADF tests.
225         * tests/test-linkat.c (main): Add tests for EBADF.
226
227         Tests for module 'faccessat'.
228         * modules/faccessat-tests: New file.
229         * tests/test-faccessat.c: New file.
230
231         fdopendir tests: EBADF tests.
232         * tests/test-fdopendir.c (main): Add more tests for EBADF.
233
234         openat tests: EBADF tests.
235         * tests/test-fchownat.c (main): Add tests for EBADF.
236         * tests/test-fstatat.c (main): Likewise.
237         * tests/test-mkdirat.c (main): Likewise.
238         * tests/test-openat.c (main): Likewise.
239         * tests/test-unlinkat.c (main): Likewise.
240         * tests/test-fchmodat.c: New file.
241         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
242         (Makefile.am): Also run 'test-fchmodat'.
243
244 2011-09-20  Bruno Haible  <bruno@clisp.org>
245
246         utimens, futimens, fdutimensat tests: EBADF tests.
247         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
248
249         Tests for function fstat().
250         * modules/fstat-tests: New file.
251         * tests/test-fstat.c: New file.
252         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
253
254 2011-09-20  Bruno Haible  <bruno@clisp.org>
255
256         test-ttyname_r tests: EBADF tests.
257         * tests/test-ttyname_r.c (main): Add tests for EBADF.
258
259         Tests for module 'isatty'.
260         * modules/isatty-tests: New file.
261         * tests/test-isatty.c: New file.
262
263         Tests for module 'write'.
264         * modules/write-tests: New file.
265         * tests/test-write.c: New file.
266
267         Tests for module 'read'.
268         * modules/read-tests: New file.
269         * tests/test-read.c: New file.
270
271         pwrite tests: EBADF tests.
272         * tests/test-pwrite.c (main): Add tests for EBADF.
273
274         pread tests: EBADF tests.
275         * tests/test-pread.c (main): Add tests for EBADF.
276
277         lseek tests: EBADF tests.
278         * tests/test-lseek.c (main): Add more tests for EBADF.
279
280         Tests for module 'ftruncate'.
281         * modules/ftruncate-tests: New file.
282         * tests/test-ftruncate.sh: New file.
283         * tests/test-ftruncate.c: New file.
284
285         fsync tests: EBADF tests.
286         * tests/test-fsync.c (main): Add more tests for EBADF.
287
288         fdatasync tests: EBADF tests.
289         * tests/test-fdatasync.c (main): Add more tests for EBADF.
290
291         Tests for module 'fchown'.
292         * modules/fchown-tests: New file.
293         * tests/test-fchown.c: New file.
294
295         Tests for module 'fchmod'.
296         * modules/fchmod-tests: New file.
297         * tests/test-fchmod.c: New file.
298
299         fchdir tests: EBADF tests.
300         * tests/test-fchdir.c (main): Add more tests for EBADF.
301
302         dup2 tests: EBADF tests.
303         * tests/test-dup2.c (main): Add more tests for EBADF.
304
305         Tests for module 'dup'.
306         * modules/dup-tests: New file.
307         * tests/test-dup.c: New file.
308
309         Tests for module 'close'.
310         * modules/close-tests: New file.
311         * tests/test-close.c: New file.
312
313 2011-09-20  Bruno Haible  <bruno@clisp.org>
314
315         Tests for module 'shutdown'.
316         * modules/shutdown-tests: New file.
317         * tests/test-shutdown.c: New file.
318
319         Tests for module 'setsockopt'.
320         * modules/setsockopt-tests: New file.
321         * tests/test-setsockopt.c: New file.
322
323         Tests for module 'sendto'.
324         * modules/sendto-tests: New file.
325         * tests/test-sendto.c: New file.
326
327         Tests for module 'send'.
328         * modules/send-tests: New file.
329         * tests/test-send.c: New file.
330
331         Tests for module 'recvfrom'.
332         * modules/recvfrom-tests: New file.
333         * tests/test-recvfrom.c: New file.
334
335         Tests for module 'recv'.
336         * modules/recv-tests: New file.
337         * tests/test-recv.c: New file.
338
339         Tests for module 'listen'.
340         * modules/listen-tests: New file.
341         * tests/test-listen.c: New file.
342
343         Tests for module 'getsockopt'.
344         * modules/getsockopt-tests: New file.
345         * tests/test-getsockopt.c: New file.
346
347         Tests for module 'getsockname'.
348         * modules/getsockname-tests: New file.
349         * tests/test-getsockname.c: New file.
350
351         Tests for module 'getpeername'.
352         * modules/getpeername-tests: New file.
353         * tests/test-getpeername.c: New file.
354
355         Tests for module 'connect'.
356         * modules/connect-tests: New file.
357         * tests/test-connect.c: New file.
358
359         Tests for module 'bind'.
360         * modules/bind-tests: New file.
361         * tests/test-bind.c: New file.
362
363         accept4 tests: Fix for native Windows.
364         * tests/test-accept4.c: Include sockets.h.
365         (main): Invoke gl_sockets_startup.
366         * modules/accept4-tests (Depends-on): Add sockets.
367
368         accept tests: Fix for native Windows.
369         * tests/test-accept.c: Include sockets.h.
370         (main): Invoke gl_sockets_startup.
371         * modules/accept-tests (Depends-on): Add sockets.
372
373 2011-09-19  Bruno Haible  <bruno@clisp.org>
374
375         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
376         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
377         do...while(0).
378         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
379         Suggested by Paul Eggert.
380
381 2011-09-19  Bruno Haible  <bruno@clisp.org>
382
383         sched: Ensure pid_t is defined.
384         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
385         not define pid_t.
386         * lib/sched.in.h: Include <sys/types.h>.
387         * doc/posix-headers/sched.texi: Mention the pid_t problem.
388         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
389
390 2011-09-19  Bruno Haible  <bruno@clisp.org>
391
392         msvc-inval: Ensure the entire expansion is a single statement.
393         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
394         of braces.
395
396 2011-09-19  Jim Meyering  <meyering@redhat.com>
397
398         tests: use printf, not echo in init.sh's warn_ function
399         * tests/init.sh (warn_): Use printf, not echo.  The latter would
400         misbehave when given strings containing a backslash or starting
401         with e.g., -n.  James Youngman suggested setting IFS.
402
403 2011-09-19  Eric Blake  <eblake@redhat.com>
404
405         futimens: enhance test
406         * tests/test-futimens.h (test_futimens): Also check for EBADF on
407         closed non-negative fd.
408
409         date: accept 'hence' as opposite of 'ago'
410         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
411         * tests/test-parse-datetime.c (main): Enhance test.
412         Suggested by Jesse Wilson.
413
414 2011-09-19  Jim Meyering  <meyering@redhat.com>
415
416         getcwd: don't fail in a deep directory on a system without openat
417         Before this change, getcwd would fail when called from a directory
418         of depth PATH_MAX / 3 or greater.  That was due to the fact that
419         the non-openat implementation used "..", "../..", "../../..", etc.
420         to access ancestor directories.  With too many, that string would
421         be longer than PATH_MAX.
422         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
423         using gnulib's openat replacement.
424         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
425         we're using the replacement function.
426
427 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
428
429         maint.mk: avoid warnings from perl about missing files
430         * top/maint.mk (def_sym_regex): Ignore files listed in
431         $(gl_other_headers_) that do not exist, say because a project
432         does not use a corresponding module.
433
434 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
435
436         stat: use pathmax.h only if needed
437         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
438         This is better for Emacs, which does not have a mingw port and
439         therefore can avoid the pathmax module.
440
441         utimens: remove dependency on dup2
442         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
443         to work around the Linux kernel bug.
444         * modules/utimens (Depends-on): Remove dup2.
445
446 2011-09-18  Bruno Haible  <bruno@clisp.org>
447
448         inet_ntop, inet_pton: Look for it also in libresolv.
449         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
450         libnsl, search for it in libresolv.
451         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
452         Needed on Solaris 7.
453
454 2011-09-18  Bruno Haible  <bruno@clisp.org>
455
456         accept, accept4 tests: Avoid link error on Solaris.
457         * modules/accept-tests (Makefile.am): Link test-accept against
458         $(LIBSOCKET).
459         * modules/accept4-tests (Makefile.am): Link test-accept4 against
460         $(LIBSOCKET).
461
462         accept4: Avoid link error on Solaris.
463         * modules/accept4 (Link): New section.
464
465         socket functions: Avoid link errors on Solaris.
466         * modules/accept (Depends-on): Add socketlib.
467         (Link): New section.
468         * modules/bind (Depends-on): Add socketlib.
469         (Link): New section.
470         * modules/connect (Depends-on): Add socketlib.
471         (Link): New section.
472         * modules/getpeername (Depends-on): Add socketlib.
473         (Link): New section.
474         * modules/getsockname (Depends-on): Add socketlib.
475         (Link): New section.
476         * modules/getsockopt (Depends-on): Add socketlib.
477         (Link): New section.
478         * modules/listen (Depends-on): Add socketlib.
479         (Link): New section.
480         * modules/recv (Depends-on): Add socketlib.
481         (Link): New section.
482         * modules/recvfrom (Depends-on): Add socketlib.
483         (Link): New section.
484         * modules/send (Depends-on): Add socketlib.
485         (Link): New section.
486         * modules/sendto (Depends-on): Add socketlib.
487         (Link): New section.
488         * modules/setsockopt (Depends-on): Add socketlib.
489         (Link): New section.
490         * modules/shutdown (Depends-on): Add socketlib.
491         (Link): New section.
492         * modules/socket (Depends-on): Add socketlib.
493         (Link): New section.
494
495 2011-09-18  Bruno Haible  <bruno@clisp.org>
496
497         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
498         * tests/test-ptsname.c (main): Terminate the test if it takes longer
499         than 5 seconds.
500         * modules/ptsname-tests (configure.ac): Test for alarm.
501
502 2011-09-18  Bruno Haible  <bruno@clisp.org>
503
504         posix_spawn_file_actions_add*: Fix module dependencies.
505         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
506         posix_spawn_file_actions_init.
507         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
508         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
509
510 2011-09-18  Bruno Haible  <bruno@clisp.org>
511
512         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
513         * tests/test-rename.h (test_rename): Allow error code EEXIST.
514         * tests/test-renameat.c (main): Likewise.
515
516 2011-09-18  Bruno Haible  <bruno@clisp.org>
517
518         Tests for module 'accept4'.
519         * modules/accept4-tests: New file.
520         * tests/test-accept4.c: New file.
521
522 2011-09-18  Bruno Haible  <bruno@clisp.org>
523
524         Tests for module 'accept'.
525         * modules/accept-tests: New file.
526         * tests/test-accept.c: New file.
527
528 2011-09-18  Bruno Haible  <bruno@clisp.org>
529
530         dup2: Support for MSVC.
531         * lib/dup2.c: Include msvc-inval.h.
532         (rpl_dup2): Handle invalid parameter notifications during dup2 and
533         _get_osfhandle calls.
534         * modules/dup2 (Depends-on): Add msvc-inval.
535         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
536
537         New module 'msvc-inval'.
538         * lib/msvc-inval.h: New file.
539         * lib/msvc-inval.c: New file.
540         * m4/msvc-inval.m4: New file.
541         * modules/msvc-inval: New file.
542
543 2011-09-17  Bruno Haible  <bruno@clisp.org>
544
545         Tests for module 'pclose'.
546         * modules/pclose-tests: New file.
547
548         New module 'pclose'.
549         * lib/stdio.in.h (pclose): New declaration.
550         * lib/pclose.c: New file.
551         * m4/pclose.m4: New file.
552         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
553         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
554         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
555         * modules/pclose: New file.
556         * modules/popen-tests (Depends-on): Add pclose.
557         * modules/popen-safer-tests (Depends-on): Likewise.
558         * doc/posix-functions/pclose.texi: Mention the new module.
559
560 2011-09-17  Bruno Haible  <bruno@clisp.org>
561
562         popen: Support for MSVC.
563         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
564         * lib/popen.c (popen): Provide alternate definition for native Windows.
565         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
566         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
567         * modules/popen (Depends-on, configure.ac): Update condition.
568         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
569         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
570         fixed.
571
572 2011-09-17  Bruno Haible  <bruno@clisp.org>
573
574         isnanl, isnand, isnanf: Work around MSVC bug.
575         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
576
577 2011-09-17  Bruno Haible  <bruno@clisp.org>
578
579         sys_socket tests: Fix recent mistake.
580         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
581
582 2011-09-17  Bruno Haible  <bruno@clisp.org>
583
584         putenv: Support for MSVC.
585         * modules/putenv (Depends-on): Add environ.
586         * lib/putenv.c (environ): Disable declaration.
587         * lib/unistd.in.h: Update comment.
588
589 2011-09-17  Bruno Haible  <bruno@clisp.org>
590
591         math: Avoid macro redefinition warnings on MSVC.
592         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
593         Undefine before redefining.
594
595 2011-09-17  Bruno Haible  <bruno@clisp.org>
596
597         doc: Mention functions which are declared as macros.
598         * doc/posix-functions/*[fl].texi: Mention that some functions are
599         defined as macros with arguments only.
600
601 2011-09-17  Bruno Haible  <bruno@clisp.org>
602
603         Add dependencies to new dirent related modules.
604         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
605         * modules/fts (Depends-on): Likewise.
606         * modules/glob (Depends-on): Likewise.
607         * modules/savedir (Depends-on): Likewise.
608         * modules/scandir (Depends-on): Likewise.
609         * modules/dirent-safer (Depends-on): Add opendir, closedir.
610         * modules/fdopendir (Depends-on): Add opendir.
611
612 2011-09-17  Bruno Haible  <bruno@clisp.org>
613
614         inet_pton: Support for MSVC on Windows Vista or newer.
615         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
616         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
617         HAVE_DECL_INET_PTON is defined.
618         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
619         On platforms with <winsock2.h>, test whether inet_pton is declared in
620         <ws2tcpip.h>. If so, arrange to replace it.
621         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
622         REPLACE_INET_PTON.
623         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
624         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
625         (Depends-on, configure.ac): Update condition.
626         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
627
628 2011-09-17  Bruno Haible  <bruno@clisp.org>
629
630         inet_ntop: Support for MSVC on Windows Vista or newer.
631         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
632         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
633         HAVE_DECL_INET_NTOP is defined.
634         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
635         On platforms with <winsock2.h>, test whether inet_ntop is declared in
636         <ws2tcpip.h>. If so, arrange to replace it.
637         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
638         REPLACE_INET_NTOP.
639         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
640         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
641         (Depends-on, configure.ac): Update condition.
642         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
643
644 2011-09-16  Eric Blake  <eblake@redhat.com>
645
646         test-fsync: yet another enhancement
647         * tests/test-fsync.c (main): Also test behavior on read-only text
648         file.
649
650 2011-09-16  Bruno Haible  <bruno@clisp.org>
651
652         Enhance fsync, fdatasync tests.
653         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
654         * tests/test-fdatasync.c (main): Likewise.
655
656 2011-09-16  Bruno Haible  <bruno@clisp.org>
657
658         Support for MSVC compiler: Ensure mode_t gets defined.
659         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
660         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
661         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
662         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
663         * tests/test-fcntl-h.c: Check that mode_t is defined.
664         * tests/test-sys_stat.c: Likewise.
665         * tests/test-sys_types.c: Likewise.
666         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
667         * doc/posix-headers/sys_stat.texi: Likewise.
668         * doc/posix-headers/sys_types.texi: Likewise.
669
670 2011-09-16  Bruno Haible  <bruno@clisp.org>
671
672         sys_stat: Support for MSVC.
673         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
674         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
675         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
676         MSVC.
677
678 2011-09-16  Bruno Haible  <bruno@clisp.org>
679
680         Support for MSVC compiler: Ensure off_t gets defined.
681         * lib/unistd.in.h: Include <sys/types.h>.
682         * tests/test-fcntl-h.c: Check that off_t is defined.
683         * tests/test-sys_stat.c: Likewise.
684         * tests/test-sys_types.c: Likewise.
685
686 2011-09-16  Eric Blake  <eblake@redhat.com>
687
688         fdatasync: port to Solaris
689         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
690         * modules/fdatasync (Link): Document it.
691         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
692
693         fdatasync: port to MacOS X 10.7
694         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
695         declared.
696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
697         * modules/unistd (Makefile.am): Substitute it.
698         * lib/unistd.in.h (fdatasync): Declare on MacOS.
699         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
700
701         fdatasync: minor improvements
702         * modules/fdatasync (Depends-on): Add condition for fsync.
703         * lib/fdatasync.c (fdatasync): Add comment.
704         * tests/test-unistd-c++.cc: Test fdatasync.
705
706         unistd: update refs to newer POSIX
707         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
708         Suggested by Bruno Haible.
709
710         fdatasync: new module
711         * modules/fsync (Description): Document difference to fdatasync.
712         * modules/fdatasync: New module.
713         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
714         * lib/fdatasync.c (fdatasync): Likewise.
715         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
716         defaults.
717         * modules/unistd (Makefile.am): Set witnesses.
718         * lib/unistd.in.h (fdatasync): Declare.
719         * MODULES.html.sh: Document it.
720         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
721         * modules/fdatasync-tests: New test.
722         * tests/test-fdatasync.c: Likewise.
723
724 2011-09-16  Eric Blake  <eblake@redhat.com>
725
726         test-fsync: enhance tests
727         * modules/fsync-tests (Depends-on): Add errno, for mingw.
728         * tests/test-fsync.c (main): Enhance test.
729
730 2011-09-15  Bruno Haible  <bruno@clisp.org>
731
732         Support for MSVC compiler: Ensure ssize_t gets defined.
733         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
734         * doc/posix-headers/stdio.texi: Likewise.
735         * modules/stdio (Depends-on): Add ssize_t.
736         * modules/sys_socket (Depends-on): Likewise.
737         * modules/sys_types (Depends-on): Likewise.
738         * modules/sys_uio (Depends-on): Likewise.
739         * modules/unistd (Depends-on): Likewise.
740         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
741         * tests/test-sys_types.c: Check that ssize_t is defined.
742
743 2011-09-14  Bruno Haible  <bruno@clisp.org>
744
745         Avoid using #, the m4 comment starter character, near brackets.
746         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
747         delimiter character in sed expressions.
748         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
749         Suggested by Eric Blake.
750
751         Properly quote AC_CHECK_DECLS' 4th argument.
752         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
753         argument.
754         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
755         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
756         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
757         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
758         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
759         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
760         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
761         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
762         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
763         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
764         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
765         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
766         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
767         * m4/isinf.m4 (gl_ISINF): Likewise.
768         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
769         * m4/readutmp.m4 (gl_READUTMP): Likewise.
770         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
771         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
772         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
773         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
774         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
775         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
776         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
777         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
778         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
779         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
780         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
781         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
782         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
783         Reported by Eric Blake.
784
785         Properly quote AC_CHECK_DECL's 4th argument.
786         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
787         argument.
788         * m4/argp.m4 (gl_ARGP): Likewise.
789         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
790         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
791         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
792         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
793         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
794         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
795         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
796         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
797         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
798         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
799         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
800         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
801         Reported by Eric Blake.
802
803 2011-09-14  Eric Blake  <eblake@redhat.com>
804
805         opendir: avoid compile warning
806         * lib/opendir.c (includes): Always include errno.h.
807         Reported by Tatsuro MATSUOKA.
808
809 2011-09-14  Jim Meyering  <meyering@redhat.com>
810
811         maint.mk: sc_tight_scope: propagate failure from sub-make
812         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
813         Reported by Martin von Gagern.
814
815 2011-09-13  Bruno Haible  <bruno@clisp.org>
816
817         tempname: Support for MSVC.
818         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
819         MSVC.
820         * modules/tempname (Depends-on): Add fcntl-h.
821
822 2011-09-13  Bruno Haible  <bruno@clisp.org>
823
824         sys_time: Support for MSVC.
825         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
826         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
827         include <winsock2.h>.
828         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
829         function declarations that collide with POSIX.
830         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
831         (Makefile.am): Substitute HAVE_WINSOCK2_H.
832
833 2011-09-13  Bruno Haible  <bruno@clisp.org>
834
835         stat: Support for MSVC.
836         * lib/stat.c: Include pathmax.h.
837         * modules/stat (Depends-on): Add pathmax.
838
839         pathmax: Support for native Windows.
840         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
841
842 2011-09-12  Bruno Haible  <bruno@clisp.org>
843
844         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
845         * lib/dirent.in.h (struct dirent): New type.
846         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
847         DT_WHT): New macros.
848         (DIR): New type.
849         (opendir, closedir): Declare only if the module 'opendir' is enabled.
850         (readdir, rewinddir): New declarations.
851         * lib/dirent-private.h: New file.
852         * lib/opendir.c: New file.
853         * lib/readdir.c: New file.
854         * lib/rewinddir.c: New file.
855         * lib/closedir.c: New file.
856         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
857         * m4/opendir.m4: New file.
858         * m4/readdir.m4: New file.
859         * m4/rewinddir.m4: New file.
860         * m4/closedir.m4: New file.
861         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
862         REPLACE_CLOSEDIR here.
863         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
864         readdir, rewinddir are declared.
865         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
866         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
867         HAVE_REWINDDIR, HAVE_CLOSEDIR.
868         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
869         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
870         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
871         * modules/opendir: New file.
872         * modules/readdir: New file.
873         * modules/rewinddir: New file.
874         * modules/closedir: New file.
875         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
876         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
877         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
878         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
879         * NEWS: Mention the 'fchdir' change.
880
881 2011-09-11  Bruno Haible  <bruno@clisp.org>
882
883         asm-underscore.m4: Support for MSVC.
884         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
885         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
886
887 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
888
889         Doc about crypt functions.
890         * doc/posix-functions/crypt.texi: Expand range of glibc versions
891         needing for _GNU_SOURCE to get crypt.
892         * doc/posix-functions/encrypt.texi: Likewise.
893         * doc/posix-functions/setkey.texi: Likewise.
894
895 2011-09-11  Bruno Haible  <bruno@clisp.org>
896
897         doc: Update regarding MSVC 9.
898         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
899         tested".
900         * doc/posix-functions/*.texi: Update with info about MSVC 9.
901         * doc/posix-headers/*.texi: Likewise.
902         * doc/pastposix-functions/*.texi: Likewise.
903         * doc/glibc-functions/*.texi: Likewise.
904         * doc/glibc-headers/*.texi: Likewise.
905
906 2011-09-11  Bruno Haible  <bruno@clisp.org>
907
908         unistd et al.: Don't assume <unistd.h> exists.
909         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
910         does not exist.
911         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
912         exist. But include <stdlib.h>.
913         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
914         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
915         symlink() does not exist.
916         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
917         include <io.h> instead.
918         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
919         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
920         include <direct.h> instead.
921         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
922         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
923         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
924         <io.h> instead.
925         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
926         correctly if the system does not have hard links.
927         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
928         <direct.h> instead.
929         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
930         it when looking for function declarations.
931         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
932         <direct.h> and <io.h> instead.
933         * doc/posix-headers/unistd.texi: More details about MSVC problem.
934
935 2011-09-11  Bruno Haible  <bruno@clisp.org>
936
937         strcase: Support for MSVC.
938         * modules/strcase (Status, Notice): Remove obsoletion mark.
939         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
940         * doc/posix-functions/strncasecmp.texi: Likewise.
941
942         strings: Don't assume <strings.h> exists.
943         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
944         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
945         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
946         * doc/posix-headers/strings.texi: Mention the MSVC problem.
947
948 2011-09-11  Bruno Haible  <bruno@clisp.org>
949
950         dirent: Don't assume <dirent.h> exists.
951         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
952         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
953         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
954         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
955
956 2011-09-11  Bruno Haible  <bruno@clisp.org>
957
958         Fix wint_t on MSVC.
959         * lib/wchar.in.h (wint_t): On MSVC, override it.
960         * lib/wctype.in.h (wint_t): Likewise.
961         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
962         MSVC.
963         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
964         * doc/posix-headers/wctype.texi: Likewise.
965
966 2011-09-11  Bruno Haible  <bruno@clisp.org>
967
968         sys_types: Fix typo.
969         * lib/sys_types.in.h: Fix typo in comment.
970         Reported by Paul Eggert.
971
972         Support for MSVC compiler: Ensure size_t gets defined.
973         * modules/strings (Depends-on): Add 'sys_types'.
974         * modules/sys_uio (Depends-on): Likewise.
975         * lib/sys_uio.in.h: Update comment.
976
977         C++ tests for module 'sys_types'.
978         * modules/sys_types-c++-tests: New file.
979         * tests/test-sys_types-c++.cc: New file.
980
981         Tests for module 'sys_types'.
982         * modules/sys_types-tests: New file.
983         * tests/test-sys_types.c: New file.
984
985         New module 'sys_types'.
986         * lib/sys_types.in.h: New file.
987         * m4/sys_types_h.m4: New file.
988         * modules/sys_types: New file.
989         * doc/posix-headers/sys_types.texi: Mention the new module and the
990         size_t problem on MSVC 9.
991
992 2011-09-11  Bruno Haible  <bruno@clisp.org>
993
994         Support for MSVC compiler: Avoid division by a literal 0.
995         * lib/math.in.h (NAN): Define through a function call also on MSVC.
996         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
997         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
998         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
999         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
1000         * tests/infinity.h: New file.
1001         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
1002         on MSVC.
1003         * tests/test-ceilf1.c: Include infinity.h.
1004         (main): Use Infinityf.
1005         * tests/test-ceil1.c: Include infinity.h.
1006         (main): Use Infinityd.
1007         * tests/test-ceill.c: Include infinity.h.
1008         (main): Use Infinityl.
1009         * tests/test-dprintf-posix.c: Include infinity.h.
1010         (test_function): Use Infinityd.
1011         * tests/test-floorf1.c: Include infinity.h.
1012         (main): Use Infinityf.
1013         * tests/test-floor1.c: Include infinity.h.
1014         (main): Use Infinityd.
1015         * tests/test-floorl.c: Include infinity.h.
1016         (main): Use Infinityl.
1017         * tests/test-fprintf-posix.c: Include infinity.h.
1018         (test_function): Use Infinityd.
1019         * tests/test-frexp.c: Include infinity.h.
1020         (main): Use Infinityd.
1021         * tests/test-frexpl.c: Include infinity.h.
1022         (main): Use Infinityl.
1023         * tests/test-isfinite.c: Include infinity.h.
1024         (test_isfinitef): Use Infinityf.
1025         (test_isfinited): Use Infinityd.
1026         (test_isfinitel): Use Infinityl.
1027         * tests/test-isinf.c: Include infinity.h.
1028         (test_isinff): Use Infinityf.
1029         (test_isinfd): Use Infinityd.
1030         (test_isinfl): Use Infinityl.
1031         * tests/test-isnan.c: Include infinity.h.
1032         (test_float): Use Infinityf.
1033         (test_double): Use Infinityd.
1034         (test_long_double): Use Infinityl.
1035         * tests/test-isnanf.h: Include infinity.h.
1036         (main): Use Infinityf.
1037         * tests/test-isnand.h: Include infinity.h.
1038         (main): Use Infinityd.
1039         * tests/test-isnanl.h: Include infinity.h.
1040         (main): Use Infinityl.
1041         * tests/test-ldexpl.c: Include infinity.h.
1042         (main): Use Infinityl.
1043         * tests/test-printf-posix.h: Include infinity.h.
1044         (test_function): Use Infinityd.
1045         * tests/test-roundf1.c: Include infinity.h.
1046         (main): Use Infinityf.
1047         * tests/test-round1.c: Include infinity.h.
1048         (main): Use Infinityd.
1049         * tests/test-roundl.c: Include infinity.h.
1050         (main): Use Infinityl.
1051         * tests/test-signbit.c: Include infinity.h.
1052         (test_signbitf): Use Infinityf.
1053         (test_signbitd): Use Infinityd.
1054         (test_signbitl): Use Infinityl.
1055         * tests/test-snprintf-posix.h: Include infinity.h.
1056         (test_function): Use Infinityd, Infinityl.
1057         * tests/test-sprintf-posix.h: Include infinity.h.
1058         (test_function): Use Infinityd, Infinityl.
1059         * tests/test-truncf1.c: Include infinity.h.
1060         (main): Use Infinityf.
1061         * tests/test-trunc1.c: Include infinity.h.
1062         (main): Use Infinityd.
1063         * tests/test-truncl.c: Include infinity.h.
1064         (main): Use Infinityl.
1065         * tests/test-vasnprintf-posix.c: Include infinity.h.
1066         (test_function): Use Infinityd, Infinityl.
1067         * tests/test-vasprintf-posix.c: Include infinity.h.
1068         (test_function): Use Infinityd, Infinityl.
1069         * modules/ceilf-tests (Files): Add tests/infinity.h.
1070         * modules/ceil-tests (Files): Likewise.
1071         * modules/ceill-tests (Files): Likewise.
1072         * modules/dprintf-posix-tests (Files): Likewise.
1073         * modules/floorf-tests (Files): Likewise.
1074         * modules/floor-tests (Files): Likewise.
1075         * modules/floorl-tests (Files): Likewise.
1076         * modules/fprintf-posix-tests (Files): Likewise.
1077         * modules/frexp-tests (Files): Likewise.
1078         * modules/frexp-nolibm-tests (Files): Likewise.
1079         * modules/frexpl-tests (Files): Likewise.
1080         * modules/frexpl-nolibm-tests (Files): Likewise.
1081         * modules/isfinite-tests (Files): Likewise.
1082         * modules/isinf-tests (Files): Likewise.
1083         * modules/isnan-tests (Files): Likewise.
1084         * modules/isnanf-tests (Files): Likewise.
1085         * modules/isnanf-nolibm-tests (Files): Likewise.
1086         * modules/isnand-tests (Files): Likewise.
1087         * modules/isnand-nolibm-tests (Files): Likewise.
1088         * modules/isnanl-tests (Files): Likewise.
1089         * modules/isnanl-nolibm-tests (Files): Likewise.
1090         * modules/ldexpl-tests (Files): Likewise.
1091         * modules/printf-posix-tests (Files): Likewise.
1092         * modules/roundf-tests (Files): Likewise.
1093         * modules/round-tests (Files): Likewise.
1094         * modules/roundl-tests (Files): Likewise.
1095         * modules/signbit-tests (Files): Likewise.
1096         * modules/snprintf-posix-tests (Files): Likewise.
1097         * modules/sprintf-posix-tests (Files): Likewise.
1098         * modules/truncf-tests (Files): Likewise.
1099         * modules/trunc-tests (Files): Likewise.
1100         * modules/truncl-tests (Files): Likewise.
1101         * modules/vasnprintf-posix-tests (Files): Likewise.
1102         * modules/vasprintf-posix-tests (Files): Likewise.
1103         * modules/vdprintf-posix-tests (Files): Likewise.
1104         * modules/vfprintf-posix-tests (Files): Likewise.
1105         * modules/vprintf-posix-tests (Files): Likewise.
1106         * modules/vsnprintf-posix-tests (Files): Likewise.
1107         * modules/vsprintf-posix-tests (Files): Likewise.
1108         * modules/xprintf-posix-tests (Files): Likewise.
1109
1110 2011-09-11  Bruno Haible  <bruno@clisp.org>
1111
1112         Ensure pid_t gets defined.
1113         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
1114         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
1115         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1116         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1117         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1118         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
1119         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
1120         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1121         * tests/test-fcntl-h.c: Check that pid_t is defined.
1122         * tests/test-sched.c: Likewise.
1123         * tests/test-termios.c: Likewise.
1124         * tests/test-time.c: Likewise.
1125         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
1126         * doc/posix-headers/signal.texi: Likewise.
1127         * doc/posix-headers/sys_types.texi: Likewise.
1128         * doc/posix-headers/time.texi: Likewise.
1129
1130 2011-09-11  Bruno Haible  <bruno@clisp.org>
1131
1132         acl: Fix compilation on Solaris 10 (older version).
1133         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
1134         of ACE_EVERYONE.
1135         * lib/set-mode-acl.c (qset_acl): Likewise.
1136         Reported by Christian Jullien <eligis@orange.fr>.
1137
1138 2011-09-10  Bruno Haible  <bruno@clisp.org>
1139
1140         iconv, unsetenv: Add support for MSVC compiler.
1141         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
1142         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
1143
1144 2011-09-10  Bruno Haible  <bruno@clisp.org>
1145
1146         *printf: Add support for MSVC compiler.
1147         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
1148         handles the exception caused by the %n directive. When cross-compiling,
1149         guess no on native Windows.
1150         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
1151         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
1152         emulate it through vsnprintf.
1153         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
1154         * doc/posix-functions/dprintf.texi: Update documentation regarding
1155         MSVC 9.
1156         * doc/posix-functions/fprintf.texi: Likewise.
1157         * doc/posix-functions/printf.texi: Likewise.
1158         * doc/posix-functions/snprintf.texi: Likewise.
1159         * doc/posix-functions/sprintf.texi: Likewise.
1160         * doc/posix-functions/swprintf.texi: Likewise.
1161         * doc/posix-functions/vdprintf.texi: Likewise.
1162         * doc/posix-functions/vfprintf.texi: Likewise.
1163         * doc/posix-functions/vprintf.texi: Likewise.
1164         * doc/posix-functions/vsnprintf.texi: Likewise.
1165         * doc/posix-functions/vsprintf.texi: Likewise.
1166         * doc/glibc-functions/asprintf.texi: Likewise.
1167         * doc/glibc-functions/obstack_printf.texi: Likewise.
1168         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1169         * doc/glibc-functions/vasprintf.texi: Likewise.
1170
1171 2011-09-10  Bruno Haible  <bruno@clisp.org>
1172
1173         nocrash: Add support for native Windows.
1174         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
1175
1176 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
1177             Bruno Haible  <bruno@clisp.org>
1178
1179         absolute-header, include-next: Add support for MSVC compiler.
1180         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
1181         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
1182         directory separator in #line directives.
1183         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
1184         recognize also backslash as directory separator in #line directives.
1185
1186 2011-09-08  Jim Meyering  <meyering@redhat.com>
1187
1188         maint.mk: mark the post-release commit log with "maint: " prefix
1189         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
1190         one-line commit-log summary.
1191
1192 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
1193             Bruno Haible  <bruno@clisp.org>
1194
1195         Doc about crypt functions.
1196         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
1197         systems.
1198         * doc/posix-functions/encrypt.texi: Likewise.
1199         * doc/posix-functions/setkey.texi: Likewise.
1200
1201 2011-09-08  Simon Josefsson  <simon@josefsson.org>
1202
1203         * lib/gc.h: Fix copyright header.
1204
1205 2011-09-07  Bruno Haible  <bruno@clisp.org>
1206
1207         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
1208         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
1209         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
1210
1211 2011-09-07  Bruno Haible  <bruno@clisp.org>
1212
1213         openat: Work around compilation error with OSF/1 5.1 DTK cc.
1214         * lib/fopen.c: Use different syntax for include of <stdio.h>.
1215         * lib/freopen.c: Likewise.
1216         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
1217         * lib/lstat.c: Likewise.
1218         * lib/stat.c: Likewise.
1219         * lib/open.c: Use different syntax for include of <fcntl.h>.
1220         * lib/openat.c: Include fcntl.h again, explicitly.
1221
1222 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
1223
1224         parse-datetime: document the newly accepted format
1225         * doc/parse-datetime.texi (Combined date and time of day items):
1226         New section.
1227
1228 2011-09-06  Bruno Haible  <bruno@clisp.org>
1229
1230         acl: Fix a test failure on newer Solaris 10 with ZFS.
1231         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
1232         ENOSYS as no ACL.
1233         Reported by Jim Meyering.
1234
1235 2011-09-06  Bruno Haible  <bruno@clisp.org>
1236
1237         acl: Update for AIX >= 5.3 with NFS.
1238         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
1239         ENOSYS as no ACL.
1240
1241         acl: Fix a test failure on AIX >= 5.3 with NFS.
1242         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
1243         as no ACL.
1244
1245 2011-09-06  Bruno Haible  <bruno@clisp.org>
1246
1247         acl: Fix a test failure on IRIX 6.5 with NFS.
1248         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
1249         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
1250         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
1251         * lib/copy-acl.c (qcopy_acl): Likewise.
1252
1253 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
1254
1255         openat: port to AIX 7.1 with large files
1256         AIX 7.1 does a "#define openat open64at" if large files are in use,
1257         so we can't simply #undef openat.  Use the orig_openat trick (similar
1258         to orig_open in lib/open.c) to work around the problem.  Problem
1259         reported by Kevin Brott for GNU tar, in the thread containing
1260         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
1261         * lib/openat.c (__need_system_fcntl_h): Define first.
1262         Include <fcntl.h> and <sys/types.h> before undefining.
1263         (orig_openat) [HAVE_OPENAT]: New inline function.
1264         (openat) [HAVE_OPENAT]: Do not undef.
1265         (rpl_openat): Use orig_openat, not openat.
1266
1267 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1268             Bruno Haible  <bruno@clisp.org>
1269
1270         acl: Avoid errors on NonStop Kernel.
1271         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
1272         ENOTSUP errors.
1273
1274 2011-09-05  Bruno Haible  <bruno@clisp.org>
1275
1276         acl: Clean up Solaris code.
1277         * lib/acl-internal.h: Remove no-op #if.
1278         * lib/file-has-acl.c: Likewise.
1279         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
1280         * lib/copy-acl.c (qcopy_acl): Likewise.
1281
1282 2011-09-05  Bruno Haible  <bruno@clisp.org>
1283
1284         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
1285         binaries built on the original Solaris 10.
1286         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
1287         trivial.
1288
1289 2011-09-05  Bruno Haible  <bruno@clisp.org>
1290
1291         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1292         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
1293         10.
1294         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
1295         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
1296         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
1297         instead of acl_get, facl_get, acl_set, facl_set.
1298
1299 2011-09-05  Bruno Haible  <bruno@clisp.org>
1300
1301         copy-file: Try unit tests on more file systems.
1302         * tests/test-copy-file-1.sh: New file.
1303         * tests/test-copy-file-2.sh: New file.
1304         * modules/copy-file-tests (Files): Add them.
1305         (Makefile.am): Add them to TESTS.
1306
1307         acl: Try unit tests on more file systems.
1308         * tests/test-file-has-acl-1.sh: New file.
1309         * tests/test-file-has-acl-2.sh: New file.
1310         * tests/test-set-mode-acl-1.sh: New file.
1311         * tests/test-set-mode-acl-2.sh: New file.
1312         * tests/test-copy-acl-1.sh: New file.
1313         * tests/test-copy-acl-2.sh: New file.
1314         * modules/acl-tests (Files): Add them.
1315         (Makefile.am): Add them to TESTS.
1316
1317 2011-09-04  Bruno Haible  <bruno@clisp.org>
1318
1319         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1320         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
1321         10.
1322         (OLD_ALLOW, OLD_DENY): New macros.
1323         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
1324         ACE_ACCESS_ALLOWED_ACE_TYPE.
1325         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
1326         ACE_ACCESS_DENIED_ACE_TYPE.
1327         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
1328         (NEW_ACE_EXECUTE): Fix value.
1329         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
1330         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
1331         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
1332         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
1333         NEW_ACE_SYNCHRONIZE): New macros.
1334         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
1335         instead of acl_fromtext, acl_set, facl_set.
1336         Fixes a coreutils/tests/cp/perm failure.
1337
1338 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
1339
1340         openat: test for fstatat (..., 0) bug
1341         Further testing with tar suggests that fstatat (..., 0)
1342         does not work in general, on AIX 7.1; see
1343         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
1344         So, give up entirely on AIX 7.1's fstatat, and fall back on our
1345         replacement fstatat (which is what older AIX releases were using
1346         anyway).
1347         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
1348         use is now changed to orig_fstatat.  This was probably the right
1349         thing to do anyway.
1350         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
1351         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
1352         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
1353         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
1354         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
1355         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
1356         if the bug is found.
1357
1358         openat: test for fstatat (AT_FDCWD, ..., 0) bug
1359         This tests for another fstatat bug on AIX 7.1:
1360         fstatat (AT_FDCWD, ..., 0) does not work.  See
1361         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
1362         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
1363         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
1364         (rpl_fstatat): Adjust so that it works around either (or both)
1365         bugs if present.
1366         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
1367
1368 2011-09-03  Karl Berry  <karl@gnu.org>
1369
1370         * doc/regex.texi (Character Class Operators): Avoid literal ":"
1371         in index entries.
1372
1373 2011-09-02  Bruno Haible  <bruno@clisp.org>
1374
1375         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
1376         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
1377         values of AR, ARFLAGS, RANLIB.
1378         Reported by John W. Eaton <jwe@gnu.org> for Octave.
1379
1380 2011-09-02  Bruno Haible  <bruno@clisp.org>
1381
1382         Find 'ar' program that fits with --host argument.
1383         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
1384
1385 2011-09-02  Bruno Haible  <bruno@clisp.org>
1386
1387         tests: init.sh: Support any non-GNU diff.
1388         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
1389         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
1390         Solaris 8.
1391
1392 2011-09-02  Bruno Haible  <bruno@clisp.org>
1393
1394         tests: init.sh: work also with any non-GNU diff that supports -u
1395         * tests/init.sh: Relax check for diff -u support.
1396         Rather than checking for GNU diff via --version, simply check
1397         for support for -u itself.  Useful at least on OpenBSD 4.9,
1398         AIX 7.1, IRIX 6.5, and Solaris 10.
1399
1400 2011-09-01  Bruno Haible  <bruno@clisp.org>
1401
1402         strtoimax, strtoumax: Document problem on HP-UX 11.
1403         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
1404         * doc/posix-functions/strtoumax.texi: Likewise.
1405
1406 2011-09-01  Bruno Haible  <bruno@clisp.org>
1407
1408         strtoumax: Avoid link error on OSF/1 with DTK cc.
1409         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
1410         defined as a function.
1411         * modules/strtoumax (Depends-on, configure.ac): Test only whether
1412         strtoumax is defined, not whether it is declared.
1413
1414 2011-09-01  Bruno Haible  <bruno@clisp.org>
1415
1416         strtoimax: Avoid link error on OSF/1 with DTK cc.
1417         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
1418         defined as a function.
1419         * modules/strtoimax (Depends-on, configure.ac): Test only whether
1420         strtoimax is defined, not whether it is declared.
1421
1422 2011-09-01  Bruno Haible  <bruno@clisp.org>
1423
1424         imaxdiv: Avoid link error on OSF/1 with DTK cc.
1425         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
1426         as a function.
1427         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
1428         whether it is declared.
1429
1430 2011-09-01  Bruno Haible  <bruno@clisp.org>
1431
1432         imaxabs: Avoid link error on OSF/1 with DTK cc.
1433         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
1434         as a function.
1435         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
1436         whether it is declared.
1437
1438 2011-09-01  Bruno Haible  <bruno@clisp.org>
1439
1440         Tests for module 'strtoumax'.
1441         * modules/strtoumax-tests: New file.
1442         * tests/test-strtoumax.c: New file.
1443
1444         Tests for module 'strtoimax'.
1445         * modules/strtoimax-tests: New file.
1446         * tests/test-strtoimax.c: New file.
1447
1448         Tests for module 'imaxdiv'.
1449         * modules/imaxdiv-tests: New file.
1450         * tests/test-imaxdiv.c: New file.
1451
1452         Tests for module 'imaxabs'.
1453         * modules/imaxabs-tests: New file.
1454         * tests/test-imaxabs.c: New file.
1455
1456 2011-09-01  Bruno Haible  <bruno@clisp.org>
1457
1458         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
1459         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
1460         pthread_create.
1461
1462 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1463
1464         openat: work around AIX 7.1 fstatat issue
1465         This should fix the problem that was not properly fixed
1466         in the previous change, dated 2011-08-30.
1467         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
1468         __need_system_stat_h defined.
1469         (orig_fstatat) [HAVE_FSTATAT]: New function.
1470         (rpl_fstatat): Go back to the old way of doing things,
1471         except call orig_fstatat instead of fstatat.
1472         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
1473         Remove unnecessary check whether fstatat fills in st_size etc.
1474
1475 2011-09-01  Bruno Haible  <bruno@clisp.org>
1476
1477         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
1478         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
1479         just include the system's header.
1480
1481 2011-08-31  Jim Meyering  <meyering@redhat.com>
1482
1483         tests: avoid spurious assertion failure in test-float.c on ppc64
1484         * tests/test-float.c (test_long_double): Comment out an assertion,
1485         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
1486         with gcc-4.4.4.
1487
1488         maint: indent with spaces, not TABs
1489         I need to get in the habit of running gnulib's "make check".
1490         Both of these would have been caught.
1491         * m4/largefile.m4: Indent with spaces, not TABs.
1492         * lib/parse-datetime.y (iso_8601_time): Likewise.
1493         Spotted by Pádraig Brady.
1494
1495         test-parse-datetime.c: accommodate a relatively strict gcc warning
1496         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
1497         to avoid a warning from gcc's -Werror=missing-declarations.
1498         Insert a few spaces-before-funcall-parenthesis.
1499
1500 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
1501
1502         parse-datetime: accept ISO 8601 date and time rep with "T" separator
1503         The parser now accepts ISO 8601 date-time strings with "T" as the
1504         separator.  It has long parsed dates like "2004-02-29 16:21:42"
1505         with a space between the date and time strings.  Now it also parses
1506         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
1507         variants like "2004-02-29T16:21:42.333-07:00"
1508         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
1509         of day representation using the 'T' separator character.
1510         * doc/parse-datetime.texi (General date syntax): replace use of
1511         deprecated --iso-8601 option with --rfc-3339 in example of date
1512         command output formats that can be parsed.
1513         * tests/test-parse-datetime.c (tm_diff): New function, taken from
1514         lib/parse-datetime.y.
1515         (gmt_offset): New function.
1516         (main): Add additional test cases to validate ISO8601 extended
1517         date and time of day parsing.
1518
1519 2011-08-31  Bruno Haible  <bruno@clisp.org>
1520
1521         freopen: Documentation.
1522         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
1523         name.
1524         Reported by Claudio Bley <claudio.bley@gmail.com>.
1525
1526 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
1527
1528         freopen: Don't crash if the filename argument is NULL.
1529         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
1530         NULL.
1531
1532 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
1533
1534         openat: work around AIX 7.1 fstatat bug
1535         Problem reported by Kevin Brott for GNU tar, in the thread containing
1536         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
1537         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
1538         FSTATAT_ST_SIZE_ETC_BROKEN.
1539         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
1540         rpl_fstatat.
1541         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
1542         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
1543         AC_CHECK_FUNCS_ONCE for fstatat.
1544         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
1545         fchmodat, mkdirat, openat and unlinkat.
1546
1547 2011-08-30  Bruno Haible  <bruno@clisp.org>
1548
1549         Avoid endless recursions if config.h includes some header files.
1550         * lib/fopen.c (__need_FILE): Define already before including config.h.
1551         * lib/freopen.c (__need_FILE): Likewise.
1552         * lib/open.c (__need_system_fcntl_h): Likewise.
1553         * lib/stat.c (__need_system_sys_stat_h): Likewise.
1554         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
1555         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1556
1557 2011-08-25  Karl Berry  <karl@gnu.org>
1558
1559         * config/srclist.txt (ylwrap): new try.
1560         * build-aux/ylwrap: new file.
1561
1562 2011-08-23  Bruno Haible  <bruno@clisp.org>
1563
1564         tmpdir: Use a good default directory on native Windows.
1565         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
1566         (P_tmpdir): Default to _P_tmpdir on native Windows.
1567         (path_search): On native Windows, try the value returned by GetTempPath
1568         before trying P_tmpdir.
1569         * modules/tmpdir (Depends-on): Add pathmax.
1570         Suggested by John Darrington <john@darrington.wattle.id.au>.
1571
1572 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
1573
1574         doc: fix typo in README-release
1575         * top/README-release: Capitalize first word of a sentence.
1576
1577 2011-08-19  Jim Meyering  <meyering@redhat.com>
1578
1579         fts: do not exhaust memory when processing million-entry directories
1580         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
1581         directory would require about 256*N bytes of memory.  Thus, it was
1582         easy to construct a directory too large to be processed by any of
1583         those tools.  With this change, fts' maximum memory utilization is
1584         now limited to around 30MB.
1585         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
1586         (fts_read): When we've processed the final entry (i.e., when
1587         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
1588         using the parent entry to read any remaining entries.  Dispatch
1589         depending on what fts_build returns:
1590         - NULL+stop, aka failure: stop
1591         - NULL otherwise: move up in the dir hierarchy
1592         - non-NULL: handle this new entry
1593         (fts_build): Declare and use new local, continue_readdir.
1594         Prepare to be called from fts_read, when the entries
1595         from a partially-read directory have just been exhausted.
1596         In that case, we'll skip the opendir and instead use the parent's
1597         fts_dirp and derive dir_fd from that.
1598         Finally, in the readdir loop, if we read max_entries entries,
1599         exit the loop ensuring *not* to call closedir.  This is required
1600         so that fts_dirp can be reused on a subsequent call.
1601         Prompted by Ben England's report of memory exhaustion in find
1602         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
1603
1604         maint: fts: move decl of `dp' down into while loop; split a long line
1605         * lib/fts.c (fts_build): No semantic change.
1606
1607         fts: add/use new struct member, fts_dirp
1608         We are about to use this to manage any directory with
1609         too many entries to read all of them into memory at once.
1610         To do that, we'll need to save the DIR* pointer in each
1611         affected FTSENT struct.
1612         * lib/fts_.h: Include <dirent.h>.
1613         (struct FTSENT) [fts_dirp]: New member.
1614         * lib/fts.c (closedir_and_clear): Define.
1615         Use it in place of closedir so that we are sure to
1616         clear the new fts_dirp member when done with it.
1617         (fts_alloc): Initialize the new member.
1618         (fts_lfree): Free, if needed.
1619
1620         maint: fts: give __opendir2 a new parameter and rename
1621         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
1622         than surreptitiously using sole caller's "dir_fd".
1623         (fts_opendir): Rename from __opendir2.
1624
1625         maint: fts.c: remove __opendir2's now-unused parameter, oflag
1626         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
1627
1628         maint: fts.c: correct off-by-one indentation
1629         * lib/fts.c (fts_build): Correct indentation, change style
1630         of a couple of block comments, and bracing style.
1631
1632         maint: fts.c: move __opendir2 #define "up" out of function body
1633         * lib/fts.c (__opendir2): Move "up".  No semantic change.
1634
1635         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
1636         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
1637         out for a long time and besides was useful only on BSD systems.
1638
1639 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
1640
1641         regex: port to Stratus OpenVOS
1642         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
1643         define to empty, rather than attempting nonportable optimizations.
1644         Problem reported by Paul Green in:
1645         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
1646         and fix suggested by Eric Blake in:
1647         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
1648
1649 2011-08-17  Eric Blake  <eblake@redhat.com>
1650
1651         getcwd: fix test failures on mingw
1652         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
1653         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
1654         test if long directory cannot be created, and allow mingw errno.
1655
1656         getcwd-lgpl: fix m4 to match relaxed test for BSD
1657         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
1658         (gl_FUNC_GETCWD_SIGNATURE): New macro.
1659         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
1660         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
1661         signature problem.
1662
1663         getcwd: fix compilation on mingw64
1664         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
1665         getcwd.
1666         Reported by Marc-André Lureau.
1667
1668         pipe2: silence compiler warning
1669         * lib/pipe2.c (pipe2): Hide label if it is not used.
1670
1671 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
1672
1673         relocatable-prog: fix link error
1674         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
1675         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
1676         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
1677         into modules/relocatable-lib without noticing that
1678         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
1679         also needs to build relocatable.c.
1680
1681 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1682
1683         getaddrinfo: fix sh typo in gai_strerrorA decl checking
1684         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
1685         shell code: it contained a 'break' that was not in a loop.
1686         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
1687         via a shell-language loop; this may have been true in old Autoconf
1688         versions, but it's not true in Autoconf 2.68.  I found this bug
1689         when testing coreutils git on Solaris 8, whose shell complains
1690         about the syntax error.
1691
1692 2011-08-12  Simon Josefsson  <simon@josefsson.org>
1693
1694         * lib/base64.c: Fix comment to reference RFC 4648.
1695         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
1696         <gvtulder@gmail.com>.
1697
1698 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1699
1700         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
1701
1702         po/Makefile.in.in: fix make -q problem
1703         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
1704         rule, since there's no file named 'check-macro-version' and its
1705         use as a file breaks make -q.
1706         (all): Don't depend on check-macro-version.
1707         (CHECK_MACRO_VERSION): New macro.
1708         (stamp-po): Use it.
1709
1710         configmake: fix make -q problem
1711         * modules/configmake (configmake.h): Update configmake.h's time stamp
1712         even if the file does not change.  Otherwise, 'make -q' fails.
1713         Problem reported by Simon Josefsson in
1714         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
1715
1716 2011-08-11  Jim Meyering  <meyering@redhat.com>
1717
1718         git-version-gen: correct the advice in a comment
1719         * build-aux/git-version-gen: Correct comment.
1720         Don't recommend to list .tarball-version in .gitignore.
1721
1722 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1723
1724         base64: fix off-by-one buffer size bug
1725         Problem and (trivial) fix reported by Gijs van Tulder in
1726         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
1727         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
1728         * tests/test-base64.c (main): Catch the bug.
1729
1730 2011-08-10  Eric Blake  <eblake@redhat.com>
1731
1732         closein: correct comments
1733         * lib/closein.c (close_stdin): Improve comments.
1734
1735 2011-08-09  Bruno Haible  <bruno@clisp.org>
1736
1737         More tests for 'fseeko'.
1738         * tests/test-fseeko3.c: New file, from Eric Blake.
1739         * tests/test-fseeko3.sh: New file.
1740         * modules/fseeko-tests (Files): Add them.
1741         (TESTS): Add test-fseeko3.sh.
1742         (check_PROGRAMS): Add test-fseeko3.
1743
1744 2011-08-09  Eric Blake  <eblake@redhat.com>
1745
1746         fseeko: remove unneeded hack
1747         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
1748
1749         fseeko: fix bug on glibc
1750         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
1751         Reported by John W. Eaton.
1752
1753 2011-08-08  Bruno Haible  <bruno@clisp.org>
1754
1755         unictype/base: Fix interoperability with preinstalled libunistring.
1756         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
1757         Reported by Simon Josefsson.
1758
1759 2011-08-08  Bruno Haible  <bruno@clisp.org>
1760
1761         iswblank: Detect declaration correctly.
1762         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
1763         AC_CHECK_DECLS invocation.
1764
1765 2011-08-08  Bruno Haible  <bruno@clisp.org>
1766
1767         tcgetsid: Detect declaration correctly.
1768         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
1769         AC_CHECK_DECLS invocation.
1770         Reported by Simon Josefsson.
1771
1772 2011-08-08  Eric Blake  <eblake@redhat.com>
1773
1774         largefile: fix typo that regressed large file support
1775         * modules/largefile (configure.ac-early): Fix section name.
1776
1777 2011-08-06  Karl Berry  <karl@gnu.org>
1778
1779         * MODULES.html.sh (func_all_files): _Noreturn is no longer
1780         a separate module.
1781
1782 2011-08-05  Simon Josefsson  <simon@josefsson.org>
1783
1784         openat: Fix warnings and commens when building unlinkat.c on Hurd.
1785         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
1786         get prototype for free.
1787
1788 2011-08-04  Bruno Haible  <bruno@clisp.org>
1789
1790         Tests for module 'pathmax'.
1791         * modules/pathmax-tests: New file.
1792         * tests/test-pathmax.c: New file.
1793
1794         canonicalize-lgpl: Support larger filenames on the Hurd.
1795         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
1796         Reported by Paul Eggert.
1797
1798         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
1799         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
1800         * lib/chdir-long.h: Include pathmax.h.
1801         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
1802         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
1803         (PATH_MAX): Remove code that is done by pathmax.h.
1804         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
1805         * lib/tmpfile.c: Add a comment.
1806         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
1807         * modules/chdir-long (Depends-on): Add pathmax.
1808         * modules/getcwd (Depends-on): Add pathmax.
1809         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
1810         is not defined.
1811         * doc/posix-headers/limits.texi: Mention the pathmax module.
1812         * NEWS: Mention the change.
1813
1814 2011-08-02  Bruno Haible  <bruno@clisp.org>
1815
1816         pthread_sigmask: Actually use results of gl_THREADLIB.
1817         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
1818         gl_THREADLIB, not gl_[]THREADLIB.
1819         Reported by Eric Blake.
1820
1821 2011-08-02  Jim Meyering  <meyering@redhat.com>
1822
1823         maint.mk: relax the default _gl_TS_function_match regexp
1824         * top/maint.mk (_gl_TS_function_match): Don't require at least one
1825         space between function name and "(" in an "extern" declaration.
1826         That would fail to match a decl with no space there: extern void foo();
1827
1828 2011-07-31  Iain Nicol  <iain@thenicols.net>
1829
1830         git-version-gen: document that EXTRA_DIST must include .version
1831         * build-aux/git-version-gen: In the how-to-use comment, document
1832         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
1833         will fail when run from an unpacked distribution tarball.
1834
1835 2011-08-01  Bruno Haible  <bruno@clisp.org>
1836
1837         wctype-h: Fix last change.
1838         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
1839         REPLACE_TOWLOWER to 0.
1840         Reported by Sam Steingold <sds@gnu.org>.
1841
1842 2011-07-31  Bruno Haible  <bruno@clisp.org>
1843
1844         frexpl: Update autoconf test.
1845         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
1846         according to changes of 2011-06-20.
1847
1848 2011-07-31  Bruno Haible  <bruno@clisp.org>
1849
1850         sys_utsname: Add support for Minix.
1851         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
1852         <sys/utsname.h>.
1853         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1854         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
1855
1856 2011-07-31  Bruno Haible  <bruno@clisp.org>
1857
1858         strings: Add support for Minix.
1859         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
1860         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1861         * doc/posix-headers/strings.texi: Document the Minix problem.
1862
1863 2011-07-31  Bruno Haible  <bruno@clisp.org>
1864
1865         wctype-h: Add support for Minix.
1866         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
1867         REPLACE_TOWLOWER.
1868         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
1869         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
1870         REPLACE_ISWCNTRL.
1871
1872 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
1873
1874         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
1875         This is a performance improvement for 64-bit hosts: it causes the
1876         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
1877
1878 2011-07-31  Bruno Haible  <bruno@clisp.org>
1879
1880         stdioext: Add support for Minix.
1881         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
1882         * lib/fpurge.c (fpurge): Likewise.
1883         * lib/freadahead.c (freadahead): Likewise.
1884         * lib/freadable.c (freadable): Likewise.
1885         * lib/freading.c (freading): Likewise.
1886         * lib/freadptr.c (freadptr): Likewise.
1887         * lib/freadseek.c (freadptrinc): Likewise.
1888         * lib/fseeko.c (rpl_fseeko): Likewise.
1889         * lib/fseterr.c (fseterr): Likewise.
1890         * lib/fwritable.c (fwritable): Likewise.
1891         * lib/fwriting.c (fwriting): Likewise.
1892         * lib/fflush.c (clear_ungetc_buffer): Update comment.
1893         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
1894
1895 2011-07-31  Bruno Haible  <bruno@clisp.org>
1896
1897         errno: Port to Minix.
1898         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
1899         ECONNABORTED are defined.
1900         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
1901         GNULIB_defined_ECONNABORTED): New macros.
1902         * lib/strerror-override.h (strerror_override): Test also
1903         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
1904         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
1905         ECONNABORTED.
1906         * doc/posix-headers/errno.texi: Mention the Minix problem.
1907
1908 2011-07-31  Bruno Haible  <bruno@clisp.org>
1909
1910         Work around declaration collisions on Minix.
1911         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
1912         defined, set REPLACE_MBSINIT.
1913         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
1914         defined, set REPLACE_MBRTOWC.
1915         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
1916         set REPLACE_MBRLEN.
1917         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
1918         defined, set REPLACE_MBSRTOWCS.
1919         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
1920         defined, set REPLACE_WCRTOMB.
1921         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
1922         defined, set REPLACE_WCSRTOMBS.
1923
1924 2011-07-31  Bruno Haible  <bruno@clisp.org>
1925
1926         Add support for Minix with ACK compiler.
1927         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
1928         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
1929         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
1930
1931 2011-07-31  Bruno Haible  <bruno@clisp.org>
1932
1933         Documentation about Minix.
1934         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
1935         * doc/glibc-headers/*.texi: Likewise.
1936         * doc/posix-functions/*.texi: Likewise.
1937         * doc/glibc-functions/*.texi: Likewise.
1938
1939 2011-07-31  Bruno Haible  <bruno@clisp.org>
1940
1941         snippet/warn-on-use: Fix indentation.
1942         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
1943
1944 2011-07-25  Jim Meyering  <meyering@redhat.com>
1945
1946         tests: test-update-copyright.sh: remove unnecessary "rm" commands
1947         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
1948         commands.
1949
1950 2011-07-27  Jim Meyering  <meyering@redhat.com>
1951
1952         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
1953         * top/maint.mk (gl_extract_significant_defines_): Now that
1954         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
1955         gnulib/lib/signal.in.h, and now that we recommend to
1956         define-if-undefined those two symbols in application code,
1957         we must filter them out of the "significant" list.
1958         This avoids a "make syntax-check" failure in coreutils.
1959
1960 2011-07-26  Eric Blake  <eblake@redhat.com>
1961
1962         warnings: add comments about previous patch
1963         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
1964         * m4/include_next.m4: Likewise.
1965         * m4/warn-on-use.m4: Likewise.
1966         * m4/warnings.m4: Likewise, and simplify use.
1967         Suggested by Stefano Lattarini.
1968
1969         include-next, warnings: support older autoconf
1970         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
1971         AS_VAR_PUSHDEF in a way that works with older autoconf.
1972         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
1973         Reported by Daniel P. Berrange.
1974
1975 2011-07-25  Bruno Haible  <bruno@clisp.org>
1976
1977         fseek, ftell: Fix doc.
1978         * doc/posix-functions/fseek.texi: Reword statement about
1979         AC_SYS_LARGEFILE.
1980         * doc/posix-functions/ftell.texi: Likewise.
1981
1982 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1983             Bruno Haible  <bruno@clisp.org>
1984
1985         Add dependencies to the 'largefile' module.
1986         * modules/fopen (Depends-on): Add 'largefile'.
1987         * modules/freopen (Depends-on): Likewise.
1988         * modules/fseeko (Depends-on): Likewise.
1989         * modules/ftello (Depends-on): Likewise.
1990         * modules/glob (Depends-on): Likewise.
1991         * modules/lseek (Depends-on): Likewise.
1992         * modules/lstat (Depends-on): Likewise.
1993         * modules/mkostemp (Depends-on): Likewise.
1994         * modules/mkostemps (Depends-on): Likewise.
1995         * modules/mkstemp (Depends-on): Likewise.
1996         * modules/mkstemps (Depends-on): Likewise.
1997         * modules/open (Depends-on): Likewise.
1998         * modules/openat (Depends-on): Likewise.
1999         * modules/pread (Depends-on): Likewise.
2000         * modules/pwrite (Depends-on): Likewise.
2001         * modules/scandir (Depends-on): Likewise.
2002         * modules/stat (Depends-on): Likewise.
2003         * modules/tmpfile (Depends-on): Likewise.
2004         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
2005         since the containing module now depends on the largefile module.
2006         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
2007         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
2008         off_t is fixed by gnulib.
2009         * doc/posix-functions/freopen.texi: Likewise.
2010         * doc/posix-functions/fseeko.texi: Likewise.
2011         * doc/posix-functions/fstatat.texi: Likewise.
2012         * doc/posix-functions/ftello.texi: Likewise.
2013         * doc/posix-functions/glob.texi: Likewise.
2014         * doc/posix-functions/lseek.texi: Likewise.
2015         * doc/posix-functions/lstat.texi: Likewise.
2016         * doc/posix-functions/mkstemp.texi: Likewise.
2017         * doc/posix-functions/open.texi: Likewise.
2018         * doc/posix-functions/openat.texi: Likewise.
2019         * doc/posix-functions/pread.texi: Likewise.
2020         * doc/posix-functions/pwrite.texi: Likewise.
2021         * doc/posix-functions/scandir.texi: Likewise.
2022         * doc/posix-functions/stat.texi: Likewise.
2023         * doc/posix-functions/tmpfile.texi: Likewise.
2024         * doc/glibc-functions/mkostemp.texi: Likewise.
2025         * doc/glibc-functions/mkostemps.texi: Likewise.
2026         * doc/glibc-functions/mkstemps.texi: Likewise.
2027
2028 2011-07-25  Bruno Haible  <bruno@clisp.org>
2029
2030         fcntl: Move AC_LIBOBJ invocation to module description.
2031         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
2032         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
2033
2034         fcntl: Remove call-in from fchdir.m4.
2035         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
2036         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
2037
2038         dup3: Remove potential call-in from fchdir.m4.
2039         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
2040         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
2041
2042         dup2: Move AC_LIBOBJ invocation to module description.
2043         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
2044         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
2045         Don't invoke AC_LIBOBJ.
2046         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
2047
2048         dup2: Remove call-in from fchdir.m4.
2049         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
2050         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
2051
2052         fclose: Move AC_LIBOBJ invocation to module description.
2053         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
2054         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
2055         to 1.
2056         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
2057
2058         fclose: Remove call-in from close.m4.
2059         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
2060         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
2061
2062         close: Move AC_LIBOBJ invocation to module description.
2063         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
2064         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
2065         1.
2066         * modules/close (configure.ac): Invoke AC_LIBOBJ.
2067
2068         close: Remove call-in from fchdir.m4.
2069         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
2070         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
2071
2072         open: Move AC_LIBOBJ invocation to module description.
2073         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
2074         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
2075         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
2076
2077         open: Remove call-in from fchdir.m4.
2078         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
2079         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
2080
2081         fchdir: Start to remove gl_REPLACE_* idiom.
2082         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
2083         (gl_FUNC_FCHDIR): Invoke it.
2084
2085 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2086
2087         * lib/ftell.c (ftell): Comment out cast.
2088
2089         close: use gl_REPLACE_FCLOSE only if defined
2090         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
2091         is defined.  The close module doesn't depend on the fclose module
2092         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
2093         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
2094         I reproduced the problem with "./gnulib-tool --test close sys_socket".
2095
2096 2011-07-24  Jim Meyering  <meyering@redhat.com>
2097
2098         test-select.h: avoid warning when using gcc's -Wmissing-declarations
2099         * tests/test-select.h (test_function): Declare as "static".
2100
2101 2011-07-24  Bruno Haible  <bruno@clisp.org>
2102
2103         doc: Mention the effects of AC_SYS_LARGEFILE.
2104         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
2105         on this function.
2106         * doc/posix-functions/aio_error.texi: Likewise.
2107         * doc/posix-functions/aio_fsync.texi: Likewise.
2108         * doc/posix-functions/aio_read.texi: Likewise.
2109         * doc/posix-functions/aio_return.texi: Likewise.
2110         * doc/posix-functions/aio_suspend.texi: Likewise.
2111         * doc/posix-functions/aio_write.texi: Likewise.
2112         * doc/posix-functions/fgetpos.texi: Likewise.
2113         * doc/posix-functions/fopen.texi: Likewise.
2114         * doc/posix-functions/freopen.texi: Likewise.
2115         * doc/posix-functions/fsetpos.texi: Likewise.
2116         * doc/posix-functions/fstatvfs.texi: Likewise.
2117         * doc/posix-functions/ftruncate.texi: Likewise.
2118         * doc/posix-functions/ftw.texi: Likewise.
2119         * doc/posix-functions/getrlimit.texi: Likewise.
2120         * doc/posix-functions/glob.texi: Likewise.
2121         * doc/posix-functions/lio_listio.texi: Likewise.
2122         * doc/posix-functions/lockf.texi: Likewise.
2123         * doc/posix-functions/mkstemp.texi: Likewise.
2124         * doc/posix-functions/mmap.texi: Likewise.
2125         * doc/posix-functions/nftw.texi: Likewise.
2126         * doc/posix-functions/openat.texi: Likewise.
2127         * doc/posix-functions/opendir.texi: Likewise.
2128         * doc/posix-functions/posix_fadvise.texi: Likewise.
2129         * doc/posix-functions/posix_fallocate.texi: Likewise.
2130         * doc/posix-functions/pread.texi: Likewise.
2131         * doc/posix-functions/pwrite.texi: Likewise.
2132         * doc/posix-functions/readdir.texi: Likewise.
2133         * doc/posix-functions/readdir_r.texi: Likewise.
2134         * doc/posix-functions/rewinddir.texi: Likewise.
2135         * doc/posix-functions/scandir.texi: Likewise.
2136         * doc/posix-functions/seekdir.texi: Likewise.
2137         * doc/posix-functions/setrlimit.texi: Likewise.
2138         * doc/posix-functions/statvfs.texi: Likewise.
2139         * doc/posix-functions/telldir.texi: Likewise.
2140         * doc/posix-functions/tmpfile.texi: Likewise.
2141         * doc/posix-functions/truncate.texi: Likewise.
2142         * doc/glibc-functions/fallocate.texi: Likewise.
2143         * doc/glibc-functions/fstatfs.texi: Likewise.
2144         * doc/glibc-functions/fts_children.texi: Likewise.
2145         * doc/glibc-functions/fts_read.texi: Likewise.
2146         * doc/glibc-functions/getdirentries.texi: Likewise.
2147         * doc/glibc-functions/mkostemp.texi: Likewise.
2148         * doc/glibc-functions/mkostemps.texi: Likewise.
2149         * doc/glibc-functions/mkstemps.texi: Likewise.
2150         * doc/glibc-functions/preadv.texi: Likewise.
2151         * doc/glibc-functions/pwritev.texi: Likewise.
2152         * doc/glibc-functions/sendfile.texi: Likewise.
2153         * doc/glibc-functions/statfs.texi: Likewise.
2154
2155 2011-07-24  Bruno Haible  <bruno@clisp.org>
2156
2157         doc: Fix typo.
2158         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
2159
2160 2011-07-24  Bruno Haible  <bruno@clisp.org>
2161
2162         doc: Mention fsusage.
2163         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
2164
2165 2011-07-24  Bruno Haible  <bruno@clisp.org>
2166
2167         doc: Mention new glibc headers and functions.
2168         * doc/glibc-headers/gshadow.texi: New file.
2169         * doc/glibc-functions/endsgent.texi: New file.
2170         * doc/glibc-functions/fgetsgent.texi: New file.
2171         * doc/glibc-functions/fgetsgent_r.texi: New file.
2172         * doc/glibc-functions/getsgent.texi: New file.
2173         * doc/glibc-functions/getsgent_r.texi: New file.
2174         * doc/glibc-functions/getsgnam.texi: New file.
2175         * doc/glibc-functions/getsgnam_r.texi: New file.
2176         * doc/glibc-functions/putsgent.texi: New file.
2177         * doc/glibc-functions/setsgent.texi: New file.
2178         * doc/glibc-functions/sgetsgent.texi: New file.
2179         * doc/glibc-functions/sgetsgent_r.texi: New file.
2180         * doc/glibc-functions/malloc_info.texi: New file.
2181         * doc/glibc-functions/preadv.texi: New file.
2182         * doc/glibc-functions/pwritev.texi: New file.
2183         * doc/glibc-functions/register_printf_modifier.texi: New file.
2184         * doc/glibc-functions/register_printf_specifier.texi: New file.
2185         * doc/glibc-functions/register_printf_type.texi: New file.
2186         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
2187         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
2188         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
2189         * doc/glibc-functions/pthread_getname_np.texi: New file.
2190         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
2191         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
2192         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
2193         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
2194         * doc/glibc-functions/pthread_setname_np.texi: New file.
2195         * doc/glibc-functions/pthread_sigqueue.texi: New file.
2196         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
2197         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
2198         * doc/glibc-functions/qsort_r.texi: New file.
2199         * doc/glibc-functions/quick_exit.texi: New file.
2200         * doc/glibc-functions/syncfs.texi: New file.
2201         * doc/gnulib.texi: Include them.
2202         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
2203         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
2204         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
2205         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
2206         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
2207         * doc/glibc-functions/execvpe.texi: Likewise.
2208
2209 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2210
2211         ftell: don't include <unistd.h>
2212         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
2213         guaranteed to define off_t, and the ftell module depends on the
2214         stdio module.
2215
2216         ftell: do not assume wraparound signed arithmetic
2217         * lib/ftell.c: Include <limits.h>.
2218         (ftell): Don't assume wraparound signed arithmetic.
2219
2220 2011-07-24  Bruno Haible  <bruno@clisp.org>
2221
2222         close: No longer depend on module 'fclose'.
2223         * modules/close (Depends-on): Remove fclose.
2224         * NEWS: Mention the change.
2225         Suggested by Sam Steingold <sds@gnu.org>.
2226
2227 2011-07-24  Bruno Haible  <bruno@clisp.org>
2228
2229         fsusage: Enable large volume support on AIX >= 5.2.
2230         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
2231         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
2232         instead of STAT_STATVFS.
2233         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
2234
2235         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
2236         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
2237         f_blocks field only on MacOS X.
2238
2239         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
2240         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
2241         * modules/fsusage (Depends-on): Add largefile.
2242
2243 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2244
2245         * README: Modernize discussion of signed integers.
2246         Assuming overflow wraparound is no longer safe.
2247         Mention ones' complement and signed magnitude.
2248
2249 2011-07-22  Bruno Haible  <bruno@clisp.org>
2250
2251         select tests, pselect tests: Refactor.
2252         * tests/test-select.h: New file, extracted from tests/test-select.c.
2253         (select_fn): New type.
2254         (test, do_select, do_select_nowait, do_select_wait, test_tty,
2255         test_connect_first, test_accept_first, test_pair, test_socket_pair,
2256         test_pipe): Add my_select argument.
2257         (test_function): Renamed from main. Add my_select argument.
2258         * tests/test-select.c: Move most code to tests/test-select.h. Include
2259         test-select.h.
2260         * modules/select-tests (Files): Add tests/test-select.h.
2261         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
2262         (my_select, main): New functions.
2263         * modules/pselect-tests (Files): Add tests/test-select.h,
2264         tests/macros.h, tests/signature.h.
2265         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
2266         (configure.ac): Check for <sys/wait.h>.
2267
2268 2011-07-22  Bruno Haible  <bruno@clisp.org>
2269
2270         sys_select tests: Check the signature of FD_*.
2271         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
2272         signature tests from here...
2273         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
2274         here.
2275         * modules/sys_select-tests (Files): Add tests/signature.h.
2276
2277 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
2278
2279         largefile: new module, replacing large-inode
2280         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
2281         * MODULES.html.sh: Add largefile, remove large-inode.
2282         * modules/largefile, m4/largefile.m4: New files.
2283         * modules/large-inode, m4/large-inode.m4: Remove.
2284
2285         fsusage: port to MacOS X 10.7 with 4 TiB file systems
2286         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
2287         implementations that use only 32 bits to count blocks.
2288         On typical hosts with 1024-byte blocks, this fails with file
2289         systems as small as 4 TiB.  Problem reported by Herb Wartens
2290         <http://debbugs.gnu.org/9140> and this should also fix a similar
2291         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
2292
2293         large-inode: New module
2294         * MODULES.html.sh: Add it.
2295         * modules/large-inode, m4/large-inode.m4: New files.
2296
2297         extensions: Enable extensions on MacOS X 10.5 and later.
2298         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
2299
2300 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
2301
2302         file-has-acl: use acl_extended_file_nofollow if available
2303         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
2304         (acl_extended_file): New macro.
2305         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
2306         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
2307
2308 2011-07-21  Bruno Haible  <bruno@clisp.org>
2309
2310         Declare system functions in a way that works with C++.
2311         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
2312         declare fdopendir as extern "C".
2313         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
2314         declare frexpl as extern "C".
2315         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
2316         declare gai_strerror as extern "C".
2317         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
2318         programs, declare gai_strerror as extern "C".
2319         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
2320         declare getlogin_r as extern "C".
2321         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
2322         as extern "C".
2323         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
2324         declare ldexpl as extern "C".
2325         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
2326         as extern "C".
2327         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
2328         program, declare getmntinfo as extern "C".
2329         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
2330         stpncpy as extern "C".
2331         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
2332         program, declare __xpg_strerror_r as extern "C".
2333         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
2334         strndup as extern "C".
2335         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
2336         declare memset and bzero as extern "C".
2337         Reported by Sam Steingold <sds@gnu.org>.
2338
2339 2011-07-12  Jim Meyering  <meyering@redhat.com>
2340
2341         maint.mk: prohibit inclusion of "verify.h" without use
2342         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
2343
2344 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2345
2346         timer-time: A new module to check for timer_settime()
2347         * m4/timer_time.m4: Check for the posix function.
2348         * modules/timer-time: Add the new module.
2349         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
2350         Mention it.
2351
2352 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
2353             Bruno Haible  <bruno@clisp.org>
2354
2355         pthread_sigmask: assume POSIX threads if --avoid=threadlib
2356         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
2357         not defined, assume POSIX threads and look for pthread_sigmask in
2358         $LIBS, without changing $CPPFLAGS.
2359
2360 2011-07-19  Bruno Haible  <bruno@clisp.org>
2361
2362         strstr: Update cross-compilation guess.
2363         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
2364         CPUs, guess no, in view of glibc
2365         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
2366         Suggested by Eric Blake. Reported by Reuben Thomas.
2367
2368 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2369
2370         getopt-gnu: suppress core dumps from detection code
2371         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
2372         to suppress core dumps that may well occur on glibc systems.
2373         * modules/getopt-gnu: Depend on nocrash.
2374
2375 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
2376
2377         pthread_sigmask: ensure usleep is declared
2378         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
2379         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
2380
2381 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2382
2383         doc: Document NonStop portability issues.
2384         * doc/posix-functions/sigaction.texi (sigaction):
2385         * doc/posix-headers/signal.texi (signal.h):
2386         Document NonStop.  See Joachim Schmitz in
2387         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
2388
2389 2011-07-15  Bruno Haible  <bruno@clisp.org>
2390
2391         ffsl, ffsll: Avoid unportable behaviour.
2392         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
2393
2394 2011-07-15  Bruno Haible  <bruno@clisp.org>
2395
2396         ffs: More tests.
2397         * tests/test-ffs.c (NBITS): New macro.
2398         (main): Add more tests.
2399         * tests/test-ffsl.c (NBITS): New macro.
2400         (main): Add more tests.
2401         * tests/test-ffsll.c (NBITS): New macro.
2402         (main): Add more tests.
2403
2404 2011-07-15  Eric Blake  <eblake@redhat.com>
2405
2406         ffsl, ffsll: new modules
2407         * modules/ffsl: New file.
2408         * modules/ffsll: Likewise.
2409         * m4/ffsl.m4: Likewise.
2410         * m4/ffsll.m4: Likewise.
2411         * lib/ffsl.c: Likewise.
2412         * lib/ffsl.h: Likewise.
2413         * lib/ffsll.c: Likewise.
2414         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
2415         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
2416         * modules/string (Makefile.am): Substitute witnesses.
2417         * lib/strings.in.h (ffsl, ffsll): Declare.
2418         * modules/ffsl-tests: New test file.
2419         * modules/ffsll-tests: Likewise.
2420         * tests/test-ffsl.c: Likewise.
2421         * tests/test-ffsll.c: Likewise.
2422         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2423         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
2424         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
2425
2426         ffs: fix m4 prerequisite
2427         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
2428
2429         ffs: avoid undefined behavior
2430         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
2431         * tests/test-ffs.c (naive, main): Avoid signed shifts.
2432         Reported by Bruno Haible.
2433
2434 2011-07-12  Bruno Haible  <bruno@clisp.org>
2435
2436         pthread_sigmask: Rely on module 'threadlib'.
2437         * modules/pthread_sigmask (Depends-on): Add threadlib.
2438         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
2439         is defined.
2440
2441 2011-07-12  Bruno Haible  <bruno@clisp.org>
2442
2443         regex: Depend on module 'strcase'.
2444         * modules/regex (Depends-on): Add strcase, for strcasecmp().
2445
2446 2011-07-12  Jim Meyering  <meyering@redhat.com>
2447
2448         warn-on-use: fix typo in file name
2449         * modules/snippet/warn-on-use (Files): Correct file name:
2450         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
2451
2452 2011-07-12  Bruno Haible  <bruno@clisp.org>
2453
2454         strings: Document module.
2455         * doc/posix-headers/strings.texi: Mention module 'strings'.
2456
2457 2011-07-12  Bruno Haible  <bruno@clisp.org>
2458
2459         Rename module '_Noreturn' to 'snippet/_Noreturn'.
2460         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
2461         (Files, Makefile.am): Update.
2462         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
2463         * modules/stdlib (Depends-on): Update.
2464
2465 2011-07-12  Bruno Haible  <bruno@clisp.org>
2466
2467         * NEWS: Mention the changes.
2468
2469         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
2470         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
2471         (Files, Makefile.am): Update.
2472         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
2473         * modules/arpa_inet (Depends-on): Update.
2474         * modules/ctype (Depends-on): Update.
2475         * modules/dirent (Depends-on): Update.
2476         * modules/fcntl-h (Depends-on): Update.
2477         * modules/glob (Depends-on): Update.
2478         * modules/iconv-h (Depends-on): Update.
2479         * modules/inttypes-incomplete (Depends-on): Update.
2480         * modules/langinfo (Depends-on): Update.
2481         * modules/locale (Depends-on): Update.
2482         * modules/math (Depends-on): Update.
2483         * modules/netdb (Depends-on): Update.
2484         * modules/poll-h (Depends-on): Update.
2485         * modules/pty (Depends-on): Update.
2486         * modules/search (Depends-on): Update.
2487         * modules/signal (Depends-on): Update.
2488         * modules/spawn (Depends-on): Update.
2489         * modules/stdio (Depends-on): Update.
2490         * modules/stdlib (Depends-on): Update.
2491         * modules/string (Depends-on): Update.
2492         * modules/strings (Depends-on): Update.
2493         * modules/sys_file (Depends-on): Update.
2494         * modules/sys_ioctl (Depends-on): Update.
2495         * modules/sys_select (Depends-on): Update.
2496         * modules/sys_socket (Depends-on): Update.
2497         * modules/sys_stat (Depends-on): Update.
2498         * modules/sys_time (Depends-on): Update.
2499         * modules/sys_times (Depends-on): Update.
2500         * modules/sys_utsname (Depends-on): Update.
2501         * modules/sys_wait (Depends-on): Update.
2502         * modules/termios (Depends-on): Update.
2503         * modules/time (Depends-on): Update.
2504         * modules/unistd (Depends-on): Update.
2505         * modules/wchar (Depends-on): Update.
2506         * modules/wctype-h (Depends-on): Update.
2507         * MODULES.html.sh (Support for building libraries and executables):
2508         Update.
2509
2510         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
2511         * modules/snippet/unused-parameter: Renamed from
2512         modules/unused-parameter.
2513         (Files, Makefile.am): Update.
2514         * build-aux/snippet/unused-parameter.h: Renamed from
2515         build-aux/unused-parameter.h.
2516         * modules/selinux-h (Depends-on): Update.
2517         * modules/unistr/base (Depends-on): Update.
2518         * MODULES.html.sh (Core language properties): Update.
2519
2520         Rename module 'link-warning' to 'snippet/link-warning'.
2521         * modules/snippet/link-warning: Renamed from modules/link-warning.
2522         (Files, Makefile.am): Update.
2523         * build-aux/snippet/link-warning.h: Renamed from
2524         build-aux/link-warning.h.
2525         * MODULES.html.sh (Support for building libraries and executables):
2526         Update.
2527
2528         Rename module 'c++defs' to 'snippet/c++defs'.
2529         * modules/snippet/c++defs: Renamed from modules/c++defs.
2530         (Files, Makefile.am): Update.
2531         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
2532         * modules/arpa_inet (Depends-on): Update.
2533         * modules/ctype (Depends-on): Update.
2534         * modules/dirent (Depends-on): Update.
2535         * modules/fcntl-h (Depends-on): Update.
2536         * modules/glob (Depends-on): Update.
2537         * modules/iconv-h (Depends-on): Update.
2538         * modules/langinfo (Depends-on): Update.
2539         * modules/locale (Depends-on): Update.
2540         * modules/math (Depends-on): Update.
2541         * modules/netdb (Depends-on): Update.
2542         * modules/poll-h (Depends-on): Update.
2543         * modules/pty (Depends-on): Update.
2544         * modules/search (Depends-on): Update.
2545         * modules/signal (Depends-on): Update.
2546         * modules/spawn (Depends-on): Update.
2547         * modules/stdio (Depends-on): Update.
2548         * modules/stdlib (Depends-on): Update.
2549         * modules/string (Depends-on): Update.
2550         * modules/strings (Depends-on): Update.
2551         * modules/sys_ioctl (Depends-on): Update.
2552         * modules/sys_select (Depends-on): Update.
2553         * modules/sys_socket (Depends-on): Update.
2554         * modules/sys_stat (Depends-on): Update.
2555         * modules/sys_time (Depends-on): Update.
2556         * modules/sys_wait (Depends-on): Update.
2557         * modules/termios (Depends-on): Update.
2558         * modules/time (Depends-on): Update.
2559         * modules/unistd (Depends-on): Update.
2560         * modules/wchar (Depends-on): Update.
2561         * modules/wctype-h (Depends-on): Update.
2562
2563         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
2564         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
2565         (Files, Makefile.am): Update.
2566         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
2567         * modules/argv-iter (Depends-on): Update.
2568         * modules/arpa_inet (Depends-on): Update.
2569         * modules/dirent (Depends-on): Update.
2570         * modules/fcntl-h (Depends-on): Update.
2571         * modules/fnmatch (Depends-on): Update.
2572         * modules/getopt-posix (Depends-on): Update.
2573         * modules/glob (Depends-on): Update.
2574         * modules/iconv-h (Depends-on): Update.
2575         * modules/inttypes-incomplete (Depends-on): Update.
2576         * modules/locale (Depends-on): Update.
2577         * modules/math (Depends-on): Update.
2578         * modules/netdb (Depends-on): Update.
2579         * modules/search (Depends-on): Update.
2580         * modules/signal (Depends-on): Update.
2581         * modules/spawn (Depends-on): Update.
2582         * modules/stdio (Depends-on): Update.
2583         * modules/stdlib (Depends-on): Update.
2584         * modules/string (Depends-on): Update.
2585         * modules/strings (Depends-on): Update.
2586         * modules/sys_socket (Depends-on): Update.
2587         * modules/sys_stat (Depends-on): Update.
2588         * modules/sys_time (Depends-on): Update.
2589         * modules/sys_times (Depends-on): Update.
2590         * modules/sys_utsname (Depends-on): Update.
2591         * modules/time (Depends-on): Update.
2592         * modules/unistd (Depends-on): Update.
2593         * modules/wchar (Depends-on): Update.
2594         * MODULES.html.sh (Support for building libraries and executables):
2595         Update.
2596
2597 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2598
2599         Improvements on _Noreturn and related modules.
2600
2601         modules/_Exit-tests: test _Noreturn too
2602         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
2603         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
2604         (main): Use them.
2605
2606         stdnoreturn, stdnoreturn-tests: remove modules
2607         They're not needed here and a bit premature for use elsewhere.  See
2608         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
2609         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2610         * tests/test-stdnoreturn.c: Remove files.
2611         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
2612         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
2613         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
2614         and using noreturn.
2615         * modules/openat, modules/sigpipe-die, modules/xalloc:
2616         * modules/xmemdup0, modules/xstrtol:
2617         Remove dependency on stdnoreturn.
2618
2619         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
2620         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
2621         Reparenthesize to avoid GCC warning.
2622         Support Microsoft's syntax.
2623         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
2624
2625         _Noreturn-tests: remove module
2626         * modules/_Noreturn-tests: Remove.
2627         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
2628         * tests/test-_Noreturn.c: Remove.
2629         * tests/test-stdnoreturn.c: Merge from the old
2630         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
2631
2632 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2633
2634         _Noreturn, stdnoreturn, and related modules.
2635
2636         * top/maint.mk: Adjust to new noreturn support.
2637         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
2638         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
2639
2640         xalloc: use stdnoreturn.h
2641         * lib/xalloc.h: Include <stdnoreturn.h>.
2642         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2643         * modules/xalloc (Depends-on): Add stdnoreturn.
2644
2645         xstrtol: use stdnoreturn.h
2646         * lib/xstrtol.h: Include <stdnoreturn.h>.
2647         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2648         * modules/xstrtol (Depends-on): Add stdnoreturn.
2649
2650         xmemdup0: use stdnoreturn.h
2651         * lib/xmemdup0.h: Include <stdnoreturn.h>.
2652         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2653         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
2654
2655         sigpipe-die: use stdnoreturn.h
2656         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
2657         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2658         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
2659
2660         openat: use stdnoreturn.h
2661         * lib/openat.h: Include <stdnoreturn.h>.
2662         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2663         * modules/openat (Depends-on): Add stdnoreturn.
2664
2665         * lib/openat-die.c (openat_save_fail): Modernize comment.
2666
2667         * lib/xalloc-die.c (xalloc_die): Modernize comment.
2668
2669         * lib/glthread/thread.h: Modernize comment.
2670
2671         obstack: use _Noreturn
2672         * lib/obstack.c (__attribute__): Remove macro.
2673         (print_and_abort): Use _Noreturn.
2674
2675         c-stack: use _Noreturn
2676         * lib/c-stack.c (die, overflow_handler, segv_handler):
2677         Use _Noreturn rather than __attribute__((noreturn)).
2678
2679         argmatch-tests, exclude_tests: use _Noreturn
2680         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
2681         Remove.
2682         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
2683
2684         stdlib: use _Noreturn
2685         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
2686         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
2687         * modules/stdlib (Depends-on): Add _Noreturn.
2688         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
2689
2690         stdnoreturn-tests: new module
2691         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
2692
2693         stdnoreturn: new module
2694         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
2695         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
2696
2697         _Noreturn-tests: new module
2698         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
2699
2700         _Noreturn: new module
2701         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
2702         New section, mentioning it.
2703         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
2704
2705         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
2706
2707 2011-07-11  Eric Blake  <eblake@redhat.com>
2708
2709         ffs: new module
2710         * modules/ffs: New file.
2711         * m4/ffs.m4: Likewise.
2712         * lib/ffs.c: Likewise.
2713         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
2714         * modules/strings (Makefile.am): Substitute witness.
2715         (Depends-on): Add c++defs.
2716         * lib/strings.in.h (ffs): Declare.
2717         * modules/ffs-tests: New test file.
2718         * tests/test-ffs.c: Test new module.
2719         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2720         * doc/posix-functions/ffs.texi (ffs): Likewise.
2721
2722         regex: avoid compiler warning
2723         * lib/regex.c (includes): Include <strings.h>, for use of
2724         strcasecmp in regcomp.c.
2725         Reported by Joachim Schmitz.
2726
2727 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2728
2729         stdint: respect system's intmax_t if INTMAX_MAX
2730         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
2731         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
2732         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
2733         long but int64_t is long long, and where we will clash with the
2734         system intmax_t if we override it.  See
2735         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
2736         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
2737         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
2738         similarly for UINTMAX_C.
2739
2740 2011-07-08  Bruno Haible  <bruno@clisp.org>
2741
2742         pthread_sigmask tests: Avoid a compiler warning.
2743         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
2744         non-zero.
2745
2746         sigprocmask tests: A better way to avoid a compiler warning.
2747         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
2748         (main): Complain if system() returns non-zero.
2749         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
2750
2751 2011-07-08  Bruno Haible  <bruno@clisp.org>
2752
2753         pthread_sigmask: Work around IRIX bug.
2754         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
2755         bug.
2756         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
2757         there may be unblocked pending signals.
2758         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
2759
2760 2011-07-08  Bruno Haible  <bruno@clisp.org>
2761
2762         pthread_sigmask: Work around Cygwin bug.
2763         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
2764         bug.
2765         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
2766         the system's pthread_sigmask function.
2767         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
2768
2769 2011-07-08  Bruno Haible  <bruno@clisp.org>
2770
2771         pthread_sigmask: Work around bug in single-threaded implementation.
2772         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
2773         FreeBSD, HP-UX, Solaris bug.
2774         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
2775         * lib/pthread_sigmask.c: Include <stddef.h>.
2776         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
2777         the system's pthread_sigmask function.
2778         * modules/pthread_sigmask (configure.ac): Invoke
2779         gl_PREREQ_PTHREAD_SIGMASK.
2780         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
2781         HP-UX, Solaris.
2782
2783 2011-07-08  Eric Blake  <eblake@redhat.com>
2784
2785         test-sigprocmask: avoid compiler warning
2786         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
2787         * tests/test-sigprocmask.c (main): Use it to silence warning.
2788         Reported by Jim Meyering.
2789
2790         test-snprintf: avoid compiler warning
2791         * tests/test-snprintf.c (main): Avoid shadowed declaration.
2792         * tests/test-vsnprintf.c (main): Likewise.
2793         Reported by Jim Meyering.
2794
2795 2011-07-08  Bruno Haible  <bruno@clisp.org>
2796
2797         Tests for module 'pthread_sigmask'.
2798         * modules/pthread_sigmask-tests: New file.
2799         * tests/test-pthread_sigmask1.c: New file, based on
2800         tests/test-sigprocmask.c.
2801         * tests/test-pthread_sigmask2.c: New file.
2802
2803 2011-07-08  Jim Meyering  <meyering@redhat.com>
2804
2805         test-getopt.h: avoid warning about an unused variable
2806         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
2807
2808 2011-07-07  Jim Meyering  <meyering@redhat.com>
2809
2810         maint: reduce list of files exempt from sc_prohibit_leading_TABs
2811         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
2812         now that it no longer contains leading TABs.
2813         Remove unused "url=FIXME" statement.
2814
2815 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2816
2817         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
2818         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2819         When gl_THREADLIB is not in use, assume that the POSIX sematics
2820         are desired.  This is better for Emacs, which uses POSIX semantics
2821         on GNUish and/or POSIXish platforms, and does not use threads at
2822         all otherwise.
2823
2824         pthread_sigmask: fix typo when testing for libraries
2825         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2826         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
2827
2828 2011-07-08  Eric Blake  <eblake@redhat.com>
2829
2830         fts: introduce FTS_NOATIME
2831         * lib/fts_.h (FTS_NOATIME): New bit flag.
2832         (FTS_OPTIONMASK): Adjust.
2833         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
2834         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
2835
2836 2011-07-08  Bruno Haible  <bruno@clisp.org>
2837
2838         Tests for module 'thread'.
2839         * modules/thread-tests: New file.
2840         * tests/test-thread_self.c: New file.
2841         * tests/test-thread_create.cc: New file.
2842
2843 2011-07-08  Bruno Haible  <bruno@clisp.org>
2844
2845         thread: Avoid gcc warnings when using gl_thread_self().
2846         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
2847         'void *'.
2848         (gl_thread_self_pointer): Update.
2849
2850 2011-07-07  Bruno Haible  <bruno@clisp.org>
2851
2852         signal-c++-tests: Check declaration of pthread_sigmask.
2853         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
2854         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
2855         $(LIB_PTHREAD_SIGMASK).
2856
2857 2011-07-07  Bruno Haible  <bruno@clisp.org>
2858
2859         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
2860         * lib/signal.in.h (pthread_sigmask): Override if
2861         REPLACE_PTHREAD_SIGMASK is 1.
2862         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2863         REPLACE_PTHREAD_SIGMASK.
2864         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
2865         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
2866         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
2867         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2868         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
2869
2870 2011-07-07  Bruno Haible  <bruno@clisp.org>
2871
2872         pthread_sigmask: Ensure declaration in <signal.h>.
2873         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
2874         include <pthread.h>.
2875         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
2876         problem.
2877
2878 2011-07-07  Bruno Haible  <bruno@clisp.org>
2879
2880         pthread_sigmask: Document the module.
2881         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
2882
2883 2011-07-07  Bruno Haible  <bruno@clisp.org>
2884
2885         pthread_sigmask: Follow gnulib conventions.
2886         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
2887         gl_PTHREAD_SIGMASK.
2888         * modules/pthread_sigmask (configure.ac): Update.
2889
2890 2011-07-07  Bruno Haible  <bruno@clisp.org>
2891
2892         pthread_sigmask: Make declaration C++ safe.
2893         * lib/signal.in.h: In two special conditions, just do an #include_next.
2894         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2895         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
2896         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2897         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2898         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
2899         not REPLACE_PTHREAD_MASK.
2900         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
2901         not REPLACE_PTHREAD_MASK.
2902         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2903
2904 2011-07-07  Bruno Haible  <bruno@clisp.org>
2905
2906         pthread_sigmask: Fix return value.
2907         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
2908         * lib/pthread_sigmask.c: New file.
2909         * modules/pthread_sigmask (Files): Add it.
2910         (configure.ac): Invoke AC_LIBOBJ.
2911
2912 2011-07-07  Eric Blake  <eblake@redhat.com>
2913
2914         getopt: more portable argv creation
2915         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
2916         const, use char arrays rather than strings.
2917         Suggested by Paul Eggert.
2918
2919 2011-07-07  Bruno Haible  <bruno@clisp.org>
2920
2921         Tests for module 'sigprocmask'.
2922         * modules/sigprocmask-tests: New file.
2923         * tests/test-sigprocmask.c: New file.
2924
2925 2011-07-07  Bruno Haible  <bruno@clisp.org>
2926
2927         float tests: Tweak.
2928         * tests/test-float.c (main): Tweak skip message.
2929
2930 2011-07-07  Eric Blake  <eblake@redhat.com>
2931
2932         getopt: avoid compiler warning during configure
2933         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
2934         assigning string literals to non-const pointer.
2935
2936         getopt-gnu: avoid crash in glibc getopt
2937         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
2938         * tests/test-getopt.h (test_getopt): Enhance test.
2939         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2940         * doc/posix-functions/getopt.texi (getopt): Document it.
2941         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2942         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2943         Likewise.
2944
2945 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
2946
2947         getopt: handle W; without long options in getopt [BZ #12922]
2948         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
2949         but no long options are defined, just return 'W'.
2950
2951 2011-07-07  Bruno Haible  <bruno@clisp.org>
2952
2953         Avoid literal tabs.
2954         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
2955         variable containing a tab instead of a literal tab.
2956         Reported by Jim Meyering.
2957
2958 2011-07-07  Bruno Haible  <bruno@clisp.org>
2959
2960         Comments.
2961         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
2962
2963 2011-07-06  Bruno Haible  <bruno@clisp.org>
2964
2965         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
2966         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
2967         <winsock2.h>.
2968         (rpl_fd_isset, FD_ISSET): New definitions, copied from
2969         lib/sys_socket.in.h.
2970         (close, gethostname): Hide declarations from <winsock2.h>.
2971         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2972         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
2973         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2974         (select): Don't override if gnulib's <sys/select.h> was already
2975         included.
2976         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2977         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2978         setsockopt, shutdown, select): Tweak indentation.
2979
2980 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2981
2982         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2983         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2984         in an application that does not use the sys_select module.
2985
2986 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2987
2988         poll: do not return 0 on timeout=-1
2989         * lib/poll.c: Loop with yield if no events occured
2990
2991 2011-07-06  Eric Blake  <eblake@redhat.com>
2992
2993         pthread_sigmask: always replace when not using pthread
2994         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2995         replacement when using some threading other than pthread.  Fix
2996         logic bug.
2997
2998 2011-07-06  Bruno Haible  <bruno@clisp.org>
2999
3000         Comments.
3001         * m4/printf.m4: Update comments about mingw.
3002
3003 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3004
3005         sys_select: define sigset_t more portably
3006         * lib/sys_select.in.h: Always include <sys/types.h>, since
3007         we now need sigset_t and mingw defines it there.
3008         Include <signal.h> before split inclusion guard, to avoid
3009         mishaps on Solaris, whose <signal.h> eventually includes us.
3010         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
3011         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
3012         which come from ...
3013         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
3014         gl_CHECK_TYPE_SIGSET_T.
3015         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
3016         does the real work.
3017         * modules/sys_select (Depends-on): Add 'signal'.
3018
3019         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
3020         Suggested by Bruno Haible.
3021
3022         pselect: Use pthread_sigmask, not sigprocmask.
3023         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
3024         multithreaded apps better than sigprocmask does.
3025         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
3026         sigprocmask directly.
3027
3028 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3029
3030         * lib/pselect.c (pselect): Use plain name, without "rpl_".
3031         Don't #undef,  since we don't need any underlying pselect.
3032         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
3033         (Depends-on): Add select.
3034         (Link): Add $(LIBSOCKET).
3035         These changes suggested by Bruno Haible.
3036
3037         pselect: document better
3038         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
3039         * doc/posix-functions/pselect.texi (pselect): Document new module.
3040
3041         pthread_sigmask: new module
3042         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
3043         * doc/posix-functions/pthread_sigmask.texi: Document new module.
3044         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
3045         This is done only as a macro; I don't know how well that'll
3046         work for C++.  Move <sys/types.h> include before the include_next,
3047         to avoid mishap on Solaris.
3048         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
3049         * modules/signal (Makefile.am): Substitute the check's results.
3050         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
3051
3052         test-pselect: new module
3053         * modules/pselect-tests, tests/test-pselect.c: New files.
3054         * tests/test-select.c, tests/test-sys_select-c++.cc:
3055         If TEST_PSELECT is defined, test pselect instead of testing select.
3056
3057         * tests/test-sys_select.c (sigset_t): Test for it, too.
3058         Suggested by Bruno Haible.
3059
3060 2011-07-05  Eric Blake  <eblake@redhat.com>
3061
3062         snprintf: guarantee %1$d, for libintl
3063         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
3064         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
3065         * doc/posix-functions/snprintf.texi (snprintf): Update.
3066         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
3067         * tests/test-snprintf.c (main): Enhance test.
3068         * tests/test-vsnprintf.c (main): Likewise.
3069
3070 2011-07-05  Jim Meyering  <meyering@redhat.com>
3071
3072         maint: exempt stdio-read.c and stdio-write.c from the cppi check
3073         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
3074         per Bruno's request, to accommodate this idiom (no space after "#")
3075         even when the function is inside an #if block:
3076         char *
3077         gets (char *s)
3078         #undef gets
3079         {
3080           ...
3081         }
3082
3083 2011-07-04  Jim Meyering  <meyering@redhat.com>
3084
3085         maint: indent with spaces, not TABs, and add a rule to check this
3086         * tests/test-userspec.c: Indent with spaces, not TABs.
3087         * tests/test-argp.c: Likewise.
3088         * tests/test-c-stack2.sh: Likewise.
3089         * tests/test-parse-duration.sh: Likewise
3090         * m4/strtod.m4: Likewise.
3091         * m4/alloca.m4: Likewise.
3092         * m4/pselect.m4: Likewise.
3093         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
3094
3095 2011-07-03  Jim Meyering  <meyering@redhat.com>
3096
3097         maint.mk: correct omissions in prohibit_argmatch_without_use check
3098         This rule would mistakenly report that argmatch.h is included without
3099         use even when both the argmatch and invalid_arg macro were used.
3100         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
3101         of argmatch and invalid_arg.
3102
3103 2011-07-03  Bruno Haible  <bruno@clisp.org>
3104
3105         Comments about EINTR.
3106         * lib/safe-read.h: Explain the purpose of this module.
3107         * lib/safe-write.h: Likewise.
3108         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
3109         module.
3110         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
3111         module.
3112         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3113
3114 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
3115
3116         xnanosleep: Rewrite to use new dtotimespec module.
3117         It has the conversion code that used to be in xnanosleep.
3118         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
3119         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
3120         (TIME_T_MAX): Remove.
3121         (xnanosleep): Rewrite in terms of dtotimespec.
3122         * modules/xnanosleep (Depends-on): Add dtotimespec.
3123         Remove intprops, stdbool.
3124
3125         timespec-add, timespec-sub: new modules
3126         * lib/timespec.h (timespec_add, timespec_sub): New decls.
3127         * lib/timespec-add.c, lib/timespec-sub.c:
3128         * modules/timespec-add, modules/timespec-sub: New files.
3129
3130         dtotimespec: new module
3131         * lib/timespec.h (dtotimespec): New decl.
3132         * lib/dtotimespec.c, modules/dtotimespec: New files.
3133
3134         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
3135
3136         pselect: new module
3137         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
3138         (pselect): New decls.
3139         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
3140         since the standard pselect decl uses 'restrict'.
3141         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
3142         HAVE_PSELECT, REPLACE_PSELECT.
3143         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
3144         HAVE_PSELECT, REPLACE_PSELECT.
3145         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
3146
3147         sys_select: don't depend on sys_socket
3148         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
3149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
3150         This fix works on GNU and GNU-like platforms, but has not been tested
3151         on native Windows.
3152         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
3153         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
3154         gl_HEADER_SYS_SOCKET.
3155         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
3156         gl_PREREQ_SYS_H_WINSOCK2.
3157
3158 2011-06-29  Eric Blake  <eblake@redhat.com>
3159
3160         pipe2: fix C89 compile problem
3161         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
3162         Reported by Bruno Haible.
3163
3164         pipe, pipe2: don't corrupt fd on error
3165         * lib/pipe.c (pipe): Leave fd unchanged on error.
3166         * lib/pipe2.c (pipe2): Likewise.
3167         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
3168         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3169
3170 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
3171
3172         mmap-anon: do not use regular expressions inadvertently
3173         * m4/mmap-anon.m4: Remove trailing period from strings sought
3174         in the output.
3175
3176 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
3177
3178         nanosleep: fix integer overflow problem
3179         * lib/nanosleep.c (my_usleep): Don't assume signed integer
3180         arithmetic wraps around on overflow.
3181
3182         nanosleep: simplify carrying
3183         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
3184         first call to the underyling nanosleep, not for the last one.
3185         This doesn't fix any bugs, but it simplifies the computation of
3186         the remaining delay.  Found while auditing integer overflow issues.
3187
3188         dup2: remove test for existence of fcntl
3189         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
3190         "#if HAVE_FCNTL", in the configure-time test program.
3191         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
3192         and therefore speeds up "configure" a bit.  Found while
3193         adding the dup2 module to Emacs.
3194
3195 2011-06-24  Eric Blake  <eblake@redhat.com>
3196
3197         maint.mk: enhance useless header checks
3198         * top/maint.mk (_sc_header_without_use): Check both include
3199         styles.
3200         (sc_prohibit_assert_without_use)
3201         (sc_prohibit_close_stream_without_use)
3202         (sc_prohibit_getopt_without_use)
3203         (sc_prohibit_quotearg_without_use)
3204         (sc_prohibit_quote_without_use)
3205         (sc_prohibit_long_options_without_use)
3206         (sc_prohibit_inttostr_without_use)
3207         (sc_prohibit_ignore_value_without_use)
3208         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
3209         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
3210         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
3211         (sc_prohibit_hash_pjw_without_use)
3212         (sc_prohibit_safe_read_without_use)
3213         (sc_prohibit_argmatch_without_use)
3214         (sc_prohibit_canonicalize_without_use)
3215         (sc_prohibit_root_dev_ino_without_use)
3216         (sc_prohibit_openat_without_use)
3217         (sc_prohibit_c_ctype_without_use)
3218         (sc_prohibit_signal_without_use)
3219         (sc_prohibit_stdio--_without_use)
3220         (sc_prohibit_stdio-safer_without_use)
3221         (sc_prohibit_strings_without_use)
3222         (sc_prohibit_intprops_without_use)
3223         (sc_prohibit_stddef_without_use)
3224         (sc_prohibit_xfreopen_without_use): Update clients.
3225
3226 2011-06-24  Jim Meyering  <meyering@redhat.com>
3227
3228         syntax-check: keep one maint.mk rule in sync with its header
3229         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
3230         of the bug Eric has just fixed, with today's commit 25e4c2ec.
3231         I prefer to avoid temporary files here, so use <(...), but that
3232         is not supported by /bin/sh, so...
3233         (SHELL): Define to /bin/bash.
3234
3235 2011-06-24  Eric Blake  <eblake@redhat.com>
3236
3237         maint.mk: update sc_prohibit_intprops_without_use
3238         * top/maint.mk (_intprops_names): Match recent changes.
3239
3240 2011-06-24  Bruno Haible  <bruno@clisp.org>
3241
3242         strerror-override: No-op tweak.
3243         * lib/strerror-override.h (strerror_override): Reorder conditions,
3244         for consistency with lib/strerror-override.c.
3245
3246 2011-06-23  Eric Blake  <eblake@redhat.com>
3247
3248         maint.mk: test further PATH_MAX issues
3249         * top/maint.mk (sc_prohibit_path_max_array): Rename...
3250         (sc_prohibit_path_max_allocation): ...and also test alloca.
3251         Suggested by Jim Meyering.
3252
3253 2011-06-22  Eric Blake  <eblake@redhat.com>
3254
3255         maint.mk: add syntax-check to avoid char[PATH_MAX]
3256         * top/maint.mk (sc_prohibit_path_max_array): New rule.
3257
3258         stat: be robust to PATH_MAX definition
3259         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
3260         * modules/stat (Depends-on): Add verify.
3261
3262         link: work around IRIX bug
3263         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
3264         * lib/link.c (rpl_link): Work around it.
3265         * tests/test-link.h (test_link): Enhance test.
3266         * doc/posix-functions/link.texi (link): Document the bug.
3267
3268         getopt: silence clang warning
3269         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
3270         dereference.
3271         Reported by Gustavo Martin Domato.
3272
3273 2011-06-22  Jim Meyering  <meyering@redhat.com>
3274
3275         bootstrap: do not insert a blank line into each .gitignore file
3276         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
3277
3278 2011-06-21  Eric Blake  <eblake@redhat.com>
3279
3280         perror: test for output mismatch
3281         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
3282         perror on IRIX.
3283
3284         strerror_r: fix OpenBSD behavior on out-of-range
3285         * lib/strerror_r.c (strerror_r): Always use maximal string.
3286         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3287
3288         strerror_r: fix OpenBSD behavior on 0
3289         * lib/strerror-override.c (strerror_override): Also override 0
3290         when needed.
3291         * lib/strerror-override.h (strerror_override): Likewise.
3292         * lib/strerror.c (strerror): Simplify, now that 0 override is done
3293         earlier.
3294         * lib/strerror_r.c (strerror_r): Likewise.
3295         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
3296         behavior...
3297         (gl_FUNC_STRERROR_0): ...into new macro.
3298         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
3299         is overridden.
3300         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
3301         * modules/strerror-override (Files): Add strerror.m4.
3302         (configure.ac): Also provide override for 0 when needed.
3303         * doc/posix-functions/strerror.texi (strerror): Document this.
3304         * doc/posix-functions/perror.texi (perror): Likewise.
3305
3306         perror: adjust array size
3307         * modules/perror (Depends-on): Add strerror-override.
3308         * lib/perror.c (perror): Use it to avoid magic number.
3309
3310         strerror-override: reduce size
3311         * lib/strerror-override.c (strerror_override): Use fewer lines.
3312
3313 2011-06-20  Bruno Haible  <bruno@clisp.org>
3314
3315         pathmax: Ensure correct value for PATH_MAX on HP-UX.
3316         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
3317
3318 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3319
3320         alloca: port to compilers that can optimize like GCC 4.6.0
3321         * lib/alloca.c (find_stack_direction): New signature, taken from
3322         Autoconf git.  This works with GCC 4.6.0.  This code should never
3323         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
3324         be used with other compilers that optimize as well as GCC 4.6.0 does.
3325         (alloca): Adjust to new signature.
3326         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
3327         New macro, which patches Autoconf in a similar way.
3328
3329         c-stack: stop worrying about stack direction
3330         * lib/c-stack.c (find_stack_direction): Remove.
3331         (segv_handler): Don't worry about stack direction growth, as it's
3332         too much of a pain to configure this correctly, given how compilers
3333         are optimizing-away our stack-growth detection code.  Instead, assume
3334         that any access to just before or just after the stack is OK.
3335         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
3336         Don't require AC_FUNC_ALLOCA; no longer needed.
3337
3338 2011-06-20  Eric Blake  <eblake@redhat.com>
3339
3340         test-stat: don't allocate PATH_MAX bytes
3341         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
3342         PATH_MAX-sized buffer.
3343         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
3344         * modules/stat-tests (Depends-on): Likewise.
3345         * tests/test-fstatat.c (includes): Drop pathmax.h.
3346         * tests/test-stat.c (includes): Likewise.
3347         Reported by Bruno Haible.
3348
3349 2011-06-20  Bruno Haible  <bruno@clisp.org>
3350
3351         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
3352         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
3353         * lib/float.c: New file.
3354         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
3355         REPLACE_FLOAT_LDBL.
3356         * modules/float (Files): Add lib/float.c.
3357         (configure.ac): Invoke AC_LIBOBJ.
3358         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
3359
3360 2011-06-20  Bruno Haible  <bruno@clisp.org>
3361
3362         Tests for module 'float'.
3363         * modules/float-tests: New file.
3364         * tests/test-float.c: New file.
3365
3366 2011-06-19  Bruno Haible  <bruno@clisp.org>
3367
3368         isinf: Coding style.
3369         * lib/isinf.c: Use GNU coding style.
3370
3371 2011-06-19  Bruno Haible  <bruno@clisp.org>
3372
3373         linkat test: Avoid test failure on AIX 7.1.
3374         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
3375         * tests/test-link.h (test_link): Likewise.
3376
3377 2011-06-19  Bruno Haible  <bruno@clisp.org>
3378
3379         pread test: Avoid test failure on OpenBSD 4.9.
3380         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
3381
3382 2011-06-19  Bruno Haible  <bruno@clisp.org>
3383
3384         sprintf-posix: Fix test failure on AIX 7.1.
3385         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
3386         * doc/posix-functions/dprintf.texi: Mention limited precision problem
3387         on AIX.
3388         * doc/posix-functions/fprintf.texi: Likewise.
3389         * doc/posix-functions/printf.texi: Likewise.
3390         * doc/posix-functions/snprintf.texi: Likewise.
3391         * doc/posix-functions/sprintf.texi: Likewise.
3392         * doc/posix-functions/vdprintf.texi: Likewise.
3393         * doc/posix-functions/vfprintf.texi: Likewise.
3394         * doc/posix-functions/vprintf.texi: Likewise.
3395         * doc/posix-functions/vsnprintf.texi: Likewise.
3396         * doc/posix-functions/vsprintf.texi: Likewise.
3397
3398 2011-06-19  Bruno Haible  <bruno@clisp.org>
3399
3400         roundl-ieee: Fix test failure on AIX 7.1.
3401         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
3402         * doc/posix-functions/roundl.texi: Mention problem with negative
3403         arguments.
3404
3405 2011-06-19  Bruno Haible  <bruno@clisp.org>
3406
3407         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3408         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
3409         * doc/posix-functions/round.texi: Mention problem with negative
3410         arguments.
3411         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
3412
3413 2011-06-19  Bruno Haible  <bruno@clisp.org>
3414
3415         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3416         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
3417         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
3418         * doc/posix-functions/roundf.texi: Mention problem with negative
3419         arguments.
3420         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
3421
3422 2011-06-19  Bruno Haible  <bruno@clisp.org>
3423
3424         ceilf-ieee: Work around bug on MacOS X 10.5.
3425         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
3426
3427         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
3428         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
3429         IEEE compliant, avoid compiler optimizations.
3430         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3431         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3432         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3433         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3434         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3435         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3436         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3437         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3438         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3439         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3440
3441 2011-06-19  Bruno Haible  <bruno@clisp.org>
3442
3443         ceilf-ieee: Work around bug on AIX 7.1.
3444         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
3445         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
3446
3447 2011-06-19  Bruno Haible  <bruno@clisp.org>
3448
3449         ceil-ieee: Work around bug on AIX 7.1.
3450         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
3451         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
3452
3453 2011-06-18  Bruno Haible  <bruno@clisp.org>
3454
3455         fsync test: Avoid test failure on MacOS X and AIX.
3456         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
3457         EINVAL.
3458
3459 2011-06-18  Bruno Haible  <bruno@clisp.org>
3460
3461         openat, fdopendir tests: Fix link errors.
3462         * modules/openat-tests (Depends-on): Add progname.
3463         * modules/fdopendir-tests (Depends-on): Likewise.
3464         * tests/test-fchownat.c: Include progname.h.
3465         (main): Call set_program_name.
3466         * tests/test-fstatat.c: Include progname.h.
3467         (main): Call set_program_name.
3468         * tests/test-mkdirat.c: Include progname.h.
3469         (main): Call set_program_name.
3470         * tests/test-openat.c: Include progname.h.
3471         (main): Call set_program_name.
3472         * tests/test-unlinkat.c: Include progname.h.
3473         (main): Call set_program_name.
3474         * tests/test-fdopendir.c: Include progname.h.
3475         (main): Call set_program_name.
3476
3477 2011-06-18  Bruno Haible  <bruno@clisp.org>
3478
3479         Doc update.
3480         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
3481         HP-UX.
3482         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
3483
3484 2011-06-18  Bruno Haible  <bruno@clisp.org>
3485
3486         getcwd tests: Avoid compilation error on HP-UX 11.31.
3487         * modules/getcwd-tests (Depends-on): Add pathmax.
3488         * tests/test-getcwd.c: Include pathmax.h.
3489
3490 2011-06-18  Bruno Haible  <bruno@clisp.org>
3491
3492         isfinite, isinf: Fix link error on AIX 6 and 7.
3493         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
3494         needed, also test the macro with a 'float' argument.
3495         * m4/isinf.m4 (gl_ISINF): Likewise.
3496
3497 2011-06-18  Bruno Haible  <bruno@clisp.org>
3498
3499         getloadavg: Don't clobber LIBS. Regression from previous commit.
3500         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
3501         AC_CHECK_LIB from here...
3502         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
3503         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
3504         gl_func_getloadavg_done.
3505         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3506
3507 2011-06-18  Bruno Haible  <bruno@clisp.org>
3508
3509         clean-temp: Improve documentation.
3510         * lib/clean-temp.h: Explain better how to use this module.
3511         Reported by John Darrington <john@darrington.wattle.id.au>.
3512
3513 2011-06-17  Bruno Haible  <bruno@clisp.org>
3514
3515         pread, pwrite: Avoid cc warning on AIX.
3516         * lib/unistd.in.h (pread): Undefine before defining as a macro.
3517         (pwrite): Likewise.
3518
3519 2011-06-17  Bruno Haible  <bruno@clisp.org>
3520
3521         spawn-pipe tests: Fix link error.
3522         * tests/test-spawn-pipe-child.c: Undefine fprintf.
3523         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3524
3525 2011-06-17  Bruno Haible  <bruno@clisp.org>
3526
3527         Tests: Remove unnecessary dependency.
3528         * modules/canonicalize-tests (Depends-on): Remove progname.
3529         * modules/chown-tests (Depends-on): Likewise.
3530         * modules/dirname-tests (Depends-on): Likewise.
3531         * modules/fdopendir-tests (Depends-on): Likewise.
3532         * modules/fdutimensat-tests (Depends-on): Likewise.
3533         * modules/hash-tests (Depends-on): Likewise.
3534         * modules/lchown-tests (Depends-on): Likewise.
3535         * modules/linkat-tests (Depends-on): Likewise.
3536         * modules/renameat-tests (Depends-on): Likewise.
3537         * modules/spawn-pipe-tests (Depends-on): Likewise.
3538         * modules/utimensat-tests (Depends-on): Likewise.
3539
3540 2011-06-17  Bruno Haible  <bruno@clisp.org>
3541
3542         spawn-pipe tests: Fix link error.
3543         * tests/test-spawn-pipe-child.c: Undefine fflush.
3544
3545 2011-06-17  Bruno Haible  <bruno@clisp.org>
3546
3547         Fix tests link errors.
3548         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
3549         * modules/chown-tests (Makefile.am): Don't link test-chown with
3550         LIBINTL.
3551         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
3552         LIBINTL.
3553         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
3554         LIBINTL.
3555         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
3556         LIBINTL.
3557
3558 2011-06-16  Bruno Haible  <bruno@clisp.org>
3559
3560         crypto/gc-sha1: Fix recent regression.
3561         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
3562         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
3563
3564         crypto/gc-md5: Fix recent regression.
3565         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
3566
3567         crypto/gc-md4: Fix recent regression.
3568         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
3569         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
3570
3571         crypto/gc-arctwo: Fix recent regression.
3572         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
3573         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
3574
3575         crypto/gc-rijndael: Fix recent regression.
3576         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
3577         (configure.ac): Invoke AC_LIBOBJ here.
3578         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
3579         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3580
3581         crypto/gc-hmac-sha1: Fix recent regression.
3582         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
3583         (configure.ac): Invoke AC_LIBOBJ here.
3584         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
3585         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3586
3587         crypto/gc-hmac-md5: Fix recent regression.
3588         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
3589         (configure.ac): Invoke AC_LIBOBJ here.
3590         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
3591         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3592
3593         crypto/gc-des: Fix recent regression.
3594         * modules/crypto/gc-des (Files): Remove m4/des.m4.
3595         (configure.ac): Invoke AC_LIBOBJ here.
3596         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
3597         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3598
3599         crypto/gc-arcfour: Fix recent regression.
3600         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
3601         (configure.ac): Invoke AC_LIBOBJ here.
3602         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
3603         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3604
3605 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
3606
3607         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
3608         After the 2011-05-21 change, this macro requires
3609         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
3610         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
3611
3612 2011-06-16  Bruno Haible  <bruno@clisp.org>
3613
3614         fprintftime: Move AC_LIBOBJ invocations to module description.
3615         * m4/fprintftime.m4: Remove file.
3616         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
3617         (configure.ac): Remove gl_FPRINTFTIME call.
3618         (Makefile.am): Augment lib_SOURCES.
3619         Reported by Jim Meyering.
3620
3621 2011-06-16  Bruno Haible  <bruno@clisp.org>
3622
3623         tmpfile-safer: Finish 2011-05-23 commit.
3624         * m4/stdio-safer.m4: Really remove file.
3625         Reported by Jim Meyering.
3626
3627 2011-06-16  Bruno Haible  <bruno@clisp.org>
3628
3629         syntax-check: Fix typo.
3630         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
3631         printf-posix.m4.
3632         Reported by Jim Meyering.
3633
3634 2011-06-13  Jim Meyering  <meyering@redhat.com>
3635
3636         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
3637         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
3638
3639 2011-05-23  Bruno Haible  <bruno@clisp.org>
3640
3641         yesno: Move AC_LIBOBJ invocations to module description.
3642         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
3643         * modules/yesno (Makefile.am): Augment lib_SOURCES.
3644
3645 2011-05-23  Bruno Haible  <bruno@clisp.org>
3646
3647         xstrtol: Move AC_LIBOBJ invocations to module description.
3648         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
3649         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
3650
3651 2011-05-23  Bruno Haible  <bruno@clisp.org>
3652
3653         xstrtold: Move AC_LIBOBJ invocations to module description.
3654         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
3655         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
3656
3657 2011-05-23  Bruno Haible  <bruno@clisp.org>
3658
3659         xstrtod: Move AC_LIBOBJ invocations to module description.
3660         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
3661         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
3662
3663 2011-05-23  Bruno Haible  <bruno@clisp.org>
3664
3665         xnanosleep: Move AC_LIBOBJ invocations to module description.
3666         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
3667         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
3668
3669 2011-05-23  Bruno Haible  <bruno@clisp.org>
3670
3671         xgetcwd: Move AC_LIBOBJ invocations to module description.
3672         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
3673         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
3674
3675 2011-05-23  Bruno Haible  <bruno@clisp.org>
3676
3677         xalloc: Move AC_LIBOBJ invocations to module description.
3678         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
3679         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
3680
3681 2011-05-23  Bruno Haible  <bruno@clisp.org>
3682
3683         write-any-file: Move AC_LIBOBJ invocations to module description.
3684         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
3685         invocation.
3686         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
3687
3688 2011-05-23  Bruno Haible  <bruno@clisp.org>
3689
3690         utimens: Move AC_LIBOBJ invocations to module description.
3691         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
3692         * modules/utimens (Makefile.am): Augment lib_SOURCES.
3693
3694 2011-05-23  Bruno Haible  <bruno@clisp.org>
3695
3696         utimecmp: Move AC_LIBOBJ invocations to module description.
3697         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
3698         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
3699
3700 2011-05-23  Bruno Haible  <bruno@clisp.org>
3701
3702         userspec: Move AC_LIBOBJ invocations to module description.
3703         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
3704         * modules/userspec (Makefile.am): Augment lib_SOURCES.
3705
3706 2011-05-23  Bruno Haible  <bruno@clisp.org>
3707
3708         unlinkdir: Move AC_LIBOBJ invocations to module description.
3709         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
3710         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
3711
3712 2011-05-23  Bruno Haible  <bruno@clisp.org>
3713
3714         unistd-safer: Move AC_LIBOBJ invocations to module description.
3715         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
3716         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
3717
3718 2011-05-23  Bruno Haible  <bruno@clisp.org>
3719
3720         tempname: Move AC_LIBOBJ invocations to module description.
3721         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
3722         * modules/tempname (Makefile.am): Augment lib_SOURCES.
3723
3724 2011-05-23  Bruno Haible  <bruno@clisp.org>
3725
3726         strftime: Move AC_LIBOBJ invocations to module description.
3727         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
3728         * modules/strftime (Makefile.am): Augment lib_SOURCES.
3729
3730 2011-05-23  Bruno Haible  <bruno@clisp.org>
3731
3732         stdlib-safer: Move AC_LIBOBJ invocations to module description.
3733         * m4/stdlib-safer.m4: Remove file.
3734         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
3735         (configure.ac): Remove gl_STDLIB_SAFER call.
3736         (Makefile.am): Augment lib_SOURCES.
3737
3738 2011-05-23  Bruno Haible  <bruno@clisp.org>
3739
3740         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
3741         * m4/stdio-safer.m4: Remove file.
3742         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
3743         (configure.ac): Remove gl_TMPFILE_SAFER call.
3744         (Makefile.am): Augment lib_SOURCES.
3745
3746 2011-05-23  Bruno Haible  <bruno@clisp.org>
3747
3748         popen-safer: Move AC_LIBOBJ invocations to module description.
3749         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
3750         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
3751         (configure.ac): Remove gl_POPEN_SAFER call.
3752         (Makefile.am): Augment lib_SOURCES.
3753
3754 2011-05-23  Bruno Haible  <bruno@clisp.org>
3755
3756         freopen-safer: Move AC_LIBOBJ invocations to module description.
3757         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
3758         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
3759         (configure.ac): Remove gl_FREOPEN_SAFER call.
3760         (Makefile.am): Augment lib_SOURCES.
3761
3762 2011-05-23  Bruno Haible  <bruno@clisp.org>
3763
3764         fopen-safer: Move AC_LIBOBJ invocations to module description.
3765         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
3766         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
3767         (configure.ac): Remove gl_FOPEN_SAFER call.
3768         (Makefile.am): Augment lib_SOURCES.
3769
3770 2011-05-23  Bruno Haible  <bruno@clisp.org>
3771
3772         crypto/sha512: Move AC_LIBOBJ invocations to module description.
3773         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
3774         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
3775
3776 2011-05-23  Bruno Haible  <bruno@clisp.org>
3777
3778         crypto/sha256: Move AC_LIBOBJ invocations to module description.
3779         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
3780         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
3781
3782 2011-05-23  Bruno Haible  <bruno@clisp.org>
3783
3784         crypto/sha1: Move AC_LIBOBJ invocations to module description.
3785         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
3786         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
3787
3788 2011-05-23  Bruno Haible  <bruno@clisp.org>
3789
3790         settime: Move AC_LIBOBJ invocations to module description.
3791         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
3792         * modules/settime (Makefile.am): Augment lib_SOURCES.
3793
3794 2011-05-23  Bruno Haible  <bruno@clisp.org>
3795
3796         savedir: Move AC_LIBOBJ invocations to module description.
3797         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
3798         * modules/savedir (Makefile.am): Augment lib_SOURCES.
3799
3800 2011-05-23  Bruno Haible  <bruno@clisp.org>
3801
3802         save-cwd: Move AC_LIBOBJ invocations to module description.
3803         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
3804         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
3805
3806 2011-05-23  Bruno Haible  <bruno@clisp.org>
3807
3808         same: Move AC_LIBOBJ invocations to module description.
3809         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
3810         * modules/same (Makefile.am): Augment lib_SOURCES.
3811
3812 2011-05-23  Bruno Haible  <bruno@clisp.org>
3813
3814         safe-write: Move AC_LIBOBJ invocations to module description.
3815         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
3816         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
3817         instead of gl_SAFE_WRITE.
3818         (Makefile.am): Augment lib_SOURCES.
3819
3820 2011-05-23  Bruno Haible  <bruno@clisp.org>
3821
3822         safe-read: Move AC_LIBOBJ invocations to module description.
3823         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
3824         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
3825         of gl_SAFE_READ.
3826         (Makefile.am): Augment lib_SOURCES.
3827
3828 2011-05-23  Bruno Haible  <bruno@clisp.org>
3829
3830         safe-alloc: Move AC_LIBOBJ invocations to module description.
3831         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
3832         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
3833
3834 2011-05-23  Bruno Haible  <bruno@clisp.org>
3835
3836         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
3837         * m4/rijndael.m4: Remove file.
3838         * modules/crypto/rijndael (Files): Remove it.
3839         (configure.ac): Remove gl_RIJNDAEL call.
3840         (Makefile.am): Augment lib_SOURCES.
3841
3842 2011-05-23  Bruno Haible  <bruno@clisp.org>
3843
3844         readtokens: Move AC_LIBOBJ invocations to module description.
3845         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
3846         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
3847
3848 2011-05-23  Bruno Haible  <bruno@clisp.org>
3849
3850         read-file: Move AC_LIBOBJ invocations to module description.
3851         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
3852         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
3853         of gl_FUNC_READ_FILE.
3854         (Makefile.am): Augment lib_SOURCES.
3855
3856 2011-05-23  Bruno Haible  <bruno@clisp.org>
3857
3858         quotearg: Move AC_LIBOBJ invocations to module description.
3859         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
3860         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
3861
3862 2011-05-23  Bruno Haible  <bruno@clisp.org>
3863
3864         quote: Move AC_LIBOBJ invocations to module description.
3865         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
3866         * modules/quote (Makefile.am): Augment lib_SOURCES.
3867
3868 2011-05-23  Bruno Haible  <bruno@clisp.org>
3869
3870         posixver: Move AC_LIBOBJ invocations to module description.
3871         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
3872         * modules/posixver (Makefile.am): Augment lib_SOURCES.
3873
3874 2011-05-23  Bruno Haible  <bruno@clisp.org>
3875
3876         posixtm: Move AC_LIBOBJ invocations to module description.
3877         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
3878         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
3879
3880 2011-05-23  Bruno Haible  <bruno@clisp.org>
3881
3882         physmem: Move AC_LIBOBJ invocations to module description.
3883         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
3884         * modules/physmem (Makefile.am): Augment lib_SOURCES.
3885
3886 2011-05-23  Bruno Haible  <bruno@clisp.org>
3887
3888         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
3889         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
3890         invocation.
3891         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
3892
3893 2011-05-23  Bruno Haible  <bruno@clisp.org>
3894
3895         mpsort: Move AC_LIBOBJ invocations to module description.
3896         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
3897         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
3898
3899 2011-05-23  Bruno Haible  <bruno@clisp.org>
3900
3901         modechange: Move AC_LIBOBJ invocations to module description.
3902         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
3903         * modules/modechange (Makefile.am): Augment lib_SOURCES.
3904
3905 2011-05-23  Bruno Haible  <bruno@clisp.org>
3906
3907         mkdir-p: Move AC_LIBOBJ invocations to module description.
3908         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
3909         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
3910
3911 2011-05-23  Bruno Haible  <bruno@clisp.org>
3912
3913         mkancesdirs: Move AC_LIBOBJ invocations to module description.
3914         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
3915         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
3916
3917 2011-05-23  Bruno Haible  <bruno@clisp.org>
3918
3919         mgetgroups: Move AC_LIBOBJ invocations to module description.
3920         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
3921         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
3922
3923 2011-05-23  Bruno Haible  <bruno@clisp.org>
3924
3925         memxor: Move AC_LIBOBJ invocations to module description.
3926         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
3927         * modules/memxor (Makefile.am): Augment lib_SOURCES.
3928
3929 2011-05-23  Bruno Haible  <bruno@clisp.org>
3930
3931         memcoll: Move AC_LIBOBJ invocations to module description.
3932         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
3933         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
3934
3935 2011-05-23  Bruno Haible  <bruno@clisp.org>
3936
3937         memcasecmp: Move AC_LIBOBJ invocations to module description.
3938         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
3939         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
3940
3941 2011-05-23  Bruno Haible  <bruno@clisp.org>
3942
3943         crypto/md5: Move AC_LIBOBJ invocations to module description.
3944         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
3945         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
3946
3947 2011-05-23  Bruno Haible  <bruno@clisp.org>
3948
3949         crypto/md4: Move AC_LIBOBJ invocations to module description.
3950         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
3951         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
3952
3953 2011-05-23  Bruno Haible  <bruno@clisp.org>
3954
3955         crypto/md2: Move AC_LIBOBJ invocations to module description.
3956         * m4/md2.m4: Remove file.
3957         * modules/crypto/md2 (Files): Remove it.
3958         (configure.ac): Remove gl_MD2 call.
3959         (Makefile.am): Augment lib_SOURCES.
3960
3961 2011-05-23  Bruno Haible  <bruno@clisp.org>
3962
3963         long-options: Move AC_LIBOBJ invocations to module description.
3964         * m4/long-options.m4: Remove file.
3965         * modules/long-options (Files): Remove it.
3966         (configure.ac): Remove gl_LONG_OPTIONS call.
3967         (Makefile.am): Augment lib_SOURCES.
3968
3969 2011-05-23  Bruno Haible  <bruno@clisp.org>
3970
3971         i-ring: Move AC_LIBOBJ invocations to module description.
3972         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
3973         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3974
3975 2011-05-23  Bruno Haible  <bruno@clisp.org>
3976
3977         idcache: Move AC_LIBOBJ invocations to module description.
3978         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3979         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3980
3981 2011-05-23  Bruno Haible  <bruno@clisp.org>
3982
3983         human: Move AC_LIBOBJ invocations to module description.
3984         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3985         * modules/human (Makefile.am): Augment lib_SOURCES.
3986
3987 2011-05-23  Bruno Haible  <bruno@clisp.org>
3988
3989         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3990         * m4/hmac-sha1.m4: Remove file.
3991         * modules/crypto/hmac-sha1 (Files): Remove it.
3992         (configure.ac): Remove gl_HMAC_SHA1 call.
3993         (Makefile.am): Augment lib_SOURCES.
3994
3995 2011-05-23  Bruno Haible  <bruno@clisp.org>
3996
3997         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3998         * m4/hmac-md5.m4: Remove file.
3999         * modules/crypto/hmac-md5 (Files): Remove it.
4000         (configure.ac): Remove gl_HMAC_MD5 call.
4001         (Makefile.am): Augment lib_SOURCES.
4002
4003 2011-05-23  Bruno Haible  <bruno@clisp.org>
4004
4005         hash: Move AC_LIBOBJ invocations to module description.
4006         * m4/hash.m4: Remove file.
4007         * modules/hash (Files): Remove it.
4008         (configure.ac): Remove gl_HASH call.
4009         (Makefile.am): Augment lib_SOURCES.
4010
4011 2011-05-23  Bruno Haible  <bruno@clisp.org>
4012
4013         hard-locale: Move AC_LIBOBJ invocations to module description.
4014         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
4015         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
4016
4017 2011-05-23  Bruno Haible  <bruno@clisp.org>
4018
4019         getugroups: Move AC_LIBOBJ invocations to module description.
4020         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
4021         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
4022
4023 2011-05-23  Bruno Haible  <bruno@clisp.org>
4024
4025         gettime: Move AC_LIBOBJ invocations to module description.
4026         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
4027         * modules/gettime (Makefile.am): Augment lib_SOURCES.
4028
4029 2011-05-23  Bruno Haible  <bruno@clisp.org>
4030
4031         getndelim2: Move AC_LIBOBJ invocations to module description.
4032         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
4033         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
4034
4035 2011-05-23  Bruno Haible  <bruno@clisp.org>
4036
4037         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
4038         * m4/gc-pbkdf2-sha1.m4: Remove file.
4039         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
4040         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
4041         (Makefile.am): Augment lib_SOURCES.
4042
4043 2011-05-23  Bruno Haible  <bruno@clisp.org>
4044
4045         fts: Move AC_LIBOBJ invocations to module description.
4046         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
4047         * modules/fts (configure.ac): ... to here.
4048
4049 2011-05-23  Bruno Haible  <bruno@clisp.org>
4050
4051         file-type: Move AC_LIBOBJ invocations to module description.
4052         * m4/file-type.m4: Remove file.
4053         * modules/file-type (Files): Remove it.
4054         (configure.ac): Remove gl_FILE_TYPE call.
4055         (Makefile.am): Augment lib_SOURCES.
4056
4057 2011-05-23  Bruno Haible  <bruno@clisp.org>
4058
4059         filenamecat*: Respect rules for use of AC_LIBOBJ.
4060         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
4061         Remove AC_LIBOBJ invocation.
4062         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
4063         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
4064
4065 2011-05-23  Bruno Haible  <bruno@clisp.org>
4066
4067         filemode: Move AC_LIBOBJ invocations to module description.
4068         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
4069         * modules/filemode (Makefile.am): Augment lib_SOURCES.
4070
4071 2011-05-23  Bruno Haible  <bruno@clisp.org>
4072
4073         openat-safer: Move AC_LIBOBJ invocations to module description.
4074         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
4075         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
4076
4077 2011-05-23  Bruno Haible  <bruno@clisp.org>
4078
4079         fcntl-safer: Move AC_LIBOBJ invocations to module description.
4080         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
4081         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
4082
4083 2011-05-23  Bruno Haible  <bruno@clisp.org>
4084
4085         exclude: Move AC_LIBOBJ invocations to module description.
4086         * m4/exclude.m4: Remove file.
4087         * modules/exclude (Files): Remove it.
4088         (configure.ac): Remove gl_EXCLUDE call.
4089         (Makefile.am): Augment lib_SOURCES.
4090
4091 2011-05-23  Bruno Haible  <bruno@clisp.org>
4092
4093         dirname*: Respect rules for use of AC_LIBOBJ.
4094         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
4095         invocations.
4096         * modules/dirname (Makefile.am): Augment lib_SOURCES.
4097         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
4098
4099 2011-05-23  Bruno Haible  <bruno@clisp.org>
4100
4101         dirent-safer: Move AC_LIBOBJ invocations to module description.
4102         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
4103         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
4104
4105 2011-05-23  Bruno Haible  <bruno@clisp.org>
4106
4107         crypto/des: Move AC_LIBOBJ invocations to module description.
4108         * m4/des.m4: Remove file.
4109         * modules/crypto/des (Files): Remove it.
4110         (configure.ac): Remove gl_DES call.
4111         (Makefile.am): Augment lib_SOURCES.
4112
4113 2011-05-23  Bruno Haible  <bruno@clisp.org>
4114
4115         cycle-check: Move AC_LIBOBJ invocations to module description.
4116         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
4117         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
4118
4119 2011-05-23  Bruno Haible  <bruno@clisp.org>
4120
4121         c-strtold: Move AC_LIBOBJ invocations to module description.
4122         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
4123         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
4124
4125 2011-05-23  Bruno Haible  <bruno@clisp.org>
4126
4127         c-strtod: Move AC_LIBOBJ invocations to module description.
4128         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
4129         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
4130
4131 2011-05-23  Bruno Haible  <bruno@clisp.org>
4132
4133         crc: Move AC_LIBOBJ invocations to module description.
4134         * m4/crc.m4: Remove file.
4135         * modules/crc (Files): Remove it.
4136         (configure.ac): Remove gl_CRC call.
4137         (Makefile.am): Augment lib_SOURCES.
4138
4139 2011-05-23  Bruno Haible  <bruno@clisp.org>
4140
4141         close-stream: Move AC_LIBOBJ invocations to module description.
4142         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
4143         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
4144
4145 2011-05-23  Bruno Haible  <bruno@clisp.org>
4146
4147         closeout: Move AC_LIBOBJ invocations to module description.
4148         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
4149         * modules/closeout (Makefile.am): Augment lib_SOURCES.
4150
4151 2011-05-23  Bruno Haible  <bruno@clisp.org>
4152
4153         closein: Move AC_LIBOBJ invocations to module description.
4154         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
4155         * modules/closein (Makefile.am): Augment lib_SOURCES.
4156
4157 2011-05-23  Bruno Haible  <bruno@clisp.org>
4158
4159         cloexec: Move AC_LIBOBJ invocations to module description.
4160         * m4/cloexec.m4: Remove file.
4161         * modules/cloexec (Files): Remove it.
4162         (configure.ac): Remove gl_CLOEXEC call.
4163         (Makefile.am): Augment lib_SOURCES.
4164
4165 2011-05-23  Bruno Haible  <bruno@clisp.org>
4166
4167         check-version: Move AC_LIBOBJ invocations to module description.
4168         * m4/check-version.m4: Remove file.
4169         * modules/check-version (Files): Remove it.
4170         (configure.ac): Remove gl_CHECK_VERSION call.
4171         (Makefile.am): Augment lib_SOURCES.
4172
4173 2011-05-23  Bruno Haible  <bruno@clisp.org>
4174
4175         chdir-safer: Move AC_LIBOBJ invocations to module description.
4176         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
4177         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
4178
4179 2011-05-23  Bruno Haible  <bruno@clisp.org>
4180
4181         canonicalize: Move AC_LIBOBJ invocations to module description.
4182         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
4183         AC_LIBOBJ invocation.
4184         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
4185
4186 2011-05-23  Bruno Haible  <bruno@clisp.org>
4187
4188         canon-host: Move AC_LIBOBJ invocations to module description.
4189         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
4190         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
4191         instead of gl_CANON_HOST.
4192         (Makefile.am): Augment lib_SOURCES.
4193
4194 2011-05-23  Bruno Haible  <bruno@clisp.org>
4195
4196         backupfile: Move AC_LIBOBJ invocations to module description.
4197         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
4198         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
4199
4200 2011-05-23  Bruno Haible  <bruno@clisp.org>
4201
4202         argmatch: Move AC_LIBOBJ invocations to module description.
4203         * m4/argmatch.m4: Remove file.
4204         * modules/argmatch (Files): Remove it.
4205         (configure.ac): Remove gl_ARGMATCH call.
4206         (Makefile.am): Augment lib_SOURCES.
4207
4208 2011-05-23  Bruno Haible  <bruno@clisp.org>
4209
4210         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
4211         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
4212         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
4213
4214 2011-05-23  Bruno Haible  <bruno@clisp.org>
4215
4216         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
4217         * m4/arcfour.m4: Remove file.
4218         * modules/crypto/arcfour (Files): Remove it.
4219         (configure.ac): Remove gl_ARCFOUR call.
4220         (Makefile.am): Augment lib_SOURCES.
4221
4222 2011-05-22  Bruno Haible  <bruno@clisp.org>
4223
4224         write: Move AC_LIBOBJ invocations to module description.
4225         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
4226         * modules/write (configure.ac): ... to here.
4227
4228 2011-05-22  Bruno Haible  <bruno@clisp.org>
4229
4230         wmemset: Move AC_LIBOBJ invocations to module description.
4231         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
4232         here...
4233         * modules/wmemset (configure.ac): ... to here.
4234
4235 2011-05-22  Bruno Haible  <bruno@clisp.org>
4236
4237         wmemmove: Move AC_LIBOBJ invocations to module description.
4238         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
4239         here...
4240         * modules/wmemmove (configure.ac): ... to here.
4241
4242 2011-05-22  Bruno Haible  <bruno@clisp.org>
4243
4244         wmemcpy: Move AC_LIBOBJ invocations to module description.
4245         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
4246         here...
4247         * modules/wmemcpy (configure.ac): ... to here.
4248
4249 2011-05-22  Bruno Haible  <bruno@clisp.org>
4250
4251         wmemcmp: Move AC_LIBOBJ invocations to module description.
4252         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
4253         here...
4254         * modules/wmemcmp (configure.ac): ... to here.
4255
4256 2011-05-22  Bruno Haible  <bruno@clisp.org>
4257
4258         wmemchr: Move AC_LIBOBJ invocations to module description.
4259         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
4260         here...
4261         * modules/wmemchr (configure.ac): ... to here.
4262
4263 2011-05-22  Bruno Haible  <bruno@clisp.org>
4264
4265         wcswidth: Move AC_LIBOBJ invocations to module description.
4266         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
4267         here...
4268         * modules/wcswidth (configure.ac): ... to here.
4269
4270 2011-05-22  Bruno Haible  <bruno@clisp.org>
4271
4272         wcwidth: Respect rules for use of AC_LIBOBJ.
4273         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
4274         invocation from here...
4275         * modules/wcwidth (configure.ac): ... to here.
4276         (Depends-on): Update conditions.
4277
4278 2011-05-22  Bruno Haible  <bruno@clisp.org>
4279
4280         wctype: Move AC_LIBOBJ invocations to module description.
4281         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
4282         invocation from here...
4283         * modules/wctype (configure.ac): ... to here.
4284         (Depends-on): Update conditions.
4285
4286 2011-05-22  Bruno Haible  <bruno@clisp.org>
4287
4288         wctrans: Move AC_LIBOBJ invocations to module description.
4289         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
4290         invocation from here...
4291         * modules/wctrans (configure.ac): ... to here.
4292
4293 2011-05-22  Bruno Haible  <bruno@clisp.org>
4294
4295         wctomb: Move AC_LIBOBJ invocations to module description.
4296         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
4297         invocations from here...
4298         * modules/wctomb (configure.ac): ... to here.
4299
4300 2011-05-22  Bruno Haible  <bruno@clisp.org>
4301
4302         wctob: Move AC_LIBOBJ invocations to module description.
4303         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
4304         gl_PREREQ_WCTOB invocations from here...
4305         * modules/wctob (configure.ac): ... to here.
4306         (Depends-on): Update conditions.
4307
4308 2011-05-22  Bruno Haible  <bruno@clisp.org>
4309
4310         wcsxfrm: Move AC_LIBOBJ invocations to module description.
4311         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
4312         here...
4313         * modules/wcsxfrm (configure.ac): ... to here.
4314
4315 2011-05-22  Bruno Haible  <bruno@clisp.org>
4316
4317         wcstok: Move AC_LIBOBJ invocations to module description.
4318         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
4319         * modules/wcstok (configure.ac): ... to here.
4320
4321 2011-05-22  Bruno Haible  <bruno@clisp.org>
4322
4323         wcsstr: Move AC_LIBOBJ invocations to module description.
4324         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
4325         * modules/wcsstr (configure.ac): ... to here.
4326
4327 2011-05-22  Bruno Haible  <bruno@clisp.org>
4328
4329         wcsspn: Move AC_LIBOBJ invocations to module description.
4330         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
4331         * modules/wcsspn (configure.ac): ... to here.
4332
4333 2011-05-22  Bruno Haible  <bruno@clisp.org>
4334
4335         wcsrtombs: Move AC_LIBOBJ invocations to module description.
4336         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
4337         gl_PREREQ_WCSRTOMBS invocations from here...
4338         * modules/wcsrtombs (configure.ac): ... to here.
4339
4340 2011-05-22  Bruno Haible  <bruno@clisp.org>
4341
4342         wcsrchr: Move AC_LIBOBJ invocations to module description.
4343         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
4344         here...
4345         * modules/wcsrchr (configure.ac): ... to here.
4346
4347 2011-05-22  Bruno Haible  <bruno@clisp.org>
4348
4349         wcspbrk: Move AC_LIBOBJ invocations to module description.
4350         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
4351         here...
4352         * modules/wcspbrk (configure.ac): ... to here.
4353
4354 2011-05-22  Bruno Haible  <bruno@clisp.org>
4355
4356         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
4357         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
4358         gl_PREREQ_WCSNRTOMBS invocations from here...
4359         * modules/wcsnrtombs (configure.ac): ... to here.
4360
4361 2011-05-22  Bruno Haible  <bruno@clisp.org>
4362
4363         wcsnlen: Move AC_LIBOBJ invocations to module description.
4364         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
4365         here...
4366         * modules/wcsnlen (configure.ac): ... to here.
4367
4368 2011-05-22  Bruno Haible  <bruno@clisp.org>
4369
4370         wcsncpy: Move AC_LIBOBJ invocations to module description.
4371         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
4372         here...
4373         * modules/wcsncpy (configure.ac): ... to here.
4374
4375 2011-05-22  Bruno Haible  <bruno@clisp.org>
4376
4377         wcsncmp: Move AC_LIBOBJ invocations to module description.
4378         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
4379         here...
4380         * modules/wcsncmp (configure.ac): ... to here.
4381
4382 2011-05-22  Bruno Haible  <bruno@clisp.org>
4383
4384         wcsncat: Move AC_LIBOBJ invocations to module description.
4385         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
4386         here...
4387         * modules/wcsncat (configure.ac): ... to here.
4388
4389 2011-05-22  Bruno Haible  <bruno@clisp.org>
4390
4391         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
4392         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
4393         from here...
4394         * modules/wcsncasecmp (configure.ac): ... to here.
4395
4396 2011-05-22  Bruno Haible  <bruno@clisp.org>
4397
4398         wcslen: Move AC_LIBOBJ invocations to module description.
4399         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
4400         * modules/wcslen (configure.ac): ... to here.
4401
4402 2011-05-22  Bruno Haible  <bruno@clisp.org>
4403
4404         wcsdup: Move AC_LIBOBJ invocations to module description.
4405         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
4406         * modules/wcsdup (configure.ac): ... to here.
4407
4408 2011-05-22  Bruno Haible  <bruno@clisp.org>
4409
4410         wcscspn: Move AC_LIBOBJ invocations to module description.
4411         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
4412         here...
4413         * modules/wcscspn (configure.ac): ... to here.
4414
4415 2011-05-22  Bruno Haible  <bruno@clisp.org>
4416
4417         wcscpy: Move AC_LIBOBJ invocations to module description.
4418         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
4419         * modules/wcscpy (configure.ac): ... to here.
4420
4421 2011-05-22  Bruno Haible  <bruno@clisp.org>
4422
4423         wcscoll: Move AC_LIBOBJ invocations to module description.
4424         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
4425         here...
4426         * modules/wcscoll (configure.ac): ... to here.
4427
4428 2011-05-22  Bruno Haible  <bruno@clisp.org>
4429
4430         wcscmp: Move AC_LIBOBJ invocations to module description.
4431         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
4432         * modules/wcscmp (configure.ac): ... to here.
4433
4434 2011-05-22  Bruno Haible  <bruno@clisp.org>
4435
4436         wcschr: Move AC_LIBOBJ invocations to module description.
4437         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
4438         * modules/wcschr (configure.ac): ... to here.
4439
4440 2011-05-22  Bruno Haible  <bruno@clisp.org>
4441
4442         wcscat: Move AC_LIBOBJ invocations to module description.
4443         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
4444         * modules/wcscat (configure.ac): ... to here.
4445
4446 2011-05-22  Bruno Haible  <bruno@clisp.org>
4447
4448         wcscasecmp: Move AC_LIBOBJ invocations to module description.
4449         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
4450         here...
4451         * modules/wcscasecmp (configure.ac): ... to here.
4452
4453 2011-05-22  Bruno Haible  <bruno@clisp.org>
4454
4455         wcrtomb: Move AC_LIBOBJ invocations to module description.
4456         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
4457         invocations from here...
4458         * modules/wcrtomb (configure.ac): ... to here.
4459
4460 2011-05-22  Bruno Haible  <bruno@clisp.org>
4461
4462         wcpncpy: Move AC_LIBOBJ invocations to module description.
4463         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
4464         here...
4465         * modules/wcpncpy (configure.ac): ... to here.
4466
4467 2011-05-22  Bruno Haible  <bruno@clisp.org>
4468
4469         wcpcpy: Move AC_LIBOBJ invocations to module description.
4470         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
4471         * modules/wcpcpy (configure.ac): ... to here.
4472
4473 2011-05-22  Bruno Haible  <bruno@clisp.org>
4474
4475         waitpid: Move AC_LIBOBJ invocations to module description.
4476         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
4477         invocation from here...
4478         * modules/waitpid (configure.ac): ... to here.
4479
4480 2011-05-22  Bruno Haible  <bruno@clisp.org>
4481
4482         utimensat: Move AC_LIBOBJ invocations to module description.
4483         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
4484         here...
4485         * modules/utimensat (configure.ac): ... to here.
4486
4487 2011-05-22  Bruno Haible  <bruno@clisp.org>
4488
4489         usleep: Move AC_LIBOBJ invocations to module description.
4490         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
4491         here...
4492         * modules/usleep (configure.ac): ... to here.
4493
4494 2011-05-22  Bruno Haible  <bruno@clisp.org>
4495
4496         unlockpt: Move AC_LIBOBJ invocations to module description.
4497         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
4498         gl_PREREQ_UNLOCKPT invocations from here...
4499         * modules/unlockpt (configure.ac): ... to here.
4500
4501 2011-05-22  Bruno Haible  <bruno@clisp.org>
4502
4503         unlink: Respect rules for use of AC_LIBOBJ.
4504         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
4505         * modules/unlink (configure.ac): ... to here.
4506
4507 2011-05-22  Bruno Haible  <bruno@clisp.org>
4508
4509         uname: Move AC_LIBOBJ invocations to module description.
4510         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
4511         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
4512         here...
4513         * modules/uname (configure.ac): ... to here.
4514
4515 2011-05-22  Bruno Haible  <bruno@clisp.org>
4516
4517         ttyname_r: Move AC_LIBOBJ invocations to module description.
4518         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
4519         gl_PREREQ_TTYNAME_R invocations from here...
4520         * modules/ttyname_r (configure.ac): ... to here.
4521
4522 2011-05-22  Bruno Haible  <bruno@clisp.org>
4523
4524         tsearch: Move AC_LIBOBJ invocations to module description.
4525         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
4526         invocations from here...
4527         * modules/tsearch (configure.ac): ... to here.
4528
4529 2011-05-22  Bruno Haible  <bruno@clisp.org>
4530
4531         towctrans: Move AC_LIBOBJ invocations to module description.
4532         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
4533         AC_LIBOBJ invocation from here...
4534         * modules/towctrans (configure.ac): ... to here.
4535
4536 2011-05-22  Bruno Haible  <bruno@clisp.org>
4537
4538         tmpfile: Move AC_LIBOBJ invocations to module description.
4539         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
4540         invocations from here...
4541         * modules/tmpfile (configure.ac): ... to here.
4542
4543 2011-05-22  Bruno Haible  <bruno@clisp.org>
4544
4545         times: Move AC_LIBOBJ invocations to module description.
4546         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
4547         * modules/times (configure.ac): ... to here.
4548
4549 2011-05-22  Bruno Haible  <bruno@clisp.org>
4550
4551         time_r: Move AC_LIBOBJ invocations to module description.
4552         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
4553         invocations from here...
4554         * modules/time_r (configure.ac): ... to here.
4555
4556 2011-05-22  Bruno Haible  <bruno@clisp.org>
4557
4558         timegm: Move AC_LIBOBJ invocations to module description.
4559         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
4560         invocations from here...
4561         * modules/timegm (configure.ac): ... to here.
4562
4563 2011-05-22  Bruno Haible  <bruno@clisp.org>
4564
4565         tcgetsid: Move AC_LIBOBJ invocations to module description.
4566         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
4567         and gl_PREREQ_TCGETSID invocations from here...
4568         * modules/tcgetsid (configure.ac): ... to here.
4569         (Depends-on): Update conditions.
4570
4571 2011-05-22  Bruno Haible  <bruno@clisp.org>
4572
4573         symlinkat: Move AC_LIBOBJ invocations to module description.
4574         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
4575         here...
4576         * modules/symlinkat (configure.ac): ... to here.
4577
4578 2011-05-22  Bruno Haible  <bruno@clisp.org>
4579
4580         symlink: Move AC_LIBOBJ invocations to module description.
4581         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
4582         here...
4583         * modules/symlink (configure.ac): ... to here.
4584
4585 2011-05-22  Bruno Haible  <bruno@clisp.org>
4586
4587         strverscmp: Move AC_LIBOBJ invocations to module description.
4588         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
4589         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
4590         from here...
4591         * modules/strverscmp (configure.ac): ... to here.
4592
4593 2011-05-22  Bruno Haible  <bruno@clisp.org>
4594
4595         strtok_r: Move AC_LIBOBJ invocations to module description.
4596         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
4597         and gl_PREREQ_STRTOK_R invocations from here...
4598         * modules/strtok_r (configure.ac): ... to here.
4599         (Depends-on): Update conditions.
4600
4601 2011-05-22  Bruno Haible  <bruno@clisp.org>
4602
4603         strtoumax: Move AC_LIBOBJ invocations to module description.
4604         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
4605         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
4606         from here...
4607         * modules/strtoumax (configure.ac): ... to here.
4608
4609 2011-05-22  Bruno Haible  <bruno@clisp.org>
4610
4611         strtoimax: Move AC_LIBOBJ invocations to module description.
4612         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
4613         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
4614         from here...
4615         * modules/strtoimax (configure.ac): ... to here.
4616
4617 2011-05-22  Bruno Haible  <bruno@clisp.org>
4618
4619         strtoull: Move AC_LIBOBJ invocations to module description.
4620         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
4621         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
4622         from here...
4623         * modules/strtoull (configure.ac): ... to here.
4624
4625 2011-05-22  Bruno Haible  <bruno@clisp.org>
4626
4627         strtoll: Move AC_LIBOBJ invocations to module description.
4628         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
4629         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
4630         here...
4631         * modules/strtoll (configure.ac): ... to here.
4632
4633 2011-05-22  Bruno Haible  <bruno@clisp.org>
4634
4635         strtoul: Move AC_LIBOBJ invocations to module description.
4636         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
4637         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4638         * modules/strtoul (configure.ac): ... to here.
4639
4640 2011-05-22  Bruno Haible  <bruno@clisp.org>
4641
4642         strtol: Move AC_LIBOBJ invocations to module description.
4643         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
4644         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4645         * modules/strtol (configure.ac): ... to here.
4646
4647 2011-05-22  Bruno Haible  <bruno@clisp.org>
4648
4649         strtod: Move AC_LIBOBJ invocations to module description.
4650         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
4651         invocations from here...
4652         * modules/strtod (configure.ac): ... to here.
4653
4654 2011-05-22  Bruno Haible  <bruno@clisp.org>
4655
4656         strstr*: Move AC_LIBOBJ invocations to module description.
4657         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
4658         invocations from here...
4659         * modules/strstr-simple (configure.ac): ... to here.
4660         * modules/strstr (configure.ac): ... and here.
4661
4662 2011-05-22  Bruno Haible  <bruno@clisp.org>
4663
4664         strsignal: Move AC_LIBOBJ invocations to module description.
4665         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
4666         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
4667         * modules/strsignal (configure.ac): ... to here.
4668         (Depends-on): Update conditions.
4669
4670 2011-05-22  Bruno Haible  <bruno@clisp.org>
4671
4672         strsep: Move AC_LIBOBJ invocations to module description.
4673         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
4674         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
4675         here...
4676         * modules/strsep (configure.ac): ... to here.
4677
4678 2011-05-22  Bruno Haible  <bruno@clisp.org>
4679
4680         strptime: Move AC_LIBOBJ invocations to module description.
4681         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
4682         gl_PREREQ_STRPTIME invocations from here...
4683         * modules/strptime (configure.ac): ... to here.
4684
4685 2011-05-22  Bruno Haible  <bruno@clisp.org>
4686
4687         strpbrk: Move AC_LIBOBJ invocations to module description.
4688         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
4689         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
4690         here...
4691         * modules/strpbrk (configure.ac): ... to here.
4692
4693 2011-05-22  Bruno Haible  <bruno@clisp.org>
4694
4695         strnlen: Move AC_LIBOBJ invocations to module description.
4696         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
4697         invocations from here...
4698         * modules/strnlen (configure.ac): ... to here.
4699
4700 2011-05-22  Bruno Haible  <bruno@clisp.org>
4701
4702         strndup: Move AC_LIBOBJ invocations to module description.
4703         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
4704         invocations from here...
4705         * modules/strndup (configure.ac): ... to here.
4706         (Depends-on): Update conditions.
4707
4708 2011-05-22  Bruno Haible  <bruno@clisp.org>
4709
4710         strncat: Move AC_LIBOBJ invocations to module description.
4711         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
4712         invocations from here...
4713         * modules/strncat (configure.ac): ... to here.
4714
4715 2011-05-22  Bruno Haible  <bruno@clisp.org>
4716
4717         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
4718         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
4719         invocations from here...
4720         * modules/strdup (configure.ac): ... to here.
4721         * modules/strdup-posix (configure.ac): ... and here.
4722
4723 2011-05-22  Bruno Haible  <bruno@clisp.org>
4724
4725         strcspn: Move AC_LIBOBJ invocations to module description.
4726         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
4727         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
4728         here...
4729         * modules/strcspn (configure.ac): ... to here.
4730
4731 2011-05-22  Bruno Haible  <bruno@clisp.org>
4732
4733         strchrnul: Move AC_LIBOBJ invocations to module description.
4734         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
4735         gl_PREREQ_STRCHRNUL invocations from here...
4736         * modules/strchrnul (configure.ac): ... to here.
4737
4738 2011-05-22  Bruno Haible  <bruno@clisp.org>
4739
4740         strcasestr*: Move AC_LIBOBJ invocations to module description.
4741         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4742         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
4743         * modules/strcasestr-simple (configure.ac): ... to here.
4744         * modules/strcasestr (configure.ac): ... and here.
4745
4746 2011-05-22  Bruno Haible  <bruno@clisp.org>
4747
4748         strcase: Move AC_LIBOBJ invocations to module description.
4749         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
4750         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
4751         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
4752         gl_PREREQ_STRNCASECMP invocations from here...
4753         * modules/strcase (configure.ac): ... to here.
4754
4755 2011-05-22  Bruno Haible  <bruno@clisp.org>
4756
4757         stpncpy: Move AC_LIBOBJ invocations to module description.
4758         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
4759         here...
4760         * modules/stpncpy (configure.ac): ... to here.
4761
4762 2011-05-22  Bruno Haible  <bruno@clisp.org>
4763
4764         stpcpy: Move AC_LIBOBJ invocations to module description.
4765         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
4766         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
4767         here...
4768         * modules/stpcpy (configure.ac): ... to here.
4769
4770 2011-05-21  Bruno Haible  <bruno@clisp.org>
4771
4772         stat: Move AC_LIBOBJ invocations to module description.
4773         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
4774         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
4775         here...
4776         * modules/stat (configure.ac): ... to here.
4777
4778 2011-05-21  Bruno Haible  <bruno@clisp.org>
4779
4780         sleep: Move AC_LIBOBJ invocations to module description.
4781         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
4782         * modules/sleep (configure.ac): ... to here.
4783
4784 2011-05-21  Bruno Haible  <bruno@clisp.org>
4785
4786         signbit: Move AC_LIBOBJ invocations to module description.
4787         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
4788         * modules/signbit (configure.ac): ... to here.
4789
4790 2011-05-21  Bruno Haible  <bruno@clisp.org>
4791
4792         sigprocmask: Move AC_LIBOBJ invocations to module description.
4793         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
4794         gl_PREREQ_SIGPROMASK invocations from here...
4795         * modules/sigprocmask (configure.ac): ... to here.
4796
4797 2011-05-21  Bruno Haible  <bruno@clisp.org>
4798
4799         sigaction: Move AC_LIBOBJ invocations to module description.
4800         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
4801         gl_PREREQ_SIGACTION invocations from here...
4802         * modules/sigaction (configure.ac): ... to here.
4803
4804 2011-05-21  Bruno Haible  <bruno@clisp.org>
4805
4806         sig2str: Move AC_LIBOBJ invocations to module description.
4807         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
4808         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
4809         here...
4810         * modules/sig2str (configure.ac): ... to here.
4811
4812 2011-05-21  Bruno Haible  <bruno@clisp.org>
4813
4814         setlocale: Move AC_LIBOBJ invocations to module description.
4815         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
4816         gl_PREREQ_SETLOCALE invocations from here...
4817         * modules/setlocale (configure.ac): ... to here.
4818
4819 2011-05-21  Bruno Haible  <bruno@clisp.org>
4820
4821         unsetenv: Move AC_LIBOBJ invocations to module description.
4822         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
4823         and gl_PREREQ_UNSETENV invocations from here...
4824         * modules/unsetenv (configure.ac): ... to here.
4825         (Depends-on): Update.
4826
4827 2011-05-21  Bruno Haible  <bruno@clisp.org>
4828
4829         setenv: Move AC_LIBOBJ invocations to module description.
4830         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
4831         here...
4832         * modules/setenv (configure.ac): ... to here.
4833
4834 2011-05-21  Bruno Haible  <bruno@clisp.org>
4835
4836         selinux-h: Move AC_LIBOBJ invocations to module description.
4837         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
4838         AC_LIBOBJ invocation from here...
4839         * modules/selinux-h (configure.ac): ... to here.
4840
4841 2011-05-21  Bruno Haible  <bruno@clisp.org>
4842
4843         select: Respect rules for use of AC_LIBOBJ.
4844         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
4845         here...
4846         * modules/select (configure.ac): ... to here.
4847
4848 2011-05-21  Bruno Haible  <bruno@clisp.org>
4849
4850         scandir: Move AC_LIBOBJ invocations to module description.
4851         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
4852         invocations from here...
4853         * modules/scandir (configure.ac): ... to here.
4854
4855 2011-05-21  Bruno Haible  <bruno@clisp.org>
4856
4857         rpmatch: Move AC_LIBOBJ invocations to module description.
4858         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
4859         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
4860         here...
4861         * modules/rpmatch (configure.ac): ... to here.
4862
4863 2011-05-21  Bruno Haible  <bruno@clisp.org>
4864
4865         rmdir: Respect rules for use of AC_LIBOBJ.
4866         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
4867         * modules/rmdir (configure.ac): ... to here.
4868
4869 2011-05-21  Bruno Haible  <bruno@clisp.org>
4870
4871         renameat: Move AC_LIBOBJ invocations to module description.
4872         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
4873         here...
4874         * modules/renameat (configure.ac): ... to here.
4875
4876 2011-05-21  Bruno Haible  <bruno@clisp.org>
4877
4878         rename: Respect rules for use of AC_LIBOBJ.
4879         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
4880         here...
4881         * modules/rename (configure.ac): ... to here.
4882
4883 2011-05-21  Bruno Haible  <bruno@clisp.org>
4884
4885         remove: Move AC_LIBOBJ invocations to module description.
4886         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
4887         here...
4888         * modules/remove (configure.ac): ... to here.
4889
4890 2011-05-21  Bruno Haible  <bruno@clisp.org>
4891
4892         relocatable-lib: Move AC_LIBOBJ invocations to module description.
4893         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
4894         macro.
4895         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
4896         * modules/relocatable-lib (configure.ac): ... to here.
4897         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4898         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
4899
4900 2011-05-21  Bruno Haible  <bruno@clisp.org>
4901
4902         relocatable-prog: Move AC_LIBOBJ invocations to module description.
4903         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
4904         here...
4905         * modules/relocatable-prog (configure.ac): ... to here.
4906
4907 2011-05-21  Bruno Haible  <bruno@clisp.org>
4908
4909         regex: Move AC_LIBOBJ invocations to module description.
4910         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
4911         invocations from here...
4912         * modules/regex (configure.ac): ... to here.
4913
4914 2011-05-21  Bruno Haible  <bruno@clisp.org>
4915
4916         realloc-*: Move AC_LIBOBJ invocations to module description.
4917         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
4918         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
4919         AC_LIBOBJ invocations from here...
4920         * modules/realloc-gnu (configure.ac): ... to here.
4921         * modules/realloc-posix (configure.ac): ... and here.
4922
4923 2011-05-21  Bruno Haible  <bruno@clisp.org>
4924
4925         readutmp: Move AC_LIBOBJ invocations to module description.
4926         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
4927         * modules/readutmp (configure.ac): ... to here.
4928
4929 2011-05-21  Bruno Haible  <bruno@clisp.org>
4930
4931         readlinkat: Move AC_LIBOBJ invocations to module description.
4932         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
4933         here...
4934         * modules/readlinkat (configure.ac): ... to here.
4935
4936 2011-05-21  Bruno Haible  <bruno@clisp.org>
4937
4938         readlink: Move AC_LIBOBJ invocations to module description.
4939         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
4940         gl_PREREQ_READLINK invocations from here...
4941         * modules/readlink (configure.ac): ... to here.
4942
4943 2011-05-21  Bruno Haible  <bruno@clisp.org>
4944
4945         readline: Move AC_LIBOBJ invocations to module description.
4946         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
4947         gl_PREREQ_READLINE invocations from here...
4948         * modules/readline (configure.ac): ... to here.
4949
4950 2011-05-21  Bruno Haible  <bruno@clisp.org>
4951
4952         read: Move AC_LIBOBJ invocations to module description.
4953         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
4954         * modules/read (configure.ac): ... to here.
4955
4956 2011-05-21  Bruno Haible  <bruno@clisp.org>
4957
4958         rawmemchr: Move AC_LIBOBJ invocations to module description.
4959         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
4960         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
4961         from here...
4962         * modules/rawmemchr (configure.ac): ... to here.
4963
4964 2011-05-21  Bruno Haible  <bruno@clisp.org>
4965
4966         random_r: Move AC_LIBOBJ invocations to module description.
4967         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
4968         gl_PREREQ_RANDOM_R invocations from here...
4969         * modules/random_r (configure.ac): ... to here.
4970
4971 2011-05-21  Bruno Haible  <bruno@clisp.org>
4972
4973         pwrite: Move AC_LIBOBJ invocations to module description.
4974         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4975         * modules/pwrite (configure.ac): ... to here.
4976
4977 2011-05-21  Bruno Haible  <bruno@clisp.org>
4978
4979         putenv: Move AC_LIBOBJ invocations to module description.
4980         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4981         * modules/putenv (configure.ac): ... to here.
4982
4983 2011-05-21  Bruno Haible  <bruno@clisp.org>
4984
4985         login_tty: Move AC_LIBOBJ invocations to module description.
4986         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4987         * modules/login_tty (configure.ac): ... to here.
4988
4989 2011-05-21  Bruno Haible  <bruno@clisp.org>
4990
4991         openpty: Move AC_LIBOBJ invocations to module description.
4992         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4993         * modules/openpty (configure.ac): ... to here.
4994
4995 2011-05-21  Bruno Haible  <bruno@clisp.org>
4996
4997         forkpty: Move AC_LIBOBJ invocations to module description.
4998         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4999         * modules/forkpty (configure.ac): ... to here.
5000
5001 2011-05-21  Bruno Haible  <bruno@clisp.org>
5002
5003         ptsname: Move AC_LIBOBJ invocations to module description.
5004         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
5005         invocations from here...
5006         * modules/ptsname (configure.ac): ... to here.
5007
5008 2011-05-21  Bruno Haible  <bruno@clisp.org>
5009
5010         pread: Move AC_LIBOBJ invocations to module description.
5011         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
5012         * modules/pread (configure.ac): ... to here.
5013
5014 2011-05-21  Bruno Haible  <bruno@clisp.org>
5015
5016         posix_spawn*: Move AC_LIBOBJ invocations to module description.
5017         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
5018         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
5019         * modules/posix_spawn (configure.ac): ... to here.
5020         * modules/posix_spawnp (configure.ac): ... and here.
5021
5022 2011-05-21  Bruno Haible  <bruno@clisp.org>
5023
5024         popen: Move AC_LIBOBJ invocations to module description.
5025         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
5026         invocations from here...
5027         * modules/popen (configure.ac): ... to here.
5028
5029 2011-05-21  Bruno Haible  <bruno@clisp.org>
5030
5031         poll: Move AC_LIBOBJ invocations to module description.
5032         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
5033         invocations from here...
5034         * modules/poll (configure.ac): ... to here.
5035
5036 2011-05-21  Bruno Haible  <bruno@clisp.org>
5037
5038         pipe-posix: Move AC_LIBOBJ invocations to module description.
5039         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
5040         * modules/pipe-posix (configure.ac): ... to here.
5041
5042 2011-05-21  Bruno Haible  <bruno@clisp.org>
5043
5044         openat: Respect rules for use of AC_LIBOBJ.
5045         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
5046         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5047         * modules/openat (configure.ac): ... to here.
5048
5049 2011-05-21  Bruno Haible  <bruno@clisp.org>
5050
5051         obstack-printf*: Move AC_LIBOBJ invocations to module description.
5052         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
5053         invocation from here...
5054         * modules/obstack-printf (configure.ac): ... to here.
5055         * modules/obstack-printf-posix (configure.ac): ... and here.
5056
5057 2011-05-21  Bruno Haible  <bruno@clisp.org>
5058
5059         nl_langinfo: Move AC_LIBOBJ invocations to module description.
5060         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
5061         from here...
5062         * modules/nl_langinfo (configure.ac): ... to here.
5063
5064 2011-05-21  Bruno Haible  <bruno@clisp.org>
5065
5066         nanosleep: Move AC_LIBOBJ invocations to module description.
5067         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
5068         gl_PREREQ_NANOSLEEP invocations from here...
5069         * modules/nanosleep (configure.ac): ... to here.
5070
5071 2011-05-21  Bruno Haible  <bruno@clisp.org>
5072
5073         mountlist: Move AC_LIBOBJ invocations to module description.
5074         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
5075         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
5076         * modules/mountlist (configure.ac): ... to here.
5077
5078 2011-05-21  Bruno Haible  <bruno@clisp.org>
5079
5080         mktime: Respect rules for use of AC_LIBOBJ.
5081         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
5082         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
5083         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
5084         (gl_FUNC_MKTIME_INTERNAL): ... and here...
5085         * modules/mktime (configure.ac): ... to here.
5086         * modules/mktime-internal (configure.ac): ... and here.
5087         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
5088
5089 2011-05-21  Bruno Haible  <bruno@clisp.org>
5090
5091         mkstemps: Move AC_LIBOBJ invocations to module description.
5092         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
5093         here...
5094         * modules/mkstemps (configure.ac): ... to here.
5095
5096 2011-05-21  Bruno Haible  <bruno@clisp.org>
5097
5098         mkstemp: Move AC_LIBOBJ invocations to module description.
5099         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
5100         gl_PREREQ_MKSTEMP invocations from here...
5101         * modules/mkstemp (configure.ac): ... to here.
5102
5103 2011-05-21  Bruno Haible  <bruno@clisp.org>
5104
5105         mkostemps: Move AC_LIBOBJ invocations to module description.
5106         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
5107         here...
5108         * modules/mkostemps (configure.ac): ... to here.
5109
5110 2011-05-21  Bruno Haible  <bruno@clisp.org>
5111
5112         mkostemp: Move AC_LIBOBJ invocations to module description.
5113         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
5114         gl_PREREQ_MKOSTEMP invocations from here...
5115         * modules/mkostemp (configure.ac): ... to here.
5116
5117 2011-05-21  Bruno Haible  <bruno@clisp.org>
5118
5119         mknod: Move AC_LIBOBJ invocations to module description.
5120         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
5121         * modules/mknod (configure.ac): ... to here.
5122
5123 2011-05-21  Bruno Haible  <bruno@clisp.org>
5124
5125         mkfifoat: Move AC_LIBOBJ invocations to module description.
5126         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
5127         here...
5128         * modules/mkfifoat (configure.ac): ... to here.
5129
5130 2011-05-21  Bruno Haible  <bruno@clisp.org>
5131
5132         mkfifo: Respect rules for use of AC_LIBOBJ.
5133         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
5134         here...
5135         * modules/mkfifo (configure.ac): ... to here.
5136
5137 2011-05-21  Bruno Haible  <bruno@clisp.org>
5138
5139         mkdtemp: Move AC_LIBOBJ invocations to module description.
5140         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
5141         invocations from here...
5142         * modules/mkdtemp (configure.ac): ... to here.
5143
5144 2011-05-21  Bruno Haible  <bruno@clisp.org>
5145
5146         mkdir: Move AC_LIBOBJ invocations to module description.
5147         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
5148         * modules/mkdir (configure.ac): ... to here.
5149
5150 2011-05-21  Bruno Haible  <bruno@clisp.org>
5151
5152         memset: Move AC_LIBOBJ invocations to module description.
5153         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
5154         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
5155         here...
5156         * modules/memset (configure.ac): ... to here.
5157
5158 2011-05-21  Bruno Haible  <bruno@clisp.org>
5159
5160         memrchr: Move AC_LIBOBJ invocations to module description.
5161         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
5162         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
5163         here...
5164         * modules/memrchr (configure.ac): ... to here.
5165
5166 2011-05-21  Bruno Haible  <bruno@clisp.org>
5167
5168         mempcpy: Move AC_LIBOBJ invocations to module description.
5169         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
5170         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
5171         here...
5172         * modules/mempcpy (configure.ac): ... to here.
5173
5174 2011-05-21  Bruno Haible  <bruno@clisp.org>
5175
5176         memmove: Move AC_LIBOBJ invocations to module description.
5177         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
5178         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
5179         here...
5180         * modules/memmove (configure.ac): ... to here.
5181
5182 2011-05-21  Bruno Haible  <bruno@clisp.org>
5183
5184         memmem*: Move AC_LIBOBJ invocations to module description.
5185         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
5186         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
5187         here...
5188         (gl_FUNC_MEMMEM): ... and here...
5189         * modules/memmem-simple (configure.ac): ... to here.
5190         * modules/memmem (configure.ac): ... and here.
5191
5192 2011-05-21  Bruno Haible  <bruno@clisp.org>
5193
5194         memcpy: Move AC_LIBOBJ invocations to module description.
5195         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
5196         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
5197         here...
5198         * modules/memcpy (configure.ac): ... to here.
5199
5200 2011-05-21  Bruno Haible  <bruno@clisp.org>
5201
5202         memcmp: Simplify autoconf macro.
5203         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
5204         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
5205         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
5206
5207 2011-05-21  Bruno Haible  <bruno@clisp.org>
5208
5209         memcmp: Move AC_LIBOBJ invocations to module description.
5210         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
5211         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
5212         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
5213         * modules/memcmp (configure.ac): ... to here.
5214         (Depends-on): Update conditions.
5215
5216 2011-05-21  Bruno Haible  <bruno@clisp.org>
5217
5218         memchr: Respect rules for use of AC_LIBOBJ.
5219         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
5220         invocations from here...
5221         * modules/memchr (configure.ac): ... to here.
5222
5223 2011-05-21  Bruno Haible  <bruno@clisp.org>
5224
5225         mbtowc: Move AC_LIBOBJ invocations to module description.
5226         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
5227         invocations from here...
5228         * modules/mbtowc (configure.ac): ... to here.
5229
5230 2011-05-21  Bruno Haible  <bruno@clisp.org>
5231
5232         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
5233         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
5234         gl_PREREQ_MBSRTOWCS invocations from here...
5235         * modules/mbsrtowcs (configure.ac): ... to here.
5236
5237 2011-05-21  Bruno Haible  <bruno@clisp.org>
5238
5239         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
5240         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
5241         gl_PREREQ_MBSNRTOWCS invocations from here...
5242         * modules/mbsnrtowcs (configure.ac): ... to here.
5243
5244 2011-05-21  Bruno Haible  <bruno@clisp.org>
5245
5246         mbsinit: Move AC_LIBOBJ invocations to module description.
5247         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
5248         invocations from here...
5249         * modules/mbsinit (configure.ac): ... to here.
5250
5251 2011-05-21  Bruno Haible  <bruno@clisp.org>
5252
5253         mbrlen: Move AC_LIBOBJ invocations to module description.
5254         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
5255         invocations from here...
5256         * modules/mbrlen (configure.ac): ... to here.
5257
5258 2011-05-21  Bruno Haible  <bruno@clisp.org>
5259
5260         mbrtowc: Respect rules for use of AC_LIBOBJ.
5261         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
5262         invocations from here...
5263         * modules/mbrtowc (configure.ac): ... to here.
5264
5265 2011-05-21  Bruno Haible  <bruno@clisp.org>
5266
5267         malloc-*: Move AC_LIBOBJ invocations to module description.
5268         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
5269         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
5270         AC_LIBOBJ invocations from here...
5271         * modules/malloc-gnu (configure.ac): ... to here.
5272         * modules/malloc-posix (configure.ac): ... and here.
5273
5274 2011-05-21  Bruno Haible  <bruno@clisp.org>
5275
5276         lstat, openat: Respect rules for use of AC_LIBOBJ.
5277         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
5278         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
5279         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
5280         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
5281         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
5282         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
5283         here.
5284         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5285
5286 2011-05-21  Bruno Haible  <bruno@clisp.org>
5287
5288         lseek: Move AC_LIBOBJ invocations to module description.
5289         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
5290         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5291         * modules/lseek (configure.ac): ... to here.
5292
5293 2011-05-21  Bruno Haible  <bruno@clisp.org>
5294
5295         linkat: Move AC_LIBOBJ invocations to module description.
5296         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
5297         here...
5298         * modules/linkat (configure.ac): ... to here.
5299
5300 2011-05-21  Bruno Haible  <bruno@clisp.org>
5301
5302         link: Respect rules for use of AC_LIBOBJ.
5303         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
5304         * modules/link (configure.ac): ... to here.
5305
5306 2011-05-21  Bruno Haible  <bruno@clisp.org>
5307
5308         lchown: Move AC_LIBOBJ invocations to module description.
5309         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5310         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5311         * modules/lchown (configure.ac): ... to here.
5312
5313 2011-05-21  Bruno Haible  <bruno@clisp.org>
5314
5315         iswctype: Move AC_LIBOBJ invocations to module description.
5316         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
5317         here...
5318         * modules/iswctype (configure.ac): ... to here.
5319
5320 2011-05-21  Bruno Haible  <bruno@clisp.org>
5321
5322         iswblank: Move AC_LIBOBJ invocations to module description.
5323         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
5324         here...
5325         * modules/iswblank (configure.ac): ... to here.
5326
5327 2011-05-21  Bruno Haible  <bruno@clisp.org>
5328
5329         atanl: Move AC_LIBOBJ invocations to module description.
5330         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
5331         * modules/atanl (configure.ac): ... to here.
5332
5333 2011-05-21  Bruno Haible  <bruno@clisp.org>
5334
5335         acosl: Move AC_LIBOBJ invocations to module description.
5336         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
5337         * modules/acosl (configure.ac): ... to here.
5338
5339 2011-05-21  Bruno Haible  <bruno@clisp.org>
5340
5341         asinl: Respect rules for use of AC_LIBOBJ.
5342         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
5343         * modules/asinl (configure.ac): ... to here.
5344
5345 2011-05-21  Bruno Haible  <bruno@clisp.org>
5346
5347         tanl: Move AC_LIBOBJ invocations to module description.
5348         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
5349         * modules/tanl (configure.ac): ... to here.
5350
5351 2011-05-21  Bruno Haible  <bruno@clisp.org>
5352
5353         cosl: Move AC_LIBOBJ invocations to module description.
5354         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
5355         * modules/cosl (configure.ac): ... to here.
5356
5357 2011-05-21  Bruno Haible  <bruno@clisp.org>
5358
5359         sinl: Move AC_LIBOBJ invocations to module description.
5360         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
5361         * modules/sinl (configure.ac): ... to here.
5362
5363 2011-05-21  Bruno Haible  <bruno@clisp.org>
5364
5365         logl: Move AC_LIBOBJ invocations to module description.
5366         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
5367         * modules/logl (configure.ac): ... to here.
5368
5369 2011-05-21  Bruno Haible  <bruno@clisp.org>
5370
5371         expl: Move AC_LIBOBJ invocations to module description.
5372         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
5373         * modules/expl (configure.ac): ... to here.
5374
5375 2011-05-21  Bruno Haible  <bruno@clisp.org>
5376
5377         roundl: Move AC_LIBOBJ invocations to module description.
5378         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
5379         * modules/roundl (configure.ac): ... to here.
5380
5381 2011-05-21  Bruno Haible  <bruno@clisp.org>
5382
5383         round: Move AC_LIBOBJ invocations to module description.
5384         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
5385         * modules/round (configure.ac): ... to here.
5386
5387 2011-05-21  Bruno Haible  <bruno@clisp.org>
5388
5389         roundf: Move AC_LIBOBJ invocations to module description.
5390         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
5391         * modules/roundf (configure.ac): ... to here.
5392
5393 2011-05-21  Bruno Haible  <bruno@clisp.org>
5394
5395         truncl: Move AC_LIBOBJ invocations to module description.
5396         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
5397         * modules/truncl (configure.ac): ... to here.
5398
5399 2011-05-21  Bruno Haible  <bruno@clisp.org>
5400
5401         trunc: Move AC_LIBOBJ invocations to module description.
5402         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
5403         * modules/trunc (configure.ac): ... to here.
5404
5405 2011-05-21  Bruno Haible  <bruno@clisp.org>
5406
5407         truncf: Move AC_LIBOBJ invocations to module description.
5408         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
5409         * modules/truncf (configure.ac): ... to here.
5410
5411 2011-05-21  Bruno Haible  <bruno@clisp.org>
5412
5413         ceill: Move AC_LIBOBJ invocations to module description.
5414         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
5415         * modules/ceill (configure.ac): ... to here.
5416
5417 2011-05-21  Bruno Haible  <bruno@clisp.org>
5418
5419         ceil: Move AC_LIBOBJ invocations to module description.
5420         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
5421         * modules/ceil (configure.ac): ... to here.
5422
5423 2011-05-21  Bruno Haible  <bruno@clisp.org>
5424
5425         ceilf: Move AC_LIBOBJ invocations to module description.
5426         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
5427         * modules/ceilf (configure.ac): ... to here.
5428
5429 2011-05-21  Bruno Haible  <bruno@clisp.org>
5430
5431         floorl: Respect rules for use of AC_LIBOBJ.
5432         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
5433         * modules/floorl (configure.ac): ... to here.
5434
5435 2011-05-21  Bruno Haible  <bruno@clisp.org>
5436
5437         floor: Respect rules for use of AC_LIBOBJ.
5438         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
5439         * modules/floor (configure.ac): ... to here.
5440
5441 2011-05-21  Bruno Haible  <bruno@clisp.org>
5442
5443         floorf: Move AC_LIBOBJ invocations to module description.
5444         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
5445         * modules/floorf (configure.ac): ... to here.
5446
5447 2011-05-20  Bruno Haible  <bruno@clisp.org>
5448
5449         sqrtl: Respect rules for use of AC_LIBOBJ.
5450         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
5451         * modules/sqrtl (configure.ac): ... to here.
5452
5453 2011-05-20  Bruno Haible  <bruno@clisp.org>
5454
5455         ldexpl: Respect rules for use of AC_LIBOBJ.
5456         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
5457         * modules/ldexpl (configure.ac): ... to here.
5458
5459 2011-05-20  Bruno Haible  <bruno@clisp.org>
5460
5461         frexpl*: Respect rules for use of AC_LIBOBJ.
5462         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
5463         invocation from here...
5464         * modules/frexpl (configure.ac): ... to here.
5465         * modules/frexpl-nolibm (configure.ac): ... and here.
5466
5467 2011-05-20  Bruno Haible  <bruno@clisp.org>
5468
5469         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
5470         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
5471         invocation from here...
5472         * modules/frexp (configure.ac): ... to here.
5473         * modules/frexp-nolibm (configure.ac): ... and here.
5474
5475 2011-05-20  Bruno Haible  <bruno@clisp.org>
5476
5477         isnan: Respect rules for use of AC_LIBOBJ.
5478         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
5479         invocations here.
5480         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
5481         REPLACE_ISNAN.
5482         * modules/isnand (configure.ac): Likewise.
5483         * modules/isnanl (configure.ac): Likewise.
5484
5485 2011-05-20  Bruno Haible  <bruno@clisp.org>
5486
5487         isnanl*: Respect rules for use of AC_LIBOBJ.
5488         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
5489         invocation from here...
5490         * modules/isnanl (configure.ac): ... to here.
5491         * modules/isnanl-nolibm (configure.ac): ... and here.
5492
5493 2011-05-20  Bruno Haible  <bruno@clisp.org>
5494
5495         isnand*: Move AC_LIBOBJ invocations to module description.
5496         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
5497         invocation from here...
5498         * modules/isnand (configure.ac): ... to here.
5499         * modules/isnand-nolibm (configure.ac): ... and here.
5500
5501 2011-05-20  Bruno Haible  <bruno@clisp.org>
5502
5503         isnanf*: Move AC_LIBOBJ invocations to module description.
5504         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
5505         invocation from here...
5506         * modules/isnanf (configure.ac): ... to here.
5507         * modules/isnanf-nolibm (configure.ac): ... and here.
5508
5509 2011-05-20  Bruno Haible  <bruno@clisp.org>
5510
5511         isnan*: Separate the AC_LIBOBJ invocations.
5512         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
5513         AC_LIBOBJ invocation.
5514         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
5515         here.
5516         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
5517         AC_LIBOBJ invocation.
5518         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
5519         here.
5520         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
5521         AC_LIBOBJ invocation.
5522         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
5523         here.
5524         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
5525
5526 2011-05-08  Bruno Haible  <bruno@clisp.org>
5527
5528         isinf: Move AC_LIBOBJ invocations to module description.
5529         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
5530         * modules/isinf (configure.ac): ... to here.
5531
5532 2011-05-08  Bruno Haible  <bruno@clisp.org>
5533
5534         isfinite: Move AC_LIBOBJ invocations to module description.
5535         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
5536         * modules/isfinite (configure.ac): ... to here.
5537
5538 2011-05-08  Bruno Haible  <bruno@clisp.org>
5539
5540         isblank: Move AC_LIBOBJ invocations to module description.
5541         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
5542         here...
5543         * modules/isblank (configure.ac): ... to here.
5544
5545 2011-05-08  Bruno Haible  <bruno@clisp.org>
5546
5547         isapipe: Move AC_LIBOBJ invocations to module description.
5548         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
5549         gl_PREREQ_ISAPIPE invocations from here...
5550         * modules/isapipe (configure.ac): ... to here.
5551         (Depends-on): Update condition.
5552
5553 2011-05-08  Bruno Haible  <bruno@clisp.org>
5554
5555         ioctl: Move AC_LIBOBJ invocations to module description.
5556         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
5557         invocations from here...
5558         * modules/ioctl (configure.ac): ... to here.
5559         (Depends-on): Update condition.
5560
5561 2011-05-08  Bruno Haible  <bruno@clisp.org>
5562
5563         imaxdiv: Move AC_LIBOBJ invocations to module description.
5564         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
5565         invocations from here...
5566         * modules/imaxdiv (configure.ac): ... to here.
5567
5568 2011-05-08  Bruno Haible  <bruno@clisp.org>
5569
5570         imaxabs: Move AC_LIBOBJ invocations to module description.
5571         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
5572         invocations from here...
5573         * modules/imaxabs (configure.ac): ... to here.
5574
5575 2011-05-08  Bruno Haible  <bruno@clisp.org>
5576
5577         getaddrinfo: Move AC_LIBOBJ invocations to module description.
5578         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
5579         AC_LIBOBJ invocations from here...
5580         * modules/getaddrinfo (configure.ac): ... to here.
5581         (Depends-on): Add conditions.
5582
5583 2011-05-08  Bruno Haible  <bruno@clisp.org>
5584
5585         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5586         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
5587         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5588         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
5589         (gl_PREREQ_INET_PTON): ... from here.
5590         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
5591         gl_PREREQ_INET_PTON here.
5592         (Depends-on): Update condition.
5593
5594 2011-05-08  Bruno Haible  <bruno@clisp.org>
5595
5596         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5597         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
5598         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5599         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
5600         (gl_PREREQ_INET_NTOP): ... from here.
5601         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
5602         gl_PREREQ_INET_NTOP here.
5603         (Depends-on): Update condition.
5604
5605 2011-05-08  Bruno Haible  <bruno@clisp.org>
5606
5607         iconv_open: Move AC_LIBOBJ invocations to module description.
5608         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
5609         AC_LIBOBJ invocations from here...
5610         * modules/iconv_open (configure.ac): ... to here.
5611
5612 2011-05-08  Bruno Haible  <bruno@clisp.org>
5613
5614         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
5615         If module 'iconv_open' is among the main modules and module
5616         'iconv_open-utf' is among the tests dependencies, then
5617         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
5618         return the special iconv_t values. Therefore iconv() and iconv_close()
5619         must support these special iconv_t values, already in lib, not only in
5620         tests.
5621         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
5622         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
5623         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
5624         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
5625         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
5626         (Depends-on): Add the dependencies of iconv_open-utf.
5627         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
5628         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
5629         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
5630
5631 2011-05-08  Bruno Haible  <bruno@clisp.org>
5632
5633         group-member: Move AC_LIBOBJ invocations to module description.
5634         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
5635         gl_PREREQ_GROUP_MEMBER invocations from here...
5636         * modules/group-member (configure.ac): ... to here.
5637
5638 2011-05-08  Bruno Haible  <bruno@clisp.org>
5639
5640         grantpt: Move AC_LIBOBJ invocations to module description.
5641         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
5642         invocations from here...
5643         * modules/grantpt (configure.ac): ... to here.
5644
5645 2011-05-08  Bruno Haible  <bruno@clisp.org>
5646
5647         glob: Move AC_LIBOBJ invocations to module description.
5648         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
5649         from here...
5650         * modules/glob (configure.ac): ... to here.
5651
5652 2011-05-08  Bruno Haible  <bruno@clisp.org>
5653
5654         getusershell: Move AC_LIBOBJ invocations to module description.
5655         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
5656         Move AC_LIBOBJ invocation from here...
5657         * modules/getusershell (configure.ac): ... to here.
5658         (Depends-on): Update condition.
5659
5660 2011-05-08  Bruno Haible  <bruno@clisp.org>
5661
5662         gettimeofday: Move AC_LIBOBJ invocations to module description.
5663         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
5664         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
5665         gl_PREREQ_GETTIMEOFDAY invocations from here...
5666         * modules/gettimeofday (configure.ac): ... to here.
5667
5668 2011-05-08  Bruno Haible  <bruno@clisp.org>
5669
5670         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
5671         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
5672         just gl_FUNC_TZSET.
5673         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
5674         (gl_FUNC_TZSET_CLOBBER): Remove actions.
5675         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
5676         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
5677
5678 2011-05-08  Bruno Haible  <bruno@clisp.org>
5679
5680         getsubopt: Move AC_LIBOBJ invocations to module description.
5681         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
5682         gl_PREREQ_GETSUBOPT invocations from here...
5683         * modules/getsubopt (configure.ac): ... to here.
5684
5685 2011-05-08  Bruno Haible  <bruno@clisp.org>
5686
5687         getpass-gnu: Move AC_LIBOBJ invocations to module description.
5688         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
5689         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
5690         * modules/getpass-gnu (configure.ac): ... to here.
5691
5692 2011-05-08  Bruno Haible  <bruno@clisp.org>
5693
5694         getpass: Move AC_LIBOBJ invocations to module description.
5695         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
5696         gl_PREREQ_GETPASS invocations from here...
5697         * modules/getpass (configure.ac): ... to here.
5698
5699 2011-05-08  Bruno Haible  <bruno@clisp.org>
5700
5701         getpagesize: Move AC_LIBOBJ invocations to module description.
5702         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
5703         from here...
5704         * modules/getpagesize (configure.ac): ... to here.
5705
5706 2011-05-08  Bruno Haible  <bruno@clisp.org>
5707
5708         getopt: Move AC_LIBOBJ invocations to module description.
5709         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
5710         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
5711         invocations from here...
5712         * modules/getopt-gnu (configure.ac): ... to here.
5713         * modules/getopt-posix (configure.ac): ... and here.
5714         (Depends-on): Update condition.
5715
5716 2011-05-08  Bruno Haible  <bruno@clisp.org>
5717
5718         getopt, argp: Respect rules for use of AC_LIBOBJ.
5719         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
5720         (gl_REPLACE_GETOPT_ALWAYS): New macro.
5721         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
5722         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
5723
5724 2011-05-08  Bruno Haible  <bruno@clisp.org>
5725
5726         getlogin_r: Move AC_LIBOBJ invocations to module description.
5727         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
5728         gl_PREREQ_GETLOGIN_R invocations from here...
5729         * modules/getlogin_r (configure.ac): ... to here.
5730
5731 2011-05-08  Bruno Haible  <bruno@clisp.org>
5732
5733         getlogin: Move AC_LIBOBJ invocations to module description.
5734         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
5735         here...
5736         * modules/getlogin (configure.ac): ... to here.
5737
5738 2011-05-08  Bruno Haible  <bruno@clisp.org>
5739
5740         getloadavg: Move AC_LIBOBJ invocations to module description.
5741         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
5742         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
5743         * modules/getloadavg (configure.ac): ... to here.
5744
5745 2011-05-08  Bruno Haible  <bruno@clisp.org>
5746
5747         gethrxtime: Move AC_LIBOBJ invocations to module description.
5748         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
5749         LIB_GETHRXTIME from here...
5750         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
5751         invocations from here...
5752         * modules/gethrxtime (configure.ac): ... to here.
5753
5754 2011-05-08  Bruno Haible  <bruno@clisp.org>
5755
5756         gethostname: Move AC_LIBOBJ invocations to module description.
5757         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
5758         gl_PREREQ_GETHOSTNAME invocations from here...
5759         * modules/gethostname (configure.ac): ... to here.
5760
5761 2011-05-08  Bruno Haible  <bruno@clisp.org>
5762
5763         getgroups: Move AC_LIBOBJ invocations to module description.
5764         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
5765         here...
5766         * modules/getgroups (configure.ac): ... to here.
5767
5768 2011-05-08  Bruno Haible  <bruno@clisp.org>
5769
5770         getdtablesize: Move AC_LIBOBJ invocations to module description.
5771         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
5772         invocation from here...
5773         * modules/getdtablesize (configure.ac): ... to here.
5774
5775 2011-05-08  Bruno Haible  <bruno@clisp.org>
5776
5777         getdomainname: Move AC_LIBOBJ invocations to module description.
5778         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
5779         gl_PREREQ_GETDOMAINNAME invocations from here...
5780         * modules/getdomainname (configure.ac): ... to here.
5781
5782 2011-05-08  Bruno Haible  <bruno@clisp.org>
5783
5784         getline: Move AC_LIBOBJ invocations to module description.
5785         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
5786         invocations from here...
5787         * modules/getline (configure.ac): ... to here.
5788
5789 2011-05-08  Bruno Haible  <bruno@clisp.org>
5790
5791         getline: Simplify.
5792         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
5793         It's already handled through the module dependency.
5794
5795 2011-05-08  Bruno Haible  <bruno@clisp.org>
5796
5797         getdelim: Move AC_LIBOBJ invocations to module description.
5798         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
5799         and gl_PREREQ_GETDELIM invocations from here...
5800         * modules/getdelim (configure.ac): ... to here.
5801         (Depends-on): Fix condition.
5802
5803 2011-05-08  Bruno Haible  <bruno@clisp.org>
5804
5805         getcwd: Move AC_LIBOBJ invocations to module description.
5806         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
5807         invocations from here...
5808         * modules/getcwd (configure.ac): ... to here.
5809
5810 2011-05-08  Bruno Haible  <bruno@clisp.org>
5811
5812         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
5813         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
5814         here...
5815         * modules/getcwd-lgpl (configure.ac): ... to here.
5816
5817 2011-05-07  Bruno Haible  <bruno@clisp.org>
5818
5819         crypto/gc: Move AC_LIBOBJ invocations to module description.
5820         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
5821         * modules/crypto/gc (configure.ac): ... to here.
5822
5823 2011-05-07  Bruno Haible  <bruno@clisp.org>
5824
5825         fwriting: Move AC_LIBOBJ invocations to module description.
5826         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
5827         here...
5828         * modules/fwriting (configure.ac): ... to here.
5829
5830 2011-05-07  Bruno Haible  <bruno@clisp.org>
5831
5832         fwritable: Move AC_LIBOBJ invocations to module description.
5833         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
5834         here...
5835         * modules/fwritable (configure.ac): ... to here.
5836
5837 2011-05-07  Bruno Haible  <bruno@clisp.org>
5838
5839         futimens: Move AC_LIBOBJ invocations to module description.
5840         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
5841         here...
5842         * modules/futimens (configure.ac): ... to here.
5843
5844 2011-05-07  Bruno Haible  <bruno@clisp.org>
5845
5846         ftruncate: Move AC_LIBOBJ invocations to module description.
5847         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
5848         gl_PREREQ_FTRUNCATE invocations from here...
5849         * modules/ftruncate (configure.ac): ... to here.
5850
5851 2011-05-07  Bruno Haible  <bruno@clisp.org>
5852
5853         fsync: Move AC_LIBOBJ invocations to module description.
5854         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
5855         invocations from here...
5856         * modules/fsync (configure.ac): ... to here.
5857
5858 2011-05-07  Bruno Haible  <bruno@clisp.org>
5859
5860         fsusage: Move AC_LIBOBJ invocations to module description.
5861         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
5862         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
5863         * modules/fsusage (configure.ac): ... to here.
5864
5865 2011-05-07  Bruno Haible  <bruno@clisp.org>
5866
5867         freopen: Move AC_LIBOBJ invocations to module description.
5868         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
5869         invocations from here...
5870         * modules/freopen (configure.ac): ... to here.
5871
5872 2011-05-07  Bruno Haible  <bruno@clisp.org>
5873
5874         free: Move AC_LIBOBJ invocations to module description.
5875         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
5876         invocations from here...
5877         * modules/free (configure.ac): ... to here.
5878
5879 2011-05-07  Bruno Haible  <bruno@clisp.org>
5880
5881         freadable: Move AC_LIBOBJ invocations to module description.
5882         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
5883         here...
5884         * modules/freadable (configure.ac): ... to here.
5885
5886 2011-05-07  Bruno Haible  <bruno@clisp.org>
5887
5888         fpurge: Move AC_LIBOBJ invocations to module description.
5889         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
5890         invocations from here...
5891         * modules/fpurge (configure.ac): ... to here.
5892
5893 2011-05-07  Bruno Haible  <bruno@clisp.org>
5894
5895         fpending: Move AC_LIBOBJ invocations to module description.
5896         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
5897         gl_FUNC_FPENDING.
5898         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
5899         invocations from here...
5900         * modules/fpending (configure.ac): ... to here.
5901
5902 2011-05-07  Bruno Haible  <bruno@clisp.org>
5903
5904         fopen: Move AC_LIBOBJ invocations to module description.
5905         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
5906         invocations from here...
5907         * modules/fopen (configure.ac): ... to here.
5908
5909 2011-05-07  Bruno Haible  <bruno@clisp.org>
5910
5911         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
5912         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
5913         gl_FUNC_FNMATCH_POSIX.
5914         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
5915         invocations from here...
5916         * modules/fnmatch (configure.ac): ... to here.
5917         * modules/fnmatch-gnu (configure.ac): ... and here.
5918
5919 2011-05-07  Bruno Haible  <bruno@clisp.org>
5920
5921         flock: Move AC_LIBOBJ invocations to module description.
5922         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
5923         invocations from here...
5924         * modules/flock (configure.ac): ... to here.
5925
5926 2011-05-07  Bruno Haible  <bruno@clisp.org>
5927
5928         fileblocks: Move AC_LIBOBJ invocations to module description.
5929         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
5930         gl_PREREQ_FILEBLOCKS invocations from here...
5931         * modules/fileblocks (configure.ac): ... to here.
5932
5933 2011-05-06  Bruno Haible  <bruno@clisp.org>
5934
5935         fflush: Move AC_LIBOBJ invocations to module description.
5936         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
5937         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
5938         invocations from here...
5939         * modules/fflush (configure.ac): ... to here.
5940
5941 2011-05-06  Bruno Haible  <bruno@clisp.org>
5942
5943         fdopendir: Move AC_LIBOBJ invocations to module description.
5944         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
5945         here...
5946         * modules/fdopendir (configure.ac): ... to here.
5947         (Depends-on): Improve conditions.
5948
5949 2011-05-06  Bruno Haible  <bruno@clisp.org>
5950
5951         _Exit: Move AC_LIBOBJ invocations to module description.
5952         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
5953         invocations from here...
5954         * modules/_Exit (configure.ac): ... to here.
5955
5956 2011-05-21  Bruno Haible  <bruno@clisp.org>
5957
5958         euidaccess: Respect rules for use of AC_LIBOBJ.
5959         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5960         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
5961         from here...
5962         * modules/euidaccess (configure.ac): ... to here.
5963
5964 2011-05-06  Bruno Haible  <bruno@clisp.org>
5965
5966         error: Move AC_LIBOBJ invocations to module description.
5967         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
5968         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
5969         invocations from here...
5970         * modules/error (configure.ac): ... to here.
5971
5972 2011-05-06  Bruno Haible  <bruno@clisp.org>
5973
5974         duplocale: Move AC_LIBOBJ invocations to module description.
5975         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5976         gl_PREREQ_DUPLOCALE invocations from here...
5977         * modules/duplocale (configure.ac): ... to here.
5978
5979 2011-05-05  Bruno Haible  <bruno@clisp.org>
5980
5981         dirfd: Move AC_LIBOBJ invocations to module description.
5982         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5983         gl_FUNC_DIRFD.
5984         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5985         here...
5986         * modules/dirfd (configure.ac): ... to here.
5987         (Depends-on): Fix condition.
5988
5989 2011-05-05  Bruno Haible  <bruno@clisp.org>
5990
5991         chown: Respect rules for use of AC_LIBOBJ.
5992         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5993         * modules/chown (configure.ac): ... to here.
5994
5995 2011-05-05  Bruno Haible  <bruno@clisp.org>
5996
5997         chdir-long: Move AC_LIBOBJ invocations to module description.
5998         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5999         gl_PREREQ_CHDIR_LONG invocations from here...
6000         * modules/chdir-long (configure.ac): ... to here.
6001
6002 2011-05-05  Bruno Haible  <bruno@clisp.org>
6003
6004         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
6005         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
6006         from here...
6007         * modules/canonicalize-lgpl (configure.ac): ... to here.
6008
6009 2011-05-05  Bruno Haible  <bruno@clisp.org>
6010
6011         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
6012         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
6013         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
6014         REPLACE_CALLOC.
6015         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
6016         * modules/calloc-gnu (configure.ac): Likewise.
6017
6018 2011-05-05  Bruno Haible  <bruno@clisp.org>
6019
6020         btowc: Move AC_LIBOBJ invocations to module description.
6021         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
6022         invocations from here...
6023         * modules/btowc (configure.ac): ... to here.
6024
6025 2011-05-21  Bruno Haible  <bruno@clisp.org>
6026
6027         atexit: Move AC_LIBOBJ invocations to module description.
6028         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
6029         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
6030         here...
6031         * modules/atexit (configure.ac): ... to here.
6032
6033 2011-05-05  Bruno Haible  <bruno@clisp.org>
6034
6035         atoll: Move AC_LIBOBJ invocations to module description.
6036         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
6037         invocations from here...
6038         * modules/atoll (configure.ac): ... to here.
6039
6040 2011-05-05  Bruno Haible  <bruno@clisp.org>
6041
6042         argz: Move AC_LIBOBJ invocations to module description.
6043         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
6044         * modules/argz (configure.ac): ... to here.
6045
6046 2011-05-05  Bruno Haible  <bruno@clisp.org>
6047
6048         alphasort: Move AC_LIBOBJ invocations to module description.
6049         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
6050         gl_PREREQ_ALPHASORT invocations from here...
6051         * modules/alphasort (configure.ac): ... to here.
6052
6053 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
6054
6055         verify: new macro verify_expr; verify_true deprecated
6056         * NEWS: Mention this.
6057         * doc/verify.texi (Compile-time Assertions): Document this.
6058         * lib/verify.h (verify_true): Deprecate.
6059         (verify_expr): New macro.
6060         * tests/test-verify.c (function): Test verify_expr.
6061
6062 2011-06-14  Jim Meyering  <meyering@redhat.com>
6063
6064         init.sh: give more portable redirection-related advice in a comment
6065         * tests/init.sh (stderr_fileno_): Update the advice in comments.
6066         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
6067         for lots of discussion.  Stefano Lattarini suggested the solution
6068         of putting "9>&2" after the command.  Reported by Bruno Haible.
6069
6070 2011-06-13  Bruno Haible  <bruno@clisp.org>
6071
6072         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
6073         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
6074         'none'.
6075
6076 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
6077
6078         ftoastr: use strtof only if HAVE_STRTOF
6079         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
6080         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
6081         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
6082         * modules/ftoastr (configure.ac): Check for strtof.
6083
6084 2011-06-13  Bruno Haible  <bruno@clisp.org>
6085
6086         gnulib-tool: Addendum to 2011-06-08 commit.
6087         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
6088         and --witness-c-macro have been given, augment AM_CPPFLAGS.
6089
6090 2011-06-13  Bruno Haible  <bruno@clisp.org>
6091
6092         fseeko: Provide a non-inline replacement of fseek().
6093         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
6094         * modules/fseeko (Depends-on): Add fseek.
6095         * modules/fseek (License): Change to LGPLv2+.
6096
6097 2011-06-13  Bruno Haible  <bruno@clisp.org>
6098
6099         ftello: Provide a non-inline replacement of ftell().
6100         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
6101         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
6102         not have ftello() (such as on mingw).
6103         * modules/ftello (Depends-on): Add ftell.
6104         * modules/ftell (License): Change to LGPLv2+.
6105
6106 2011-05-07  Bruno Haible  <bruno@clisp.org>
6107
6108         ftell: Move AC_LIBOBJ invocations to module description.
6109         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
6110         * modules/ftell (configure.ac): ... to here.
6111
6112 2011-05-07  Bruno Haible  <bruno@clisp.org>
6113
6114         ftello: Respect rules for use of AC_LIBOBJ.
6115         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
6116         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
6117         here...
6118         * modules/ftello (configure.ac): ... to here.
6119
6120 2011-05-07  Bruno Haible  <bruno@clisp.org>
6121
6122         fseeko: Simplify.
6123         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
6124         (gl_FUNC_FSEEKO): Inline it here.
6125
6126 2011-05-07  Bruno Haible  <bruno@clisp.org>
6127
6128         fseek: Move AC_LIBOBJ invocations to module description.
6129         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
6130         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
6131         * modules/fseek (configure.ac): ... to here.
6132
6133 2011-05-07  Bruno Haible  <bruno@clisp.org>
6134
6135         fseek: Respect rules for use of AC_LIBOBJ.
6136         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
6137         here...
6138         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
6139
6140 2011-05-07  Bruno Haible  <bruno@clisp.org>
6141
6142         fseeko: Respect rules for use of AC_LIBOBJ.
6143         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
6144         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
6145         here...
6146         * modules/fseeko (configure.ac): ... to here.
6147
6148 2011-06-13  Bruno Haible  <bruno@clisp.org>
6149
6150         gnulib-tool: Allow comments in the 'Depends-on' section.
6151         * doc/gnulib.texi (Module description): Mention comment syntax in the
6152         Depends-on section.
6153         * gnulib-tool (func_get_dependencies): Filter out comment lines.
6154
6155 2011-06-13  Bruno Haible  <bruno@clisp.org>
6156
6157         file-set.h: guard __attibute__ use, now that it's not always defined
6158         * lib/file-set.h (record_file): Use __attribute__ only with compiler
6159         versions that support it.  This fixes a coreutils build failure with
6160         the vendor cc on HP-UX 11.31.
6161
6162 2011-06-12  Bruno Haible  <bruno@clisp.org>
6163
6164         acl: Add support for HP-UX >= 11.11 JFS ACLs.
6165         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
6166         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
6167         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
6168         (acl, aclsort): New declarations.
6169         (aclv_nontrivial): New declaration.
6170         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
6171         (file_has_acl): Read also the second kind of HP-UX ACLs.
6172         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
6173         kind of HP-UX ACLs if the first kind fails.
6174         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
6175         second kind of HP-UX ACLs.
6176         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
6177         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
6178         agree.
6179         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6180         hpuxjfs.
6181         Handle hpuxjfs.
6182         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6183         hpuxjfs.
6184         Handle hpuxjfs.
6185         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6186         (func_test_same_acls): Use both lsacl and getacl.
6187         Handle hpuxjfs.
6188         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6189         (func_test_same_acls): Use both lsacl and getacl.
6190         Handle hpuxjfs.
6191
6192 2011-06-12  Bruno Haible  <bruno@clisp.org>
6193
6194         acl: Complete the 2010-08-10 fix.
6195         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
6196         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
6197         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
6198         explicitly.
6199         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
6200         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
6201
6202 2011-06-12  Bruno Haible  <bruno@clisp.org>
6203
6204         spawn-pipe tests: Comments.
6205         * tests/test-spawn-pipe-child.c (main): Update comment.
6206         Reported by James Youngman <jay@gnu.org>.
6207
6208 2011-06-11  James Youngman  <jay@gnu.org>
6209
6210         New module 'stat-size'.
6211         * modules/stat-size: New module.  Provides macros for accessing
6212         file size information in instances of struct stat.  Depends on the
6213         fileblocks module because it calls st_blocks.
6214         * lib/stat-size.h: New file, adapted from coreutils' system.h.
6215         * doc/gnulib.texi: Include stat-size.texi.
6216         * doc/stat-size.texi: Documentation for this module.
6217         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
6218         * m4/fileblocks.m4: Mention that stat-size depends on the call to
6219         AC_STRUCT_ST_BLOCKS.
6220
6221 2011-06-09  Bruno Haible  <bruno@clisp.org>
6222
6223         thread: Support pthreads-win32.
6224         * lib/glthread/thread.h (gl_thread_self): Define differently on
6225         pthreads-win32.
6226         (gl_null_thread): New declaration.
6227         (gl_thread_self_pointer): New macro.
6228         * lib/glthread/thread.c (gl_null_thread): New constant.
6229         * tests/test-lock.c: Use gl_thread_self_pointer instead of
6230         gl_thread_self.
6231         * tests/test-tls.c: Likewise.
6232         Suggested by Paul Eggert. Reported by Eric Blake.
6233
6234 2011-06-09  Bruno Haible  <bruno@clisp.org>
6235
6236         thread: Fix confusion between NULL and 0.
6237         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
6238         Reported by Paul Eggert.
6239
6240 2011-06-09  Bruno Haible  <bruno@clisp.org>
6241
6242         spawn-pipe tests: Avoid test failure on HP-UX 11.
6243         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
6244         is closed.
6245
6246 2011-06-09  Bruno Haible  <bruno@clisp.org>
6247
6248         acl tests: Fix compilation error on HP-UX 11.
6249         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
6250
6251 2011-06-09  Bruno Haible  <bruno@clisp.org>
6252
6253         rmdir: Avoid test failure on HP-UX 10.20.
6254         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
6255         EEXIST.
6256
6257 2011-06-08  Eric Blake  <eblake@redhat.com>
6258
6259         perror: fix test on mingw
6260         * modules/perror-tests (Depends-on): Add dup2.
6261
6262         strerror_r-posix: fix on MacOS
6263         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
6264         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
6265         logic bug.
6266         * lib/strerror_r.c (strerror_r): Fix the bug.
6267         * lib/strerror.c (strerror): Likewise.
6268         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6269         problem.
6270         * doc/posix-functions/strerror.texi (strerror): Likewise.
6271         * doc/posix-functions/perror.texi (perror): Likewise.
6272         * tests/test-strerror.c (main): Enhance test.
6273         * tests/test-strerror_r.c (main): Likewise.
6274
6275 2011-06-08  Bruno Haible  <bruno@clisp.org>
6276
6277         gnulib-tool: Better isolation between different gnulib-tool invocations.
6278         * gnulib-tool: New option --witness-c-macro.
6279         (witness_c_macro): New variable.
6280         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
6281         AM_CPPFLAGS define it as a C macro.
6282         (func_emit_tests_Makefile_am): Likewise.
6283         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
6284         read it from there.
6285         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
6286         m4_define, not AC_DEFUN.
6287         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
6288         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
6289         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
6290         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
6291         s|...|...|, to substitute the values of the GNULIB_* module indicator
6292         variables.
6293         * modules/dirent (Makefile.am): Likewise.
6294         * modules/fcntl-h (Makefile.am): Likewise.
6295         * modules/iconv-h (Makefile.am): Likewise.
6296         * modules/langinfo (Makefile.am): Likewise.
6297         * modules/locale (Makefile.am): Likewise.
6298         * modules/math (Makefile.am): Likewise.
6299         * modules/netdb (Makefile.am): Likewise.
6300         * modules/poll-h (Makefile.am): Likewise.
6301         * modules/pty (Makefile.am): Likewise.
6302         * modules/search (Makefile.am): Likewise.
6303         * modules/signal (Makefile.am): Likewise.
6304         * modules/spawn (Makefile.am): Likewise.
6305         * modules/stdio (Makefile.am): Likewise.
6306         * modules/stdlib (Makefile.am): Likewise.
6307         * modules/string (Makefile.am): Likewise.
6308         * modules/sys_ioctl (Makefile.am): Likewise.
6309         * modules/sys_select (Makefile.am): Likewise.
6310         * modules/sys_socket (Makefile.am): Likewise.
6311         * modules/sys_stat (Makefile.am): Likewise.
6312         * modules/sys_times (Makefile.am): Likewise.
6313         * modules/sys_utsname (Makefile.am): Likewise.
6314         * modules/sys_wait (Makefile.am): Likewise.
6315         * modules/termios (Makefile.am): Likewise.
6316         * modules/time (Makefile.am): Likewise.
6317         * modules/unistd (Makefile.am): Likewise.
6318         * modules/wchar (Makefile.am): Likewise.
6319
6320 2011-06-08  Eric Blake  <eblake@redhat.com>
6321
6322         strerror: simplify replacement
6323         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
6324         * modules/strerror (configure.ac): No prereqs needed here...
6325         * modules/strerror-override (configure.ac): ...but this needs it.
6326         (Files): Add file for needed prereq macro.
6327
6328 2011-06-08  Bruno Haible  <bruno@clisp.org>
6329
6330         strerror_r-posix: Tweaks.
6331         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
6332         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
6333         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
6334         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
6335         (gl_FUNC_STRERROR_R): ... to here.
6336         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
6337
6338 2011-06-07  Eric Blake  <eblake@redhat.com>
6339
6340         perror: document fixed bugs
6341         * doc/posix-functions/perror.texi (perror): Document recent
6342         patches.
6343
6344 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
6345
6346         stat-time: get_stat_birthtime failure is better-defined
6347         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
6348         return a timestamp whose tv_sec and tv_nsec values are both -1.
6349         Previously, the spec said only that the tv_nsec value was negative.
6350         This upward-compatible change simplifies GNU tar a bit.
6351
6352 2011-06-07  Eric Blake  <eblake@redhat.com>
6353
6354         strerror_r-posix: work around cygwin 1.7.9
6355         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
6356         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
6357         bug without replacing strerror_r.
6358         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
6359         strerror_r is buggy, but without requiring strerror_r compilation.
6360         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
6361
6362         test-perror: relax test to ignore cygwin bug
6363         * tests/test-perror2.c (main): Relax test on requiring detection
6364         of stream errors, and use unbuffered stream.
6365         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
6366         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
6367         * doc/posix-functions/fputc.texi (fputc): Likewise.
6368         * doc/posix-functions/fputs.texi (fputs): Likewise.
6369         * doc/posix-functions/fputws.texi (fputws): Likewise.
6370         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
6371         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
6372         * doc/posix-functions/getopt.texi (getopt): Likewise.
6373         * doc/posix-functions/perror.texi (perror): Likewise.
6374         * doc/posix-functions/printf.texi (printf): Likewise.
6375         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
6376         * doc/posix-functions/psignal.texi (psignal): Likewise.
6377         * doc/posix-functions/putc.texi (putc): Likewise.
6378         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
6379         Likewise.
6380         * doc/posix-functions/putchar.texi (putchar): Likewise.
6381         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
6382         Likewise.
6383         * doc/posix-functions/puts.texi (puts): Likewise.
6384         * doc/posix-functions/putwc.texi (putwc): Likewise.
6385         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
6386         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6387         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6388         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
6389         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6390         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
6391         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
6392         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
6393
6394 2011-05-22  Bruno Haible  <bruno@clisp.org>
6395
6396         strerror: Move AC_LIBOBJ invocations to module description.
6397         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
6398         gl_PREREQ_STRERROR invocations from here...
6399         * modules/strerror (configure.ac): ... to here.
6400
6401 2011-05-21  Bruno Haible  <bruno@clisp.org>
6402
6403         perror: Use common idiom.
6404         * modules/perror (configure.ac): Reorder statements.
6405
6406 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6407
6408         tests: fix usage message in 'mktempd_'
6409         * tests/init.sh (mktempd_): In the usage message, use literal
6410         'mktempd_', not '$ME' (which is even undefined), as the name of
6411         the subroutine.
6412
6413 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6414
6415         tests init: new function 'fatal_', for hard errors
6416         Before this patch, the only way offered by tests/init.sh to
6417         properly signal a hard error was the `framework_failure_'
6418         function.  But the error message issued by that function,
6419         as its name would suggest, refers to a set-up failure in the
6420         testsuite, while hard errors can obviously also be due to
6421         other reasons.  The best way to fix this inconsistency is to
6422         introduce a new function with a more general error message.
6423         * tests/init.sh (fatal_): New function.
6424
6425 2011-06-06  Eric Blake  <eblake@redhat.com>
6426
6427         canonicalize-lgpl: use common idiom
6428         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
6429         over newer POSIX -Rf.
6430         Reported by Bruno Haible.
6431
6432         canonicalize-lgpl: work around AIX realpath bug
6433         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
6434         * doc/posix-functions/realpath.texi (realpath): Document it.
6435         Reported by Bruno Haible.
6436
6437         strerror: work around FreeBSD bug
6438         * lib/strerror.c (strerror): Special case 0.
6439         Reported by Bruno Haible.
6440
6441         strerror-override: avoid bloating errno module
6442         * modules/errno (Files, configure.ac): Move replacement strings...
6443         * modules/strerror-override: ...to new module.
6444         * modules/strerror (Depends-on): Add strerror-override.
6445         * modules/strerror_r-posix (Depends-on): Likewise.
6446         * MODULES.html.sh: Document new module.
6447         Reported by Bruno Haible.
6448
6449 2011-06-06  Bruno Haible  <bruno@clisp.org>
6450
6451         spawn-pipe tests: Rename program.
6452         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
6453         * tests/test-spawn-pipe-child.c: Update comment.
6454         * tests/test-spawn-pipe.sh: Update.
6455         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
6456
6457         spawn-pipe tests: Link the child program only against libc.
6458         * tests/test-spawn-pipe-child.c: New file, extracted from
6459         tests/test-spawn-pipe.c.
6460         (main): Expect only one argument.
6461         (is_open): New function, copied from tests/test-pipe.c.
6462         * tests/test-spawn-pipe.c: Don't include <errno.h>.
6463         (child_main): Remove function.
6464         (test_pipe): Pass only one argument to the child program.
6465         (main): Remove child process code. Expect the child program's name as
6466         first argument.
6467         * tests/test-spawn-pipe.sh: Pass the child program's name as first
6468         argument.
6469         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
6470         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
6471         test-spawn-pipe-child against no libraries.
6472
6473 2011-06-06  Bruno Haible  <bruno@clisp.org>
6474
6475         careadlinkat: Avoid mismatch between ssize_t and int.
6476         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
6477         * lib/careadlinkat.c (careadlinkatcwd): Define always.
6478
6479 2011-06-06  Jim Meyering  <meyering@redhat.com>
6480
6481         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
6482         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
6483         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
6484
6485 2011-06-05  Bruno Haible  <bruno@clisp.org>
6486
6487         ansi-c++-opt: Interoperability with libtool.
6488         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
6489         set the variable to "no", not to ":".
6490         * NEWS: Mention the change.
6491
6492 2011-06-05  Bruno Haible  <bruno@clisp.org>
6493
6494         acl: Fix test failure on AIX 7.
6495         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
6496         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
6497
6498 2011-06-05  Bruno Haible  <bruno@clisp.org>
6499
6500         pipe-filter-ii: Fix test failure on AIX and IRIX.
6501         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
6502         with EAGAIN, retry with a smaller buffer size.
6503
6504 2011-06-05  Bruno Haible  <bruno@clisp.org>
6505
6506         localename: Fix link dependencies.
6507         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
6508         * modules/localename-tests (Makefile.am): Link test-localename with
6509         $(LIBTHREAD).
6510
6511 2011-06-05  Bruno Haible  <bruno@clisp.org>
6512
6513         error: Avoid gcc warning.
6514         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
6515
6516 2011-06-05  Bruno Haible  <bruno@clisp.org>
6517
6518         unsetenv: Avoid gcc warning.
6519         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
6520
6521 2011-06-05  Bruno Haible  <bruno@clisp.org>
6522
6523         setenv: Avoid gcc warning.
6524         * lib/setenv.c (setenv): Provide declaration if system lacks it.
6525
6526 2011-06-05  Bruno Haible  <bruno@clisp.org>
6527
6528         sys_select: Ensure memset is declared also on AIX 7.
6529         * lib/sys_select.in.h: Include <string.h> also on AIX.
6530         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
6531         self-contained also on AIX 7.1.
6532
6533 2011-06-04  Jim Meyering  <meyering@redhat.com>
6534
6535         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
6536         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
6537         function name, "error".
6538         (_gl_translatable_diag_func_re): New configurable variable.
6539
6540 2011-06-04  Bruno Haible  <bruno@clisp.org>
6541
6542         getopt: Avoid gcc warning.
6543         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
6544
6545 2011-06-04  Bruno Haible  <bruno@clisp.org>
6546
6547         strerror_r: Fix comments.
6548         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
6549         commit.
6550
6551 2011-06-04  Bruno Haible  <bruno@clisp.org>
6552
6553         perror: Fix compilation error.
6554         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
6555         Undefine fprintf, not sprintf.
6556         * modules/perror (Depends-on): Remove intprops, verify.
6557
6558 2011-06-04  Bruno Haible  <bruno@clisp.org>
6559
6560         setlocale: Enable replacement on Cygwin 1.5.
6561         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
6562         Cygwin 1.5.x.
6563         * doc/posix-functions/setlocale.texi: Mention that the problem with the
6564         LC_CTYPE category also exists on Cygwin 1.5.x.
6565
6566 2011-06-04  Bruno Haible  <bruno@clisp.org>
6567
6568         strerror-override: Don't disable symbol renamings.
6569         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
6570         * lib/strerror-override.c: Include config.h.
6571         (strerror_override): Don't undefine.
6572
6573 2011-06-03  Bruno Haible  <bruno@clisp.org>
6574
6575         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
6576         * lib/localename.h: Update copyright header.
6577         * lib/localename.c: Likewise.
6578         * lib/relocatable.h: Likewise.
6579         * lib/relocatable.c: Likewise.
6580
6581 2011-06-02  Bruno Haible  <bruno@clisp.org>
6582
6583         doc: Fix a module name.
6584         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
6585
6586 2011-06-02  Bruno Haible  <bruno@clisp.org>
6587
6588         pipe2: Remove dependency on 'nonblocking' module.
6589         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
6590         O_NONBLOCK is defined by gnulib.
6591         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
6592         is zero.
6593         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
6594         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
6595         defined by gnulib.
6596         (get_nonblocking_flag): New function.
6597         (main): Test O_NONBLOCK flag only if it is nonzero.
6598         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
6599
6600 2011-06-03  Jim Meyering  <meyering@redhat.com>
6601
6602         maint: three new prohibit-header-without-use rules
6603         Prohibit use of cloexec.h, posixver.h, same.h without use.
6604         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
6605         (sc_prohibit_posixver_without_use): Likewise.
6606         (sc_prohibit_same_without_use): Likewise.
6607
6608 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
6609
6610         allocator: 'die' routine is now given requested size
6611         * lib/allocator.h (struct allocator.die): New size arg.
6612         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
6613         If the actual problem is an ssize_t limitation, not a size_t or
6614         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
6615
6616 2011-06-01  Eric Blake  <eblake@redhat.com>
6617
6618         strerror: drop strerror_r dependency
6619         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
6620         * lib/strerror-override.c (strerror_override): ...to new file.
6621         * lib/strerror-override.h: Add prototype.
6622         * lib/strerror-impl.h: Delete.
6623         * lib/strerror.c (strerror): New implementation.
6624         * modules/errno (Files): Add new files.
6625         (configure.ac): Compile new file as appropriate.
6626         * modules/strerror (Files): Drop unused file.
6627         (Depends-on): Drop strerror_r-posix.
6628         * MODULES.html.sh: Document strerror_r-posix.
6629         Requested by Sam Steingold.
6630
6631         perror: call strerror_r directly
6632         * modules/perror (Files): Drop strerror-impl.h.
6633         * lib/perror.c (perror): Use our own stack buffer, rather than
6634         calling a wrapper that uses static storage.
6635         * doc/posix-functions/perror.texi (perror): Document a limitation
6636         of our replacement.
6637
6638         strerror_r: fix includes for FreeBSD
6639         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
6640         since we use abort on some platforms.
6641         Reported by Matthias Bolte.
6642
6643 2011-05-31  Bruno Haible  <bruno@clisp.org>
6644
6645         Fix link errors in tests: openat-die uses gettext-h.
6646         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
6647         against $(LIBINTL).
6648         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
6649         against $(LIBINTL).
6650         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
6651         $(LIBINTL).
6652         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
6653         against $(LIBINTL).
6654         * modules/linkat-tests (Makefile.am): Link test-linkat against
6655         $(LIBINTL).
6656         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
6657         $(LIBINTL).
6658         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
6659         against $(LIBINTL).
6660         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
6661         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
6662         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
6663         $(LIBINTL).
6664         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
6665         $(LIBINTL).
6666         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
6667         $(LIBINTL).
6668         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6669
6670 2011-05-31  Bruno Haible  <bruno@clisp.org>
6671
6672         Fix link errors in tests: wait-process uses gettext-h.
6673         * modules/nonblocking-pipe-tests (Makefile.am): Set
6674         test_nonblocking_pipe_main_LDADD.
6675         * modules/nonblocking-socket-tests (Makefile.am): Link
6676         test-nonblocking-socket-main against $(LIBINTL).
6677         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6678
6679 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
6680
6681         assert-h: work around 'verify' incompatibility
6682         * lib/verify.h: Use @...@ directives, not ifdef.
6683         * modules/assert-h (assert.h): Implement the directives.
6684         (assert.h): Substitute the symbol-prefix more consistently.
6685
6686 2011-05-29  Jim Meyering  <meyering@redhat.com>
6687
6688         trim: remove three superfluous assignments
6689         * lib/trim.c (trim2): Remove three superfluous assignments
6690         and correct brace positioning.
6691
6692 2011-05-29  Bruno Haible  <bruno@clisp.org>
6693
6694         wctype-h: Avoid namespace pollution on Solaris 2.6.
6695         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
6696         identifiers.
6697         * doc/posix-headers/wctype.texi: Mention the problem.
6698         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6699
6700 2011-05-28  Jim Meyering  <meyering@redhat.com>
6701
6702         parse-datetime.y: accommodate -Wstrict-overflow
6703         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
6704         placate -Wstrict-overflow.
6705
6706         trim: avoid a warning from -O2 -Wstrict-overflow
6707         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
6708
6709 2011-05-29  Bruno Haible  <bruno@clisp.org>
6710
6711         gnulib-tool: Fix bug in yesterday's commit.
6712         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
6713         twice.
6714
6715 2011-05-29  Bruno Haible  <bruno@clisp.org>
6716
6717         Allow multiple gnulib generated include files to be combined.
6718         * gnulib-tool (func_compute_include_guard_prefix): New function.
6719         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
6720         ${gl_include_guard_prefix} references.
6721         (func_import, func_create_testdir): Invoke
6722         func_compute_include_guard_prefix.
6723         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
6724         * lib/ctype.in.h: Likewise.
6725         * lib/dirent.in.h: Likewise.
6726         * lib/errno.in.h: Likewise.
6727         * lib/fcntl.in.h: Likewise.
6728         * lib/float.in.h: Likewise.
6729         * lib/getopt.in.h: Likewise.
6730         * lib/iconv.in.h: Likewise.
6731         * lib/langinfo.in.h: Likewise.
6732         * lib/locale.in.h: Likewise.
6733         * lib/math.in.h: Likewise.
6734         * lib/netdb.in.h: Likewise.
6735         * lib/netinet_in.in.h: Likewise.
6736         * lib/poll.in.h: Likewise.
6737         * lib/pthread.in.h: Likewise.
6738         * lib/pty.in.h: Likewise.
6739         * lib/sched.in.h: Likewise.
6740         * lib/se-selinux.in.h: Likewise.
6741         * lib/search.in.h: Likewise.
6742         * lib/signal.in.h: Likewise.
6743         * lib/spawn.in.h: Likewise.
6744         * lib/stdarg.in.h: Likewise.
6745         * lib/stddef.in.h: Likewise.
6746         * lib/stdint.in.h: Likewise.
6747         * lib/stdio.in.h: Likewise.
6748         * lib/stdlib.in.h: Likewise.
6749         * lib/string.in.h: Likewise.
6750         * lib/strings.in.h: Likewise.
6751         * lib/sys_file.in.h: Likewise.
6752         * lib/sys_ioctl.in.h: Likewise.
6753         * lib/sys_select.in.h: Likewise.
6754         * lib/sys_socket.in.h: Likewise.
6755         * lib/sys_stat.in.h: Likewise.
6756         * lib/sys_time.in.h: Likewise.
6757         * lib/sys_times.in.h: Likewise.
6758         * lib/sys_uio.in.h: Likewise.
6759         * lib/sys_utsname.in.h: Likewise.
6760         * lib/sys_wait.in.h: Likewise.
6761         * lib/sysexits.in.h: Likewise.
6762         * lib/termios.in.h: Likewise.
6763         * lib/time.in.h: Likewise.
6764         * lib/unistd.in.h: Likewise.
6765         * lib/wchar.in.h: Likewise.
6766         * lib/wctype.in.h: Likewise.
6767         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
6768         * modules/ctype (Makefile.am): Likewise.
6769         * modules/dirent (Makefile.am): Likewise.
6770         * modules/errno (Makefile.am): Likewise.
6771         * modules/fcntl-h (Makefile.am): Likewise.
6772         * modules/float (Makefile.am): Likewise.
6773         * modules/getopt-posix (Makefile.am): Likewise.
6774         * modules/iconv-h (Makefile.am): Likewise.
6775         * modules/langinfo (Makefile.am): Likewise.
6776         * modules/locale (Makefile.am): Likewise.
6777         * modules/math (Makefile.am): Likewise.
6778         * modules/netdb (Makefile.am): Likewise.
6779         * modules/netinet_in (Makefile.am): Likewise.
6780         * modules/poll-h (Makefile.am): Likewise.
6781         * modules/pthread (Makefile.am): Likewise.
6782         * modules/pty (Makefile.am): Likewise.
6783         * modules/sched (Makefile.am): Likewise.
6784         * modules/search (Makefile.am): Likewise.
6785         * modules/selinux-h (Makefile.am): Likewise.
6786         * modules/signal (Makefile.am): Likewise.
6787         * modules/spawn (Makefile.am): Likewise.
6788         * modules/stdarg (Makefile.am): Likewise.
6789         * modules/stddef (Makefile.am): Likewise.
6790         * modules/stdint (Makefile.am): Likewise.
6791         * modules/stdio (Makefile.am): Likewise.
6792         * modules/stdlib (Makefile.am): Likewise.
6793         * modules/string (Makefile.am): Likewise.
6794         * modules/strings (Makefile.am): Likewise.
6795         * modules/sys_file (Makefile.am): Likewise.
6796         * modules/sys_ioctl (Makefile.am): Likewise.
6797         * modules/sys_select (Makefile.am): Likewise.
6798         * modules/sys_socket (Makefile.am): Likewise.
6799         * modules/sys_stat (Makefile.am): Likewise.
6800         * modules/sys_time (Makefile.am): Likewise.
6801         * modules/sys_times (Makefile.am): Likewise.
6802         * modules/sys_uio (Makefile.am): Likewise.
6803         * modules/sys_utsname (Makefile.am): Likewise.
6804         * modules/sys_wait (Makefile.am): Likewise.
6805         * modules/sysexits (Makefile.am): Likewise.
6806         * modules/termios (Makefile.am): Likewise.
6807         * modules/time (Makefile.am): Likewise.
6808         * modules/unistd (Makefile.am): Likewise.
6809         * modules/wchar (Makefile.am): Likewise.
6810         * modules/wctype-h (Makefile.am): Likewise.
6811         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
6812
6813 2011-05-29  Bruno Haible  <bruno@clisp.org>
6814
6815         assert-h: Allow multiple gnulib generated replacements to coexist.
6816         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
6817
6818 2011-05-29  Bruno Haible  <bruno@clisp.org>
6819
6820         argp: Allow coexistence with strerror_r-posix module.
6821         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
6822         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
6823         by gnulib's <string.h> replacement), assume it has the POSIX signature,
6824         not the glibc signature.
6825
6826 2011-05-28  Bruno Haible  <bruno@clisp.org>
6827
6828         gnulib-tool: Alternative structure of testdirs, similar to --import.
6829         * gnulib-tool: New option --single-configure.
6830         (func_usage): Document it.
6831         (single_configure): New variable.
6832         (func_modules_transitive_closure_separately,
6833         func_modules_transitive_closure_separately,
6834         func_determine_use_libtests, func_modules_add_dummy_separately,
6835         func_modules_to_filelist_separately): New functions, extracted from
6836         func_import.
6837         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
6838         (func_import): Use the new functions.
6839         (func_create_testdir): Set final_modules. Handle $single_configure =
6840         true case.
6841
6842 2011-05-28  Bruno Haible  <bruno@clisp.org>
6843
6844         getloadavg: Remove an unreliable safety check.
6845         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
6846         getloadavg.c is in place.
6847         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
6848         Reported by Sam Steingold <sds@gnu.org>.
6849
6850 2011-05-28  Bruno Haible  <bruno@clisp.org>
6851
6852         doc: Cleanup yet another file produced by texinfo.tex.
6853         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
6854
6855 2011-05-28  Bruno Haible  <bruno@clisp.org>
6856
6857         Finish the conditional dependencies mechanism.
6858         * gnulib-tool: New option --no-conditional-dependencies.
6859         (func_usage): Document it. Don't mark --conditional-dependencies as
6860         experimental.
6861         (cond_dependencies): The possible values can now be true, false, empty.
6862         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
6863         (func_import): Store setting in gnulib-cache.m4 and read it from there.
6864         * doc/gnulib-tool.texi (Conditional dependencies): New section.
6865
6866 2011-05-28  Bruno Haible  <bruno@clisp.org>
6867
6868         doc: Use a recent texinfo.tex.
6869         * doc/Makefile (tex_opts): New variable.
6870         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
6871
6872 2011-05-28  Jim Meyering  <meyering@redhat.com>
6873
6874         intprops.h: adjust comment to match code change
6875         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
6876         only once, it *may* have side effects.  Also fix an unrelated typo.
6877         (_GL_INT_SIGNED): Likewise.
6878
6879 2011-05-26  Simon Josefsson  <simon@josefsson.org>
6880
6881         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
6882
6883 2011-05-26  Bruno Haible  <bruno@clisp.org>
6884
6885         mbsrchr: Avoid collision with system function on Interix.
6886         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
6887         Reported by Markus Duft <mduft@gentoo.org>.
6888
6889 2011-05-15  James Youngman  <jay@gnu.org>
6890
6891         getopt: for ambiguous options, enumerate the possibilities.
6892         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
6893         the ambiguous options when an ambiguous prefix is given. This was
6894         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
6895         glibc change was
6896         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
6897
6898 2011-05-25  Eric Blake  <eblake@redhat.com>
6899
6900         getcwd: work around mingw bug
6901         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
6902         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6903         Reported by Matthias Bolte.
6904
6905 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6906
6907         test-intprops: disable -Wtype-limits diagnostics
6908         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
6909         diagnostics.  Otherwise, the integer overflow macros generate many
6910         diagnostics.  Reported by Jim Meyering in
6911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6912
6913         intprops: shorten, to pacify gcc -Woverlength-strings
6914         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
6915         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
6916         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
6917         likely to run afoul of C compiler limits for string constant lengths.
6918         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6919
6920 2011-05-24  Eric Blake  <eblake@redhat.com>
6921
6922         docs: document recently fixed glibc printf bug
6923         * doc/posix-functions/fprintf.texi (fprintf): Document it.
6924         * doc/posix-functions/printf.texi (printf): Likewise.
6925         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6926         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6927
6928         closein-tests: convert to init.sh
6929         * modules/closein-tests (Files): Add init.sh
6930         * tests/test-closein.sh Use it.
6931
6932         yesno-tests: convert to init.sh
6933         * modules/yesno-tests (Files): Add init.sh.
6934         * tests/test-yesno.sh: Use it.
6935
6936         atexit-tests: ensure reliable exit status
6937         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
6938         Reported by Bruno Haible.
6939
6940 2011-05-24  Bruno Haible  <bruno@clisp.org>
6941
6942         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
6943         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
6944         gl_PREREQ_STRERROR_R invocations from here...
6945         * modules/strerror_r-posix (configure.ac): ... to here.
6946
6947 2011-05-24  Eric Blake  <eblake@redhat.com>
6948
6949         strerror_r: fix missing header
6950         * lib/strerror_r.c: Avoid compiler warning about snprintf.
6951
6952         strerror_r: fix AIX test failures
6953         * lib/strerror_r.c (strerror_r): Convert silent truncation to
6954         ERANGE failure.
6955
6956         strerror_r: fix Solaris test failures
6957         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
6958         failures.
6959         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6960
6961         strerror_r: enforce POSIX recommendations
6962         * lib/strerror_r.c (safe_copy): New helper method.
6963         (strerror_r): Guarantee a non-empty string.
6964         * tests/test-strerror_r.c (main): Enhance tests to incorporate
6965         recent POSIX rulings and to match our strerror guarantees.
6966         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6967
6968 2011-05-24  Jim Meyering  <meyering@redhat.com>
6969
6970         test-perror2.c: avoid warning about unused variable
6971         * tests/test-perror2.c (main): Remove declaration of unused "fp".
6972
6973 2011-05-24  Eric Blake  <eblake@redhat.com>
6974
6975         perror: avoid spurious test failure on HP-UX
6976         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6977
6978         tests: fix logic bug in init.sh
6979         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6980         shell.
6981
6982 2011-05-24  Jim Meyering  <meyering@redhat.com>
6983
6984         utimensat: do not reference an out-of-scope buffer
6985         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6986         declared in an inner scope, yet "times" would be dereferenced outside
6987         the scope in which "ts" was valid.
6988         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6989         of ts[2] "out/up", so that the use of aliased "times" (via
6990         "times = ts;") does not end up referencing an out-of-scope "ts"
6991
6992         opendir-safer.c: don't clobber errno; don't close negative FD
6993         * lib/opendir-safer.c (opendir_safer):
6994         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6995         file descriptor, and more importantly, don't clobber the
6996         offending errno value with EINVAL.  Before, upon failure
6997         of dup_safer, we would pass the negative file descriptor to
6998         fdopendir, which would clobber errno.
6999
7000 2011-05-23  Bruno Haible  <bruno@clisp.org>
7001
7002         idcache: Fix module description.
7003         * modules/idcache (Include): Set to "idcache.h".
7004
7005 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7006
7007         gnulib-tool: fix portability problem with MacOS sed
7008         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
7009         before the "}".  Problem reported by Leo in
7010         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
7011         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
7012         sed_extract_condition1, sed_extract_condition2.
7013
7014 2011-05-23  Bruno Haible  <bruno@clisp.org>
7015
7016         hash: Simplify autoconf macro.
7017         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
7018
7019 2011-05-23  Bruno Haible  <bruno@clisp.org>
7020
7021         getugroups: Fix module description.
7022         * modules/getugroups (Include): Set to "getugroups.h".
7023
7024 2011-05-23  Bruno Haible  <bruno@clisp.org>
7025
7026         linkat: Simplify autoconf macro.
7027         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
7028
7029 2011-05-23  Bruno Haible  <bruno@clisp.org>
7030             Eric Blake  <eblake@redhat.com>
7031
7032         linkat, renameat: Update dependencies.
7033         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
7034         * modules/linkat (Depends-on): Likewise. Remove also readlink,
7035         symlinkat.
7036
7037 2011-05-23  Jim Meyering  <meyering@redhat.com>
7038
7039         maint.mk: more tight_scope improvements
7040         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
7041         (_gl_TS_headers): Define only in if-0'd block.
7042         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
7043         sometimes we must *not* use it.  Adjust uses accordingly.
7044         (sc_tight_scope): Use much simpler grep-based test to determine
7045         whether we skip this rule.
7046
7047         maint.mk: generalize/improve the tight-scope rule
7048         * top/maint.mk: Emit a warning when the test is skipped.
7049         (_gl_TS_dir): Add $(srcdir)/ prefix.
7050         (_gl_TS_function_match): Simplify, rather than trying
7051         to enumerate common types.  Otherwise, it would fail to match an
7052         "extern unsigned char const *" declaration in idutils.
7053         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
7054         a way to support use of that type of macro.
7055         (_gl_TS_var_match): Simplify regexp.
7056         (_gl_TS_obj_files): New configurable variable.
7057         (_gl_TS_headers): Likewise.
7058
7059 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7060
7061         verify: fix bug when gnulib <assert.h> is also included
7062         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
7063         is defined, not if _GL_STATIC_ASSERT_H is not defined.
7064         Perhaps there's a better way, but this fixes the immediate problem.
7065         Problem reported by Bruno Haible in
7066         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
7067
7068 2011-05-22  Bruno Haible  <bruno@clisp.org>
7069
7070         xgetcwd: Simplify autoconf macro.
7071         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
7072
7073 2011-05-22  Bruno Haible  <bruno@clisp.org>
7074
7075         New module 'mktime-internal'.
7076         * modules/mktime-internal: New file.
7077         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
7078         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
7079         mktime_internal as a C macro if libc has __mktime_internal.
7080         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
7081         conditions.
7082         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
7083
7084 2011-05-22  Bruno Haible  <bruno@clisp.org>
7085
7086         timegm: Correct mktime replacement statements.
7087         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
7088         defining mktime as a C macro. This completes a 2009-07-28 commit.
7089
7090 2011-05-22  Bruno Haible  <bruno@clisp.org>
7091
7092         timegm: Simplify autoconf macro.
7093         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
7094
7095 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
7096
7097         clock-time: change to LGPLv2+.
7098         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
7099         BSD-like but we have no mark for that; this is good enough for now.
7100
7101 2011-05-21  Bruno Haible  <bruno@clisp.org>
7102
7103         strerror_r: Fix comments.
7104         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
7105
7106 2011-05-21  Bruno Haible  <bruno@clisp.org>
7107
7108         relocatable-prog-wrapper: Fix possible link error.
7109         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
7110         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
7111         (gl_FUNC_SETENV): ... to here.
7112         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
7113         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
7114
7115 2011-05-21  Bruno Haible  <bruno@clisp.org>
7116
7117         relocatable-prog-wrapper: Assume strerror() exists.
7118         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
7119         m4/strerror.m4.
7120         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
7121         * lib/relocwrapper.c: Remove mention of strerror module.
7122         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
7123         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
7124         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
7125         C macro.
7126
7127 2011-05-21  Bruno Haible  <bruno@clisp.org>
7128
7129         select: Simplify replacement idiom.
7130         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
7131         Win32 platforms.
7132         * lib/sys_select.in.h (select): Simplify accordingly.
7133         * modules/select (Depends-on): Likewise.
7134
7135 2011-05-21  Bruno Haible  <bruno@clisp.org>
7136
7137         mkdir-p: Simplify autoconf macro.
7138         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
7139         gl_FUNC_LCHOWN.
7140
7141 2011-05-21  Eric Blake  <eblake@redhat.com>
7142
7143         strerror_r: avoid clobbering strerror on cygwin
7144         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
7145         fall back instead to sys_errlist.
7146         * modules/strerror (configure.ac): Add witness.
7147         * tests/test-strerror_r.c (main): Enhance test.
7148         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7149         * tests/test-perror2.c (main): Free memory before exit.
7150
7151 2011-05-21  Bruno Haible  <bruno@clisp.org>
7152
7153         mkdtemp: Use gnulib naming conventions.
7154         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
7155         * modules/mkdtemp (configure.ac): Update.
7156
7157 2011-05-20  Eric Blake  <eblake@redhat.com>
7158
7159         strerror_r: avoid corrupting errno on Solaris
7160         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
7161         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7162
7163         strerror_r: avoid compiler warning
7164         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
7165
7166         strerror_r: simplify AIX code
7167         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
7168
7169         test-perror: avoid spurious failure on FreeBSD
7170         * modules/perror-tests (Depends-on): Add strerror, now that
7171         strerror_r no longer pulls it in.
7172
7173 2011-05-20  Bruno Haible  <bruno@clisp.org>
7174
7175         strerror_r-posix: Remove unused dependencies.
7176         * modules/strerror_r-posix (Depends-on): Remove strerror.
7177         Reported by Eric Blake.
7178
7179 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
7180
7181         intprops: remove assumption about A|B representation
7182         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
7183         is a valid integer if both A and B are.  Although this is true for
7184         all known practical hosts, the C standard doesn't guarantee it,
7185         and the code need not assume it.  Also, this change may work around
7186         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
7187         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
7188
7189 2011-05-20  Eric Blake  <eblake@redhat.com>
7190
7191         perror: work around FreeBSD bug
7192         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
7193         is broken.  Move AC_LIBOBJ...
7194         * modules/perror (configure.ac): Here.
7195         * doc/posix-functions/perror.texi (perror): Document this.
7196         * tests/test-perror2.c (main): Enhance test.
7197
7198         test-perror: check for strerror interactions
7199         * tests/macros.h (STREQ): Add macro.
7200         * modules/perror-tests (Files): Add second test.
7201         * tests/test-perror2.c (main): New file.
7202         * doc/posix-functions/perror.texi (perror): Document glibc bug.
7203
7204         test-perror: rewrite to use init script
7205         * modules/perror-tests (Files): Add init.sh.
7206         * tests/test-perror.sh: Use temporary directory.
7207
7208 2011-05-20  Jim Meyering  <meyering@redhat.com>
7209
7210         maint: replace misused "a" with "an"
7211         * doc/intprops.texi: "a integer"
7212         * doc/regex.texi: "a explanation"
7213         * lib/alignof.h: "a object"
7214         * lib/argmatch.h: "a explanation"
7215         * lib/argp-help.c: "a option" and "a OPTION_DOC"
7216         * lib/stdint.in.h: "a integer"
7217         * lib/userspec.c: "a owner"
7218         * doc/gnulib.texi: Fix "a idea", and reword.
7219
7220 2011-05-19  Jim Meyering  <meyering@redhat.com>
7221
7222         maint: correct misuse of "a" and "an"
7223         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
7224         * lib/argp-help.c: "an docum...": s/an/a/
7225         * lib/argp-parse.c: "An vector": s/An/A/
7226         * lib/execute.c: "an native": s/an/a/
7227         * lib/spawn-pipe.c: Likewise.
7228         * lib/gc.h: "an Gc_rc": s/an/a/
7229         * lib/unigbrk.in.h: "an grapheme": s/an/a/
7230         * lib/fts.c: "an stat.st_dev": s/an/a/
7231
7232 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7233
7234         intprops-tests: work around HP-UX 11.23 cc bug with constants
7235         * tests/test-intprops.c (VERIFY): New macro.
7236         (main): Use it, instead of verify, to work around the compiler bug; see
7237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7238
7239         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
7240         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
7241         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
7242         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
7243         (_GL_REMAINDER_OVERFLOW): Use it.
7244
7245         intprops-tests: revert unsigned part of previous change
7246         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
7247         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
7248         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
7249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
7250
7251 2011-05-19  Bruno Haible  <bruno@clisp.org>
7252
7253         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
7254         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
7255         strerror_r() returned without filling the buffer.
7256         Reported by Eric Blake.
7257
7258 2011-05-19  Eric Blake  <eblake@redhat.com>
7259
7260         strerror_r: guarantee unchanged errno
7261         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
7262         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
7263         failure.
7264         * tests/test-strerror_r.c (main): Enhance test.
7265
7266 2011-05-19  Bruno Haible  <bruno@clisp.org>
7267
7268         strerror_r: Reorder #if blocks.
7269         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
7270         for consistency with the previous commit.
7271
7272 2011-05-19  Bruno Haible  <bruno@clisp.org>
7273
7274         perror: Avoid clobbering the strerror buffer when possible.
7275         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
7276         * lib/strerror.c: Include it.
7277         * modules/strerror (Files): Add lib/strerror-impl.h.
7278         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
7279         (my_strerror): New function, defined through lib/strerror-impl.h.
7280         (perror): Use it instead of strerror.
7281         * modules/perror (Files): Add lib/strerror-impl.h.
7282         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
7283
7284 2011-05-19  Eric Blake  <eblake@redhat.com>
7285
7286         strerror_r: fix on newer cygwin
7287         * lib/strerror_r.c (strerror_r): Cygwin now has
7288         __xpg_strerror_r, use it.
7289
7290 2011-05-19  Bruno Haible  <bruno@clisp.org>
7291
7292         strerror_r: Avoid clobbering the strerror buffer when possible.
7293         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
7294         (sys_nerr, sys_errlist): New declarations.
7295         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
7296         HP-UX, native Win32, IRIX, and 32-bit Solaris.
7297         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
7298
7299 2011-05-19  Bruno Haible  <bruno@clisp.org>
7300
7301         strerror_r: Fix test failure on mingw.
7302         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
7303         EXTEND_STRERROR_R.
7304         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
7305         macros from errno.in.h instead.
7306
7307 2011-05-19  Eric Blake  <eblake@redhat.com>
7308
7309         strerror: relax test for Solaris
7310         * tests/test-strerror.c (main): Permit Solaris behavior.
7311         * tests/test-strerror_r.c (main): Likewise.
7312
7313         strerror: enforce POSIX ruling on strerror(0)
7314         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
7315         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7316         * lib/strerror_r.c (rpl_strerror_r): Work around it.
7317         * doc/posix-functions/strerror.texi (strerror): Document it.
7318         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
7319         * tests/test-strerror.c (main): Strengthen test.
7320         * tests/test-strerror_r.c (main): Likewise.
7321
7322 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7323
7324         intprop-tests: port to older and more-pedantic compilers
7325         * modules/intprops-tests (Files): Add tests/macros.h.
7326         * tests/test-intprops.c: Include macros.h.
7327         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
7328         it's no longer documented to expand to an integer constant expression.
7329         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
7330         argument is floating point, as it's no longer documented to expand
7331         to an integer constant expression in that case.
7332         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
7333         compiler bugs reported by Bruno Haible.  See
7334         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7335         (U0, U1): New constants, to work around the same bugs.  Also,
7336         in tests, use e.g., "(unsigned int) 39" rather than "39u".
7337
7338         intprops: work around C compiler bugs
7339         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
7340         bug in Sun C 5.11 2010/08/13 and other compilers; see
7341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7342
7343         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
7344         * doc/intprops.texi (Integer Type Determination): Fix
7345         documentation for TYPE_IS_INTEGER: it returns an constant
7346         expression, not an integer constant expression.  Fix doc for
7347         TYPE_SIGNED: it returns an integer constant expression only if its
7348         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
7349         hardly worth documented that way....)
7350
7351 2011-05-18  Bruno Haible  <bruno@clisp.org>
7352
7353         strerror_r: Avoid clobbering the strerror buffer when possible.
7354         * lib/strerror_r.c (strerror_r): Merge the three implementations.
7355         Handle gnulib defined errno values here. When strerror() returns NULL
7356         or an empty string, return EINVAL.
7357         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
7358         gnulib defined errno values here.
7359         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
7360
7361 2011-05-18  Eric Blake  <eblake@redhat.com>
7362
7363         fnmatch: avoid compiler warning
7364         * lib/fnmatch_loop.c (FCT): Use correct type.
7365         Reported by Matthias Bolte.
7366
7367 2011-05-13  Jim Meyering  <meyering@redhat.com>
7368
7369         maint.mk: three new prohibit_<HDR>_without_use rules
7370         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
7371         (sc_prohibit_stdio-safer_without_use): Likewise.
7372         (sc_prohibit_xfreopen_without_use): Likewise.
7373
7374 2011-05-17  Jim Meyering  <meyering@redhat.com>
7375
7376         announce-gen: fail if the NEWS delta is empty
7377         If there's nothing noteworthy in NEWS, then either you forgot
7378         or you shouldn't be releasing.
7379         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
7380
7381 2011-05-17  Pádraig Brady <P@draigBrady.com>
7382
7383         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
7384         reserved symbols starting with double underscore from the check.
7385
7386 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
7387
7388         intprops: add doc
7389         * doc/intprops.texi: New file, documenting intprops.
7390         * doc/gnulib.texi (Particular Modules): Include it.
7391
7392         verify: add doc to gnulib manual and fix example
7393         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
7394         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
7395         (Compile-time Assertions): Fix example so it can't overflow.
7396
7397 2011-05-17  Jim Meyering  <meyering@redhat.com>
7398
7399         warnings.m4: don't usurp save_CPPFLAGS variable name
7400         * m4/warnings.m4: Prefix local temporary variable name with gl_.
7401
7402         doc: fix typo
7403         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
7404
7405 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7406             Bruno Haible  <bruno@clisp.org>
7407
7408         doc: Tweak recent change.
7409         * README (Portability guidelines): Tweak new text.
7410         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
7411         Interix 6.1.
7412
7413 2011-05-16  Eric Blake  <eblake@redhat.com>
7414
7415         inttypes: avoid autoconf warning
7416         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
7417         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7418
7419 2011-05-16  Sam Steingold <sds@gnu.org>
7420         and Eric Blake  <eblake@redhat.com>
7421
7422         vc-list-files: accept multiple directory operands
7423         * build-aux/vc-list-files: Iterate over all remaining operands.
7424
7425 2011-05-16  Bruno Haible  <bruno@clisp.org>
7426
7427         Fix confusion regarding deprecated modules.
7428         * modules/calloc (Status, Notice): Mark module as deprecated, not
7429         obsolete.
7430         * modules/fnmatch-posix (Status, Notice): Likewise.
7431         * modules/getdate (Status, Notice): Likewise.
7432         * modules/getopt (Status, Notice): Likewise.
7433         * modules/malloc (Status, Notice): Likewise.
7434         * modules/pipe (Status, Notice): Likewise.
7435         * modules/realloc (Status, Notice): Likewise.
7436         * modules/rename-dest-slash (Status, Notice): Likewise.
7437         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
7438         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
7439         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
7440         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
7441         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
7442
7443 2011-05-16  Bruno Haible  <bruno@clisp.org>
7444
7445         doc: List the target platforms.
7446         * doc/gnulib-intro.texi (Target Platforms): New section.
7447         * doc/gnulib.texi (Introduction): Update menu.
7448         * README (Portability guidelines): Refer to the new section. Update
7449         statement about oldest supported environment. Remove rationale why
7450         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
7451         unportable C89 function.
7452         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
7453         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
7454
7455 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7456
7457         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
7458
7459 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
7460
7461         intprops-tests: new module
7462         * modules/intprops-tests, tests/test-intprops.c: New files.
7463
7464         intprops: add safe, portable integer overflow checking
7465         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
7466         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
7467         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
7468         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
7469         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
7470         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
7471         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
7472         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
7473         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
7474         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
7475         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
7476
7477 2011-05-12  James Youngman  <jay@gnu.org>
7478
7479         Add a test for glibc's Bugzilla bug #12378.
7480         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
7481         doesn't allow the literal matching of a lone "[" (which is
7482         required by POSIX).
7483         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
7484
7485 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
7486
7487         Sync glibc change fixing Bugzilla bug #12378.
7488         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
7489         beginning and fall back to matching as normal character if the
7490         string ends before the matching ']' is found.  This is what POSIX
7491         requires.
7492
7493 2011-05-13  Eric Blake  <eblake@redhat.com>
7494
7495         getcwd-lgpl: relax test for FreeBSD
7496         * doc/posix-functions/getcwd.texi (getcwd): Document portability
7497         issue.
7498         * tests/test-getcwd-lgpl.c (main): Relax test.
7499         Reported by Matthias Bolte.
7500
7501 2011-05-11  Eric Blake  <eblake@redhat.com>
7502
7503         test-fflush: silence compiler warning
7504         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
7505
7506 2011-05-11  Bruno Haible  <bruno@clisp.org>
7507
7508         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
7509         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
7510         * modules/canonicalize (Depends-on): Add 'nocrash'.
7511         * modules/canonicalize-lgpl (Depends-on): Likewise.
7512         * doc/posix-functions/realpath.texi: Update platforms list.
7513         Reported by Ryan Schmidt <ryandesign@macports.org>.
7514
7515 2011-05-11  Bruno Haible  <bruno@clisp.org>
7516
7517         group-member: Declare function in <unistd.h>.
7518         * lib/unistd.in.h (group_member): New declaration.
7519         * lib/group-member.h: Remove file.
7520         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
7521         * tests/test-unistd-c++.cc: Check signature of group_member.
7522         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
7523         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
7524         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
7525         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
7526         HAVE_GROUP_MEMBER.
7527         * modules/group-member (Files): Remove lib/group-member.h.
7528         (Depends-on): Add unistd. Specify conditions.
7529         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7530         (Include): Change to <unistd.h>.
7531         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
7532         HAVE_GROUP_MEMBER.
7533         * NEWS: Mention the change.
7534         * lib/euidaccess.c: Don't include group-member.h.
7535
7536 2011-05-11  Bruno Haible  <bruno@clisp.org>
7537
7538         group-member: Document module.
7539         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
7540         module.
7541
7542 2011-05-11  Bruno Haible  <bruno@clisp.org>
7543
7544         fclose: Fix mistake earlier today.
7545         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
7546
7547 2011-05-11  Eric Blake  <eblake@redhat.com>
7548
7549         fclose: preserve fflush errors
7550         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
7551         Reported by Jim Meyering.
7552
7553         bootstrap: support a prereq of 'rpcgen -' on RHEL5
7554         * build-aux/bootstrap (check_versions): When no specific version
7555         is required, merely check that the app produces an exit status
7556         that indicates its existence.
7557
7558         maint.mk: drop redundant check
7559         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
7560         the same but better.
7561
7562 2011-05-11  Bruno Haible  <bruno@clisp.org>
7563
7564         fclose: Fix possible link error.
7565         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
7566         unregister_shadow_fd. Improve comments.
7567         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
7568         Eric Blake.
7569
7570 2011-05-11  Jim Meyering  <meyering@redhat.com>
7571
7572         maint.mk: improve "can not" detection and generalize rule name
7573         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
7574         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
7575         Use the same technique as in sc_prohibit_doubled_word, so that
7576         we recognize "can not" also when the words are separated by a newline.
7577         Suggested by Eric Blake.
7578         (perl_filename_lineno_text_): Define.  Factored out of...
7579         (prohibit_doubled_word_): ...here.  Use the new definition.
7580         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
7581         (prohibit_undesirable_word_seq_RE_): New overridable variable.
7582         (ignore_undesirable_word_sequence_RE_): New overridable variable.
7583
7584 2011-05-10  Eric Blake  <eblake@redhat.com>
7585
7586         fclose: avoid double close race when possible
7587         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
7588         all but WINDOWS_SOCKETS.
7589
7590 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
7591
7592         openat: correct new comment
7593         * lib/openat-proc.c (openat_proc_name): Correct the comment.
7594
7595 2011-05-10  Jim Meyering  <meyering@redhat.com>
7596
7597         openat: add comments
7598         * lib/openat-proc.c (openat_proc_name): Add comments,
7599         mostly from Eric Blake.
7600
7601 2011-05-09  Eric Blake  <eblake@redhat.com>
7602
7603         openat: reduce syscalls in first probe of /proc
7604         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
7605         be a directory.  Simplify the probe for .. bugs.
7606         * modules/openat (Depends-on): Drop same-inode.
7607         Reported by Bastien ROUCARIES.
7608
7609 2011-05-09  Jim Meyering  <meyering@redhat.com>
7610
7611         maint.mk: change semantics/name of tight_scope variables
7612         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
7613         Rename variables to align with semantics that make them more useful.
7614
7615         maint.mk: tweak new rule's name not to impinge
7616         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
7617         (sc_tight_scope): Use new rule name rather than $@-0.
7618
7619         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
7620         * top/maint.mk (sc_tight_scope): New rule.
7621         (sc_tight_scope-0): New rule, ifdef'd out.
7622         (_gl_TS_dir): Default.
7623         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
7624         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
7625
7626 2011-05-09  Simon Josefsson  <simon@josefsson.org>
7627
7628         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
7629         Haible <bruno@clisp.org>.
7630
7631 2011-05-08  Bruno Haible  <bruno@clisp.org>
7632
7633         Comments.
7634         * m4/isnanf.m4: Add comment.
7635         * m4/isnanl.m4: Likewise.
7636
7637 2011-05-08  Bruno Haible  <bruno@clisp.org>
7638
7639         glob: Remove obsolete macro.
7640         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
7641
7642 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7643
7644         intprops: Sun C 5.11 supports __typeof__
7645         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
7646         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
7647         which is new.
7648         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
7649
7650         intprops: switch to usual gnulib indenting and naming
7651         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
7652         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
7653
7654         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
7655
7656 2011-05-08  Jim Meyering  <meyering@redhat.com>
7657
7658         maint.mk: suppress "Entering/Leaving directory" diag in announcement
7659         * top/maint.mk (release-prep): Use make's --no-print-directory
7660         option when generating the announcement.  This eliminates the
7661         pesky "make[2]: Entering/Leaving directory" diagnostics in the
7662         generated announcement template.
7663
7664 2011-05-08  Bruno Haible  <bruno@clisp.org>
7665
7666         tzset: Fix gettimeofday wrapper on Solaris 2.6.
7667         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
7668         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
7669
7670 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
7671
7672         ignore-value, verify: Omit include files from lib_SOURCES.
7673         * modules/ignore-value, modules/verify (Makefile.am):
7674         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
7675         that leads Automake to duplicate use of am__objects_... variables
7676         in Makefile.in.  See
7677         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
7678
7679 2011-05-07  Bruno Haible  <bruno@clisp.org>
7680
7681         fclose: Simplify autoconf macro.
7682         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
7683         defined.
7684
7685 2011-05-07  Bruno Haible  <bruno@clisp.org>
7686
7687         canonicalize-lgpl: Fix autoconf macro ordering bug.
7688         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
7689         gl_STDLIB_H_DEFAULTS.
7690
7691 2011-05-06  Eric Blake  <eblake@redhat.com>
7692
7693         maintainer-makefile: make sc_po_check easier to tune
7694         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
7695         to probe for strings, such as an alternate location for gnulib.
7696
7697         fclose: guarantee behavior on seekable stdin
7698         * modules/fclose (Depends-on): Add fflush.
7699         * doc/posix-functions/fclose.texi (fclose): Document this.
7700         * tests/test-fclose.c (main): Make test for this unconditional.
7701
7702 2011-05-06  Bruno Haible  <bruno@clisp.org>
7703
7704         fflush, fpurge: Relicense under LGPLv2+.
7705         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
7706         * modules/fpurge (License): Likewise.
7707         With permission from Eric Blake and Jim Meyering.
7708         Suggested by Eric Blake.
7709
7710 2011-05-06  Karl Berry  <karl@gnu.org>
7711
7712         * MODULES.html.sh (func_all_modules): remove exit.
7713
7714 2011-05-06  Jim Meyering  <meyering@redhat.com>
7715
7716         maint.mk: use info-gnu@ as the default only for a stable release
7717         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
7718         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
7719         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
7720         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
7721
7722 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7723
7724         assert-h: new module, which supports C1X-style static_assert
7725         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
7726         * lib/verify.h: Revamp so that this can be copied into assert.h,
7727         while retaining the ability to use it standalone as before.
7728         Rename private identifiers so as not to encroach on the
7729         standard C namespace, since this is now used by assert.h.
7730         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
7731         the old verify_true.
7732         (_GL_VERIFY_TRUE): New macro, with much of the contents of
7733         the old verify_true.  Use _GL_VERIFY_TYPE.
7734         (_GL_VERIFY): New macro, with much of the contents of the old verify.
7735         (static_assert): New macro, if _GL_STATIC_ASSERT_H
7736         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
7737         defined when this file is copied into the replacement assert.h.
7738         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
7739         and _Static_assert is not built in.
7740         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
7741         defined, and use the new macros mentioned above.
7742         * doc/posix-headers/assert.texi: Document this.
7743
7744 2011-05-05  Bruno Haible  <bruno@clisp.org>
7745
7746         fclose, fflush: Respect rules for use of AC_LIBOBJ.
7747         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
7748         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
7749         gl_REPLACE_FCLOSE here.
7750         * modules/fflush (Depends-on): Remove fclose.
7751         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
7752         combination with module 'fclose'.
7753
7754 2011-05-05  Bruno Haible  <bruno@clisp.org>
7755
7756         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
7757         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
7758         gl_FUNC_FFLUSH.
7759         (gl_FUNC_FFLUSH): Use it.
7760         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
7761         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
7762         gl_REPLACE_FSEEKO here.
7763
7764 2011-05-05  Bruno Haible  <bruno@clisp.org>
7765
7766         tzset: Relicense under LGPL.
7767         * modules/tzset (License): Change to LGPL.
7768         No agreement needed; it's a no-op.
7769
7770         strtoimax, strtoumax: Relicense under LGPL.
7771         * modules/strtoimax (License): Change to LGPL.
7772         * modules/strtoumax (License): Likewise.
7773         With permission from Jim Meyering, Paul Eggert:
7774         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
7775         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
7776
7777         getgroups: Relicense under LGPL.
7778         * modules/getgroups (License): Change to LGPL.
7779         With permission from Jim Meyering, Paul Eggert, Eric Blake:
7780         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7781         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7782         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7783
7784         nanosleep: Relicense under LGPL.
7785         * modules/nanosleep (License): Change to LGPL.
7786         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
7787         Haible:
7788         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7790         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7791         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7792
7793         futimens: Relicense under LGPL.
7794         * modules/futimens (License): Change to LGPL.
7795         With permission from Eric Blake:
7796         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7797
7798         fflush: Relicense under LGPL.
7799         * modules/fflush (License): Change to LGPL.
7800         With permission from Eric Blake, Bruno Haible, Jim Meyering:
7801         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7802         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7803         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
7804
7805         tmpfile: Relicense under LGPL.
7806         * modules/tmpfile (License): Change to LGPL.
7807         With permission from Ben Pfaff:
7808         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7809
7810         isfinite: Relicense under LGPL.
7811         * modules/isfinite (License): Change to LGPL.
7812         With permission from Ben Pfaff, Bruno Haible:
7813         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7814         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
7815
7816         acosl..tanl: Relicense under LGPL.
7817         * modules/acosl (License): Change to LGPL.
7818         * modules/asinl (License): Likewise.
7819         * modules/atanl (License): Likewise.
7820         * modules/cosl (License): Likewise.
7821         * modules/expl (License): Likewise.
7822         * modules/logl (License): Likewise.
7823         * modules/sinl (License): Likewise.
7824         * modules/sqrtl (License): Likewise.
7825         * modules/tanl (License): Likewise.
7826         Source code originally from glibc and Paolo Bonzini. Agreements:
7827         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
7828         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
7829
7830 2011-05-05  Bruno Haible  <bruno@clisp.org>
7831
7832         signal: Define sighandler_t.
7833         * lib/signal.in.h (sighandler_t): New type.
7834         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
7835         whether sighandler_t is defined.
7836         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
7837         * modules/signal (Depends-on): Add extensions.
7838         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
7839         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
7840         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
7841
7842 2011-05-05  Eric Blake  <eblake@redhat.com>
7843
7844         maint: remove useless REPLACE_*_H macros
7845         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
7846         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7847         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7848         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
7849         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7850         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7851         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
7852         * m4/btowc.m4: Update callers.
7853         * m4/dirfd.m4: Likewise.
7854         * m4/duplocale.m4: Likewise.
7855         * m4/fchdir.m4: Likewise.
7856         * m4/fdopendir.m4: Likewise.
7857         * m4/inet_ntop.m4: Likewise.
7858         * m4/inet_pton.m4: Likewise.
7859         * m4/ioctl.m4: Likewise.
7860         * m4/mbrlen.m4: Likewise.
7861         * m4/mbrtowc.m4: Likewise.
7862         * m4/mbsinit.m4: Likewise.
7863         * m4/mbsnrtowcs.m4: Likewise.
7864         * m4/mbsrtowcs.m4: Likewise.
7865         * m4/poll.m4: Likewise.
7866         * m4/setlocale.m4: Likewise.
7867         * m4/wcrtomb.m4: Likewise.
7868         * m4/wcsnrtombs.m4: Likewise.
7869         * m4/wcsrtombs.m4: Likewise.
7870         * m4/wctob.m4: Likewise.
7871         * m4/wcwidth.m4: Likewise.
7872         * modules/posix_spawn: Likewise.
7873         * modules/posix_spawn_file_actions_addclose: Likewise.
7874         * modules/posix_spawn_file_actions_adddup2: Likewise.
7875         * modules/posix_spawn_file_actions_addopen: Likewise.
7876         * modules/posix_spawn_file_actions_destroy: Likewise.
7877         * modules/posix_spawn_file_actions_init: Likewise.
7878         * modules/posix_spawnattr_destroy: Likewise.
7879         * modules/posix_spawnattr_getflags: Likewise.
7880         * modules/posix_spawnattr_getpgroup: Likewise.
7881         * modules/posix_spawnattr_getschedparam: Likewise.
7882         * modules/posix_spawnattr_getschedpolicy: Likewise.
7883         * modules/posix_spawnattr_getsigdefault: Likewise.
7884         * modules/posix_spawnattr_getsigmask: Likewise.
7885         * modules/posix_spawnattr_init: Likewise.
7886         * modules/posix_spawnattr_setflags: Likewise.
7887         * modules/posix_spawnattr_setpgroup: Likewise.
7888         * modules/posix_spawnattr_setschedparam: Likewise.
7889         * modules/posix_spawnattr_setschedpolicy: Likewise.
7890         * modules/posix_spawnattr_setsigdefault: Likewise.
7891         * modules/posix_spawnattr_setsigmask: Likewise.
7892         * modules/posix_spawnp: Likewise.
7893
7894 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
7895
7896         Add option to do-release-commit-and-tag to specify branch.
7897         * build-aux/do-release-commit-and-tag: Add --branch.
7898
7899 2011-05-03  Bruno Haible  <bruno@clisp.org>
7900
7901         Avoid unnecessary compilation units, through conditional dependencies.
7902         * modules/accept (Depends-on): Add conditions to the dependencies.
7903         * modules/acosl (Depends-on): Likewise.
7904         * modules/argz (Depends-on): Likewise.
7905         * modules/asinl (Depends-on): Likewise.
7906         * modules/atanl (Depends-on): Likewise.
7907         * modules/atoll (Depends-on): Likewise.
7908         * modules/bind (Depends-on): Likewise.
7909         * modules/btowc (Depends-on): Likewise.
7910         * modules/canonicalize-lgpl (Depends-on): Likewise.
7911         * modules/ceil (Depends-on): Likewise.
7912         * modules/ceilf (Depends-on): Likewise.
7913         * modules/ceill (Depends-on): Likewise.
7914         * modules/chdir-long (Depends-on): Likewise.
7915         * modules/chown (Depends-on): Likewise.
7916         * modules/close (Depends-on): Likewise.
7917         * modules/connect (Depends-on): Likewise.
7918         * modules/cosl (Depends-on): Likewise.
7919         * modules/dirfd (Depends-on): Likewise.
7920         * modules/dprintf (Depends-on): Likewise.
7921         * modules/dprintf-posix (Depends-on): Likewise.
7922         * modules/error (Depends-on): Likewise.
7923         * modules/euidaccess (Depends-on): Likewise.
7924         * modules/expl (Depends-on): Likewise.
7925         * modules/faccessat (Depends-on): Likewise.
7926         * modules/fchdir (Depends-on): Likewise.
7927         * modules/fclose (Depends-on): Likewise.
7928         * modules/fcntl (Depends-on): Likewise.
7929         * modules/fdopendir (Depends-on): Likewise.
7930         * modules/fflush (Depends-on): Likewise.
7931         * modules/floor (Depends-on): Likewise.
7932         * modules/floorf (Depends-on): Likewise.
7933         * modules/floorl (Depends-on): Likewise.
7934         * modules/fnmatch (Depends-on): Likewise.
7935         * modules/fopen (Depends-on): Likewise.
7936         * modules/fprintf-posix (Depends-on): Likewise.
7937         * modules/frexp (Depends-on): Likewise.
7938         * modules/frexp-nolibm (Depends-on): Likewise.
7939         * modules/frexpl (Depends-on): Likewise.
7940         * modules/frexpl-nolibm (Depends-on): Likewise.
7941         * modules/fseek (Depends-on): Likewise.
7942         * modules/fsusage (Depends-on): Likewise.
7943         * modules/ftell (Depends-on): Likewise.
7944         * modules/ftello (Depends-on): Likewise.
7945         * modules/futimens (Depends-on): Likewise.
7946         * modules/getcwd (Depends-on): Likewise.
7947         * modules/getcwd-lgpl (Depends-on): Likewise.
7948         * modules/getdelim (Depends-on): Likewise.
7949         * modules/getdomainname (Depends-on): Likewise.
7950         * modules/getgroups (Depends-on): Likewise.
7951         * modules/gethostname (Depends-on): Likewise.
7952         * modules/getline (Depends-on): Likewise.
7953         * modules/getlogin_r (Depends-on): Likewise.
7954         * modules/getopt-posix (Depends-on): Likewise.
7955         * modules/getpeername (Depends-on): Likewise.
7956         * modules/getsockname (Depends-on): Likewise.
7957         * modules/getsockopt (Depends-on): Likewise.
7958         * modules/getsubopt (Depends-on): Likewise.
7959         * modules/getusershell (Depends-on): Likewise.
7960         * modules/glob (Depends-on): Likewise.
7961         * modules/grantpt (Depends-on): Likewise.
7962         * modules/iconv_open (Depends-on): Likewise.
7963         * modules/iconv_open-utf (Depends-on): Likewise.
7964         * modules/inet_ntop (Depends-on): Likewise.
7965         * modules/inet_pton (Depends-on): Likewise.
7966         * modules/ioctl (Depends-on): Likewise.
7967         * modules/isapipe (Depends-on): Likewise.
7968         * modules/isfinite (Depends-on): Likewise.
7969         * modules/isinf (Depends-on): Likewise.
7970         * modules/lchown (Depends-on): Likewise.
7971         * modules/ldexpl (Depends-on): Likewise.
7972         * modules/link (Depends-on): Likewise.
7973         * modules/linkat (Depends-on): Likewise.
7974         * modules/listen (Depends-on): Likewise.
7975         * modules/logl (Depends-on): Likewise.
7976         * modules/lstat (Depends-on): Likewise.
7977         * modules/mbrlen (Depends-on): Likewise.
7978         * modules/mbrtowc (Depends-on): Likewise.
7979         * modules/mbsinit (Depends-on): Likewise.
7980         * modules/mbsnrtowcs (Depends-on): Likewise.
7981         * modules/mbsrtowcs (Depends-on): Likewise.
7982         * modules/mbtowc (Depends-on): Likewise.
7983         * modules/memcmp (Depends-on): Likewise.
7984         * modules/mkdir (Depends-on): Likewise.
7985         * modules/mkdtemp (Depends-on): Likewise.
7986         * modules/mkfifo (Depends-on): Likewise.
7987         * modules/mkfifoat (Depends-on): Likewise.
7988         * modules/mknod (Depends-on): Likewise.
7989         * modules/mkostemp (Depends-on): Likewise.
7990         * modules/mkostemps (Depends-on): Likewise.
7991         * modules/mkstemp (Depends-on): Likewise.
7992         * modules/mkstemps (Depends-on): Likewise.
7993         * modules/mktime (Depends-on): Likewise.
7994         * modules/nanosleep (Depends-on): Likewise.
7995         * modules/open (Depends-on): Likewise.
7996         * modules/openat (Depends-on): Likewise.
7997         * modules/perror (Depends-on): Likewise.
7998         * modules/poll (Depends-on): Likewise.
7999         * modules/popen (Depends-on): Likewise.
8000         * modules/posix_spawn (Depends-on): Likewise.
8001         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
8002         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
8003         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
8004         * modules/posix_spawnp (Depends-on): Likewise.
8005         * modules/pread (Depends-on): Likewise.
8006         * modules/printf-posix (Depends-on): Likewise.
8007         * modules/ptsname (Depends-on): Likewise.
8008         * modules/putenv (Depends-on): Likewise.
8009         * modules/pwrite (Depends-on): Likewise.
8010         * modules/readline (Depends-on): Likewise.
8011         * modules/readlink (Depends-on): Likewise.
8012         * modules/readlinkat (Depends-on): Likewise.
8013         * modules/recv (Depends-on): Likewise.
8014         * modules/recvfrom (Depends-on): Likewise.
8015         * modules/regex (Depends-on): Likewise.
8016         * modules/remove (Depends-on): Likewise.
8017         * modules/rename (Depends-on): Likewise.
8018         * modules/renameat (Depends-on): Likewise.
8019         * modules/rmdir (Depends-on): Likewise.
8020         * modules/round (Depends-on): Likewise.
8021         * modules/roundf (Depends-on): Likewise.
8022         * modules/roundl (Depends-on): Likewise.
8023         * modules/rpmatch (Depends-on): Likewise.
8024         * modules/select (Depends-on): Likewise.
8025         * modules/send (Depends-on): Likewise.
8026         * modules/sendto (Depends-on): Likewise.
8027         * modules/setenv (Depends-on): Likewise.
8028         * modules/setlocale (Depends-on): Likewise.
8029         * modules/setsockopt (Depends-on): Likewise.
8030         * modules/shutdown (Depends-on): Likewise.
8031         * modules/sigaction (Depends-on): Likewise.
8032         * modules/signbit (Depends-on): Likewise.
8033         * modules/sigprocmask (Depends-on): Likewise.
8034         * modules/sinl (Depends-on): Likewise.
8035         * modules/sleep (Depends-on): Likewise.
8036         * modules/snprintf (Depends-on): Likewise.
8037         * modules/snprintf-posix (Depends-on): Likewise.
8038         * modules/socket (Depends-on): Likewise.
8039         * modules/sprintf-posix (Depends-on): Likewise.
8040         * modules/sqrtl (Depends-on): Likewise.
8041         * modules/stat (Depends-on): Likewise.
8042         * modules/strchrnul (Depends-on): Likewise.
8043         * modules/strdup-posix (Depends-on): Likewise.
8044         * modules/strerror (Depends-on): Likewise.
8045         * modules/strerror_r-posix (Depends-on): Likewise.
8046         * modules/strndup (Depends-on): Likewise.
8047         * modules/strnlen (Depends-on): Likewise.
8048         * modules/strptime (Depends-on): Likewise.
8049         * modules/strsep (Depends-on): Likewise.
8050         * modules/strsignal (Depends-on): Likewise.
8051         * modules/strstr-simple (Depends-on): Likewise.
8052         * modules/strtod (Depends-on): Likewise.
8053         * modules/strtoimax (Depends-on): Likewise.
8054         * modules/strtok_r (Depends-on): Likewise.
8055         * modules/strtoumax (Depends-on): Likewise.
8056         * modules/symlink (Depends-on): Likewise.
8057         * modules/symlinkat (Depends-on): Likewise.
8058         * modules/tanl (Depends-on): Likewise.
8059         * modules/tcgetsid (Depends-on): Likewise.
8060         * modules/tmpfile (Depends-on): Likewise.
8061         * modules/trunc (Depends-on): Likewise.
8062         * modules/truncf (Depends-on): Likewise.
8063         * modules/truncl (Depends-on): Likewise.
8064         * modules/uname (Depends-on): Likewise.
8065         * modules/unlink (Depends-on): Likewise.
8066         * modules/unlockpt (Depends-on): Likewise.
8067         * modules/unsetenv (Depends-on): Likewise.
8068         * modules/usleep (Depends-on): Likewise.
8069         * modules/utimensat (Depends-on): Likewise.
8070         * modules/vasprintf (Depends-on): Likewise.
8071         * modules/vdprintf (Depends-on): Likewise.
8072         * modules/vdprintf-posix (Depends-on): Likewise.
8073         * modules/vfprintf-posix (Depends-on): Likewise.
8074         * modules/vprintf-posix (Depends-on): Likewise.
8075         * modules/vsnprintf (Depends-on): Likewise.
8076         * modules/vsnprintf-posix (Depends-on): Likewise.
8077         * modules/vsprintf-posix (Depends-on): Likewise.
8078         * modules/wcrtomb (Depends-on): Likewise.
8079         * modules/wcscasecmp (Depends-on): Likewise.
8080         * modules/wcscspn (Depends-on): Likewise.
8081         * modules/wcsdup (Depends-on): Likewise.
8082         * modules/wcsncasecmp (Depends-on): Likewise.
8083         * modules/wcsnrtombs (Depends-on): Likewise.
8084         * modules/wcspbrk (Depends-on): Likewise.
8085         * modules/wcsrtombs (Depends-on): Likewise.
8086         * modules/wcsspn (Depends-on): Likewise.
8087         * modules/wcsstr (Depends-on): Likewise.
8088         * modules/wcstok (Depends-on): Likewise.
8089         * modules/wcswidth (Depends-on): Likewise.
8090         * modules/wctob (Depends-on): Likewise.
8091         * modules/wctomb (Depends-on): Likewise.
8092         * modules/wctype (Depends-on): Likewise.
8093         * modules/wcwidth (Depends-on): Likewise.
8094         * modules/write (Depends-on): Likewise.
8095
8096 2011-05-03  Bruno Haible  <bruno@clisp.org>
8097
8098         Support for conditional dependencies.
8099         * doc/gnulib.texi (Module description): Document the syntax of
8100         conditional dependencies.
8101         * gnulib-tool: New option --conditional-dependencies.
8102         (func_usage): Document it.
8103         (cond_dependencies): New variable.
8104         (func_get_automake_snippet_conditional,
8105         func_get_automake_snippet_unconditional): New functions, extracted from
8106         func_get_automake_snippet.
8107         (func_get_automake_snippet): Use them.
8108         (sed_first_32_chars): New variable.
8109         (func_module_shellfunc_name): New function.
8110         (func_module_shellvar_name): New function.
8111         (func_module_conditional_name): New function.
8112         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
8113         func_cond_module_condition): New functions.
8114         (func_modules_transitive_closure): Add support for conditional
8115         dependencies.
8116         (func_emit_lib_Makefile_am): For a conditional module, enclose the
8117         conditional automake snippet in an automake conditional.
8118         (func_emit_autoconf_snippets): Emit shell functions that contain the
8119         code for conditional modules.
8120         (func_import, func_create_testdir): Update specification.
8121
8122 2011-05-03  Eric Blake  <eblake@redhat.com>
8123
8124         test-getaddrinfo: report error information
8125         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
8126
8127 2011-05-03  Jim Meyering  <meyering@redhat.com>
8128
8129         bootstrap: avoid build failure when $GZIP is set
8130         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
8131         program name.  If defined at all, it is supposed to list gzip options.
8132         Reported by Alan Curry in http://debbugs.gnu.org/8609
8133
8134 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
8135
8136         readme-release: new module with release instructions
8137         * modules/readme-release: New module.
8138         * top/README-release: New file, from coreutils, grep, diffutils.
8139         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8140
8141 2011-05-02  Eric Blake  <eblake@redhat.com>
8142
8143         fflush: also replace fclose when fixing fflush
8144         * modules/fflush (Depends-on): Add fclose.
8145         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
8146         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
8147         memstreams with no backing fd.
8148         * doc/posix-functions/fclose.texi (fclose): Document the use of
8149         fflush module to fix the bug.
8150         * tests/test-fclose.c (main): Relax test when fclose is used in
8151         isolation.
8152
8153         fclose: add some tests
8154         * modules/fclose-tests: New test module.
8155         * tests/test-fclose.c: New file.
8156         * doc/posix-functions/fclose.texi (fclose): Document the bug.
8157
8158         fclose: reduced dependencies
8159         * modules/fclose (Depends-on): Switch from fflush/fseeko to
8160         simpler lseek.
8161         * lib/fclose.c (rpl_fclose): Likewise.
8162         Reported by Simon Josefsson.
8163
8164         exit: drop remaining clients
8165         * modules/argmatch (Depends-on): Replace exit with stdlib.
8166         * modules/copy-file (Depends-on): Likewise.
8167         * modules/execute (Depends-on): Likewise.
8168         * modules/exitfail (Depends-on): Likewise.
8169         * modules/obstack (Depends-on): Likewise.
8170         * modules/pagealign_alloc (Depends-on): Likewise.
8171         * modules/pipe-filter-gi (Depends-on): Likewise.
8172         * modules/pipe-filter-ii (Depends-on): Likewise.
8173         * modules/savewd (Depends-on): Likewise.
8174         * modules/spawn-pipe (Depends-on): Likewise.
8175         * modules/wait-process (Depends-on): Likewise.
8176         * modules/xsetenv (Depends-on): Likewise.
8177         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
8178         * modules/git-merge-changelog (Depends-on): Likewise.
8179         * modules/long-options (Depends-on): Likewise.
8180         * modules/pt_chown (Depends-on): Likewise.
8181         * modules/sysexits (Depends-on): Likewise.
8182
8183         freading: relax license from LGPLv3+ to LGPLv2+
8184         * modules/freading (License): Relax LGPL version.
8185
8186 2011-05-02  Bruno Haible  <bruno@clisp.org>
8187
8188         fchdir: Remove unused dependencies.
8189         * modules/fchdir (Depends-on): Remove include_next.
8190
8191 2011-05-02  Bruno Haible  <bruno@clisp.org>
8192
8193         gnulib-tool: Refactor.
8194         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
8195         from func_emit_autoconf_snippets.
8196         (func_emit_autoconf_snippets): Use it.
8197
8198 2011-05-02  Simon Josefsson  <simon@josefsson.org>
8199
8200         * NEWS: Document removal of 'exit'.
8201         * modules/exit: Remove file.
8202
8203 2011-05-01  Bruno Haible  <bruno@clisp.org>
8204
8205         Update DEPENDENCIES.
8206         * DEPENDENCIES (gettext): Recommend the newest release.
8207         Reported by Simon Josefsson.
8208
8209 2011-05-01  Bruno Haible  <bruno@clisp.org>
8210
8211         gnulib-tool: Reduce code duplication.
8212         * gnulib-tool (func_emit_autoconf_snippets): New function.
8213         (func_import, func_create_testdir): Use it.
8214
8215 2011-04-30  Eric Blake  <eblake@redhat.com>
8216
8217         fclose: don't fail on non-seekable input stream
8218         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
8219         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
8220         since fflush is allowed to fail in that case.
8221
8222 2011-04-30  Bruno Haible  <bruno@clisp.org>
8223
8224         dup3: cleanup
8225         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
8226
8227 2011-04-30  Bruno Haible  <bruno@clisp.org>
8228
8229         netdb: Make it work in C++ mode.
8230         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
8231         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
8232         module.
8233         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
8234         gl_MODULE_INDICATOR_FOR_TESTS.
8235         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
8236         * modules/netdb-c++-tests: New file.
8237         * tests/test-netdb-c++.cc: New file.
8238
8239 2011-04-30  Bruno Haible  <bruno@clisp.org>
8240
8241         New modules 'vfscanf', 'vscanf'.
8242         * modules/vfscanf: New file.
8243         * modules/vscanf: New file.
8244         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
8245         here.
8246         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
8247         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
8248
8249 2011-04-30  Bruno Haible  <bruno@clisp.org>
8250
8251         passfd: Add comments.
8252         * lib/passfd.c: Add comments about platforms.
8253
8254 2011-04-30  Bruno Haible  <bruno@clisp.org>
8255
8256         sys_uio: Make <sys/uio.h> self-contained.
8257         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
8258         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
8259
8260 2011-04-30  Bruno Haible  <bruno@clisp.org>
8261
8262         sys_socket: Ensure 'struct iovec' definition.
8263         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
8264         <sys/socket.h>.
8265         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
8266
8267 2011-04-30  Bruno Haible  <bruno@clisp.org>
8268
8269         sys_uio: Protect definition of 'struct iovec'.
8270         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
8271         it as a C struct.
8272
8273 2011-04-30  Bruno Haible  <bruno@clisp.org>
8274
8275         manywarnings: fix indentation
8276         * m4/manywarnings.m4: Indent by 2 spaces consistently.
8277
8278 2011-04-30  Pádraig Brady <P@draigBrady.com>
8279
8280         manywarnings: add -Wno-missing-field-initializers if needed.
8281         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
8282         option if it's needed to allow initialization with { 0, }
8283
8284 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
8285
8286         announce-gen: cosmetic improvement
8287         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
8288
8289 2011-04-29  Jim Meyering  <meyering@redhat.com>
8290
8291         vc-list-files: indent with spaces, not TABs
8292         * build-aux/vc-list-files: Convert leading TABs to spaces,
8293         to match the style of most other files in gnulib.
8294
8295         announce-gen: indent with spaces, not TABs
8296         * build-aux/announce-gen: Convert all TABs to spaces, to match
8297         the style of most other files in gnulib.
8298
8299 2011-04-29  Eric Blake  <eblake@redhat.com>
8300
8301         quotearg: avoid uninitialized variable use
8302         * lib/quotearg.c (quoting_options_from_style): Initialize
8303         remaining fields, and ensure that custom styles are only used via
8304         quoting_options rather than quoting_style.
8305
8306 2011-04-29  Jim Meyering  <meyering@redhat.com>
8307
8308         maint.mk: remove unused VC-tag variable
8309         * top/maint.mk (VC-tag): Remove unused variable.
8310
8311 2011-04-29  Bruno Haible  <bruno@clisp.org>
8312
8313         netdb: fix gai_strerror replacements
8314         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
8315         * modules/netdb: Substitute it.
8316
8317 2011-04-29  Jim Meyering  <meyering@redhat.com>
8318
8319         test-getcwd.c: avoid new set-but-not-used warning
8320         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
8321         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
8322         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
8323         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
8324
8325         test-hash.c: avoid a new shadowing warning
8326         * tests/test-hash.c (main): Don't shadow "dup".
8327
8328 2011-04-28  Eric Blake  <eblake@redhat.com>
8329
8330         getaddrinfo: fix gai_strerror signature
8331         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
8332         and work around mingw with UNICODE defined.
8333         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
8334         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
8335         * modules/netdb (Makefile.am): Substitute it.
8336         * lib/netdb.in.h (gai_strerror): Declare replacement.
8337         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
8338         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
8339         the fix.
8340
8341         getsockopt: avoid compiler warning
8342         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
8343         Reported by Matthias Bolte.
8344
8345         tests: drop unused link dependency
8346         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
8347         * modules/dirent-safer-tests (Makefile.am): Likewise.
8348         * modules/fdopendir-tests (Makefile.am): Likewise.
8349         * modules/mkfifoat-tests (Makefile.am): Likewise.
8350         * modules/openat-safer-tests (Makefile.am): Likewise.
8351         * modules/openat-tests (Makefile.am): Likewise.
8352         * modules/readlinkat-tests (Makefile.am): Likewise.
8353         * modules/symlinkat-tests (Makefile.am): Likewise.
8354         * modules/linkat-tests (Makefile.am): Likewise.
8355         (Depends-on): Switch to filenamecat-lgpl.
8356         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
8357         LIBINTL.
8358         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
8359         * tests/test-linkat.c (main): Don't require xalloc.
8360
8361         hash, mgetgroups: drop xalloc dependency
8362         * lib/hash.c (includes): Adjust includes.
8363         * lib/mgetgroups.c (includes): Likewise.
8364         (xgetgroups): Move...
8365         * lib/xgetgroups.c: ...to new file.
8366         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
8367         * modules/xgetgroups: New file, split from...
8368         * modules/mgetgroups: ...here.
8369         (Depends-on): Add xalloc-oversized.
8370         * modules/hash (Depends-on): Likewise.
8371         * modules/hash-tests (Depends-on): Drop xalloc.
8372         (test_hash_LDADD): Drop unused library.
8373         * tests/test-hash.c (main): Break xalloc dependency.
8374         (includes): Drop unused include.
8375
8376         xalloc-oversized: new module
8377         * modules/xalloc-oversized: New module.
8378         * modules/xalloc (Depends-on): Add it.
8379         * lib/xalloc.h (xalloc_oversized): Move...
8380         * lib/xalloc-oversized.h: ...into new file.
8381
8382         utimecmp: drop dependency on xmalloc
8383         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
8384         due to memory pressure.
8385         * modules/utimecmp (Depends-on): Drop xalloc.
8386
8387 2011-04-27  Eric Blake  <eblake@redhat.com>
8388
8389         getcwd: fix mingw bugs
8390         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
8391         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
8392         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
8393
8394 2011-04-27  Bruno Haible  <bruno@clisp.org>
8395
8396         mkstemps: Ensure declaration on MacOS X 10.5.
8397         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
8398         * doc/glibc-functions/mkstemps.texi: Document header file problem on
8399         MacOS X.
8400
8401 2011-04-27  Bruno Haible  <bruno@clisp.org>
8402
8403         mkstemp: More documentation.
8404         * doc/posix-functions/mkstemp.texi: Document header file problem on
8405         MacOS X.
8406
8407 2011-04-27  Bruno Haible  <bruno@clisp.org>
8408
8409         mkstemp: Tweak configure message when cross-compiling.
8410         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
8411         result as a guess.
8412
8413 2011-04-27  Bruno Haible  <bruno@clisp.org>
8414
8415         clean-temp: Clarify what it does.
8416         * lib/clean-temp.h: Add more comments.
8417         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
8418         module.
8419         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
8420         * doc/glibc-functions/mkstemps.texi: Likewise.
8421         * doc/glibc-functions/mkostemps.texi: Likewise.
8422
8423 2011-04-27  Eric Blake  <eblake@redhat.com>
8424
8425         fchdir: avoid extra chdir and fix test
8426         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
8427         getcwd-lgpl.
8428         * lib/fchdir.c (get_name): Any absolute name will do; it does not
8429         have to be canonical.
8430         (canonicalize_file_name): Drop unused macro.
8431         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
8432
8433         filenamecat-lgpl: fix licence
8434         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
8435         when it was first created.
8436
8437         linkat, renameat: add missing dependency
8438         * modules/linkat (Depends-on): Require getcwd-lgpl.
8439         * modules/renameat (Depends-on): Likewise.
8440
8441         tests: reduce dependencies
8442         * tests/test-linkat.c (main): Use lighter-weight getcwd.
8443         * tests/test-renameat.c (main): Likewise.
8444         * modules/linkat-tests (Depends-on): Relax dependency.
8445         * modules/renameat-tests (Depends-on): Likewise.
8446         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
8447         dependency explicit.
8448
8449         save-cwd: reduce default dependency
8450         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
8451         * lib/save-cwd.c: Update comments.
8452         * NEWS: Document the semantic change.
8453
8454         getcwd: enhance tests
8455         * tests/test-getcwd-lgpl.c: New file, taken from...
8456         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
8457         repeat long path stress tests from m4 probe.
8458         * modules/getcwd-lgpl-tests: New module.
8459         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
8460         * m4/getcwd-abort-bug.m4: Update comment.
8461         * m4/getcwd-path-max.m4: Likewise.
8462
8463         getcwd-lgpl: new module
8464         * modules/getcwd-lgpl: New module.
8465         * lib/getcwd-lgpl.c: New file.
8466         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8467         * MODULES.html.sh (lacking POSIX:2008): Likewise.
8468         * modules/getcwd (configure.ac): Set C witness.
8469         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
8470
8471         getcwd: tweak comments
8472         * m4/getcwd-abort-bug.m4: Fix comments.
8473         * m4/getcwd-path-max.m4: Likewise.
8474         * m4/getcwd.m4: Likewise.
8475
8476 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8477         and Eric Blake  <eblake@redhat.com>
8478
8479         mkstemp: replace if system version uses wrong permissions
8480         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
8481         read/write mode bits set in file created by mkstemp.
8482         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
8483
8484 2011-04-27  Eric Blake  <eblake@redhat.com>
8485
8486         passfd: avoid compiler warning
8487         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
8488         Reported by Laine Stump.
8489
8490 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
8491
8492         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
8493         required by the NetBSD (and perhaps other 4.4BSD derived) join.
8494
8495 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8496         and Eric Blake  <eblake@redhat.com>
8497
8498         mkstemp: mention clean-temp module
8499         * lib/mkstemp.c: Add comment.
8500         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
8501
8502 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8503
8504         inttypes: also provide default values for 32-bit tests
8505         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
8506         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
8507
8508 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8509
8510         strtoumax: remove dependency on strtoimax
8511         This is like the strtoull change of yesterday.
8512         * modules/strtoumax (Files): Add lib/strtoimax.c.
8513         (Depends-on): Remove strtoimax and add verify.
8514
8515         inttypes-incomplete: new module
8516         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
8517         all but the PRI* and SCN* parts of gl_INTTYPES_H.
8518         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
8519         of gl_INTTYPES_H.
8520         (gl_INTTYPES_H): Rewrite in terms of these new macros.
8521         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
8522         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
8523         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
8524         * modules/strtoumax, modules/xstrtol (Depends-on):
8525         Depend on inttypes-incomplete, not inttypes.
8526         * modules/inttypes-incomplete: New module, containing the contents
8527         of the old modules/inttypes module, except that the Files: section
8528         omits m4/inttypes-pri.m4, and the configure.ac section invokes
8529         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
8530         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
8531         (Depends-on): Depend only on inttypes-incomplete.
8532         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
8533
8534         inttypes: omit now-redundant strtoimax and strtoumax work
8535         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
8536         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
8537
8538         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
8539         This supports apps that need pointers to strtoimax and strtoumax,
8540         and ports to HP-UX 11.00 64.bit, which has macros that expand to
8541         nonexistent functions.  See
8542         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
8543         et seq.
8544         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
8545         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
8546         a macro.
8547         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8548
8549 2011-04-25  Simon Josefsson  <simon@josefsson.org>
8550
8551         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
8552
8553 2011-04-25  Bruno Haible  <bruno@clisp.org>
8554
8555         strtol, strtoul: Mark modules as obsolete.
8556         * modules/strtol (Status, Notice): New sections.
8557         * modules/strtoul (Status, Notice): New sections.
8558
8559 2011-04-25  Bruno Haible  <bruno@clisp.org>
8560
8561         strtod: Remove check for strtod, unless supporting old platforms.
8562         * modules/strtod-obsolete: New file.
8563         * m4/strtod-obsolete.m4: New file.
8564         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
8565         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
8566         * modules/strtod (Depends-on): Add strtod-obsolete.
8567         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
8568
8569 2011-04-25  Bruno Haible  <bruno@clisp.org>
8570
8571         strcase: Make module obsolete.
8572         * modules/strcase (Status, Notice): New sections.
8573
8574 2011-04-25  Bruno Haible  <bruno@clisp.org>
8575
8576         dup2: Remove check for dup2, unless supporting old obsolete platforms.
8577         * modules/dup2-obsolete: New file.
8578         * m4/dup2-obsolete.m4: New file.
8579         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
8580         gl_FUNC_DUP2_OBSOLETE is not also defined.
8581         * modules/dup2 (Depends-on): Add dup2-obsolete.
8582         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
8583
8584 2011-04-25  Bruno Haible  <bruno@clisp.org>
8585
8586         strnlen: Avoid memchr related link error on old obsolete platforms.
8587         * modules/memchr-obsolete: New file.
8588         * m4/memchr-obsolete.m4: New file.
8589         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
8590         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
8591         * modules/memchr (Depends-on): Add memchr-obsolete.
8592         * modules/strnlen (Depends-on): Likewise.
8593         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
8594
8595 2011-04-25  Jim Meyering  <meyering@redhat.com>
8596
8597         maint.mk: makefile_at_at_check extend and clean up
8598         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
8599         in addition to */Makefile.am.
8600         Exempt legitimate uses of @VAR@ notation, e.g.,
8601         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
8602         Remove obsolete coreutils-specific comment.
8603         Prompted by discussion here:
8604         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
8605
8606 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8607
8608         strtoul: remove dependency on strtol
8609         This is so that 'configure' need not check for strtol merely because
8610         the application needs strtoul.
8611         * modules/strtoul (Files): Add lib/strtol.c.
8612         (Depends-on): Remove strtol.
8613
8614         strtoull: remove dependency on strtoul
8615         This is like the strtoll change.
8616         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
8617         (Depends-on): Remove strtoul.
8618
8619         strtoll: remove dependency on strtol
8620         This is so that 'configure' need not check for strtol merely because
8621         the application needs strtoll.
8622         * modules/strtoll (Files): Add lib/strtol.c.
8623         (Depends-on): Remove strtol.
8624
8625 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8626
8627         inttypes: Move some configure check to module 'imaxdiv'.
8628         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
8629         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
8630         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
8631
8632 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8633
8634         inttypes: Move some configure check to module 'imaxabs'.
8635         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
8636         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
8637         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
8638
8639 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8640
8641         inttypes: Remove configure tests that are not needed since 2009-12-31.
8642         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
8643         gl_cv_header_working_inttypes_h.
8644
8645 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8646
8647         * modules/strnlen (Depends-on): Remove memchr.
8648         The strnlen implementation doesn't need the memchr module's fixes; see
8649         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
8650
8651         strtol: remove dependency on wchar
8652         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
8653         * modules/strtol (Depends-on): Remove wchar.
8654
8655 2011-04-21  Eric Blake  <eblake@redhat.com>
8656
8657         passfd: fix test regression on Linux
8658         * modules/passfd-tests (configure.ac): Correct socketpair check.
8659
8660         passfd: speed up configure and drop unused code
8661         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
8662         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
8663         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
8664         Instead of probing at configure for unix_scm_rights_bsd44_way,
8665         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
8666         check to a struct member probe.
8667         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
8668         (sendfd, recvfd): Update preprocessor checks.
8669         * modules/passfd (Files): Reflect rename, and drop unused file.
8670         (Depends-on): Drop unused dependency.
8671
8672         passfd: allow compilation on mingw
8673         * modules/sys_socket (Depends-on): Add sys_uio.
8674         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
8675         iovec and a minimal struct msghdr.
8676         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
8677         * tests/test-sys_socket.c (main): Enhance test.
8678         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
8679         guaranteed to provide what we need.
8680         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
8681         * modules/passfd-tests (Depends-on): Add sys_wait.
8682         * tests/test-passfd.c (main): Skip test on mingw, for now.
8683         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
8684         partial 'struct msghdr' implementation.
8685
8686         sys_uio: new module
8687         * modules/sys_uio: New module.
8688         * modules/sys_uio-tests: Likewise.
8689         * lib/sys_uio.in.h: New file.
8690         * m4/sys_uio_h.m4: Likewise.
8691         * tests/test-sys_uio.c: Likewise.
8692         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
8693         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
8694
8695 2011-04-20  Jim Meyering  <meyering@redhat.com>
8696
8697         useless-if-before-free: avoid false-positive
8698         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
8699         disjunct so that it too requires a terminating ";".  Without that,
8700         this script would identify as useless one statement from gcc that
8701         was not:
8702           if (aligned_ptr)
8703             free (((void **) aligned_ptr) [-1]);
8704
8705 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
8706
8707         doc: update users.txt.
8708         * users.txt: Add barcode.
8709
8710 2011-04-19  Bruno Haible  <bruno@clisp.org>
8711
8712         ioctl: Remove link dependency on native Windows.
8713         * lib/fd-hook.h: Renamed from lib/close-hook.h.
8714         (gl_close_fn, gl_ioctl_fn): New types.
8715         (struct fd_hook): Renamed from struct close_hook. Change type of
8716         private_close_fn field. Add private_ioctl_fn field.
8717         (close_hook_fn): Add parameter for primary close method.
8718         (execute_close_hooks, execute_all_close_hooks): Likewise.
8719         (ioctl_hook_fn): New type.
8720         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
8721         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8722         argument.
8723         (unregister_fd_hook): Renamed from unregister_close_hook.
8724         * lib/fd-hook.c: Renamed from lib/close-hook.c.
8725         Don't include <unistd.h>.
8726         (close): Remove undef.
8727         (anchor): Update.
8728         (execute_close_hooks): Add argument for primary close method.
8729         (execute_all_close_hooks): Likewise.
8730         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
8731         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8732         argument. Allow each argument to be NULL.
8733         (unregister_fd_hook): Renamed from unregister_close_hook.
8734         * lib/close.c (rpl_close): Pass 'close' function pointer to
8735         execute_all_close_hooks.
8736         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
8737         (primary_ioctl): New function.
8738         (ioctl): Don't call ioctlsocket here. Instead, call
8739         execute_all_ioctl_hooks.
8740         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
8741         close method.
8742         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
8743         (fd_sockets_hook): Renamed from close_sockets_hook.
8744         (gl_sockets_startup, gl_sockets_cleanup): Update.
8745         * modules/fd-hook: Renamed from modules/close-hook. Update.
8746         * modules/close (Depends-on): Add fd-hook, remove close-hook.
8747         * modules/sockets (Depends-on): Likewise.
8748         * modules/ioctl (Depends-on): Add fd-hook.
8749         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
8750         GNULIB_SOCKET.
8751
8752 2011-04-19  Bruno Haible  <bruno@clisp.org>
8753
8754         Move the support of O_NONBLOCK in open() to the 'open' module.
8755         * modules/nonblocking (Depends-on): Remove 'open'.
8756         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
8757         gl_cv_have_open_O_NONBLOCK.
8758         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
8759         O_NONBLOCK support.
8760         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
8761
8762 2011-04-17  Bruno Haible  <bruno@clisp.org>
8763
8764         pipe2: Simplify code.
8765         * lib/pipe2.c (pipe2): Reduce code duplication.
8766
8767 2011-04-17  Bruno Haible  <bruno@clisp.org>
8768
8769         nonblocking: Add comment.
8770         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
8771
8772 2011-04-17  Bruno Haible  <bruno@clisp.org>
8773
8774         nonblocking: Add tests for sockets.
8775         * tests/test-nonblocking-socket.sh: New file.
8776         * tests/test-nonblocking-socket-main.c: New file.
8777         * tests/test-nonblocking-socket-child.c: New file.
8778         * tests/test-nonblocking-socket.h: New file.
8779         * tests/socket-server.h: New file.
8780         * tests/socket-client.h: New file.
8781         * modules/nonblocking-socket-tests: New file.
8782         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
8783
8784 2011-04-17  Bruno Haible  <bruno@clisp.org>
8785
8786         nonblocking: Add tests for pipes.
8787         * tests/test-nonblocking-pipe.sh: New file.
8788         * tests/test-nonblocking-pipe-main.c: New file.
8789         * tests/test-nonblocking-pipe-child.c: New file.
8790         * tests/test-nonblocking-pipe.h: New file.
8791         * tests/test-nonblocking-writer.h: New file.
8792         * tests/test-nonblocking-reader.h: New file.
8793         * tests/test-nonblocking-misc.h: New file.
8794         * modules/nonblocking-pipe-tests: New file.
8795         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
8796
8797 2011-04-16  Bruno Haible  <bruno@clisp.org>
8798
8799         gettext: Clarify the needed programmer actions.
8800         * modules/gettext (Notice): New field.
8801         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8802
8803 2011-04-16  Bruno Haible  <bruno@clisp.org>
8804
8805         strchrnul: Tweak last commit.
8806         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
8807         bug.
8808         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
8809         as in _GL_FUNCDECL_SYS.
8810         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
8811         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
8812
8813 2011-04-15  Eric Blake  <eblake@redhat.com>
8814
8815         strchrnul: work around cygwin bug
8816         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
8817         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
8818         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
8819         * modules/string (Makefile.am): Substitute it.
8820         * lib/string.in.h (strchrnul): Use it.
8821
8822 2011-04-15  Bruno Haible  <bruno@clisp.org>
8823
8824         Don't require lib/stdio-write.c when only module 'stdio' is used.
8825         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
8826         invocation.
8827         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
8828
8829 2011-04-14  Bruno Haible  <bruno@clisp.org>
8830
8831         Support non-blocking pipe I/O in read() on native Windows.
8832         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
8833         (read): New declaration.
8834         * lib/read.c: New file.
8835         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
8836         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
8837         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
8838         vscanf): New declarations.
8839         * lib/stdio-read.c: New file.
8840         * m4/read.m4: New file.
8841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
8842         REPLACE_READ.
8843         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
8844         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8845         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
8846         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
8847         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
8848         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8849         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8850         * modules/read: New file.
8851         * modules/nonblocking (Files): Add lib/stdio-read.c.
8852         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
8853         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
8854         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8855         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8856         * modules/pread (Depends-on): Add read.
8857         * modules/safe-read (Depends-on): Likewise.
8858         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
8859         gets, scanf, vfscanf, vscanf): Verify signatures.
8860         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
8861         problem with non-blocking pipes.
8862         * doc/posix-functions/fgetc.texi: Likewise.
8863         * doc/posix-functions/fgets.texi: Likewise.
8864         * doc/posix-functions/fread.texi: Likewise.
8865         * doc/posix-functions/fscanf.texi: Likewise.
8866         * doc/posix-functions/getc.texi: Likewise.
8867         * doc/posix-functions/getchar.texi: Likewise.
8868         * doc/posix-functions/gets.texi: Likewise.
8869         * doc/posix-functions/scanf.texi: Likewise.
8870         * doc/posix-functions/vfscanf.texi: Likewise.
8871         * doc/posix-functions/vscanf.texi: Likewise.
8872
8873 2011-04-14  Bruno Haible  <bruno@clisp.org>
8874
8875         Support non-blocking pipe I/O in write() on native Windows.
8876         * lib/write.c (rpl_write): Split a write request that failed merely
8877         because the byte count was larger than the pipe buffer's size.
8878         * doc/posix-functions/write.texi: Mention the problem with large byte
8879         counts.
8880
8881 2011-04-14  Bruno Haible  <bruno@clisp.org>
8882
8883         wchar: Ensure that wchar_t gets defined on uClibc.
8884         * lib/wchar.in.h: On uClibc, include <stddef.h>.
8885         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
8886
8887 2011-04-13  Bruno Haible  <bruno@clisp.org>
8888
8889         safe-write, full-read: Avoid unnecessary compilation units.
8890         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
8891         (Depends-on): Remove safe-read. Add ssize_t.
8892         * modules/full-read (Files): Add lib/full-write.c.
8893         (Depends-on): Add full-write.
8894
8895 2011-04-13  Bruno Haible  <bruno@clisp.org>
8896
8897         Support non-blocking pipe I/O and SIGPIPE in pwrite().
8898         * modules/pwrite (Depends-on): Add 'write'.
8899
8900 2011-04-13  Bruno Haible  <bruno@clisp.org>
8901
8902         Support non-blocking pipe I/O in write() on native Windows.
8903         * lib/unistd.in.h (write): Enable replacement also if
8904         GNULIB_UNISTD_H_NONBLOCKING is 1.
8905         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
8906         (rpl_write): When failing to write on a non-blocking pipe, change
8907         errno from ENOSPC to EAGAIN.
8908         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
8909         putchar, puts, vfprintf, vprintf): Enable replacement also if
8910         GNULIB_STDIO_H_NONBLOCKING is 1.
8911         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
8912         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
8913         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
8914         CALL_WITH_SIGPIPE_EMULATION.
8915         (CALL_WITH_SIGPIPE_EMULATION): Use them.
8916         * m4/nonblocking.m4: New file.
8917         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
8918         for non-blocking I/O support.
8919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8920         GNULIB_UNISTD_H_NONBLOCKING.
8921         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
8922         required for non-blocking I/O support.
8923         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
8924         * modules/nonblocking (Files): Add m4/nonblocking.m4,
8925         lib/stdio-write.c, m4/asm-underscore.m4.
8926         (Depends-on): Add stdio, unistd.
8927         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
8928         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
8929         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
8930         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
8931         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
8932         problem with non-blocking pipes.
8933         * doc/posix-functions/fputc.texi: Likewise.
8934         * doc/posix-functions/fputs.texi: Likewise.
8935         * doc/posix-functions/fwrite.texi: Likewise.
8936         * doc/posix-functions/printf.texi: Likewise.
8937         * doc/posix-functions/putc.texi: Likewise.
8938         * doc/posix-functions/putchar.texi: Likewise.
8939         * doc/posix-functions/puts.texi: Likewise.
8940         * doc/posix-functions/vfprintf.texi: Likewise.
8941         * doc/posix-functions/vprintf.texi: Likewise.
8942         * doc/posix-functions/write.texi: Likewise.
8943
8944 2011-04-10  Jim Meyering  <meyering@redhat.com>
8945
8946         maint.mk: prohibit doubled words
8947         Detect them also when they're separated by a newline.
8948         There are 3 ways to customize it:
8949           - disable the test on a per file basis, as usual with rules using
8950             $(VC_LIST_EXCEPT)
8951           - replace the default doubled-word-selecting regexp (affects all files)
8952           - ignore a particular file-vs-doubled-word match
8953         I nearly used that last one to ignore the "is is" match in
8954         coreutils' NEWS file, since the text was "ls -is is ..."
8955         To do that, I would have added this line to cfg.mk:
8956           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
8957         but it would have ignored any "is is" match in NEWS.
8958         Low probability, but still...
8959         Instead, I changed the text, slightly:
8960           -  ls -is is now consistent with ls -lis in ignoring values returned
8961           +  "ls -is" is now consistent with ls -lis in ignoring values returned
8962         * top/maint.mk (prohibit_double_word_RE_): Provide default.
8963         (prohibit_doubled_word_): Define.
8964         (sc_prohibit_doubled_word): New rule.
8965         (sc_prohibit_the_the): Remove.  Subsumed by the above.
8966
8967 2011-04-10  Jim Meyering  <meyering@redhat.com>
8968
8969         maint: fix doubled-word typo in comment
8970         * m4/gethostname.m4: s/is is/it is/
8971         * m4/getdomainname.m4: Likewise.
8972
8973 2011-04-10  Jim Meyering  <meyering@redhat.com>
8974
8975         maint: remove doubled word: s/it it/it/
8976         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8977
8978 2011-04-10  Jim Meyering  <meyering@redhat.com>
8979
8980         maint.mk: remove useless semicolon and backslash
8981         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8982         semicolon and backslash.
8983
8984 2011-04-10  Bruno Haible  <bruno@clisp.org>
8985
8986         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8987         * modules/stdint-tests (Depends-on): Add wchar.
8988
8989 2011-04-10  Jim Meyering  <meyering@redhat.com>
8990
8991         maint: remove doubled words in comments, e.g., s/a a/a/
8992         * lib/strptime.c (day_of_the_week): s/the the/the/
8993         * tests/test-chown.h (test_chown): s/a a/a/
8994
8995         test-chown.h: correct a cast
8996         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8997         when the destination is a stat.st_gid.
8998
8999 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
9000
9001         getaddrinfo: Fix test for sa_len member.
9002         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
9003         include <sys/types.h> before <sys/socket.h>.
9004
9005 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
9006
9007         maint: change "can not" to "cannot"
9008         * doc/posix-functions/iconv.texi (iconv): This one crossed line
9009         boundaries.
9010
9011 2011-04-09  Jim Meyering  <meyering@redhat.com>
9012
9013         maint: change "a a" to "a"
9014         * tests/test-lchown.h (test_lchown): s/a a/a/
9015
9016         maint.mk: prohibit \<the the\>
9017         * top/maint.mk (sc_prohibit_the_the): New rule.
9018
9019         maint: fix "the the" in comment
9020         * lib/count-one-bits.h: s/the the/the/
9021
9022         maint: change "can not" to "cannot"
9023         But do not change the occurrences in maintain.texi or in
9024         build-aux/po/Makefile.in.in, which I presume comes from gettext.
9025         * doc/gnulib-tool.texi: s/can not/cannot/
9026         * doc/posix-functions/accept.texi (accept): Likewise.
9027         * doc/posix-functions/socket.texi (socket): Likewise.
9028         * lib/mbrtowc.c: Likewise.
9029
9030         maint.mk: prohibit use of "can not"
9031         * top/maint.mk (sc_prohibit_can_not): New rule.
9032         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
9033
9034 2011-04-09  Bruno Haible  <bruno@clisp.org>
9035
9036         careadlinkat: Guard against misuse of careadlinkatcwd.
9037         * lib/careadlinkat.c: Include <stdlib.h>.
9038         (careadlinkatcwd): Check that the fd argument is as expected.
9039
9040 2011-04-09  Bruno Haible  <bruno@clisp.org>
9041
9042         careadlinkat: Use common coding style.
9043         * lib/careadlinkat.c: Move gnulib includes after system includes.
9044
9045 2011-04-09  Bruno Haible  <bruno@clisp.org>
9046
9047         careadlinkat: Clarify specification.
9048         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
9049         (careadlinkatcwd): Add comment.
9050         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
9051
9052 2011-04-09  Bruno Haible  <bruno@clisp.org>
9053
9054         areadlinkat: Avoid link error on many platforms.
9055         * modules/areadlinkat (Depends-on): Add areadlink.
9056
9057 2011-04-09  Bruno Haible  <bruno@clisp.org>
9058
9059         allocator, careadlinkat: Fix double-inclusion guard.
9060         * lib/allocator.h: Fix double-inclusion guard.
9061         * lib/careadlinkat.h: Likewise.
9062
9063 2011-04-09  Bruno Haible  <bruno@clisp.org>
9064
9065         relocatable-prog-wrapper: Update after module 'areadlink' changed.
9066         * lib/relocwrapper.c: Update dependencies hierarchy.
9067         * build-aux/install-reloc: Update list of files to be compiled.
9068         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
9069         lib/allocator.[hc].
9070
9071 2011-04-08  Eric Blake  <eblake@redhat.com>
9072
9073         strftime: silence gnulib-tool warning
9074         * modules/strftime-tests (Depends-on): Drop automatic dependency.
9075
9076 2011-04-08  Bruno Haible  <bruno@clisp.org>
9077
9078         verify: Fix syntax error with GCC 4.6 in C++ mode.
9079         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
9080         (HAVE_STATIC_ASSERT): New macro.
9081         (verify_true, verify): Use 'static_assert' if it is supported and
9082         '_Static_assert' is not supported.
9083
9084 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
9085
9086         allocator: New module.
9087         * modules/allocator, lib/allocator.c: New files.
9088         * lib/allocator.h (stdlib_allocator): New decl.
9089         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
9090         Remove.  Do not include <stdlib.h>.
9091         (careadlinkat): Use stdlib_allocator instead of rolling our own.
9092         * modules/careadlinkat (Files): Remove lib/allocator.h.
9093         (Depends-on): Add allocator.
9094
9095         stdlib: let modules use system malloc, realloc
9096         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
9097         if !_GL_USE_STDLIB_ALLOC.
9098         (malloc, realloc): Limit this change to a smaller scope.
9099
9100         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
9101         (malloc, realloc): Don't #undef; no longer needed.
9102         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9103         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9104         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9105         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9106         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9107         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9108         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9109         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9110
9111         careadlinkat: rename members to avoid problem
9112         * lib/allocator.h (struct allocator): Rename members from
9113         malloc/realloc to allocate/reallocate, to avoid problems if malloc
9114         and realloc are #define'd.  Reported by Eric Blake in
9115         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
9116         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
9117
9118 2011-04-08  Eric Blake  <eblake@redhat.com>
9119
9120         nonblocking: reduce dependency
9121         * tests/test-nonblocking.c: Only test sockets when in use.
9122         * modules/nonblocking-tests (Depends-on): Drop socket.
9123         (Makefile.am): Link even if sockets are not present.
9124         * modules/pipe2-tests (Makefile.am): Likewise.
9125         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
9126
9127         pipe2: fix O_NONBLOCK support on mingw
9128         * modules/pipe2 (Depends-on): Add nonblocking.
9129         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
9130         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
9131         * tests/test-nonblocking.c (main): Likewise.
9132         * modules/pipe2-tests (Makefile.am): Avoid link failure.
9133
9134         fcntl-h: fix O_ACCMODE on cygwin
9135         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
9136         * lib/fcntl.in.h (O_ACCMODE): Fix it.
9137
9138         pipe-filter: drop O_NONBLOCK workarounds
9139         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
9140         * modules/pipe-filter-ii (Depends-on): Likewise.
9141         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
9142
9143         nonblocking: provide O_NONBLOCK for mingw
9144         * modules/nonblocking (Depends-on): Add open.
9145         (configure.ac): Set new witness macro.
9146         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
9147         * modules/fcntl-h (Makefile.am): Substitute it.
9148         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
9149         nonblocking module is in use.
9150         * lib/nonblocking.c: Adjust portability test.
9151         * lib/open.c (open): Don't let native open see gnulib flag.
9152         * tests/test-fcntl-h.c (main): Enhance test.
9153         * tests/test-open.h (test_open): Likewise.
9154         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
9155
9156         careadlinkat: fix compilation error on mingw
9157         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
9158         within struct allocator.
9159
9160 2011-04-06  Eric Blake  <eblake@redhat.com>
9161
9162         binary-io: relicense under LGPLv2+
9163         * modules/binary-io (License): Relax to LGPLv2+.
9164         Requested for libvirt, and required by pipe2.
9165
9166 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
9167
9168         verify: use _Static_assert if available
9169         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
9170         (verify_true, verify): Use it if available.  This generates better
9171         diagnostics with GCC 4.6.0 and later.
9172
9173 2011-04-05  Bruno Haible  <bruno@clisp.org>
9174
9175         Remove leftover generated .h files after config.status changed.
9176
9177         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
9178         GL_GENERATE_ALLOCA_H.
9179         * modules/alloca-opt (Makefile.am): Remove alloca.h if
9180         GL_GENERATE_ALLOCA_H evaluates to false.
9181
9182         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
9183         GL_GENERATE_ARGZ_H.
9184         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
9185         evaluates to false.
9186
9187         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
9188         GL_GENERATE_BYTESWAP_H.
9189         * modules/byteswap (Makefile.am): Remove byteswap.h if
9190         GL_GENERATE_BYTESWAP_H evaluates to false.
9191
9192         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
9193         GL_GENERATE_ERRNO_H.
9194         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
9195         evaluates to false.
9196
9197         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
9198         GL_GENERATE_FLOAT_H.
9199         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
9200         evaluates to false.
9201
9202         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
9203         GL_GENERATE_FNMATCH_H.
9204         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
9205         GL_GENERATE_FNMATCH_H evaluates to false.
9206
9207         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
9208         GL_GENERATE_GLOB_H.
9209         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
9210         evaluates to false.
9211
9212         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
9213         automake conditional GL_GENERATE_ICONV_H.
9214         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
9215         evaluates to false.
9216
9217         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
9218         GL_GENERATE_NETINET_IN_H.
9219         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
9220         GL_GENERATE_NETINET_IN_H evaluates to false.
9221
9222         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
9223         conditional GL_GENERATE_PTHREAD_H.
9224         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
9225         * modules/pthread (Makefile.am): Remove pthread.h if
9226         GL_GENERATE_PTHREAD_H evaluates to false.
9227
9228         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
9229         GL_GENERATE_SCHED_H.
9230         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
9231         evaluates to false.
9232
9233         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
9234         conditional GL_GENERATE_SELINUX_CONTEXT_H.
9235         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
9236         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
9237
9238         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
9239         GL_GENERATE_STDARG_H.
9240         * modules/stdarg (Makefile.am): Remove stdarg.h if
9241         GL_GENERATE_STDARG_H evaluates to false.
9242
9243         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
9244         GL_GENERATE_STDBOOL_H.
9245         * modules/stdbool (Makefile.am): Remove stdbool.h if
9246         GL_GENERATE_STDBOOL_H evaluates to false.
9247
9248         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
9249         conditional GL_GENERATE_STDDEF_H.
9250         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
9251         * modules/stddef (Makefile.am): Remove stddef.h if
9252         GL_GENERATE_STDDEF_H evaluates to false.
9253
9254         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
9255         GL_GENERATE_STDINT_H.
9256         * modules/stdint (Makefile.am): Remove stdint.h if
9257         GL_GENERATE_STDINT_H evaluates to false.
9258
9259         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
9260         GL_GENERATE_SYSEXITS_H.
9261         * modules/sysexits (Makefile.am): Remove sysexits.h if
9262         GL_GENERATE_SYSEXITS_H evaluates to false.
9263
9264         Reported by Karl Berry and Ralf Wildenhues.
9265
9266 2011-04-05  Bruno Haible  <bruno@clisp.org>
9267
9268         Ensure to rebuild generated .h files when config.status has changed.
9269         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
9270         config.status.
9271         * modules/ctype (Makefile.am): Likewise.
9272         * modules/dirent (Makefile.am): Likewise.
9273         * modules/errno (Makefile.am): Likewise.
9274         * modules/fcntl-h (Makefile.am): Likewise.
9275         * modules/float (Makefile.am): Likewise.
9276         * modules/getopt-posix (Makefile.am): Likewise.
9277         * modules/glob (Makefile.am): Likewise.
9278         * modules/iconv-h (Makefile.am): Likewise.
9279         * modules/inttypes (Makefile.am): Likewise.
9280         * modules/langinfo (Makefile.am): Likewise.
9281         * modules/locale (Makefile.am): Likewise.
9282         * modules/math (Makefile.am): Likewise.
9283         * modules/netdb (Makefile.am): Likewise.
9284         * modules/netinet_in (Makefile.am): Likewise.
9285         * modules/poll-h (Makefile.am): Likewise.
9286         * modules/pthread (Makefile.am): Likewise.
9287         * modules/pty (Makefile.am): Likewise.
9288         * modules/sched (Makefile.am): Likewise.
9289         * modules/search (Makefile.am): Likewise.
9290         * modules/selinux-h (Makefile.am): Likewise.
9291         * modules/signal (Makefile.am): Likewise.
9292         * modules/spawn (Makefile.am): Likewise.
9293         * modules/stdarg (Makefile.am): Likewise.
9294         * modules/stdbool (Makefile.am): Likewise.
9295         * modules/stddef (Makefile.am): Likewise.
9296         * modules/stdint (Makefile.am): Likewise.
9297         * modules/stdio (Makefile.am): Likewise.
9298         * modules/stdlib (Makefile.am): Likewise.
9299         * modules/string (Makefile.am): Likewise.
9300         * modules/strings (Makefile.am): Likewise.
9301         * modules/sys_file (Makefile.am): Likewise.
9302         * modules/sys_ioctl (Makefile.am): Likewise.
9303         * modules/sys_select (Makefile.am): Likewise.
9304         * modules/sys_socket (Makefile.am): Likewise.
9305         * modules/sys_stat (Makefile.am): Likewise.
9306         * modules/sys_time (Makefile.am): Likewise.
9307         * modules/sys_times (Makefile.am): Likewise.
9308         * modules/sys_utsname (Makefile.am): Likewise.
9309         * modules/sys_wait (Makefile.am): Likewise.
9310         * modules/sysexits (Makefile.am): Likewise.
9311         * modules/termios (Makefile.am): Likewise.
9312         * modules/time (Makefile.am): Likewise.
9313         * modules/unistd (Makefile.am): Likewise.
9314         * modules/wchar (Makefile.am): Likewise.
9315         * modules/wctype-h (Makefile.am): Likewise.
9316         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
9317
9318 2011-04-05  Bruno Haible  <bruno@clisp.org>
9319
9320         pipe2: Relicense under LGPLv2+.
9321         * modules/pipe2 (License): Change to LGPLv2+.
9322         Requested by Eric Blake, for libvirt.
9323
9324 2011-04-05  Bruce Korb  <bkorb@gnu.org>
9325
9326         bootstrap: compute gnulib_extra_files after updating build_aux
9327         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
9328         change build_aux or also supply gnulib_extra_files.  Handle correctly.
9329
9330 2011-04-05  Eric Blake  <eblake@redhat.com>
9331
9332         bootstrap: preserve git whitelist item sorting
9333         * build-aux/bootstrap (sort_patterns): New function.
9334         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
9335
9336 2011-04-05  Simon Josefsson  <simon@josefsson.org>
9337
9338         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
9339         sc_space_tab check.
9340
9341 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
9342
9343         areadlink, areadlinkat: rewrite in terms of careadlinkat
9344         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
9345         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
9346         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
9347         (malloc, realloc): Remove #undefs.
9348         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
9349         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
9350         readlink, ssize_t, stdint, unistd.
9351         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
9352         areadlink, stdint.
9353
9354         careadlinkat: new module
9355         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
9356         * modules/careadlinkat: New files, written by me with
9357         a review and feedback from Ben Pfaff in
9358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
9359
9360 2011-04-01  Bruno Haible  <bruno@clisp.org>
9361
9362         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
9363         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
9364         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
9365         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
9366         Reported by Bruce Korb <bruce.korb@gmail.com>.
9367
9368 2011-04-01  Bruno Haible  <bruno@clisp.org>
9369
9370         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
9371         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
9372         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
9373         * modules/wcpcpy (Depends-on): Add extensions.
9374         * modules/wcpncpy (Depends-on): Likewise.
9375         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
9376         systems.
9377         * doc/posix-functions/wcpncpy.texi: Likewise.
9378         * doc/posix-functions/wcwidth.texi: Likewise.
9379
9380 2011-03-31  Eric Blake  <eblake@redhat.com>
9381
9382         nonblocking: fix mingw test failures
9383         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
9384         non-blocking flag on regular file.
9385         (get_nonblocking_flag): Set errno on invalid fd.
9386         * tests/test-nonblocking.c (main): Avoid test failure on
9387         directories if fchdir is not active.
9388         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
9389
9390 2011-03-31  Bruno Haible  <bruno@clisp.org>
9391
9392         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
9393         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
9394         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
9395         Reported by Simon Josefsson <simon@josefsson.org>.
9396
9397 2011-03-31  Bruno Haible  <bruno@clisp.org>
9398         and Eric Blake  <eblake@redhat.com>
9399
9400         nonblocking: new module
9401         * modules/nonblocking: New module.
9402         * modules/nonblocking-tests: Likewise.
9403         * lib/nonblocking.h: New file.
9404         * lib/nonblocking.c: Likewise.
9405         * tests/test-nonblocking.c: New test.
9406         * lib/ioctl.c (ioctl) [mingw]: Update comment.
9407
9408 2011-03-30  Bruno Haible  <bruno@clisp.org>
9409
9410         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
9411         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
9412         instead of 'printf' format for GCC >= 4.4.
9413         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
9414         (fprintf, printf, vfprintf, vprintf): Declare with
9415         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
9416         the system's vfprintf() function.
9417         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
9418
9419 2011-03-30  Eric Blake  <eblake@redhat.com>
9420
9421         passfd: fix scoping bug
9422         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
9423         before sendmsg/recvmsg.
9424
9425         passfd: standardize coding conventions
9426         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
9427         can be learned at compile time.
9428         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
9429         ifdefs.
9430         (sendfd, recvfd): Follow gnulib code conventions.
9431
9432         passfd: fix incorrect sendmsg arguments
9433         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
9434         incorrect msg_controllen value.
9435         * modules/passfd-tests (Depends-on): Check for alarm.
9436         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
9437         Reported by Bastien ROUCARIES.
9438
9439 2011-03-30  Bruno Haible  <bruno@clisp.org>
9440
9441         c-strcasestr: Relicense under LGPLv2+.
9442         * modules/c-strcasestr (License): Change to LGPLv2+.
9443         Requested by Eric Blake, for libvirt.
9444
9445 2011-03-30  Simon Josefsson  <simon@josefsson.org>
9446
9447         * users.txt: Add libidn2.  Fix libtasn1 link.
9448
9449 2011-03-30  Jim Meyering  <meyering@redhat.com>
9450
9451         tests: readlink* ("",... fails with EINVAL on newer kernels
9452         readlink and readlinkat have typically failed with ENOENT for
9453         the invalid, empty file name,  "".  However, with the advent
9454         of linux-2.6.39, they fail with EINVAL.
9455         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
9456         when operating on the empty file name.
9457         * tests/test-readlink.h (test_readlink): Likewise.
9458
9459 2011-03-29  Bruno Haible  <bruno@clisp.org>
9460
9461         Relicense some modules under LGPLv2+, for libidn2.
9462         * modules/array-mergesort (License): Change to LGPLv2+.
9463         * modules/c-strcaseeq (License): Likewise.
9464         * modules/striconveh (License): Likewise.
9465         * modules/striconveha (License): Likewise.
9466         * modules/uniconv/base (License): Likewise.
9467         * modules/uniconv/u8-conv-from-enc (License): Likewise.
9468         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
9469         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
9470         * modules/unictype/base (License): Likewise.
9471         * modules/unictype/bidiclass-of (License): Likewise.
9472         * modules/unictype/category-M (License): Likewise.
9473         * modules/unictype/category-none (License): Likewise.
9474         * modules/unictype/category-of (License): Likewise.
9475         * modules/unictype/category-test (License): Likewise.
9476         * modules/unictype/category-test-withtable (License): Likewise.
9477         * modules/unictype/combining-class (License): Likewise.
9478         * modules/unictype/joiningtype-of (License): Likewise.
9479         * modules/unictype/scripts (License): Likewise.
9480         * modules/uninorm/base (License): Likewise.
9481         * modules/uninorm/canonical-decomposition (License): Likewise.
9482         * modules/uninorm/composition (License): Likewise.
9483         * modules/uninorm/decompose-internal (License): Likewise.
9484         * modules/uninorm/decomposition-table (License): Likewise.
9485         * modules/uninorm/nfc (License): Likewise.
9486         * modules/uninorm/nfd (License): Likewise.
9487         * modules/uninorm/u32-normalize (License): Likewise.
9488         * modules/unistr/base (License): Likewise.
9489         * modules/unistr/u32-cpy (License): Likewise.
9490         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
9491         * modules/unistr/u32-to-u8 (License): Likewise.
9492         * modules/unistr/u32-uctomb (License): Likewise.
9493         * modules/unistr/u8-check (License): Likewise.
9494         * modules/unistr/u8-mblen (License): Likewise.
9495         * modules/unistr/u8-mbtouc (License): Likewise.
9496         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
9497         * modules/unistr/u8-mbtoucr (License): Likewise.
9498         * modules/unistr/u8-prev (License): Likewise.
9499         * modules/unistr/u8-strlen (License): Likewise.
9500         * modules/unistr/u8-to-u32 (License): Likewise.
9501         * modules/unistr/u8-uctomb (License): Likewise.
9502         * modules/unitypes (License): Likewise.
9503         Requested by Simon Josefsson.
9504
9505 2011-03-29  Simon Josefsson  <simon@josefsson.org>
9506
9507         lib-symbol-visibility: Add a notice.
9508         * modules/lib-symbol-visibility (Notice): New field.
9509
9510 2011-03-29  Bruno Haible  <bruno@clisp.org>
9511
9512         getaddrinfo: Doc fix.
9513         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
9514         section "fixed in Gnulib".
9515
9516 2011-03-28  Simon Josefsson  <simon@josefsson.org>
9517
9518         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
9519         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
9520
9521 2011-03-26  Bruno Haible  <bruno@clisp.org>
9522
9523         unictype/property-byname: Reduce the number of load-time relocations.
9524         * lib/unictype/pr_byname.c: Include <stdlib.h>.
9525         (UC_PROPERTY_INDEX_*): New enumeration values.
9526         (uc_property_byname): Convert an index from the lookup table to an
9527         uc_property_t.
9528         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
9529         values.
9530
9531 2011-03-26  Bruno Haible  <bruno@clisp.org>
9532
9533         unictype/property-byname: Allow omitted word separators and aliases.
9534         * lib/unictype/pr_byname.gperf: Add property names without word
9535         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
9536         for 'space'.
9537
9538 2011-03-26  Bruno Haible  <bruno@clisp.org>
9539
9540         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
9541         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
9542         also hyphens to space.
9543         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
9544         without spaces.
9545         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
9546
9547 2011-03-26  Bruno Haible  <bruno@clisp.org>
9548
9549         unictype/joiningtype-byname: Recognize long names as well.
9550         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
9551         a long name.
9552         * lib/unictype/joiningtype_byname.c: Include <string.h>,
9553         unictype/joiningtype_byname.h.
9554         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
9555         * lib/unictype/joiningtype_byname.gperf: New file.
9556         * modules/unictype/joiningtype-byname (Files): Add
9557         lib/unictype/joiningtype_byname.gperf.
9558         (Depends-on): Add gperf.
9559         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
9560         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
9561         long names.
9562
9563         Tests for module 'unictype/joiningtype-longname'.
9564         * modules/unictype/joiningtype-longname-tests: New file.
9565         * tests/unictype/test-joiningtype_longname.c: New file.
9566
9567         New module 'unictype/joiningtype-longname'.
9568         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
9569         * lib/unictype/joiningtype_longname.c: New file.
9570         * modules/unictype/joiningtype-longname: New file.
9571         * modules/unictype/joiningtype-all (Depends-on): Add
9572         unictype/joiningtype-longname.
9573
9574 2011-03-26  Bruno Haible  <bruno@clisp.org>
9575
9576         unictype/bidiclass-byname: Recognize long names as well.
9577         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
9578         name.
9579         * lib/unictype/bidi_byname.c: Include <string.h>,
9580         unictype/bidi_byname.h.
9581         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
9582         * lib/unictype/bidi_byname.gperf: New file.
9583         * modules/unictype/bidiclass-byname (Files): Add
9584         lib/unictype/bidi_byname.gperf.
9585         (Depends-on): Add gperf.
9586         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
9587         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
9588         long names.
9589
9590         Tests for module 'unictype/bidiclass-longname'.
9591         * modules/unictype/bidiclass-longname-tests: New file.
9592         * tests/unictype/test-bidi_longname.c: New file.
9593
9594         New module 'unictype/bidiclass-longname'.
9595         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
9596         * lib/unictype/bidi_longname.c: New file.
9597         * modules/unictype/bidiclass-longname: New file.
9598         * modules/unictype/bidiclass-all (Depends-on): Add
9599         unictype/bidiclass-longname.
9600
9601 2011-03-26  Bruno Haible  <bruno@clisp.org>
9602
9603         unictype/bidi*: Rename modules.
9604         * modules/unictype/bidiclass-all: Renamed from
9605         modules/unictype/bidicategory-all.
9606         * modules/unictype/bidiclass-name: Renamed from
9607         modules/unictype/bidiclass-name.
9608         (Description): Update.
9609         * modules/unictype/bidiclass-name-tests: Renamed from
9610         modules/unictype/bidicategory-name-tests.
9611         * modules/unictype/bidiclass-byname: Renamed from
9612         modules/unictype/bidicategory-byname.
9613         (Description): Update.
9614         * modules/unictype/bidiclass-byname-tests: Renamed from
9615         modules/unictype/bidicategory-byname-tests.
9616         * modules/unictype/bidiclass-of: Renamed from
9617         modules/unictype/bidicategory-of.
9618         (Description): Update.
9619         * modules/unictype/bidiclass-of-tests: Renamed from
9620         modules/unictype/bidicategory-of-tests.
9621         * modules/unictype/bidiclass-test: Renamed from
9622         modules/unictype/bidicategory-test.
9623         (Description): Update.
9624         * modules/unictype/bidiclass-test-tests: Renamed from
9625         modules/unictype/bidicategory-test-tests.
9626         * modules/unictype/bidicategory-all: New file, a simple redirection.
9627         * modules/unictype/bidicategory-name: Likewise.
9628         * modules/unictype/bidicategory-byname: Likewise.
9629         * modules/unictype/bidicategory-of: Likewise.
9630         * modules/unictype/bidicategory-test: Likewise.
9631         * modules/unictype/property-bidi-* (Dependencies): Update.
9632         * lib/unictype/bidi_*.c: Update comment.
9633
9634 2011-03-26  Bruno Haible  <bruno@clisp.org>
9635
9636         unictype/bidi*: Rename functions, part 2.
9637         * modules/unictype/bidicategory-name (configure.ac): Update required
9638         libunistring version.
9639         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
9640
9641 2011-03-25  Bruno Haible  <bruno@clisp.org>
9642
9643         New module 'unictype/combining-class-all'.
9644         * modules/unictype/combining-class-all: New file.
9645
9646         Tests for module 'unictype/combining-class-byname'.
9647         * modules/unictype/combining-class-byname-tests: New file.
9648         * tests/unictype/test-combiningclass_byname.c: New file.
9649
9650         New module 'unictype/combining-class-byname'.
9651         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
9652         * lib/unictype/combiningclass_byname.c: New file.
9653         * lib/unictype/combiningclass_byname.gperf: New file.
9654         * modules/unictype/combining-class-byname: New file.
9655
9656         Tests for module 'unictype/combining-class-longname'.
9657         * modules/unictype/combining-class-longname-tests: New file.
9658         * tests/unictype/test-combiningclass_longname.c: New file.
9659
9660         New module 'unictype/combining-class-longname'.
9661         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
9662         * lib/unictype/combiningclass_longname.c: New file.
9663         * modules/unictype/combining-class-longname: New file.
9664
9665         Tests for module 'unictype/combining-class-name'.
9666         * modules/unictype/combining-class-name-tests: New file.
9667         * tests/unictype/test-combiningclass_name.c: New file.
9668
9669         New module 'unictype/combining-class-name'.
9670         * lib/unictype.in.h (uc_combining_class_name): New declaration.
9671         * lib/unictype/combiningclass_name.c: New file.
9672         * modules/unictype/combining-class-name: New file.
9673
9674 2011-03-25  Bruno Haible  <bruno@clisp.org>
9675
9676         unictype/combining-class: Rename source files.
9677         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
9678         of unictype/combining.h.
9679         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
9680         Update.
9681         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
9682         * modules/unictype/combining-class (Description): Fix.
9683         (Files, Makefile.am): Update.
9684         * tests/unictype/test-combiningclass.c: Renamed from
9685         tests/unictype/test-combining.c.
9686         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
9687
9688 2011-03-25  Bruno Haible  <bruno@clisp.org>
9689
9690         unictype: Update list of canonical combining classes.
9691         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
9692
9693 2011-03-25  Bruno Haible  <bruno@clisp.org>
9694
9695         unictype/category-byname: Recognize long names as well.
9696         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
9697         a long name.
9698         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
9699         unictype/categ_byname.h.
9700         (UC_CATEGORY_INDEX_*): New enumeration values.
9701         (uc_general_category_byname): Use uc_general_category_lookup and
9702         convert from index to value.
9703         * lib/unictype/categ_byname.gperf: New file.
9704         * modules/unictype/category-byname (Files): Add
9705         lib/unictype/categ_byname.gperf.
9706         (Depends-on): Add gperf.
9707         (Makefile.am): Add rule for generating unictype/categ_byname.h.
9708         * tests/unictype/test-categ_byname.c (main): Test the recognition of
9709         long names.
9710
9711         Tests for module 'unictype/category-longname'.
9712         * modules/unictype/category-longname-tests: New file.
9713         * tests/unictype/test-categ_longname.c: New file.
9714
9715         New module 'unictype/category-longname'.
9716         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
9717         * lib/unictype/categ_longname.c: New file.
9718         * modules/unictype/category-longname: New file.
9719         * modules/unictype/category-all (Depends-on): Add it.
9720
9721 2011-03-25  Bruno Haible  <bruno@clisp.org>
9722
9723         Tests for module 'unictype/category-LC'.
9724         * modules/unictype/category-LC-tests: New file.
9725         * tests/unictype/test-categ_LC.c: New file, automatically generated.
9726
9727         New module 'unictype/category-LC'.
9728         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
9729         (UC_CATEGORY_LC): New declaration.
9730         (UC_CASED_LETTER): New macro.
9731         * lib/gen-uni-tables.c (is_category_LC): New function.
9732         (output_categories): Also handle category LC.
9733         (UC_CATEGORY_MASK_LC): New enumeration value.
9734         (general_category_byname): Also handle category LC.
9735         * lib/unictype/categ_LC.c: New file.
9736         * lib/unictype/categ_LC.h: New file, automatically generated.
9737         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
9738         category LC.
9739         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
9740         * modules/unictype/category-LC: New file.
9741         * modules/unictype/category-byname (Depends-on): Add
9742         unictype/category-LC.
9743         * modules/unictype/category-all (Depends-on): Likewise.
9744
9745 2011-03-25  Eric Blake  <eblake@redhat.com>
9746
9747         xmalloc: revert yesterday's regression
9748         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
9749         realloc's underlying behavior (allowing allocation of zero-size
9750         objects, especially if malloc-gnu is also in use).
9751
9752 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
9753
9754         maint.mk: add missing version to VC-tag
9755         * top/maint.mk: git tag was missing actual tag name; add it.
9756
9757         valgrind: do leak checking, and exit with code 1 on error (not 0)
9758         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
9759         to VALGRIND.
9760
9761 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
9762
9763         posix-modules: say what it does.
9764         * posix-modules: Add a line to the --help output saying what it does.
9765
9766 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9767
9768         xmalloc: Do not leak if underlying realloc is C99 compatible.
9769         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
9770         This avoids a leak on C99-based systems.  See
9771         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
9772
9773 2011-03-24  Eric Blake  <eblake@redhat.com>
9774
9775         realloc: document portability problem
9776         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
9777         passing 0 size to realloc.
9778
9779 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
9780
9781         doc: update users.txt
9782         * users.txt: Add cvsps, tmpwatch
9783
9784 2011-03-23  Matt Rice  <ratmice@gmail.com>
9785
9786         doc: update users.txt
9787         * users.txt: Add gdb.
9788
9789 2011-03-23  Jim Meyering  <meyering@redhat.com>
9790
9791         doc: update users.txt
9792         Looking through matches up to the following URL (there are still
9793         several more pages), I found several projects that use gnulib:
9794         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
9795         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
9796         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
9797
9798 2011-03-22  Bruno Haible  <bruno@clisp.org>
9799
9800         unictype/bidi*: Rename functions.
9801         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
9802         uc_bidi_class, uc_is_bidi_class): New declarations.
9803         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
9804         uc_bidi_category_byname.
9805         (uc_bidi_category_byname): New function.
9806         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
9807         u_bidi_category_name.
9808         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
9809         (uc_bidi_category_name): New function.
9810         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
9811         uc_bidi_category.
9812         (uc_bidi_category): New function.
9813         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
9814         uc_is_bidi_category. Invoke uc_bidi_class.
9815         (uc_is_bidi_category): New function.
9816         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
9817         instead of uc_bidi_category_byname.
9818         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
9819         instead of uc_bidi_category_name.
9820         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
9821         uc_bidi_category.
9822         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
9823         instead of uc_is_bidi_category.
9824
9825 2011-03-21  Bruno Haible  <bruno@clisp.org>
9826
9827         New module 'unictype/joininggroup-all'.
9828         * modules/unictype/joininggroup-all: New file.
9829
9830         Tests for module 'unictype/joininggroup-of'.
9831         * modules/unictype/joininggroup-of-tests: New file.
9832         * tests/unictype/test-joininggroup_of.c: New file.
9833         * tests/unictype/test-joininggroup_of.h: New file, automatically
9834         generated by gen-uni-tables.
9835
9836         New module 'unictype/joininggroup-of'.
9837         * modules/unictype/joininggroup-of: New file.
9838         * lib/unictype/joininggroup_of.c: New file.
9839         * lib/unictype/joininggroup_of.h: New file, automatically generated by
9840         gen-uni-tables.
9841
9842         Tests for module 'unictype/joininggroup-byname'.
9843         * modules/unictype/joininggroup-byname-tests: New file.
9844         * tests/unictype/test-joininggroup_byname.c: New file.
9845
9846         New module 'unictype/joininggroup-byname'.
9847         * modules/unictype/joininggroup-byname: New file.
9848         * lib/unictype/joininggroup_byname.c: New file.
9849         * lib/unictype/joininggroup_byname.gperf: New file.
9850
9851         Tests for module 'unictype/joininggroup-name'.
9852         * modules/unictype/joininggroup-name-tests: New file.
9853         * tests/unictype/test-joininggroup_name.c: New file.
9854
9855         New module 'unictype/joininggroup-name'.
9856         * modules/unictype/joininggroup-name: New file.
9857         * lib/unictype/joininggroup_name.c: New file.
9858         * lib/unictype/joininggroup_name.h: New file.
9859
9860         New module 'unictype/joiningtype-all'.
9861         * modules/unictype/joiningtype-all: New file.
9862
9863         Tests for module 'unictype/joiningtype-of'.
9864         * modules/unictype/joiningtype-of-tests: New file.
9865         * tests/unictype/test-joiningtype_of.c: New file.
9866         * tests/unictype/test-joiningtype_of.h: New file, automatically
9867         generated by gen-uni-tables.
9868
9869         New module 'unictype/joiningtype-of'.
9870         * modules/unictype/joiningtype-of: New file.
9871         * lib/unictype/joiningtype_of.c: New file.
9872         * lib/unictype/joiningtype_of.h: New file, automatically generated by
9873         gen-uni-tables.
9874
9875         Tests for module 'unictype/joiningtype-byname'.
9876         * modules/unictype/joiningtype-byname-tests: New file.
9877         * tests/unictype/test-joiningtype_byname.c: New file.
9878
9879         New module 'unictype/joiningtype-byname'.
9880         * modules/unictype/joiningtype-byname: New file.
9881         * lib/unictype/joiningtype_byname.c: New file.
9882
9883         Tests for module 'unictype/joiningtype-name'.
9884         * modules/unictype/joiningtype-name-tests: New file.
9885         * tests/unictype/test-joiningtype_name.c: New file.
9886
9887         New module 'unictype/joiningtype-name'.
9888         * modules/unictype/joiningtype-name: New file.
9889         * lib/unictype/joiningtype_name.c: New file.
9890
9891         unictype: Add support for Arabic shaping properties.
9892         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
9893         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
9894         declarations.
9895         (UC_JOINING_GROUP_*): New enumeration values.
9896         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
9897         declarations.
9898         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
9899         (unicode_joining_type): New variable.
9900         (UC_JOINING_GROUP_*): New enumeration values.
9901         (unicode_joining_group): New variable.
9902         (fill_arabicshaping, joining_type_as_c_identifier,
9903         output_joining_type_test, output_joining_type,
9904         joining_group_as_c_identifier, output_joining_group_test,
9905         output_joining_group): New functions.
9906         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
9907         fill_arabicshaping and output_joining_type_test, output_joining_type,
9908         output_joining_group_test, output_joining_group.
9909         Reported by Simon Josefsson.
9910
9911 2011-03-21  Jim Meyering  <meyering@redhat.com>
9912
9913         strftime: fix a bug in yesterday's change
9914         * lib/strftime.c (add): Accommodate width's initial value of -1.
9915         Otherwise, nstrftime would copy uninitialized data into
9916         the result buffer.
9917
9918 2011-03-21  Jim Meyering  <meyering@redhat.com>
9919
9920         tests: add strftime-tests module
9921         * tests/test-strftime.c: New file.
9922         * modules/strftime-tests: New module.
9923
9924 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9925
9926         strftime: don't assume a byte count fits in 'int'
9927         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
9928         found this problem by static analysis, using gcc -Wstrict-overflow
9929         (GCC 4.5.2, x86-64).  This reported an optimization that depended
9930         on an integer overflow having undefined behavior, but it turns out
9931         that the argument is a size, which might not fit in 'int' anyway,
9932
9933 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9934
9935         stdio: don't require ignore_value around fwrite
9936
9937         This patch works around libc bug 11959
9938         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
9939         Without this patch, applications must often write
9940         ignore_value (fwrite (...)) even though the ignore_value is
9941         not helpful here.  It's common to write many objects, using
9942         fwrite/printf/etc., and then use ferror to detect output error.
9943
9944         I considered making this patch optional, but decided against it,
9945         because libc is obviously being inconsistent here: there is no
9946         reason libc should insist that user code must inspect fwrite
9947         return's value without also insisting that it inspect printf's,
9948         putchar's, etc.  If user code wants to have a strict style where
9949         all these functions' values are checked (so that ferror need not
9950         be checked), we could add support for that style in a new gnulib
9951         module, but in the meantime it's better to be consistent and to
9952         support common usage.
9953
9954         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
9955         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
9956         that we are compiling in checking mode, and if not C++, and
9957         if not already wrapping fwrite for some other reason.
9958         (fwrite): #define to rpl_fwrite if the latter is defined.
9959
9960 2011-03-20  Bruno Haible  <bruno@clisp.org>
9961
9962         verror: Fix compilation error introduced on 2011-02-13.
9963         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
9964         instead of __attribute__.
9965         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9966
9967 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9968             Bruno Haible  <bruno@clisp.org>
9969
9970         socklen: do not depend on sys_socket
9971         While trying to modify Emacs to use gnulib's socklen module,
9972         I discovered a circular dependency: socklen depends on sys_socket
9973         and vice versa.  Emacs can use socklen, but it does not need
9974         sys_socket because it has its own substitute for sys/socket.h.
9975         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9976         gl_TYPE_SOCKLEN_T.
9977         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9978         gl_PREREQ_SYS_H_SOCKET.
9979         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9980         gl_PREREQ_SYS_H_SOCKET.
9981         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9982         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9983         * modules/socklen (Depends-on): Do not depend on sys_socket.
9984         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9985
9986 2011-03-20  Jim Meyering  <meyering@redhat.com>
9987
9988         maint.mk: sort file names *after* new transformation
9989         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9990         prefix would have led to an unwarranted failure in GNU parted.
9991         Sort after that transformation.
9992
9993 2011-03-19  Jim Meyering  <meyering@redhat.com>
9994
9995         maint.mk: fix po-file syntax-check rule
9996         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9997         Patch by Bruno Haible.
9998
9999 2011-03-19  Bruno Haible  <bruno@clisp.org>
10000
10001         socklen: Update comment.
10002         * m4/socklen.m4: Update comment about platforms.
10003
10004 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10005             Bruno Haible  <bruno@clisp.org>
10006
10007         inet_ntop, inet_pton: Simplify.
10008         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
10009         documented to provide socklen_t and we already depend on sys_socket.
10010         * modules/inet_pton (Depends-on): Likewise.
10011         * lib/arpa_inet.in.h: Adjust comment.
10012
10013 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10014             Bruno Haible  <bruno@clisp.org>
10015
10016         netdb: Simplify.
10017         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
10018         documented to provide socklen_t and we already depend on sys_socket.
10019         * lib/netdb.in.h: Adjust comment.
10020
10021 2011-03-19  Bruno Haible  <bruno@clisp.org>
10022
10023         sys_socket, netdb: Document problem with socklen_t.
10024         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
10025         platforms.
10026         * doc/posix-headers/netdb.texi: Likewise.
10027
10028 2011-03-18  Eric Blake  <eblake@redhat.com>
10029
10030         maint.mk: let po check work in VPATH build
10031         * top/maint.mk (po_file): Allow cfg.mk override.
10032         (sc_po_check): Allow VPATH use.
10033         Reported by Jiri Denemark.
10034
10035 2011-03-16  Jim Meyering  <meyering@redhat.com>
10036
10037         maint.mk: allow fine-grained syntax-check exclusion via Make variables
10038         Before, you would have had to create one .x-sc_ file per rule in order
10039         to exempt offending files.  Now, you may instead use a Make variable --
10040         usually defined in cfg.mk -- whose name identifies the affected rule.
10041         * top/maint.mk (_sc_excl): Define.
10042         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
10043         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
10044
10045 2011-03-13  Bruno Haible  <bruno@clisp.org>
10046
10047         ignore-value tests: Avoid warnings.
10048         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
10049         empty for gcc < 3.4.
10050
10051 2011-03-13  Bruno Haible  <bruno@clisp.org>
10052
10053         passfd: Fix link error on Solaris.
10054         * modules/passfd (Description): Correct.
10055         (Depends-on): Add socketlib.
10056         (Link): New section.
10057         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
10058
10059 2011-03-13  Bruno Haible  <bruno@clisp.org>
10060
10061         passfd: Fix link error on AIX 5.2.
10062         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
10063
10064 2011-03-13  Bruno Haible  <bruno@clisp.org>
10065
10066         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
10067         * lib/sys_socket.in.h: Include <stddef.h>.
10068         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
10069         CMSG_FIRSTHDR. Remove unused variable.
10070
10071 2011-03-13  Bruno Haible  <bruno@clisp.org>
10072
10073         passfd: Fix compilation error on OpenBSD.
10074         * lib/passfd.c: Include <sys/uio.h>.
10075
10076 2011-03-13  Bruno Haible  <bruno@clisp.org>
10077
10078         passfd test: Fix warnings.
10079         * tests/test-passfd.c: Include <sys/wait.h>.
10080         (main): Fix typo.
10081
10082 2011-03-13  Bruno Haible  <bruno@clisp.org>
10083
10084         passfd module, part 4, tweaks.
10085         * tests/test-passfd.c: Reorder includes.
10086         (main): Fix perror and printf calls.
10087
10088 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10089
10090         passfd module, part 4.
10091         * modules/passfd-tests: New file.
10092         * tests/test-passfd.c: New file.
10093
10094 2011-03-13  Jim Meyering  <meyering@redhat.com>
10095
10096         Makefile: rely on GNU make; derive syntax-check rule names
10097         Rather than requiring that each sc_ rule be listed as a dependent
10098         of "check", use features of GNU make to derive the list.
10099         * Makefile (syntax-check-rules): Define.
10100         (check): Depend on the new variable, not the hard-coded list.
10101
10102 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
10103             Bruno Haible  <bruno@clisp.org>
10104
10105         passfd module, part 3.
10106         * lib/passfd.h (recvfd): Add a flags argument.
10107         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
10108         (recvfd): Add a flags argument.
10109         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
10110         exists.
10111         * modules/passfd (Depends-on): Add cloexec.
10112         Suggested by Eric Blake.
10113
10114 2011-03-13  Bruno Haible  <bruno@clisp.org>
10115
10116         passfd module, part 2, tweaks.
10117         * modules/passfd (Files): Reorder.
10118         (Depends-on): Remove errno.
10119         (Include): Remove <sys/socket.h>, <sys/un.h>.
10120         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
10121         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
10122         specification header. Include <sys/socket.h> always. Don't include
10123         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
10124         (sendfd): Clarify that it sets errno when it fails.
10125         (recvfd): Fix specification.
10126
10127 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10128
10129         passfd module, part 2.
10130         * modules/passfd: New file.
10131         * lib/passfd.h: New file.
10132         * lib/passfd.c: New file.
10133
10134 2011-03-12  Bruno Haible  <bruno@clisp.org>
10135
10136         wcswidth, mbswidth: Avoid integer overflow.
10137         * lib/wcswidth.c: Include <limits.h>.
10138         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
10139         * lib/mbswidth.c: Include <limits.h>.
10140         (mbsnwidth): Avoid 'int' overflow.
10141         Reported by Jim Meyering.
10142
10143 2011-03-12  Bruno Haible  <bruno@clisp.org>
10144
10145         futimens, utimensat: Avoid endless recursion on Solaris 10.
10146         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
10147         Solaris.
10148         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
10149         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
10150
10151 2011-03-11  Jim Meyering  <meyering@redhat.com>
10152
10153         maint.mk: relax a regexp to accommodate other formatting styles
10154         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
10155         between "ngettext" and the following "(".
10156
10157 2011-03-11  Pádraig Brady <P@draigBrady.com>
10158
10159         maint.mk: suppress a false positive warning
10160         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
10161         diagnostics are marked with ngettext.
10162
10163 2011-03-10  Eric Blake  <eblake@redhat.com>
10164
10165         wchar: add explicit dependencies, for Tru64
10166         * modules/mbmemcasecoll (Depends-on): Add wchar.
10167         * modules/mbtowc (Depends-on): Likewise.
10168         * modules/vasnprintf (Depends-on): Likewise.
10169         * modules/unistdio/u-printf-args (Depends-on): Likewise.
10170         * modules/wctomb (Depends-on): Likewise.
10171         Reported by Peter O'Gorman.
10172
10173 2011-03-08  Bruno Haible  <bruno@clisp.org>
10174
10175         passfd module, part 1, tweaks.
10176         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
10177         Improve indentation. Improve AC_MSG_CHECKING messages.
10178         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
10179         gl_SOCKET_FAMILIES.
10180
10181 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10182
10183         passfd module, part 1.
10184         * m4/afunix.m4: New file.
10185         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
10186         sockets.
10187
10188 2011-03-08  Bruno Haible  <bruno@clisp.org>
10189
10190         regex-quote: New API.
10191         * lib/regex-quote.h: Include <stdbool.h>.
10192         (struct regex_quote_spec): New type.
10193         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10194         New declarations.
10195         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10196         'const struct regex_quote_spec *' argument.
10197         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
10198         (pcre_special): New constant.
10199         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10200         New functions.
10201         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10202         'const struct regex_quote_spec *' argument.
10203         * modules/regex-quote (Depends-on): Add stdbool.
10204         * tests/test-regex-quote.c (check): Update for new API. Add test for
10205         anchored results.
10206         * NEWS: Mention the API change.
10207         Reported by Reuben Thomas and Eric Blake.
10208
10209 2011-03-06  Bruno Haible  <bruno@clisp.org>
10210
10211         regex-quote: Fix creation of POSIX extended regular expressions.
10212         * lib/regex-quote.c (ere_special): Add grouping and alternation
10213         operators.
10214
10215 2011-03-05  Bruno Haible  <bruno@clisp.org>
10216
10217         doc: Improve doc regarding autopoint vs. gnulib.
10218         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
10219         disable autopoint while running autoreconf.
10220         Suggested by Ralf Wildenhues.
10221
10222 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10223
10224         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
10225         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
10226
10227 2011-03-03  Bruce Korb  <bkorb@gnu.org>
10228
10229         parse-duration: remove xalloc.h dependency
10230         * lib/parse-duration.c (parse_period): handle NULL return from
10231         strdup instead of calling xstrdup().
10232         * modules/parse-duration: remove "xalloc" dependency
10233
10234 2011-03-03  Matthew Booth  <mbooth@redhat.com>
10235
10236         bootstrap: honor m4_base when running aclocal
10237         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
10238
10239 2011-03-02  Jim Meyering  <meyering@redhat.com>
10240
10241         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
10242         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
10243         on request from Matt Booth.
10244
10245 2011-03-01  Eric Blake  <eblake@redhat.com>
10246
10247         test-link: work on Hurd
10248         * tests/test-link.h (test_link): Hurd rejects linking directories
10249         with EISDIR instead of the POSIX-mandated EPERM.
10250
10251 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
10252
10253         stdio: simplify by moving files to printf-posix, sigpipe
10254         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
10255         since this symbol is needed only if printf is replaced.
10256         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
10257         Require gl_ASM_SYMBOL_PREFIX.
10258         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
10259         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
10260         (Depends-on): Add 'raise'.
10261         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
10262         * modules/stdio (Files): Remove lib/stdio-write.c,
10263         m4/asm-underscore.m4.
10264         (Depends-on): Remove 'raise'.
10265
10266         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
10267         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
10268         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
10269         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
10270
10271 2011-02-28  Bruno Haible  <bruno@clisp.org>
10272
10273         localcharset: Assume ANSI C behaviour of free().
10274         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
10275         calling free().
10276         Suggested by Simon Josefsson <simon@josefsson.org>.
10277
10278 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
10279             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
10280             Bruno Haible  <bruno@clisp.org>  (tiny change)
10281
10282         On Cygwin, use /proc file system instead of win32 API.
10283         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
10284         Win32 file names.
10285         (DllMain): Simplify by removing Cygwin specific code.
10286         (find_shared_library_fullname): Use Linux specific implementation also
10287         for Cygwin.
10288         (get_shared_library_fullname): Update accordingly.
10289         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
10290         Win32 file names.
10291         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
10292         Cygwin specific code.
10293
10294 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
10295             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
10296
10297         Fix OpenMP flag detection for various Fortran compilers.
10298         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
10299         OpenMP-conditional compilation construct, to force compile
10300         failure with missing OpenMP flag.
10301         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
10302
10303 2011-02-25  Eric Blake  <eblake@redhat.com>
10304
10305         strstr: expand test coverage
10306         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
10307         compilation.
10308         * tests/test-memmem.c (main): Duplicate tests.
10309         * tests/test-strcasestr.c (main): Likewise.
10310         * tests/test-c-strcasestr.c (main): Likewise.
10311
10312 2011-02-25  Jim Meyering  <meyering@redhat.com>
10313
10314         maint.mk: detect missing-NL-at-EOF, too
10315         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
10316         it also detects when a file lacks a newline at EOF.
10317         (require_exactly_one_NL_at_EOF_): Renamed from
10318         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
10319         since people may well have .x-sc_... file names tied to the
10320         existing name.  Suggested by Eric Blake.
10321
10322 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
10323
10324         dirname: move m4/dos.m4 functionality into lib/dosname.h
10325
10326         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
10327         extracts symbols from it, puts them into config.h; but it's much
10328         easier to use the symbols directly.  filename.h already does this,
10329         but it disagrees with dos.m4 in some respects.  This patch
10330         introduces a different include file dosname.h that packages up
10331         dos.m4, and then later we can work on merging filename.h and
10332         dosname.h.  Applications that need only the easy-to-configure
10333         symbols should consider including dosname.h rather than dirname.h.
10334         * NEWS: Mention incompatible changes.
10335         * m4/dos.m4: Remove.
10336         * lib/dosname.h, modules/dosname: New files.
10337         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
10338         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
10339         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
10340         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
10341         Include dosname.h, not dirname.h.
10342         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
10343         Include dosname.h, for definitions of symbols like ISSLASH
10344         that used to be in config.h.
10345         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
10346         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10347         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10348         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10349         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
10350         * modules/rmdir (Files): Likewise.
10351         * modules/stat (Files): Likewise.
10352         * modules/unlink (Files): Likewise.
10353         * modules/dirname-lgpl (Depends-on): Add dosname.
10354         * modules/lstat (Depends-on): Likewise.
10355         * modules/openat (Depends-on): Likewise.
10356         * modules/rmdir (Depends-on): Likewise.
10357         * modules/savewd (Depends-on): Likewise.
10358         * modules/stat (Depends-on): Likewise.
10359         * modules/unlink (Depends-on): Likewise.
10360         * modules/openat (Depends-on): Remove dirname-lgpl.
10361         * modules/savewd (Depends-on): Likewise.
10362         * tests/test-dirname.c: Do not use removed symbols like
10363         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
10364         the remaining symbols, e.g., ISSLASH ('\\').
10365
10366 2011-02-25  Eric Blake  <eblake@redhat.com>
10367
10368         strstr: revert patches that introduced bug and pessimization
10369         * lib/str-two-way.h: Add another reference.
10370         (two_way_short_needle, two_way_long_needle): Revert changes from
10371         2011-02-24; they pessimize search speed.
10372         (critical_factorization): Partially revert changes from
10373         2010-06-22; they violate the requirement that the left half of the
10374         needle be smaller than the period of the needle.
10375
10376 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10377
10378         filenamecat: remove unnecessary dependency on dirname-lgpl
10379         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
10380         is no direct dependency, just an indirect one via filenamecat-lgpl.
10381
10382         remove: remove unnecessary use of m4/dos.m4
10383         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
10384         * modules/remove (FILES): Remove m4/dos.m4.
10385
10386         * lib/openat-proc.c: Don't include dirname.h; not needed.
10387
10388         backupfile: remove unnecessary use of m4/dos.m4
10389         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
10390         of its symbols are used by the backupfile code.  backupfile.c does
10391         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
10392         for the rare case of programs that want all their backup file
10393         names to live within 8+3 limits, and dos.m4 doesn't address that.
10394         * modules/backupfile (Files): Remove m4/dos.m4.
10395
10396 2011-02-24  Jim Meyering  <meyering@redhat.com>
10397
10398         strstr: fix a bug whereby strstr would mistakenly return NULL
10399         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
10400         in period calculation.
10401         (two_way_long_needle): Likewise.
10402         The original problem was reported by Mike Stump in
10403         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
10404         Ralf Wildenhues provided the short needle and haystack.
10405         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
10406         Add a more involved test to trigger the bug in two_way_long_needle.
10407
10408 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10409
10410         gnulib-tool: remove use of bold display in help screen
10411         * gnulib-tool (func_usage): Do not use bold display anymore in the
10412         help screen.  That was just meant to be a temporary emphasis for a
10413         backward-incompatible change.
10414
10415 2011-02-23  Bruno Haible  <bruno@clisp.org>
10416
10417         Fix misindentation of preprocessor directives.
10418         * lib/argp-namefrob.h: Reindent preprocessor directives.
10419         * lib/getopt_int.h (struct _getopt_data): Likewise.
10420         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
10421         * lib/vasnprintf.c (decode_long_double): Likewise.
10422         * tests/test-argmatch.c: Insert blank lines, for clarity.
10423         * tests/test-exclude.c: Likewise.
10424
10425 2011-02-22  Bruno Haible  <bruno@clisp.org>
10426
10427         ioctl: Fix for MacOS X in 64-bit mode.
10428         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
10429         value.
10430         Suggested by Eric Blake.
10431         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
10432
10433 2011-02-22  Jim Meyering  <meyering@redhat.com>
10434
10435         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
10436         * Makefile (sc_cpp_indent_check): Don't limit the check to files
10437         in lib/.
10438
10439 2011-02-22  Eric Blake  <eblake@redhat.com>
10440
10441         maint: avoid any CDPATH issue
10442         * Makefile (sc_cpp_indent_check): Anchor cd argument.
10443
10444         maint: adjust cpp indentation for my modules, as well
10445         * Makefile (sc_cpp_indent_check): Add my name.
10446         * lib/fbufmode.c: Filter through cppi.
10447         * lib/fpurge.c: Likewise.
10448         * lib/freadable.c: Likewise.
10449         * lib/freading.c: Likewise.
10450         * lib/fwritable.c: Likewise.
10451         * lib/fwriting.c: Likewise.
10452         * lib/sigaction.c: Likewise.
10453
10454 2011-02-22  Jim Meyering  <meyering@redhat.com>
10455
10456         maint: adjust cpp indentation to reflect nesting depth
10457         I.e., in a block of code that begins with an unnested "#if",
10458         put one space between the "#" in column 1 and following token.
10459         For example,
10460         -#include <sys/vfs.h>
10461         +# include <sys/vfs.h>
10462         Do this only in .c files that are part of a module I maintain.
10463         * lib/linkat.c: Filter through cppi.
10464         * lib/nanosleep.c: Likewise.
10465         * lib/openat.c: Likewise.
10466         * lib/openat-die.c: Likewise.
10467         * lib/dup3.c: Likewise.
10468         * lib/fchownat.c: Likewise.
10469         * lib/flock.c: Likewise.
10470         * lib/fsync.c: Likewise.
10471         * lib/fts.c: Likewise.
10472         * lib/getpass.c: Likewise.
10473         * lib/gettimeofday.c: Likewise.
10474         * lib/userspec.c: Likewise.
10475         * Makefile (sc_cpp_indent_check): New rule, to check this.
10476
10477 2011-02-22  Bruno Haible  <bruno@clisp.org>
10478
10479         New module 'wctomb'.
10480         * lib/stdlib.in.h (wctomb): New declaration.
10481         * lib/wctomb.c: New file.
10482         * lib/wctomb-impl.h: New file.
10483         * m4/wctomb.m4: New file.
10484         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
10485         REPLACE_WCTOMB.
10486         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
10487         REPLACE_WCTOMB.
10488         * modules/wctomb: New file.
10489         * tests/test-stdlib-c++.cc: Test signature of wctomb.
10490         * doc/posix-functions/wctomb.texi: Mention the new module.
10491         * modules/wctob (Depends-on): Add wctomb.
10492
10493 2011-02-22  Bruno Haible  <bruno@clisp.org>
10494
10495         New module 'mbtowc'.
10496         * lib/stdlib.in.h (mbtowc): New declaration.
10497         * lib/mbtowc.c: New file.
10498         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
10499         * m4/mbtowc.m4: New file.
10500         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
10501         REPLACE_MBTOWC.
10502         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
10503         REPLACE_MBTOWC.
10504         * modules/mbtowc: New file.
10505         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
10506         * doc/posix-functions/mbtowc.texi: Mention the new module.
10507         * modules/btowc (Depends-on): Add mbtowc.
10508
10509 2011-02-22  Bruno Haible  <bruno@clisp.org>
10510
10511         wcrtomb: Add more tests for native Windows platforms.
10512         * tests/test-wcrtomb-w32-1.sh: New file.
10513         * tests/test-wcrtomb-w32-2.sh: New file.
10514         * tests/test-wcrtomb-w32-3.sh: New file.
10515         * tests/test-wcrtomb-w32-4.sh: New file.
10516         * tests/test-wcrtomb-w32-5.sh: New file.
10517         * tests/test-wcrtomb-w32.c: New file.
10518         * modules/wcrtomb-tests (Files): Add them.
10519         (Makefile.am): Arrange to run these tests.
10520         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
10521         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
10522
10523 2011-02-20  Bruno Haible  <bruno@clisp.org>
10524
10525         wcrtomb: Enhance test.
10526         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
10527
10528 2011-02-20  Bruno Haible  <bruno@clisp.org>
10529
10530         mbrtowc: Tiny optimization.
10531         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
10532
10533 2011-02-20  Jim Meyering  <meyering@redhat.com>
10534
10535         test-exclude.c: remove unmatched #endif
10536         * tests/test-exclude.c: Remove stray #endif, left over from
10537         the change of a week ago.
10538
10539 2011-02-19  Jim Meyering  <meyering@redhat.com>
10540
10541         git-version-gen: skip "-dirty" check when appropriate
10542         * build-aux/git-version-gen: Don't run any git commands when the
10543         version string comes from .tarball-version.  Prior to this, we
10544         would run git update-index --refresh even from a just-unpacked
10545         tarball directory, and that could affect a .git/ directory in a
10546         parent of the build directory.  Reported by Mike Frysinger.
10547
10548 2011-02-19  Bruno Haible  <bruno@clisp.org>
10549
10550         unictype/property-byname: Reduce the size of the 'data' segment.
10551         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
10552
10553 2011-02-19  Bruno Haible  <bruno@clisp.org>
10554
10555         unictype/scripts: Reduce the size of the 'data' segment.
10556         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
10557         '%pic'.
10558         * lib/unictype/scripts_byname.gperf: Regenerated.
10559
10560 2011-02-19  Bruno Haible  <bruno@clisp.org>
10561
10562         stdint: Update documentation.
10563         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
10564
10565 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
10566
10567         stdint: omit redundant check for wchar.h
10568         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
10569         always tests whether wchar.h exists, so remove the now-redundant test.
10570
10571 2011-02-18  Bruno Haible  <bruno@clisp.org>
10572
10573         stdint: Cut dependency to module 'wchar'.
10574         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
10575         include the necessary prerequisites.
10576         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
10577         * modules/stdint (Depends-on): Remove wchar.
10578         (Makefile.am): Substitute HAVE_WCHAR_H.
10579         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
10580
10581 2011-02-18  Eric Blake  <eblake@redhat.com>
10582
10583         longlong: skip, rather than fail, on cross-compilation
10584         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
10585         when cross-compiling; regression from 2011-02-16.
10586
10587 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10588
10589         * NEWS: Mention 2011-02-08 change to stdlib.
10590
10591 2011-02-17  Bruno Haible  <bruno@clisp.org>
10592
10593         getloadavg: Add comments about platforms.
10594         * m4/getloadavg.m4: Add comment.
10595         * lib/getloadavg.c: Likewise.
10596
10597 2011-02-17  Bruno Haible  <bruno@clisp.org>
10598
10599         getloadavg: Fix link error on Solaris 2.6.
10600         * modules/getloadavg (Link): New section.
10601         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
10602         linking test-getloadavg.
10603         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
10604         getloadavg.
10605
10606 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10607
10608         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
10609         It was 'int', but this doesn't match the IRIX 6.5 manual.
10610         Suggested by Bruno Haible in
10611         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
10612
10613 2011-02-17  Bruno Haible  <bruno@clisp.org>
10614
10615         havelib: Fix comments.
10616         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
10617         change.
10618
10619 2011-02-17  Bruno Haible  <bruno@clisp.org>
10620
10621         havelib: Update config.rpath.
10622         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
10623
10624 2011-02-17  Bruno Haible  <bruno@clisp.org>
10625
10626         getloadavg test: Add some plausibility checks.
10627         * tests/test-getloadavg.c (check_avg): Print a warning when the value
10628         is improbable.
10629
10630 2011-02-16  Eric Blake  <eblake@redhat.com>
10631
10632         maintainer-makefile: make syntax-check a no-op from tarballs
10633         * top/maint.mk (no-vc-detected): New rule.
10634         (local-checks-available): Use it to avoid hanging if someone tries
10635         'make syntax-check' from a tarball.  Also append to any non-syntax
10636         checks already defined in cfg.mk.
10637
10638 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
10639
10640         longlong: tune, particularly for common case of c99
10641
10642         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
10643         or running anything if c99, or if unsigned long long int does not
10644         work.  In either case, we know the answer without further tests.
10645         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
10646         it at most once, and use its results for both long long int and
10647         unsigned long long int.  This is more likely to be efficient in
10648         the common case where the program wants to check for both long
10649         long int and unsigned long long int.
10650         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
10651         since the answer is already known.
10652
10653 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
10654
10655         getloadavg: set errno
10656         * lib/getloadavg.c: Set errno when returning -1.  If no other
10657         error number looks appropriate, set it to ENOSYS if the getloadavg
10658         looks like it can't possibly ever work, ENOTSUP otherwise.
10659         Suggested by Bruno Haible in
10660         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
10661
10662         getloadavg: trim unused parts and speed up 'configure'
10663         * NEWS: Document this.
10664         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
10665         always compiled if getloadavg is absent.
10666         Move test code to ...
10667         * tests/test-getloadavg.c: New file, containing previous
10668         contents of test from lib/getloadavg.c.  It also contains
10669         suggestions by Bruno Haible in
10670         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
10671         * modules/getloadavg-tests: New file.
10672         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
10673         Do tests in the same order as they're needed for getloadavg.c.
10674         Omit setgid-related tests that generate symbols KMEM_GROUP,
10675         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
10676         Do only the tests that are needed to see whether the system has
10677         getloadavg, moving the other tests into ...
10678         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
10679         NLIST_NAME_UNION; nobody should be using it.  Do not define
10680         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
10681         relevant, as the user of this module shouldn't care how getloadavg
10682         is implemented.
10683
10684         getloadavg: omit unused var
10685         * lib/getloadavg.c (getloadavg): Omit unused local variable.
10686
10687 2011-02-15  Jim Meyering  <meyering@redhat.com>
10688
10689         doc: update users.txt
10690         * users.txt: Update iwhd's URL.
10691
10692 2011-02-13  Bruno Haible  <bruno@clisp.org>
10693
10694         Consistent macro naming for macros that use GCC __attribute__.
10695         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
10696         _ATTRIBUTE_NONNULL_.
10697         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
10698         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
10699         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
10700         ATTRIBUTE_DEPRECATED.
10701         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
10702         ATTRIBUTE_NORETURN.
10703         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10704         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10705         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10706         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10707         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
10708         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
10709         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
10710         ATTRIBUTE_SENTINEL.
10711         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
10712         ATTRIBUTE_RETURN_CHECK.
10713         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
10714         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
10715         ATTRIBUTE_NORETURN.
10716         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
10717         Reported by Paul Eggert.
10718
10719 2011-02-13  Bruno Haible  <bruno@clisp.org>
10720
10721         Don't interfere with a program's definition of __attribute__.
10722         * lib/argp.h (__attribute__): Remove definition.
10723         (_GL_ATTRIBUTE_FORMAT): New macro.
10724         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
10725         * lib/argp-fmtstream.h (__attribute__): Remove definition.
10726         (_GL_ATTRIBUTE_FORMAT): New macro.
10727         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
10728         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
10729         GCC 3 or newer.
10730         * lib/error.h (__attribute__): Remove definition.
10731         (_GL_ATTRIBUTE_FORMAT): New macro.
10732         (error, error_at_line): Use it.
10733         * lib/hash.h (__attribute__): Remove definition.
10734         (ATTRIBUTE_WUR): Update definition. Define always.
10735         * lib/openat.h (__attribute__): Remove definition.
10736         (ATTRIBUTE_NORETURN): Update definition. Define always.
10737         * lib/sigpipe-die.h (__attribute__): Remove definition.
10738         (ATTRIBUTE_NORETURN): Update definition. Define always.
10739         * lib/vasnprintf.h (__attribute__): Remove definition.
10740         (_GL_ATTRIBUTE_FORMAT): New macro.
10741         (asnprintf, vasnprintf): Use it.
10742         * lib/xalloc.h (__attribute__): Remove definition.
10743         (ATTRIBUTE_NORETURN): Update definition. Define always.
10744         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
10745         * lib/xmemdup0.h (__attribute__): Remove definition.
10746         (ATTRIBUTE_NORETURN): Update definition. Define always.
10747         * lib/xprintf.h (__attribute__): Remove definition.
10748         (_GL_ATTRIBUTE_FORMAT): New macro.
10749         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
10750         * lib/xstrtol.h (__attribute__): Remove definition.
10751         (ATTRIBUTE_NORETURN): Update definition. Define always.
10752         * lib/xvasprintf.h (__attribute__): Remove definition.
10753         (_GL_ATTRIBUTE_FORMAT): New macro.
10754         (xasprintf, xvasprintf): Use it.
10755         * tests/test-argmatch.c (__attribute__): Remove definition.
10756         (ATTRIBUTE_NORETURN): Update definition. Define always.
10757         * tests/test-exclude.c (__attribute__): Remove definition.
10758         (ATTRIBUTE_NORETURN): Update definition. Define always.
10759         Reported by Paul Eggert.
10760
10761 2011-02-13  Bruno Haible  <bruno@clisp.org>
10762
10763         mbrtowc: Add more tests for native Windows platforms.
10764         * tests/test-mbrtowc-w32-1.sh: New file.
10765         * tests/test-mbrtowc-w32-2.sh: New file.
10766         * tests/test-mbrtowc-w32-3.sh: New file.
10767         * tests/test-mbrtowc-w32-4.sh: New file.
10768         * tests/test-mbrtowc-w32-5.sh: New file.
10769         * tests/test-mbrtowc-w32.c: New file.
10770         * modules/mbrtowc-tests (Files): Add them.
10771         (Makefile.am): Arrange to run these tests.
10772         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
10773         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
10774
10775 2011-02-13  Bruno Haible  <bruno@clisp.org>
10776
10777         mbrtowc: Work around native Windows bug.
10778         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
10779         guess when no suitable locale for testing was found.
10780         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
10781
10782 2011-02-13  Bruno Haible  <bruno@clisp.org>
10783
10784         mbsinit: Work around mingw bug.
10785         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
10786         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
10787         Windows.
10788         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
10789
10790 2011-02-13  Bruno Haible  <bruno@clisp.org>
10791
10792         mbsinit: Don't crash for a NULL argument.
10793         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
10794         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
10795
10796 2011-02-13  Bruno Haible  <bruno@clisp.org>
10797
10798         Don't interfere with a program's definition of __attribute__.
10799         * lib/stdio.in.h (__attribute__): Remove definition.
10800         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
10801         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
10802         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
10803         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
10804         * lib/string.in.h (__attribute__): Remove definition.
10805         Reported by Paul Eggert.
10806
10807 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10808
10809         stdlib: don't get in the way of non-GCC __attribute__
10810         See thread starting at
10811         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
10812         Revert previous stdlib change, installing the following instead:
10813         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
10814         to get in the way of a non-GCC compiler that supports __attribute__.
10815         (_GL_ATTRIBUTE_RETURN): New macro.
10816         (_Exit): Use it instead of __attribute__.
10817
10818 2011-02-12  Bruno Haible  <bruno@clisp.org>
10819
10820         quotearg test: Avoid test failure on mingw.
10821         * tests/test-quotearg.sh: Convert the locale identifier from native
10822         Windows syntax to Unix syntax.
10823
10824 2011-02-12  Bruno Haible  <bruno@clisp.org>
10825
10826         setlocale: Prefer gnulib's override over libintl's override.
10827         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
10828         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
10829         GNULIB_defined_setlocale is set.
10830
10831 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10832
10833         stdlib: support non-GCC __attribute__
10834
10835         Fix a serious and tricky problem encountered when attempting to
10836         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
10837         5.5, but it crashed due to memory corruption on Solaris 10 with
10838         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
10839         bits that are otherwise zero.  This tagging is optional inside
10840         Emacs but is preferred and is used when __attribute__ ((__aligned
10841         (8))) works, as it does with both recent-enough GCC and with Sun C
10842         5.11.  However, Sun C 5.11 is not GCC and does not #define
10843         __GNUC__ and __GNUC_MINOR__.
10844
10845         When I added the getloadavg module to Emacs, it brought in
10846         stdlib.in.h, which contained this fragment:
10847
10848            #ifndef __attribute__
10849            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
10850            #  define __attribute__(Spec)   /* empty */
10851            # endif
10852            #endif
10853
10854         When files that include <stdlib.h> were compiled with Sun C 5.11,
10855         the above code disabled __attribute__ ((__aligned (8))), which
10856         caused variables to not be properly aligned, which eventually led
10857         to the pointer corruption mentioned above.  (This was a bit hard
10858         to diagnose, unfortunately.)
10859
10860         Several "#define __attribute__(X) /* empty */" code snippets need
10861         to be eradicated from Gnulib to work with non-GCC compilers that
10862         support __attribute__.  The Autoconf way to do this is to test for
10863         each kind of attribute that we want support for, and selectively
10864         enable that in source code.
10865
10866         Fix this problem just for stdlib.h, by adding a test for the
10867         __noreturn__ attribute, and change stdlib.in.h to use that test
10868         when needed.  This technique can be easily generalized to the
10869         other *.in.h files and attributes, and a similar technique can be
10870         used for *.h and *.c files.  This patch is enough to solve the
10871         problem for Emacs + getloadavg, and I thought I'd publish it for
10872         feedback before undertaking further, similar fixes in other
10873         modules.
10874
10875         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
10876         because it's not needed for stdlib.h.  It merely substitutes the
10877         value directly into stdlib.h.  We may well need to #define it, or
10878         similar symbols, for other modules, but it's nice to also have an
10879         option to not #define it for applications like Emacs that do not
10880         need it.
10881
10882         * lib/stdlib.in.h (__attribute__): Do not #define.
10883         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
10884         be defined only if the _Exit module is also used.
10885         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
10886         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
10887         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
10888         platforms.
10889         * modules/_Exit (Files): Add m4/attribute.m4.
10890         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
10891         * m4/attribute.m4: New file.
10892
10893 2011-02-12  Bruno Haible  <bruno@clisp.org>
10894
10895         wcsrtombs: Work around bug on native Windows.
10896         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
10897         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
10898         instead of len.
10899         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
10900
10901 2011-02-12  Bruno Haible  <bruno@clisp.org>
10902
10903         mbsrtowcs: Work around bug on native Windows.
10904         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
10905         against mingw bug.
10906         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
10907
10908 2011-02-12  Bruno Haible  <bruno@clisp.org>
10909
10910         Avoid setlocale bugs in tests.
10911         * modules/btowc (Dependencies): Add setlocale.
10912         * modules/c-strcase (Dependencies): Likewise.
10913         * modules/mbmemcasecmp (Dependencies): Likewise.
10914         * modules/mbmemcasecoll (Dependencies): Likewise.
10915         * modules/mbrtowc (Dependencies): Likewise.
10916         * modules/mbscasecmp (Dependencies): Likewise.
10917         * modules/mbscasestr (Dependencies): Likewise.
10918         * modules/mbschr (Dependencies): Likewise.
10919         * modules/mbscspn (Dependencies): Likewise.
10920         * modules/mbsinit (Dependencies): Likewise.
10921         * modules/mbsncasecmp (Dependencies): Likewise.
10922         * modules/mbsnrtowcs (Dependencies): Likewise.
10923         * modules/mbspbrk (Dependencies): Likewise.
10924         * modules/mbspcasecmp (Dependencies): Likewise.
10925         * modules/mbsrchr (Dependencies): Likewise.
10926         * modules/mbsrtowcs (Dependencies): Likewise.
10927         * modules/mbsspn (Dependencies): Likewise.
10928         * modules/mbsstr (Dependencies): Likewise.
10929         * modules/nl_langinfo (Dependencies): Likewise.
10930         * modules/quotearg (Dependencies): Likewise.
10931         * modules/unicase/locale-language (Dependencies): Likewise.
10932         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
10933         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
10934         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
10935         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
10936         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
10937         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
10938         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
10939         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
10940         * modules/vasnprintf-posix (Dependencies): Likewise.
10941         * modules/wcrtomb (Dependencies): Likewise.
10942         * modules/wcsnrtombs (Dependencies): Likewise.
10943         * modules/wcsrtombs (Dependencies): Likewise.
10944
10945 2011-02-12  Bruno Haible  <bruno@clisp.org>
10946
10947         setlocale: Workaround native Windows bug.
10948         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
10949         succeeds but sets LC_CTYPE to "C", report a failure.
10950         * tests/test-setlocale2.sh: New file.
10951         * tests/test-setlocale2.c: New file.
10952         * modules/setlocale-tests (Files): Add the new files.
10953         (Makefile.am): Enable test-setlocale2.sh test.
10954         * doc/posix-functions/setlocale.texi: Mention workaround.
10955
10956 2011-02-11  Bruno Haible  <bruno@clisp.org>
10957
10958         Tests for module 'setlocale'.
10959         * modules/setlocale-tests: New file.
10960         * tests/test-setlocale1.sh: New file.
10961         * tests/test-setlocale1.c: New file.
10962
10963         New module 'setlocale'.
10964         * lib/locale.in.h (setlocale): New declaration.
10965         * lib/setlocale.c: New file, based on
10966         gettext/gettext-runtime/intl/setlocale.c.
10967         * m4/setlocale.m4: New file.
10968         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
10969         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
10970         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
10971         REPLACE_SETLOCALE.
10972         * modules/setlocale: New file.
10973         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10974         * doc/posix-functions/setlocale.texi: Mention the new module.
10975
10976 2011-02-11  Bruno Haible  <bruno@clisp.org>
10977
10978         Prepare for locale dependent tests on mingw.
10979         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10980         because it has the wrong locale encoding.
10981         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10982         French_France.1252 instead of "fr".
10983         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10984         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10985         because it has the wrong locale encoding.
10986         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10987         native Windows, try Turkish_Turkey.65001.
10988         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10989         Chinese_China.54936.
10990
10991         Prepare for locale dependent tests on mingw.
10992         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10993         differently.
10994         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10995         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10996         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10997         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10998
10999 2011-02-11  Eric Blake  <eblake@redhat.com>
11000
11001         strptime: avoid compiler warnings
11002         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
11003         compiler warnings about dead code.
11004         Reported by Daniel P. Berrange.
11005
11006 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
11007
11008         doc: update users.txt
11009         * users.txt: Add rcs.
11010
11011 2011-02-10  John W. Eaton  <jwe@gnu.org>
11012
11013         doc: update users.txt
11014         * users.txt: Add octave.
11015
11016 2011-02-10  Jim Meyering  <meyering@redhat.com>
11017
11018         doc: update users.txt
11019         * users.txt: Add iwhd.
11020
11021 2011-02-09  Bruno Haible  <bruno@clisp.org>
11022
11023         gnulib-tool: Make copyright notice adjustment more robust.
11024         * gnulib-tool (func_import): In sed_transform_main_lib_file,
11025         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
11026         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
11027         License".
11028         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
11029
11030 2011-02-06  Bruno Haible  <bruno@clisp.org>
11031
11032         New module 'towctrans'.
11033         * modules/towctrans: New file.
11034         * lib/wctype.in.h (towctrans): New declaration.
11035         * lib/towctrans.c: New file.
11036         * lib/towctrans-impl.h: New file.
11037         * m4/towctrans.m4: New file.
11038         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
11039         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
11040         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
11041         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
11042         * doc/posix-functions/towctrans.texi: Mention the new module.
11043
11044 2011-02-06  Bruno Haible  <bruno@clisp.org>
11045
11046         New module 'wctrans'.
11047         * modules/wctrans: New file.
11048         * lib/wctype.in.h (wctrans): New declaration.
11049         * lib/wctrans.c: New file.
11050         * lib/wctrans-impl.h: New file.
11051         * m4/wctrans.m4: New file.
11052         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
11053         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
11054         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
11055         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
11056         * doc/posix-functions/wctrans.texi: Mention the new module.
11057
11058 2011-02-06  Bruno Haible  <bruno@clisp.org>
11059
11060         New module 'iswctype'.
11061         * modules/iswctype: New file.
11062         * lib/wctype.in.h (iswctype): New declaration.
11063         * lib/iswctype.c: New file.
11064         * lib/iswctype-impl.h: New file.
11065         * m4/iswctype.m4: New file.
11066         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
11067         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
11068         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
11069         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
11070         * doc/posix-functions/iswctype.texi: Mention the new module and the
11071         HP-UX 11.00 problem.
11072
11073 2011-02-06  Bruno Haible  <bruno@clisp.org>
11074
11075         New module 'wctype'.
11076         * modules/wctype: Change to represent the wctype() substitute.
11077         * lib/wctype.in.h (wctype): New declaration.
11078         * lib/wctype.c: New file.
11079         * lib/wctype-impl.h: New file.
11080         * m4/wctype.m4: New file.
11081         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
11082         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
11083         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
11084         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
11085         * doc/posix-functions/wctype.texi: Mention the new module and the
11086         HP-UX 11.00 problem.
11087
11088 2011-02-06  Bruno Haible  <bruno@clisp.org>
11089
11090         wctype-h: Ensure wctype_t and wctrans_t are defined.
11091         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
11092         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11093         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11094         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
11095         HAVE_WCTRANS_T.
11096         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
11097
11098 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11099
11100         flock: fix license typo
11101
11102         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
11103         omitted.
11104
11105 2011-02-08  Bruno Haible  <bruno@clisp.org>
11106
11107         Split large sed scripts, for HP-UX sed.
11108         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
11109         to avoid HP-UX limit of 99 commands, in the near future.
11110         * modules/stdlib (Makefile.am): Likewise.
11111         * modules/unistd (Makefile.am): Likewise.
11112         * modules/wchar (Makefile.am): Likewise.
11113         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11114         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
11115         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
11116
11117 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11118             Bruno Haible  <bruno@clisp.org>
11119
11120         stdlib: improve random_r modularization
11121         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
11122         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
11123         you also need the random_r module to get this material right.
11124         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
11125         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
11126         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
11127
11128 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11129
11130         stdlib: don't depend on stdint
11131         * lib/stdlib.in.h: Don't include <stdint.h> merely because
11132         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
11133         be independent of whether stdint.h is needed.
11134         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
11135         here, instead of ...
11136         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
11137         struct random_data should be using the random_r module, not just
11138         the stdlib module (which wouldn't make sense: what package needs
11139         just struct random_data without also needing random_r?).
11140         * modules/stdlib (Depends-on): Remove stdint.
11141
11142         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
11143         See the thread rooted at
11144         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
11145         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
11146         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
11147         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
11148         __VMS)); previously it was always included (via fcntl--.h).
11149         (getloadavg): Do not use c_strtod.  Instead, approximate it by
11150         hand; this is good enough for load averages.  Also, do not use
11151         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
11152         flags directly if available and don't bother otherwise.  (Packages
11153         that need the extra reliability should use the modules that define
11154         these flags on older platforms that lack them.)
11155         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
11156         fcntl-safer.
11157
11158 2011-02-08  Jim Meyering  <meyering@redhat.com>
11159
11160         di-set.h, ino-map.h: add multiple-inclusion guard
11161         Technically, the guard is required only for ino-map.h, due to its
11162         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
11163         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
11164         * lib/ino-map.h: Likewise.
11165
11166 2011-02-06  Bruno Haible  <bruno@clisp.org>
11167
11168         iswblank: Ensure declaration on glibc systems.
11169         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
11170         * modules/iswblank (Dependencies): Add 'extensions'.
11171         * doc/posix-functions/iswblank.texi: Document the glibc problem.
11172
11173 2011-02-06  Bruno Haible  <bruno@clisp.org>
11174
11175         New module 'iswblank'.
11176         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
11177         * modules/iswblank: New file.
11178         * modules/wctype-h (Files): Remove lib/iswblank.c.
11179         (Makefile.am): Substitute GNULIB_ISWBLANK.
11180         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
11181         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
11182         (gl_WCTYPE_H_DEFAULTS): New macro.
11183         (gl_WCTYPE_H): Require it. Remove iswblank related code.
11184         * modules/iswblank-tests: New file.
11185         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
11186         * tests/test-wctype-h.c (main): Remove iswblank tests.
11187         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
11188         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
11189         of 'wctype-h'.
11190         * NEWS: Mention the change.
11191         * modules/mbchar (Depends-on): Add iswblank.
11192
11193 2011-02-08  Bruno Haible  <bruno@clisp.org>
11194
11195         di-set tests: Refactor.
11196         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
11197         unnecessary includes.
11198         (ASSERT): Remove macro.
11199         (main): Make C90 compliant by avoiding variable declaration after
11200         statement.
11201         * modules/di-set-tests (Files): Add tests/macros.h.
11202
11203 2011-02-08  Bruno Haible  <bruno@clisp.org>
11204
11205         ino-map tests: Refactor.
11206         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
11207         unnecessary includes.
11208         (ASSERT): Remove macro.
11209         (main): Make C90 compliant by avoiding variable declaration after
11210         statement.
11211         * modules/ino-map-tests (Files): Add tests/macros.h.
11212
11213 2011-02-08  Jim Meyering  <meyering@redhat.com>
11214
11215         di-set: add "const" to a cast
11216         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
11217         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
11218
11219 2011-02-06  Bruno Haible  <bruno@clisp.org>
11220
11221         Rename module 'wctype' to 'wctype-h'.
11222         * modules/wctype-h: Renamed from modules/wctype.
11223         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
11224         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
11225         (Files, Depends-on, Makefile.am): Update.
11226         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
11227         (Files, Makefile.am): Update.
11228         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
11229         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
11230         * doc/posix-headers/wctype.texi: Update.
11231         * doc/posix-functions/iswalnum.texi: Update.
11232         * doc/posix-functions/iswalpha.texi: Update.
11233         * doc/posix-functions/iswblank.texi: Update.
11234         * doc/posix-functions/iswcntrl.texi: Update.
11235         * doc/posix-functions/iswdigit.texi: Update.
11236         * doc/posix-functions/iswgraph.texi: Update.
11237         * doc/posix-functions/iswlower.texi: Update.
11238         * doc/posix-functions/iswprint.texi: Update.
11239         * doc/posix-functions/iswpunct.texi: Update.
11240         * doc/posix-functions/iswspace.texi: Update.
11241         * doc/posix-functions/iswupper.texi: Update.
11242         * doc/posix-functions/iswxdigit.texi: Update.
11243         * doc/posix-functions/towlower.texi: Update.
11244         * doc/posix-functions/towupper.texi: Update.
11245         * NEWS: Mention the change.
11246         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
11247         * modules/mbchar (Dependencies): Likewise.
11248         * modules/mbswidth (Dependencies): Likewise.
11249         * modules/quotearg (Dependencies): Likewise.
11250         * modules/regex (Dependencies): Likewise.
11251         * modules/wcscasecmp (Dependencies): Likewise.
11252         * modules/wcsncasecmp (Dependencies): Likewise.
11253         * modules/wcwidth (Dependencies): Likewise.
11254
11255 2011-02-06  Bruno Haible  <bruno@clisp.org>
11256
11257         New module 'wcswidth'.
11258         * modules/wcswidth: New file.
11259         * lib/wchar.in.h (wcswidth): New declaration.
11260         * lib/wcswidth.c: New file.
11261         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
11262         * m4/wcswidth.m4: New file.
11263         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
11264         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
11265         REPLACE_WCSWIDTH.
11266         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
11267         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
11268         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
11269         * doc/posix-functions/wcswidth.texi: Mention the new module.
11270
11271 2011-02-06  Bruno Haible  <bruno@clisp.org>
11272
11273         New module 'wcstok'.
11274         * modules/wcstok: New file.
11275         * lib/wchar.in.h (wcstok): New declaration.
11276         * lib/wcstok.c: New file.
11277         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
11278         * m4/wcstok.m4: New file.
11279         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
11280         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
11281         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
11282         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
11283         * doc/posix-functions/wcstok.texi: Mention the new module.
11284
11285 2011-02-06  Bruno Haible  <bruno@clisp.org>
11286
11287         New module 'wcsstr'.
11288         * modules/wcsstr: New file.
11289         * lib/wchar.in.h (wcsstr): New declaration.
11290         * lib/wcsstr.c: New file.
11291         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
11292         * m4/wcsstr.m4: New file.
11293         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
11294         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
11295         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
11296         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
11297         * doc/posix-functions/wcsstr.texi: Mention the new module.
11298
11299 2011-02-06  Bruno Haible  <bruno@clisp.org>
11300
11301         New module 'wcspbrk'.
11302         * modules/wcspbrk: New file.
11303         * lib/wchar.in.h (wcspbrk): New declaration.
11304         * lib/wcspbrk.c: New file.
11305         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
11306         * m4/wcspbrk.m4: New file.
11307         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
11308         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
11309         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
11310         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
11311         * doc/posix-functions/wcspbrk.texi: Mention the new module.
11312
11313 2011-02-06  Bruno Haible  <bruno@clisp.org>
11314
11315         New module 'wcsspn'.
11316         * modules/wcsspn: New file.
11317         * lib/wchar.in.h (wcsspn): New declaration.
11318         * lib/wcsspn.c: New file.
11319         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
11320         * m4/wcsspn.m4: New file.
11321         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
11322         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
11323         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
11324         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
11325         * doc/posix-functions/wcsspn.texi: Mention the new module.
11326
11327 2011-02-06  Bruno Haible  <bruno@clisp.org>
11328
11329         New module 'wcscspn'.
11330         * modules/wcscspn: New file.
11331         * lib/wchar.in.h (wcscspn): New declaration.
11332         * lib/wcscspn.c: New file.
11333         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
11334         * m4/wcscspn.m4: New file.
11335         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
11336         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
11337         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
11338         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
11339         * doc/posix-functions/wcscspn.texi: Mention the new module.
11340
11341 2011-02-06  Bruno Haible  <bruno@clisp.org>
11342
11343         New module 'wcsrchr'.
11344         * modules/wcsrchr: New file.
11345         * lib/wchar.in.h (wcsrchr): New declaration.
11346         * lib/wcsrchr.c: New file.
11347         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
11348         * m4/wcsrchr.m4: New file.
11349         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
11350         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
11351         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
11352         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
11353         * doc/posix-functions/wcsrchr.texi: Mention the new module.
11354
11355 2011-02-06  Bruno Haible  <bruno@clisp.org>
11356
11357         New module 'wcschr'.
11358         * modules/wcschr: New file.
11359         * lib/wchar.in.h (wcschr): New declaration.
11360         * lib/wcschr.c: New file.
11361         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
11362         * m4/wcschr.m4: New file.
11363         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
11364         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
11365         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
11366         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
11367         * doc/posix-functions/wcschr.texi: Mention the new module.
11368
11369 2011-02-06  Bruno Haible  <bruno@clisp.org>
11370
11371         New module 'wcsdup'.
11372         * modules/wcsdup: New file.
11373         * lib/wchar.in.h (wcsdup): New declaration.
11374         * lib/wcsdup.c: New file.
11375         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
11376         * m4/wcsdup.m4: New file.
11377         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
11378         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
11379         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
11380         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
11381         * doc/posix-functions/wcsdup.texi: Mention the new module.
11382
11383 2011-02-06  Bruno Haible  <bruno@clisp.org>
11384
11385         New module 'wcsxfrm'.
11386         * modules/wcsxfrm: New file.
11387         * lib/wchar.in.h (wcsxfrm): New declaration.
11388         * lib/wcsxfrm.c: New file.
11389         * lib/wcsxfrm-impl.h: New file.
11390         * m4/wcsxfrm.m4: New file.
11391         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
11392         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
11393         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
11394         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
11395         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
11396
11397 2011-02-06  Bruno Haible  <bruno@clisp.org>
11398
11399         New module 'wcscoll'.
11400         * modules/wcscoll: New file.
11401         * lib/wchar.in.h (wcscoll): New declaration.
11402         * lib/wcscoll.c: New file.
11403         * lib/wcscoll-impl.h: New file.
11404         * m4/wcscoll.m4: New file.
11405         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
11406         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
11407         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
11408         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
11409         * doc/posix-functions/wcscoll.texi: Mention the new module.
11410
11411 2011-02-06  Bruno Haible  <bruno@clisp.org>
11412
11413         New module 'wcsncasecmp'.
11414         * modules/wcsncasecmp: New file.
11415         * lib/wchar.in.h (wcsncasecmp): New declaration.
11416         * lib/wcsncasecmp.c: New file.
11417         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
11418         * m4/wcsncasecmp.m4: New file.
11419         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
11420         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
11421         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
11422         HAVE_WCSNCASECMP.
11423         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
11424         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
11425
11426 2011-02-06  Bruno Haible  <bruno@clisp.org>
11427
11428         New module 'wcscasecmp'.
11429         * modules/wcscasecmp: New file.
11430         * lib/wchar.in.h (wcscasecmp): New declaration.
11431         * lib/wcscasecmp.c: New file.
11432         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
11433         * m4/wcscasecmp.m4: New file.
11434         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
11435         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
11436         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
11437         HAVE_WCSCASECMP.
11438         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
11439         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
11440
11441 2011-02-05  Bruno Haible  <bruno@clisp.org>
11442
11443         New module 'wcsncmp'.
11444         * modules/wcsncmp: New file.
11445         * lib/wchar.in.h (wcsncmp): New declaration.
11446         * lib/wcsncmp.c: New file.
11447         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
11448         * m4/wcsncmp.m4: New file.
11449         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
11450         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
11451         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
11452         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
11453         * doc/posix-functions/wcsncmp.texi: Mention the new module.
11454
11455 2011-02-05  Bruno Haible  <bruno@clisp.org>
11456
11457         New module 'wcscmp'.
11458         * modules/wcscmp: New file.
11459         * lib/wchar.in.h (wcscmp): New declaration.
11460         * lib/wcscmp.c: New file.
11461         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
11462         * m4/wcscmp.m4: New file.
11463         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
11464         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
11465         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
11466         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
11467         * doc/posix-functions/wcscmp.texi: Mention the new module.
11468
11469 2011-02-05  Bruno Haible  <bruno@clisp.org>
11470
11471         New module 'wcsncat'.
11472         * modules/wcsncat: New file.
11473         * lib/wchar.in.h (wcsncat): New declaration.
11474         * lib/wcsncat.c: New file.
11475         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
11476         * m4/wcsncat.m4: New file.
11477         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
11478         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
11479         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
11480         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
11481         * doc/posix-functions/wcsncat.texi: Mention the new module.
11482
11483 2011-02-05  Bruno Haible  <bruno@clisp.org>
11484
11485         New module 'wcscat'.
11486         * modules/wcscat: New file.
11487         * lib/wchar.in.h (wcscat): New declaration.
11488         * lib/wcscat.c: New file.
11489         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
11490         * m4/wcscat.m4: New file.
11491         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
11492         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
11493         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
11494         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
11495         * doc/posix-functions/wcscat.texi: Mention the new module.
11496
11497 2011-02-05  Bruno Haible  <bruno@clisp.org>
11498
11499         New module 'wcpncpy'.
11500         * modules/wcpncpy: New file.
11501         * lib/wchar.in.h (wcpncpy): New declaration.
11502         * lib/wcpncpy.c: New file.
11503         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
11504         * m4/wcpncpy.m4: New file.
11505         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
11506         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
11507         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
11508         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
11509         * doc/posix-functions/wcpncpy.texi: Mention the new module.
11510
11511 2011-02-05  Bruno Haible  <bruno@clisp.org>
11512
11513         New module 'wcsncpy'.
11514         * modules/wcsncpy: New file.
11515         * lib/wchar.in.h (wcsncpy): New declaration.
11516         * lib/wcsncpy.c: New file.
11517         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
11518         * m4/wcsncpy.m4: New file.
11519         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
11520         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
11521         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
11522         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
11523         * doc/posix-functions/wcsncpy.texi: Mention the new module.
11524
11525 2011-02-05  Bruno Haible  <bruno@clisp.org>
11526
11527         New module 'wcpcpy'.
11528         * modules/wcpcpy: New file.
11529         * lib/wchar.in.h (wcpcpy): New declaration.
11530         * lib/wcpcpy.c: New file.
11531         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
11532         * m4/wcpcpy.m4: New file.
11533         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
11534         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
11535         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
11536         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
11537         * doc/posix-functions/wcpcpy.texi: Mention the new module.
11538
11539 2011-02-05  Bruno Haible  <bruno@clisp.org>
11540
11541         New module 'wcscpy'.
11542         * modules/wcscpy: New file.
11543         * lib/wchar.in.h (wcscpy): New declaration.
11544         * lib/wcscpy.c: New file.
11545         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
11546         * m4/wcscpy.m4: New file.
11547         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
11548         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
11549         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
11550         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
11551         * doc/posix-functions/wcscpy.texi: Mention the new module.
11552
11553 2011-02-05  Bruno Haible  <bruno@clisp.org>
11554
11555         New module 'wcsnlen'.
11556         * modules/wcsnlen: New file.
11557         * lib/wchar.in.h (wcsnlen): New declaration.
11558         * lib/wcsnlen.c: New file.
11559         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
11560         * m4/wcsnlen.m4: New file.
11561         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
11562         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
11563         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
11564         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
11565         * doc/posix-functions/wcsnlen.texi: Mention the new module.
11566
11567 2011-02-05  Bruno Haible  <bruno@clisp.org>
11568
11569         New module 'wcslen'.
11570         * modules/wcslen: New file.
11571         * lib/wchar.in.h (wcslen): New declaration.
11572         * lib/wcslen.c: New file.
11573         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
11574         * m4/wcslen.m4: New file.
11575         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
11576         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
11577         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
11578         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
11579         * doc/posix-functions/wcslen.texi: Mention the new module.
11580
11581 2011-02-05  Bruno Haible  <bruno@clisp.org>
11582
11583         New module 'wmemset'.
11584         * modules/wmemset: New file.
11585         * lib/wchar.in.h (wmemset): New declaration.
11586         * lib/wmemset.c: New file.
11587         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
11588         * m4/wmemset.m4: New file.
11589         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
11590         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
11591         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
11592         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
11593         * doc/posix-functions/wmemset.texi: Mention the new module.
11594
11595 2011-02-05  Bruno Haible  <bruno@clisp.org>
11596
11597         New module 'wmemmove'.
11598         * modules/wmemmove: New file.
11599         * lib/wchar.in.h (wmemmove): New declaration.
11600         * lib/wmemmove.c: New file.
11601         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
11602         * m4/wmemmove.m4: New file.
11603         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
11604         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
11605         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
11606         HAVE_WMEMMOVE.
11607         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
11608         * doc/posix-functions/wmemmove.texi: Mention the new module.
11609
11610 2011-02-05  Bruno Haible  <bruno@clisp.org>
11611
11612         New module 'wmemcpy'.
11613         * modules/wmemcpy: New file.
11614         * lib/wchar.in.h (wmemcpy): New declaration.
11615         * lib/wmemcpy.c: New file.
11616         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
11617         * m4/wmemcpy.m4: New file.
11618         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
11619         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
11620         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
11621         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
11622         * doc/posix-functions/wmemcpy.texi: Mention the new module.
11623
11624 2011-02-05  Bruno Haible  <bruno@clisp.org>
11625
11626         New module 'wmemcmp'.
11627         * modules/wmemcmp: New file.
11628         * lib/wchar.in.h (wmemcmp): New declaration.
11629         * lib/wmemcmp.c: New file.
11630         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
11631         * m4/wmemcmp.m4: New file.
11632         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
11633         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
11634         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
11635         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
11636         * doc/posix-functions/wmemcmp.texi: Mention the new module.
11637
11638 2011-02-07  Jim Meyering  <meyering@redhat.com>
11639
11640         di-set, ino-map: new modules, from coreutils
11641         * lib/di-set.c: New file.
11642         * lib/di-set.h: Likewise.
11643         * lib/ino-map.c: Likewise.
11644         * lib/ino-map.h: Likewise.
11645         * modules/di-set: Likewise.
11646         * modules/di-set-tests: Likewise.
11647         * modules/ino-map: Likewise.
11648         * modules/ino-map-tests: Likewise.
11649         * tests/test-di-set.c: Likewise.
11650         * tests/test-ino-map.c: Likewise.
11651
11652 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
11653
11654         getloadavg: merge minor changes from Emacs
11655
11656         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
11657         (getloadavg): Use memset, not bzero.
11658
11659         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
11660         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11661         clash (bug#86).
11662
11663 2010-11-14  Bruno Haible  <bruno@clisp.org>
11664
11665         Allow multiple gnulib generated replacements to coexist.
11666         * lib/getopt.in.h (struct option): Avoid identical redefinition.
11667         * lib/inttypes.in.h (imaxdiv_t): Likewise.
11668         * lib/langinfo.in.h (nl_item): Likewise.
11669         * lib/math.in.h (_NaN, NAN): Likewise.
11670         * lib/netdb.in.h (struct addrinfo): Likewise.
11671         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
11672         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
11673         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
11674         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
11675         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
11676         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
11677         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
11678         pthread_mutexattr_init, pthread_mutexattr_settype,
11679         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
11680         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
11681         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
11682         pthread_spin_trylock, pthread_spin_unlock): Likewise.
11683         * lib/sched.in.h (struct sched_param): Likewise.
11684         * lib/se-selinux.in.h (security_class_t, security_context_t,
11685         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
11686         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
11687         lsetfilecon, fsetfilecon, security_check_context,
11688         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
11689         Likewise.
11690         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
11691         Likewise.
11692         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
11693         _gl_function_taking_int_returning_void_t, union sigval,
11694         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
11695         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
11696         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11697         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
11698         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
11699         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
11700         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
11701         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
11702         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
11703         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
11704         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
11705         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
11706         socklen_t, rpl_fd_isset): Likewise.
11707         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
11708         * lib/sys_time.in.h (struct timeval): Likewise.
11709         * lib/sys_times.in.h (struct tms): Likewise.
11710         * lib/sys_utsname.in.h (struct utsname):
11711         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
11712         * lib/unistd.in.h (getpagesize): Likewise.
11713         * lib/wchar.in.h (mbstate_t): Likewise.
11714         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11715         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
11716         towlower, towupper): Likewise.
11717         Reported by Sam Steingold <sds@gnu.org>.
11718
11719 2011-02-05  Eric Blake  <eblake@redhat.com>
11720
11721         unsetenv: work around Haiku issues
11722         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
11723         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
11724
11725 2010-12-30  Bruce Korb  <bkorb@gnu.org>
11726
11727         libposix: avoid calling error() within libposix
11728         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
11729         is defined.
11730
11731 2011-02-05  Eric Blake  <eblake@redhat.com>
11732
11733         strerror_r-posix: port to cygwin
11734         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
11735         implementation.
11736         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
11737         * tests/test-strerror_r.c (main): Fix test.
11738         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11739         issue.
11740
11741 2011-02-05  Bruno Haible  <bruno@clisp.org>
11742
11743         New module 'wmemchr'.
11744         * modules/wmemchr: New file.
11745         * lib/wchar.in.h (wmemchr): New declaration.
11746         * lib/wmemchr.c: New file.
11747         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
11748         * m4/wmemchr.m4: New file.
11749         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
11750         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
11751         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
11752         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
11753         * doc/posix-functions/wmemchr.texi: Mention the new module.
11754
11755 2011-02-04  Eric Blake  <eblake@redhat.com>
11756
11757         fdopendir: detect FreeBSD bug
11758         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
11759         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
11760
11761 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11762
11763         stdbool: do not define HAVE_STDBOOL_H
11764         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
11765         AC_HEADER_STDBOOL.  All uses changed.  Do not define
11766         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
11767         imported from the latest Autoconf git.  It was motivated by Emacs,
11768         which uses gnulib but does not need HAVE_STDBOOL_H.
11769
11770 2011-02-04  Bruno Haible  <bruno@clisp.org>
11771
11772         wcsnrtombs: Prepare for new module wwcsnrtombs.
11773         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
11774         * lib/wcsnrtombs.c: Include it.
11775         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
11776
11777         wcsrtombs: Prepare for new module wwcsrtombs.
11778         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
11779         * lib/wcsrtombs.c: Include it.
11780         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
11781
11782         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
11783         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
11784         * lib/mbsnrtowcs.c: Include it.
11785         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
11786
11787         mbsrtowcs: Prepare for new module mbsrtowwcs.
11788         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
11789         * lib/mbsrtowcs.c: Include it.
11790         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
11791
11792 2011-02-04  Bruno Haible  <bruno@clisp.org>
11793
11794         vasnprintf: Reduce use of malloc for small format strings.
11795         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
11796         (arguments): Add room for the first 7 arguments.
11797         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
11798         (char_directives, u8_directives, u16_directives, u32_directives): Add
11799         room for the first 7 directives.
11800         * lib/printf-parse.c: Include <string.h>.
11801         (PRINTF_PARSE): Change memory handling code so that it uses the first
11802         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
11803         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
11804         Reported by Pádraig Brady <P@draigbrady.com>.
11805
11806 2011-01-31  Eric Blake  <eblake@redhat.com>
11807
11808         dup2: work around Haiku bug
11809         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
11810         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
11811         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11812         * tests/test-dup2.c (main): Enhance test.
11813
11814 2011-01-31  Simon Josefsson  <simon@josefsson.org>
11815
11816         doc: off_t is not available in eglibc 2.11.2 stdio.h.
11817         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
11818         declared by eglibc 2.11.2.
11819         * lib/stdio.in.h: Likewise.
11820
11821 2011-01-31  Eric Blake  <eblake@redhat.com>
11822
11823         ignore-value: add missing test dependency
11824         * tests/test-ignore-value.c: Revert previous change; stdio.h
11825         provides off_t.
11826         * modules/ignore-value-tests (Depends-on): Add missing dependency.
11827
11828 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
11829
11830         mktime: clarify long_int width checking
11831         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
11832         the top level, to make it clearer that the assumption about
11833         long_int width is being checked.  See
11834         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
11835
11836 2011-01-30  Simon Josefsson  <simon@josefsson.org>
11837
11838         ignore-value: Fix self-test.
11839         * tests/test-ignore-value.c: Include sys/types.h for off_t.
11840
11841 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11842
11843         TYPE_MAXIMUM: avoid theoretically undefined behavior
11844         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
11845         negative number, which the C Standard says has undefined behavior.
11846         In practice this is not a problem, but might as well do it by the book.
11847         Reported by Rich Felker and Eric Blake; see
11848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
11849         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
11850         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11851         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11852         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
11853         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11854         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
11855
11856         mktime: #undef mktime before #defining it
11857         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
11858
11859         mktime: systematically normalize tm_isdst comparisons
11860         * lib/mktime.c (isdst_differ): New function.
11861         (__mktime_internal): Use it systematically for all isdst comparisons.
11862         This completes the fix for libc BZ #6723, and removes the need for
11863         normalizing tm_isdst.  See
11864         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
11865         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
11866
11867         mktime: fix some integer overflow issues and sidestep the rest
11868
11869         This was prompted by a bug report by Benjamin Lindner for MinGW
11870         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
11871         His bug is due to signed integer overflow (0 - INT_MIN), and I
11872         I scanned through mktime.c looking for other integer overflow
11873         problems, fixing all the bugs I found.
11874
11875         Although the C Standard says the resulting code is still not safe
11876         in the presence of integer overflow, in practice it should be good
11877         enough for all real-world two's-complement implementations, except
11878         for debugging environments that deliberately trap on integer
11879         overflow (e.g., gcc -ftrapv).
11880
11881         * lib/mktime.c (WRAPV): New macro.
11882         (SHR): Also check that long_int and time_t shift right in the
11883         usual way, before using the fast-but-unportable method.
11884         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
11885         used.  The code already assumed two's complement, so there's
11886         no need to test for alternatives.  All uses removed.
11887         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
11888         the C standard.  Problem reported by Rich Felker in
11889         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
11890         (twos_complement_arithmetic): Also check long_int and time_t.
11891         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
11892         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
11893         (__mktime_internal): Avoid integer overflow with unary subtraction
11894         in two instances where -1 - X is an adequate replacement for -X,
11895         since the calculations are approximate.
11896
11897 2011-01-29  Eric Blake  <eblake@redhat.com>
11898
11899         mktime: avoid infinite loop
11900         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
11901         type; behavior is still undefined but portable to all known targets.
11902         Reported by Rich Felker.
11903
11904 2011-01-29  Simon Josefsson  <simon@josefsson.org>
11905
11906         rename, unlink, same-inode: Relicense.
11907         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
11908         * modules/unlink (License): Likewise.
11909         * modules/same-inode (License): Likewise.
11910
11911 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11912
11913         mktime: avoid problems on NetBSD 5 / i386
11914         * lib/mktime.c (long_int): New type.  This works around a problem
11915         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
11916         but time_t is 64 bits, and where I expect the existing code is
11917         wrong in some cases.
11918         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
11919         (ydhms_diff): Bring back the compile-time check for wide-enough
11920         year and yday.
11921
11922         mktime: fix misspelling in comment
11923         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
11924         This merges all recent glibc changes of importance.
11925
11926 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11927
11928         move-if-change: cope with concurrent mv of identical file.
11929         * build-aux/move-if-change (CMPPROG): Accept environment
11930         variable as an override for `cmp'.
11931         (usage): Document CMPPROG.
11932         Adjust comparison to drop stdout.  Cope with failure of mv if
11933         the target file exists and is identical to the source, for
11934         parallel builds.
11935         Report from H.J. Lu against binutils in PR binutils/12283.
11936
11937 2011-01-28  Bruce Korb  <bkorb@gnu.org>
11938
11939         * users.txt: Mention sharutils.
11940
11941 2011-01-28  Simon Josefsson  <simon@josefsson.org>
11942
11943         * users.txt: Mention OATH Toolkit.
11944
11945 2011-01-27  Bruno Haible  <bruno@clisp.org>
11946
11947         Prepare for supporting FreeBSD 10.
11948         * build-aux/config.libpath: Remove handling of freebsd1*.
11949
11950 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
11951
11952         Prepare for supporting FreeBSD 10.
11953         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
11954         match FreeBSD 10.0.
11955
11956 2011-01-27  Bruno Haible  <bruno@clisp.org>
11957
11958         vma-iter, get-rusage-as: Add OpenBSD support.
11959         * modules/vma-iter (configure.ac): Test for mquery.
11960         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
11961         * lib/vma-iter.c: Include <sys/mman.h>.
11962         (vma_iterate): Add an implementation based on mquery().
11963         * lib/resource-ext.h (get_rusage_as): Update comments.
11964         * lib/get-rusage-as.c: Likewise.
11965         * lib/get-rusage-data.c: Likewise.
11966
11967 2011-01-26  Karl Berry  <karl@gnu.org>
11968
11969         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
11970         variables to make it easier to override the makeinfo program used.
11971
11972 2011-01-26  Eric Blake  <eblake@redhat.com>
11973
11974         fcntl: work around Haiku F_DUPFD bugs
11975         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11976         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11977         cloexec bit on duplication.
11978         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11979
11980 2011-01-26  Bruno Haible  <bruno@clisp.org>
11981
11982         Enable memory leak tests on AIX.
11983         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11984         * tests/test-fprintf-posix3.c (main): Likewise.
11985
11986 2011-01-26  Bruno Haible  <bruno@clisp.org>
11987
11988         Tests for module 'get-rusage-data'.
11989         * modules/get-rusage-data-tests: New file.
11990         * tests/test-get-rusage-data.c: New file.
11991
11992         New module 'get-rusage-data'.
11993         * lib/resource-ext.h (get_rusage_data): New declaration.
11994         * lib/get-rusage-data.c: New file.
11995         * modules/get-rusage-data: New file.
11996
11997 2011-01-25  Bruno Haible  <bruno@clisp.org>
11998
11999         get-rusage-as: Allow for easier testing.
12000         * lib/resource-ext.h (get_rusage_as): Add comment.
12001         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
12002         (main): New function for interactive testing.
12003
12004 2011-01-25  Bruno Haible  <bruno@clisp.org>
12005
12006         vma-iter: Treat Haiku like BeOS.
12007         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
12008         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
12009
12010 2011-01-25  Eric Blake  <eblake@redhat.com>
12011
12012         c-stack: fix regression on cygwin when libsigsegv is present
12013         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
12014
12015 2011-01-24  Bruno Haible  <bruno@clisp.org>
12016
12017         vma-iter: Avoid empty intervals.
12018         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
12019         on an empty interval.
12020
12021 2011-01-24  Jim Meyering  <meyering@redhat.com>
12022
12023         u64: remove unnecessary #include
12024         * lib/u64.h: Don't include <stddef.h>.  It was not used.
12025
12026 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12027
12028         Allow the user to avoid the HAVE_RAW_DECL_* macros.
12029         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
12030
12031 2011-01-23  Bruno Haible  <bruno@clisp.org>
12032
12033         New module 'vma-iter'.
12034         * lib/vma-iter.h: New file.
12035         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
12036         * modules/vma-iter: New file.
12037         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
12038         for get_rusage_as_via_iterator.
12039         (vma_iterate_callback): New function.
12040         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
12041         * modules/get-rusage-as (Depends-on): Add vma-iter.
12042
12043 2011-01-23  Bruno Haible  <bruno@clisp.org>
12044
12045         uninorm: Tweak includes.
12046         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
12047         Reported by Jim Meyering.
12048
12049 2011-01-23  Bruno Haible  <bruno@clisp.org>
12050
12051         get-rusage-as: Improve on NetBSD.
12052         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
12053         /proc, like on FreeBSD.
12054
12055 2011-01-23  Jim Meyering  <meyering@redhat.com>
12056
12057         xreadlink.h: remove unnecessary #include
12058         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
12059
12060         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
12061         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
12062
12063 2011-01-23  Bruno Haible  <bruno@clisp.org>
12064
12065         get-rusage-as: Fix bug.
12066         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
12067         original limit when aborting the first loop.
12068
12069 2011-01-23  Bruno Haible  <bruno@clisp.org>
12070
12071         wctype: Ensure valid C syntax.
12072         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
12073         unconditionally, instead of gl_NEXT_HEADERS conditionally.
12074
12075 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
12076
12077         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
12078         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
12079         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
12080         as they are needed only for configure's test case.
12081         This removes two unnecessary symbols from config.h.
12082
12083         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
12084         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
12085         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
12086         AC_CHECK_HEADERS_ONCE on a header that we also invoke
12087         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
12088         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
12089         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
12090         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12091         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12092         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12093         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12094         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12095         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12096         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12097         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12098         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12099         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12100         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12101
12102 2011-01-21  Eric Blake  <eblake@redhat.com>
12103
12104         maintainer-makefile: work with older git for submodule check
12105         * top/maint.mk (public-submodule-commit): Rewrite to avoid
12106         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
12107         Reported by Matthias Bolte.
12108
12109         bootstrap: minor portability fixes
12110         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
12111         (usage): Omit leading capital and trailing . on help phrases, per
12112         GNU Coding Standards.
12113         (check_versions, top level): Prefix messages with script name.
12114
12115 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
12116
12117         bootstrap: support --no-git option
12118         * build-aux/bootstrap: Add --no-git option, to be used when
12119         --gnulib-srcdir points to the exact desired checkout.
12120
12121 2011-01-21  Eric Blake  <eblake@redhat.com>
12122
12123         strerror_r-posix: work with glibc 2.13
12124         * lib/strerror_r.c (strerror_r): Fix return type.
12125
12126 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12127             Bruno Haible  <bruno@clisp.org>
12128
12129         uN_strstr: New unit tests.
12130         * modules/unistr/u8-strstr-tests: New file.
12131         * modules/unistr/u16-strstr-tests: New file.
12132         * modules/unistr/u32-strstr-tests: New file.
12133         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
12134         * tests/unistr/test-u8-strstr.c: New file.
12135         * tests/unistr/test-u16-strstr.c: New file.
12136         * tests/unistr/test-u32-strstr.c: New file.
12137
12138 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12139             Bruno Haible  <bruno@clisp.org>
12140
12141         Make uN_strstr functions O(n) worst-case.
12142         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
12143         16-bit and 32-bit unit cases, use the unibyte algorithm from
12144         lib/mbsstr.c.
12145         * lib/unistr/u8-strstr.c: Include <string.h>.
12146         (UNIT_IS_UINT8_T): New macro.
12147         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
12148         (U_STRLEN, U_STRNLEN): New macros.
12149         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
12150         (U_STRLEN, U_STRNLEN): New macros.
12151         * modules/unistr/u8-strstr (Depends-on): Add strstr.
12152         (configure.ac): Update required libunistring version.
12153         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
12154         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
12155         malloca.
12156         (configure.ac): Update required libunistring version.
12157         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
12158         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
12159         malloca.
12160         (configure.ac): Update required libunistring version.
12161
12162 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12163             Bruno Haible  <bruno@clisp.org>
12164
12165         Prepare for faster uN_strstr functions.
12166         * lib/str-kmp.h: Support definable UNITs.
12167         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
12168         needle_len argument.
12169         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
12170         * lib/mbscasestr.c (mbscasestr): Likewise.
12171
12172 2011-01-21  Pádraig Brady <P@draigBrady.com>
12173
12174         malloca-tests: make faster by unsetting MALLOC_PERTURB_
12175         * tests/test-malloca.c (main): Unset the environment variable
12176         to greatly speed up the test.
12177         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
12178         * modules/malloca-tests: Depend on unsetenv.
12179
12180 2011-01-21  Pádraig Brady <P@draigBrady.com>
12181
12182         ignore-value: remove stdint dependency
12183         * lib/ignore-value.h: Remove <stdint.h>
12184         * modules/ignore-value: Remove stdint dependency.
12185
12186 2011-01-21  Jim Meyering  <meyering@redhat.com>
12187
12188         maint.mk: adjust variable name to be consistent with other gl_ vars
12189         * top/maint.mk (gl_public_submodule_commit): Rename the variable
12190         to be lower case.
12191
12192 2011-01-20  Jim Meyering  <meyering@redhat.com>
12193
12194         maint.mk: make "check" depend on public-submodule-commit by default
12195         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
12196
12197 2011-01-20  Bruno Haible  <bruno@clisp.org>
12198
12199         mbfile, mbiter: Complete change from 2008-12-21.
12200         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
12201         * m4/mbiter.m4 (gl_MBITER): Likewise.
12202
12203 2011-01-20  Jim Meyering  <meyering@redhat.com>
12204
12205         init.sh: insert space between each function name and "()"
12206         * tests/init.sh: Make it a little easier to see that a function's
12207         name is "warn_", and not "warn" when looking at the first part of
12208         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
12209
12210 2011-01-20  Jim Meyering  <meyering@redhat.com>
12211
12212         mountlist: clean up code formatting
12213         * lib/mountlist.c (read_file_system_list): Split a long line,
12214         correct bracing style, use NULL in place of "(struct statfs *)0",
12215         don't parenthesize return value, add spaces around "=" and after
12216         ";-in-for-stmt".
12217
12218 2011-01-14  Markus Duft <mduft@gentoo.org>
12219
12220         mountlist: add support for Interix
12221         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
12222         Apply statvfs to all entries of /dev/fs.
12223         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
12224         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
12225
12226 2011-01-20  Jim Meyering  <meyering@redhat.com>
12227
12228         maint.mk: improve the public-submodule-commit rule
12229         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
12230         to suppress printing of its commands... unless V=1.
12231         Add git submodule's --quiet option to suppress printing of e.g.,
12232         "Entering gnulib" output.
12233         "cd" into $(srcdir) before running git submodule.
12234
12235 2011-01-20  Bruno Haible  <bruno@clisp.org>
12236
12237         include_next: Fix bug introduced on 2011-01-18.
12238         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
12239         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
12240         ac_cv_header_... variable if the second argument is not 'check'.
12241         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
12242         gl_NEXT_HEADERS_INTERNAL.
12243
12244 2011-01-20  Bruno Haible  <bruno@clisp.org>
12245
12246         Allow the user to avoid the GNULIB_TEST_* macros.
12247         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
12248         Suggested by Paul Eggert.
12249
12250 2011-01-14  Jim Meyering  <meyering@redhat.com>
12251
12252         bootstrap: avoid failure when there is no .gitmodules file
12253         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
12254         has been assigned to, even when its value is the empty string.
12255         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
12256         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
12257         Reported by John W. Eaton <jwe@gnu.org>.
12258
12259 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
12260
12261         assume <ctype.h>, ..., <time.h> exist
12262         For years gnulib has been assuming the existence of the headers
12263         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
12264         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
12265         them, since they don't appear to be needed.
12266         * README (Portability guidelines): Document this.
12267         * lib/flock.c: Assume <fcntl.h> exists.
12268         * lib/regex_internal.h: Assume <locale.h> exists.
12269         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
12270         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
12271         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
12272         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
12273         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
12274         * m4/regex.m4 (gl_REGEX): Likewise.
12275         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
12276         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
12277         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
12278         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
12279         * tests/test-argp.c: Likewise.
12280         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
12281
12282         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
12283         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
12284         AA_APPLE_UNIVERSAL_BUILD.  See
12285         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
12286         * NEWS: Document this.
12287
12288 2011-01-19  Eric Blake  <eblake@redhat.com>
12289
12290         c-stack: assume stack overflow if SA_SIGINFO unsupported
12291         * lib/c-stack.c (SIGACTION_WORKS): Rename...
12292         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
12293         sigaction will work.
12294         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
12295         behavior match Linux.
12296         * tests/test-c-stack.c (main): Prefer NULL for pointers.
12297
12298         stdbool-tests: accomodate Haiku
12299         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
12300
12301         binary-io: fix O_TEXT on Haiku
12302         * modules/binary-io (Depends-on): Add fcntl-h.
12303         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
12304         than blindly undefining O_TEXT.
12305         Reported by Scott McCreary.
12306
12307 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12308
12309         include_next: do not check for standard headers like stddef.h
12310
12311         I found this problem when modifying Emacs to use gnulib.
12312         I noticed that it added HAVE_STDDEF_H to config.h, even though
12313         gnulib always assumes <stddef.h> exists as per README and this
12314         symbol is unnecessary.
12315         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
12316         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
12317         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
12318         faster for headers like stddef.h that are known to exist.
12319         (gl_CHECK_NEXT_HEADERS): Use it.
12320         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
12321         rather than gl_CHECK_NEXT_HEADERS.
12322         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
12323         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
12324
12325 2011-01-18  Eric Blake  <eblake@redhat.com>
12326
12327         ansi-c++-opt: skip C++ dependency style if C++ is unused
12328         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
12329         tests when we know C++ compilation is not desired.
12330         Reported by Scott McCreary.
12331
12332 2011-01-18  Bruno Haible  <bruno@clisp.org>
12333
12334         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
12335         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
12336         (main): Perform test also when getrlimit and setrlimit don't exist or
12337         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
12338         limiting the address space size using setrlimit, compare the address
12339         space size before and after the the test.
12340         * tests/test-dprintf-posix2.c: Likewise.
12341         * tests/test-fprintf-posix3.sh: Update skip messages.
12342         * tests/test-dprintf-posix2.sh: Likewise.
12343         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
12344         * modules/dprintf-posix-tests (Depends-on): Likewise.
12345         Reported by Bruce Korb <bkorb@gnu.org> and
12346         Gary V. Vaughan <gary@gnu.org>.
12347
12348 2011-01-18  Bruno Haible  <bruno@clisp.org>
12349
12350         get-rusage-as: Improvement for Cygwin.
12351         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
12352         areas that are merely reserved.
12353
12354 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12355
12356         strftime: remove dependencies on multibyte modules
12357
12358         strftime depended on mbrlen, mbsinit, and wchar, but these modules
12359         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
12360         only if __osf__ is defined, and I suspect OSF doesn't need these
12361         other modules.  If my guess is wrong, we'll need to come up with a
12362         variant of strftime that doesn't need the multibyte modules.
12363
12364         I discovered this problem when attempting modify Emacs to use the
12365         strftime module.  With the previous gnulib, this caused Emacs to
12366         need 31 new files, ranging from lib/config.charset to
12367         m4/wint_t.m4.  This was overkill and I expect would be offputting
12368         to the Emacs maintainers.  After this change, only 6 new files are
12369         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
12370         stdbool.m4, and tm_gmtoff.m4.
12371
12372         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
12373         Suggested by Bruno Haible in
12374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
12375         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
12376         and do not check for wchar.h.
12377         * modules/strftime (Files): Remove m4/mbstate_t.m4.
12378         (Depends-on): Remove mbrlen, mbsinit, wchar.
12379
12380 2011-01-18  Bruno Haible  <bruno@clisp.org>
12381
12382         Tests for module 'get-rusage-as'.
12383         * modules/get-rusage-as-tests: New file.
12384         * tests/test-get-rusage-as.c: New file.
12385
12386         New module 'get-rusage-as'.
12387         * modules/get-rusage-as: New file.
12388         * lib/resource-ext.h: New file.
12389         * lib/get-rusage-as.c: New file.
12390
12391 2011-01-17  Eric Blake  <eblake@redhat.com>
12392
12393         sigaction: relax license from LGPLv3+ to LGPLv2+
12394         * modules/sigaction (License): Relax to LGPLv2+.
12395
12396 2011-01-14  Bruno Haible  <bruno@clisp.org>
12397
12398         filemode: Make function declarations usable in C++ mode.
12399         * lib/filemode.h: Enclose function declarations in extern "C" block.
12400         Reported by John W. Eaton <jwe@gnu.org>.
12401
12402 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
12403
12404         save-cwd: no longer include "xgetcwd.h"
12405         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
12406         This avoids a compilation failure in projects that use save-cwd
12407         without also using the xgetcwd module.
12408
12409 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12410
12411         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
12412         This is so that a program like Emacs, which needs only dtoastr,
12413         does not have to bother with distributing and compiling ftoastr
12414         and ldtoastr.
12415         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
12416         * modules/dtoastr, modules/ldtoastr: New files.
12417         * modules/ftoastr: Now works just for 'float'.
12418         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
12419         (Makefile.am): Remove ftoastr.h (not needed and no effect),
12420         dtoastr.c, ldtoastr.c.
12421
12422 2011-01-11  Jim Meyering  <meyering@redhat.com>
12423
12424         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
12425         There is no need to work around the lack of the fchdir function,
12426         since gnulib can now provide a replacement when required.
12427         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
12428         * modules/save-cwd (Depends-on): Add fchdir.
12429
12430 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12431
12432         openat, save-cwd: avoid xmalloc
12433
12434         This removes a direct (but undocumented) dependency of openat on
12435         xalloc, along with an indirect dependency via save-cwd.  It also
12436         removes a dependency of save-cwd on xgetcwd, and thereby
12437         indirectly on xalloc.  This change causes the openat substitute
12438         to fall back on save_cwd when memory is tight, and for save_cwd to
12439         fail instead of dying when memory is tight, but that's good enough.
12440         Problem and initial idea for fix reported by Bastien Roucaries in
12441         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
12442
12443         * lib/openat-proc.c: Include stdlib.h (for malloc), not
12444         xalloc.h (for xmalloc).
12445         (openat_proc_name): Use malloc, not xmalloc.
12446         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
12447         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
12448
12449         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
12450         This avoids heap allocation for file names whose lengths are in
12451         the range 512..1023, with the upper bound increasing to at most
12452         4031 depending on the platform's PATH_MAX.  (We do not want
12453         pathmax.h here as it might supply a non-constant PATH_MAX.)
12454         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
12455         Perhaps they should be moved to malloca.h?
12456         (OPENAT_BUFFER_SIZE): Use them.
12457
12458 2011-01-10  Bruno Haible  <bruno@clisp.org>
12459
12460         doc: Update users.txt.
12461         * users.txt: Add recutils.
12462
12463 2011-01-09  Karl Berry  <karl@gnu.org>
12464
12465         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
12466
12467         * doc/configmake.texi: New file.
12468         * doc/gnulib.texi: Include it.
12469         * modules/configmake: Move documentation from here.
12470
12471 2011-01-09  Bruno Haible  <bruno@clisp.org>
12472
12473         Update to Unicode 6.0.0.
12474         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
12475         (get_lbp): Update for Unicode 6.0.0.
12476         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
12477         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
12478         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
12479         U+11001, U+11038..U+11046. Remove U+06DE.
12480         (uc_width): Fix bounds of planes.
12481         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12482         lib/uniwidth/width.c.
12483         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
12484         trailing whitespace removed.
12485         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
12486         without comments, but with the original copyright notice.
12487         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
12488         * lib/unicase/ignorable.h: Likewise.
12489         * lib/unicase/tocasefold.h: Likewise.
12490         * lib/unicase/tolower.h: Likewise.
12491         * lib/unicase/totitle.h: Likewise.
12492         * lib/unicase/toupper.h: Likewise.
12493         * lib/unictype/bidi_of.h: Likewise.
12494         * lib/unictype/blocks.h: Likewise.
12495         * lib/unictype/categ_C.h: Likewise.
12496         * lib/unictype/categ_Cn.h: Likewise.
12497         * lib/unictype/categ_L.h: Likewise.
12498         * lib/unictype/categ_Ll.h: Likewise.
12499         * lib/unictype/categ_Lm.h: Likewise.
12500         * lib/unictype/categ_Lo.h: Likewise.
12501         * lib/unictype/categ_Lu.h: Likewise.
12502         * lib/unictype/categ_M.h: Likewise.
12503         * lib/unictype/categ_Mc.h: Likewise.
12504         * lib/unictype/categ_Me.h: Likewise.
12505         * lib/unictype/categ_Mn.h: Likewise.
12506         * lib/unictype/categ_N.h: Likewise.
12507         * lib/unictype/categ_Nd.h: Likewise.
12508         * lib/unictype/categ_No.h: Likewise.
12509         * lib/unictype/categ_P.h: Likewise.
12510         * lib/unictype/categ_Po.h: Likewise.
12511         * lib/unictype/categ_S.h: Likewise.
12512         * lib/unictype/categ_Sc.h: Likewise.
12513         * lib/unictype/categ_Sk.h: Likewise.
12514         * lib/unictype/categ_Sm.h: Likewise.
12515         * lib/unictype/categ_So.h: Likewise.
12516         * lib/unictype/categ_of.h: Likewise.
12517         * lib/unictype/combining.h: Likewise.
12518         * lib/unictype/ctype_alnum.h: Likewise.
12519         * lib/unictype/ctype_alpha.h: Likewise.
12520         * lib/unictype/ctype_graph.h: Likewise.
12521         * lib/unictype/ctype_lower.h: Likewise.
12522         * lib/unictype/ctype_print.h: Likewise.
12523         * lib/unictype/ctype_punct.h: Likewise.
12524         * lib/unictype/ctype_upper.h: Likewise.
12525         * lib/unictype/decdigit.h: Likewise.
12526         * lib/unictype/digit.h: Likewise.
12527         * lib/unictype/numeric.h: Likewise.
12528         * lib/unictype/pr_alphabetic.h: Likewise.
12529         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12530         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12531         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12532         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12533         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12534         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12535         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12536         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12537         * lib/unictype/pr_case_ignorable.h: Likewise.
12538         * lib/unictype/pr_cased.h: Likewise.
12539         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
12540         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
12541         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
12542         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
12543         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
12544         * lib/unictype/pr_combining.h: Likewise.
12545         * lib/unictype/pr_composite.h: Likewise.
12546         * lib/unictype/pr_currency_symbol.h: Likewise.
12547         * lib/unictype/pr_decimal_digit.h: Likewise.
12548         * lib/unictype/pr_deprecated.h: Likewise.
12549         * lib/unictype/pr_format_control.h: Likewise.
12550         * lib/unictype/pr_grapheme_base.h: Likewise.
12551         * lib/unictype/pr_grapheme_extend.h: Likewise.
12552         * lib/unictype/pr_grapheme_link.h: Likewise.
12553         * lib/unictype/pr_id_continue.h: Likewise.
12554         * lib/unictype/pr_id_start.h: Likewise.
12555         * lib/unictype/pr_ideographic.h: Likewise.
12556         * lib/unictype/pr_lowercase.h: Likewise.
12557         * lib/unictype/pr_math.h: Likewise.
12558         * lib/unictype/pr_numeric.h: Likewise.
12559         * lib/unictype/pr_other_alphabetic.h: Likewise.
12560         * lib/unictype/pr_other_id_continue.h: Likewise.
12561         * lib/unictype/pr_other_math.h: Likewise.
12562         * lib/unictype/pr_punctuation.h: Likewise.
12563         * lib/unictype/pr_sentence_terminal.h: Likewise.
12564         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12565         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12566         * lib/unictype/pr_unified_ideograph.h: Likewise.
12567         * lib/unictype/pr_uppercase.h: Likewise.
12568         * lib/unictype/pr_xid_continue.h: Likewise.
12569         * lib/unictype/pr_xid_start.h: Likewise.
12570         * lib/unictype/scripts.h: Likewise.
12571         * lib/unictype/scripts_byname.gperf: Likewise.
12572         * lib/unictype/sy_java_ident.h: Likewise.
12573         * lib/unigbrk/gbrkprop.h: Likewise.
12574         * lib/unilbrk/lbrkprop1.h: Likewise.
12575         * lib/unilbrk/lbrkprop2.h: Likewise.
12576         * lib/uninorm/decomposition-table2.h: Likewise.
12577         * lib/uniwbrk/wbrkprop.h: Likewise.
12578         * tests/unicase/test-cased.c: Likewise.
12579         * tests/unicase/test-ignorable.c: Likewise.
12580         * tests/unicase/test-uc_tolower.c: Likewise.
12581         * tests/unicase/test-uc_totitle.c: Likewise.
12582         * tests/unicase/test-uc_toupper.c: Likewise.
12583         * tests/unictype/test-categ_C.c: Likewise.
12584         * tests/unictype/test-categ_Cn.c: Likewise.
12585         * tests/unictype/test-categ_L.c: Likewise.
12586         * tests/unictype/test-categ_Ll.c: Likewise.
12587         * tests/unictype/test-categ_Lm.c: Likewise.
12588         * tests/unictype/test-categ_Lo.c: Likewise.
12589         * tests/unictype/test-categ_Lu.c: Likewise.
12590         * tests/unictype/test-categ_M.c: Likewise.
12591         * tests/unictype/test-categ_Mc.c: Likewise.
12592         * tests/unictype/test-categ_Me.c: Likewise.
12593         * tests/unictype/test-categ_Mn.c: Likewise.
12594         * tests/unictype/test-categ_N.c: Likewise.
12595         * tests/unictype/test-categ_Nd.c: Likewise.
12596         * tests/unictype/test-categ_No.c: Likewise.
12597         * tests/unictype/test-categ_P.c: Likewise.
12598         * tests/unictype/test-categ_Po.c: Likewise.
12599         * tests/unictype/test-categ_S.c: Likewise.
12600         * tests/unictype/test-categ_Sc.c: Likewise.
12601         * tests/unictype/test-categ_Sk.c: Likewise.
12602         * tests/unictype/test-categ_Sm.c: Likewise.
12603         * tests/unictype/test-categ_So.c: Likewise.
12604         * tests/unictype/test-ctype_alnum.c: Likewise.
12605         * tests/unictype/test-ctype_alpha.c: Likewise.
12606         * tests/unictype/test-ctype_graph.c: Likewise.
12607         * tests/unictype/test-ctype_lower.c: Likewise.
12608         * tests/unictype/test-ctype_print.c: Likewise.
12609         * tests/unictype/test-ctype_punct.c: Likewise.
12610         * tests/unictype/test-ctype_upper.c: Likewise.
12611         * tests/unictype/test-decdigit.h: Likewise.
12612         * tests/unictype/test-digit.h: Likewise.
12613         * tests/unictype/test-numeric.h: Likewise.
12614         * tests/unictype/test-pr_alphabetic.c: Likewise.
12615         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12616         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
12617         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
12618         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12619         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12620         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12621         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12622         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12623         * tests/unictype/test-pr_case_ignorable.c: Likewise.
12624         * tests/unictype/test-pr_cased.c: Likewise.
12625         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
12626         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
12627         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
12628         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
12629         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
12630         * tests/unictype/test-pr_combining.c: Likewise.
12631         * tests/unictype/test-pr_composite.c: Likewise.
12632         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12633         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12634         * tests/unictype/test-pr_deprecated.c: Likewise.
12635         * tests/unictype/test-pr_format_control.c: Likewise.
12636         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12637         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12638         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12639         * tests/unictype/test-pr_id_continue.c: Likewise.
12640         * tests/unictype/test-pr_id_start.c: Likewise.
12641         * tests/unictype/test-pr_ideographic.c: Likewise.
12642         * tests/unictype/test-pr_lowercase.c: Likewise.
12643         * tests/unictype/test-pr_math.c: Likewise.
12644         * tests/unictype/test-pr_numeric.c: Likewise.
12645         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12646         * tests/unictype/test-pr_other_id_continue.c: Likewise.
12647         * tests/unictype/test-pr_other_math.c: Likewise.
12648         * tests/unictype/test-pr_punctuation.c: Likewise.
12649         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12650         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12651         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12652         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12653         * tests/unictype/test-pr_uppercase.c: Likewise.
12654         * tests/unictype/test-pr_xid_continue.c: Likewise.
12655         * tests/unictype/test-pr_xid_start.c: Likewise.
12656         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12657         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12658         changes.
12659         * lib/unictype/categ_Cc.h: Likewise.
12660         * lib/unictype/categ_Cf.h: Likewise.
12661         * lib/unictype/categ_Co.h: Likewise.
12662         * lib/unictype/categ_Cs.h: Likewise.
12663         * lib/unictype/categ_Lt.h: Likewise.
12664         * lib/unictype/categ_Nl.h: Likewise.
12665         * lib/unictype/categ_Pc.h: Likewise.
12666         * lib/unictype/categ_Pd.h: Likewise.
12667         * lib/unictype/categ_Pe.h: Likewise.
12668         * lib/unictype/categ_Pf.h: Likewise.
12669         * lib/unictype/categ_Pi.h: Likewise.
12670         * lib/unictype/categ_Ps.h: Likewise.
12671         * lib/unictype/categ_Z.h: Likewise.
12672         * lib/unictype/categ_Zl.h: Likewise.
12673         * lib/unictype/categ_Zp.h: Likewise.
12674         * lib/unictype/categ_Zs.h: Likewise.
12675         * lib/unictype/ctype_blank.h: Likewise.
12676         * lib/unictype/ctype_cntrl.h: Likewise.
12677         * lib/unictype/ctype_digit.h: Likewise.
12678         * lib/unictype/ctype_space.h: Likewise.
12679         * lib/unictype/ctype_xdigit.h: Likewise.
12680         * lib/unictype/mirror.h: Likewise.
12681         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12682         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12683         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12684         * lib/unictype/pr_bidi_control.h: Likewise.
12685         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12686         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12687         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12688         * lib/unictype/pr_bidi_pdf.h: Likewise.
12689         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12690         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12691         * lib/unictype/pr_dash.h: Likewise.
12692         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12693         * lib/unictype/pr_diacritic.h: Likewise.
12694         * lib/unictype/pr_extender.h: Likewise.
12695         * lib/unictype/pr_hex_digit.h: Likewise.
12696         * lib/unictype/pr_hyphen.h: Likewise.
12697         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12698         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12699         * lib/unictype/pr_ignorable_control.h: Likewise.
12700         * lib/unictype/pr_iso_control.h: Likewise.
12701         * lib/unictype/pr_join_control.h: Likewise.
12702         * lib/unictype/pr_left_of_pair.h: Likewise.
12703         * lib/unictype/pr_line_separator.h: Likewise.
12704         * lib/unictype/pr_logical_order_exception.h: Likewise.
12705         * lib/unictype/pr_non_break.h: Likewise.
12706         * lib/unictype/pr_not_a_character.h: Likewise.
12707         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12708         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12709         * lib/unictype/pr_other_id_start.h: Likewise.
12710         * lib/unictype/pr_other_lowercase.h: Likewise.
12711         * lib/unictype/pr_other_uppercase.h: Likewise.
12712         * lib/unictype/pr_paired_punctuation.h: Likewise.
12713         * lib/unictype/pr_paragraph_separator.h: Likewise.
12714         * lib/unictype/pr_pattern_syntax.h: Likewise.
12715         * lib/unictype/pr_pattern_white_space.h: Likewise.
12716         * lib/unictype/pr_private_use.h: Likewise.
12717         * lib/unictype/pr_quotation_mark.h: Likewise.
12718         * lib/unictype/pr_radical.h: Likewise.
12719         * lib/unictype/pr_soft_dotted.h: Likewise.
12720         * lib/unictype/pr_space.h: Likewise.
12721         * lib/unictype/pr_titlecase.h: Likewise.
12722         * lib/unictype/pr_variation_selector.h: Likewise.
12723         * lib/unictype/pr_white_space.h: Likewise.
12724         * lib/unictype/pr_zero_width.h: Likewise.
12725         * lib/unictype/sy_c_ident.h: Likewise.
12726         * lib/unictype/sy_c_whitespace.h: Likewise.
12727         * lib/unictype/sy_java_whitespace.h: Likewise.
12728         * lib/uninorm/composition-table.gperf: Likewise.
12729         * lib/uninorm/decomposition-table1.h: Likewise.
12730         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
12731         LB8.
12732         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12733         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12734         * modules/unictype/*: Bump version number of expected libunistring
12735         version.
12736
12737 2011-01-09  Bruno Haible  <bruno@clisp.org>
12738
12739         Update to Unicode 5.2.0.
12740         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
12741         trailing whitespace removed.
12742
12743 2011-01-09  Bruno Haible  <bruno@clisp.org>
12744
12745         New Unicode character properties, from Unicode 5.2.0.
12746         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
12747         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
12748         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
12749         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
12750         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
12751         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
12752         uc_is_property_cased, uc_is_property_case_ignorable,
12753         uc_is_property_changes_when_lowercased,
12754         uc_is_property_changes_when_uppercased,
12755         uc_is_property_changes_when_titlecased,
12756         uc_is_property_changes_when_casefolded,
12757         uc_is_property_changes_when_casemapped): New declarations.
12758         * lib/unictype/pr_byname.gperf: Add the new properties.
12759         * modules/unictype/property-byname (Depends-on): Depend on the new
12760         properties modules.
12761         * modules/unictype/property-all (Depends-on): Likewise.
12762         * MODULES.html.sh (Unicode string functions): Add
12763         unictype/property-case-ignorable, unictype/property-cased,
12764         unictype/property-changes-when-casefolded,
12765         unictype/property-changes-when-casemapped,
12766         unictype/property-changes-when-lowercased,
12767         unictype/property-changes-when-titlecased,
12768         unictype/property-changes-when-uppercased.
12769
12770         New module 'unictype/property-changes-when-casemapped'.
12771         * modules/unictype/property-changes-when-casemapped: New file.
12772         * lib/unictype/pr_changes_when_casemapped.c: New file.
12773         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
12774         generated by gen-uni-tables.
12775         * modules/unictype/property-changes-when-casemapped-tests: New file.
12776         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
12777         automatically generated by gen-uni-tables.
12778
12779         New module 'unictype/property-changes-when-casefolded'.
12780         * modules/unictype/property-changes-when-casefolded: New file.
12781         * lib/unictype/pr_changes_when_casefolded.c: New file.
12782         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
12783         generated by gen-uni-tables.
12784         * modules/unictype/property-changes-when-casefolded-tests: New file.
12785         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
12786         automatically generated by gen-uni-tables.
12787
12788         New module 'unictype/property-changes-when-titlecased'.
12789         * modules/unictype/property-changes-when-titlecased: New file.
12790         * lib/unictype/pr_changes_when_titlecased.c: New file.
12791         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
12792         generated by gen-uni-tables.
12793         * modules/unictype/property-changes-when-titlecased-tests: New file.
12794         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
12795         automatically generated by gen-uni-tables.
12796
12797         New module 'unictype/property-changes-when-uppercased'.
12798         * modules/unictype/property-changes-when-uppercased: New file.
12799         * lib/unictype/pr_changes_when_uppercased.c: New file.
12800         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
12801         generated by gen-uni-tables.
12802         * modules/unictype/property-changes-when-uppercased-tests: New file.
12803         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
12804         automatically generated by gen-uni-tables.
12805
12806         New module 'unictype/property-changes-when-lowercased'.
12807         * modules/unictype/property-changes-when-lowercased: New file.
12808         * lib/unictype/pr_changes_when_lowercased.c: New file.
12809         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
12810         generated by gen-uni-tables.
12811         * modules/unictype/property-changes-when-lowercased-tests: New file.
12812         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
12813         automatically generated by gen-uni-tables.
12814
12815         New module 'unictype/property-case-ignorable'.
12816         * modules/unictype/property-case-ignorable: New file.
12817         * lib/unictype/pr_case_ignorable.c: New file.
12818         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
12819         by gen-uni-tables.
12820         * modules/unictype/property-case-ignorable-tests: New file.
12821         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
12822         generated by gen-uni-tables.
12823
12824         New module 'unictype/property-cased'.
12825         * modules/unictype/property-cased: New file.
12826         * lib/unictype/pr_cased.c: New file.
12827         * lib/unictype/pr_cased.h: New file, automatically generated by
12828         gen-uni-tables.
12829         * modules/unictype/property-cased-tests: New file.
12830         * tests/unictype/test-pr_cased.c: New file, automatically generated by
12831         gen-uni-tables.
12832
12833 2011-01-09  Bruno Haible  <bruno@clisp.org>
12834
12835         Update to Unicode 5.2.0.
12836         * lib/gen-uni-tables.c (output_predicate, output_category,
12837         output_combclass, output_bidi_category, output_decimal_digit_test,
12838         output_decimal_digit, output_digit_test, output_digit,
12839         output_numeric_test, output_numeric, output_mirror, output_scripts,
12840         output_scripts_byname, output_blocks, output_ident_category): Fix
12841         comment header.
12842         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
12843         get_wbp.
12844         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
12845         items.
12846         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
12847         Changes_When_Lowercased, Changes_When_Uppercased,
12848         Changes_When_Titlecased, Changes_When_Casefolded,
12849         Changes_When_Casemapped.
12850         (is_property_alphabetic, is_property_default_ignorable_code_point):
12851         Update for Unicode 5.2.0.
12852         (is_property_cased, is_property_case_ignorable,
12853         is_property_changes_when_lowercased,
12854         is_property_changes_when_uppercased,
12855         is_property_changes_when_titlecased,
12856         is_property_changes_when_casefolded,
12857         is_property_changes_when_casemapped): New functions.
12858         (output_properties): Output also the properties cased, case_ignorable,
12859         changes_when_lowercased, changes_when_uppercased,
12860         changes_when_titlecased, changes_when_casefolded,
12861         changes_when_casemapped.
12862         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
12863         Unicode TR#11 revision 17 -> 19.
12864         (LBP_CP): New enumeration value.
12865         (LBP_*): Adjust values accordingly.
12866         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12867         TR#14 revision 22 -> 24.
12868         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
12869         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
12870         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12871         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
12872         is_WBP_MIDLETTER.
12873         (output_composition_tables): Allow for 24 bits instead of 16 bits in
12874         the code1 and code2 of each composition rule.
12875         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
12876         * lib/unicase/ignorable.h: Likewise.
12877         * lib/unicase/tocasefold.h: Likewise.
12878         * lib/unicase/tolower.h: Likewise.
12879         * lib/unicase/totitle.h: Likewise.
12880         * lib/unicase/toupper.h: Likewise.
12881         * lib/unictype/bidi_of.h: Likewise.
12882         * lib/unictype/blocks.h: Likewise.
12883         * lib/unictype/categ_C.h: Likewise.
12884         * lib/unictype/categ_Cf.h: Likewise.
12885         * lib/unictype/categ_Cn.h: Likewise.
12886         * lib/unictype/categ_L.h: Likewise.
12887         * lib/unictype/categ_Ll.h: Likewise.
12888         * lib/unictype/categ_Lm.h: Likewise.
12889         * lib/unictype/categ_Lo.h: Likewise.
12890         * lib/unictype/categ_Lu.h: Likewise.
12891         * lib/unictype/categ_M.h: Likewise.
12892         * lib/unictype/categ_Mc.h: Likewise.
12893         * lib/unictype/categ_Mn.h: Likewise.
12894         * lib/unictype/categ_N.h: Likewise.
12895         * lib/unictype/categ_Nd.h: Likewise.
12896         * lib/unictype/categ_Nl.h: Likewise.
12897         * lib/unictype/categ_No.h: Likewise.
12898         * lib/unictype/categ_P.h: Likewise.
12899         * lib/unictype/categ_Pd.h: Likewise.
12900         * lib/unictype/categ_Po.h: Likewise.
12901         * lib/unictype/categ_S.h: Likewise.
12902         * lib/unictype/categ_Sc.h: Likewise.
12903         * lib/unictype/categ_So.h: Likewise.
12904         * lib/unictype/categ_of.h: Likewise.
12905         * lib/unictype/combining.h: Likewise.
12906         * lib/unictype/ctype_alnum.h: Likewise.
12907         * lib/unictype/ctype_alpha.h: Likewise.
12908         * lib/unictype/ctype_graph.h: Likewise.
12909         * lib/unictype/ctype_lower.h: Likewise.
12910         * lib/unictype/ctype_print.h: Likewise.
12911         * lib/unictype/ctype_punct.h: Likewise.
12912         * lib/unictype/ctype_upper.h: Likewise.
12913         * lib/unictype/decdigit.h: Likewise.
12914         * lib/unictype/digit.h: Likewise.
12915         * lib/unictype/numeric.h: Likewise.
12916         * lib/unictype/pr_alphabetic.h: Likewise.
12917         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12918         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12919         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12920         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12921         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12922         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12923         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12924         * lib/unictype/pr_combining.h: Likewise.
12925         * lib/unictype/pr_composite.h: Likewise.
12926         * lib/unictype/pr_currency_symbol.h: Likewise.
12927         * lib/unictype/pr_dash.h: Likewise.
12928         * lib/unictype/pr_decimal_digit.h: Likewise.
12929         * lib/unictype/pr_deprecated.h: Likewise.
12930         * lib/unictype/pr_diacritic.h: Likewise.
12931         * lib/unictype/pr_extender.h: Likewise.
12932         * lib/unictype/pr_grapheme_base.h: Likewise.
12933         * lib/unictype/pr_grapheme_extend.h: Likewise.
12934         * lib/unictype/pr_grapheme_link.h: Likewise.
12935         * lib/unictype/pr_id_continue.h: Likewise.
12936         * lib/unictype/pr_id_start.h: Likewise.
12937         * lib/unictype/pr_ideographic.h: Likewise.
12938         * lib/unictype/pr_ignorable_control.h: Likewise.
12939         * lib/unictype/pr_logical_order_exception.h: Likewise.
12940         * lib/unictype/pr_lowercase.h: Likewise.
12941         * lib/unictype/pr_numeric.h: Likewise.
12942         * lib/unictype/pr_other_alphabetic.h: Likewise.
12943         * lib/unictype/pr_punctuation.h: Likewise.
12944         * lib/unictype/pr_sentence_terminal.h: Likewise.
12945         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12946         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12947         * lib/unictype/pr_unified_ideograph.h: Likewise.
12948         * lib/unictype/pr_uppercase.h: Likewise.
12949         * lib/unictype/pr_xid_continue.h: Likewise.
12950         * lib/unictype/pr_xid_start.h: Likewise.
12951         * lib/unictype/pr_zero_width.h: Likewise.
12952         * lib/unictype/scripts.h: Likewise.
12953         * lib/unictype/scripts_byname.gperf: Likewise.
12954         * lib/unictype/sy_java_ident.h: Likewise.
12955         * lib/unigbrk/gbrkprop.h: Likewise.
12956         * lib/unilbrk/lbrkprop1.h: Likewise.
12957         * lib/unilbrk/lbrkprop2.h: Likewise.
12958         * lib/unilbrk/lbrktables.h: Likewise.
12959         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
12960         LBP_CP. Implement rule LB30.
12961         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
12962         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
12963         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
12964         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
12965         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
12966         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
12967         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
12968         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
12969         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
12970         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
12971         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
12972         bits instead of 16 bits in the code1 and code2 of each composition
12973         rule.
12974         (uc_composition): Update for Unicode 5.2.0.
12975         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12976         * lib/uninorm/decomposition-table2.h: Likewise.
12977         * lib/uniwbrk/wbrkprop.h: Likewise.
12978         * tests/unicase/test-cased.c: Likewise.
12979         * tests/unicase/test-ignorable.c: Likewise.
12980         * tests/unicase/test-uc_tolower.c: Likewise.
12981         * tests/unicase/test-uc_totitle.c: Likewise.
12982         * tests/unicase/test-uc_toupper.c: Likewise.
12983         * tests/unictype/test-categ_C.c: Likewise.
12984         * tests/unictype/test-categ_Cf.c: Likewise.
12985         * tests/unictype/test-categ_Cn.c: Likewise.
12986         * tests/unictype/test-categ_L.c: Likewise.
12987         * tests/unictype/test-categ_Ll.c: Likewise.
12988         * tests/unictype/test-categ_Lm.c: Likewise.
12989         * tests/unictype/test-categ_Lo.c: Likewise.
12990         * tests/unictype/test-categ_Lu.c: Likewise.
12991         * tests/unictype/test-categ_M.c: Likewise.
12992         * tests/unictype/test-categ_Mc.c: Likewise.
12993         * tests/unictype/test-categ_Mn.c: Likewise.
12994         * tests/unictype/test-categ_N.c: Likewise.
12995         * tests/unictype/test-categ_Nd.c: Likewise.
12996         * tests/unictype/test-categ_Nl.c: Likewise.
12997         * tests/unictype/test-categ_No.c: Likewise.
12998         * tests/unictype/test-categ_P.c: Likewise.
12999         * tests/unictype/test-categ_Pd.c: Likewise.
13000         * tests/unictype/test-categ_Po.c: Likewise.
13001         * tests/unictype/test-categ_S.c: Likewise.
13002         * tests/unictype/test-categ_Sc.c: Likewise.
13003         * tests/unictype/test-categ_So.c: Likewise.
13004         * tests/unictype/test-ctype_alnum.c: Likewise.
13005         * tests/unictype/test-ctype_alpha.c: Likewise.
13006         * tests/unictype/test-ctype_graph.c: Likewise.
13007         * tests/unictype/test-ctype_lower.c: Likewise.
13008         * tests/unictype/test-ctype_print.c: Likewise.
13009         * tests/unictype/test-ctype_punct.c: Likewise.
13010         * tests/unictype/test-ctype_upper.c: Likewise.
13011         * tests/unictype/test-decdigit.h: Likewise.
13012         * tests/unictype/test-digit.h: Likewise.
13013         * tests/unictype/test-numeric.h: Likewise.
13014         * tests/unictype/test-pr_alphabetic.c: Likewise.
13015         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
13016         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
13017         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
13018         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
13019         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
13020         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
13021         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
13022         * tests/unictype/test-pr_combining.c: Likewise.
13023         * tests/unictype/test-pr_composite.c: Likewise.
13024         * tests/unictype/test-pr_currency_symbol.c: Likewise.
13025         * tests/unictype/test-pr_dash.c: Likewise.
13026         * tests/unictype/test-pr_decimal_digit.c: Likewise.
13027         * tests/unictype/test-pr_deprecated.c: Likewise.
13028         * tests/unictype/test-pr_diacritic.c: Likewise.
13029         * tests/unictype/test-pr_extender.c: Likewise.
13030         * tests/unictype/test-pr_grapheme_base.c: Likewise.
13031         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
13032         * tests/unictype/test-pr_grapheme_link.c: Likewise.
13033         * tests/unictype/test-pr_id_continue.c: Likewise.
13034         * tests/unictype/test-pr_id_start.c: Likewise.
13035         * tests/unictype/test-pr_ideographic.c: Likewise.
13036         * tests/unictype/test-pr_ignorable_control.c: Likewise.
13037         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
13038         * tests/unictype/test-pr_lowercase.c: Likewise.
13039         * tests/unictype/test-pr_numeric.c: Likewise.
13040         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
13041         * tests/unictype/test-pr_punctuation.c: Likewise.
13042         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
13043         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
13044         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
13045         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
13046         * tests/unictype/test-pr_uppercase.c: Likewise.
13047         * tests/unictype/test-pr_xid_continue.c: Likewise.
13048         * tests/unictype/test-pr_xid_start.c: Likewise.
13049         * tests/unictype/test-pr_zero_width.c: Likewise.
13050         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
13051         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
13052         changed behaviour: line breaking is now disallowed between a letter
13053         or '=' and '('.
13054         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13055         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13056         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
13057         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
13058         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13059         lib/uniwidth/width.c.
13060         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
13061         without comments, but with the original copyright notice.
13062         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
13063         changes.
13064         * lib/unictype/categ_Cc.h: Likewise.
13065         * lib/unictype/categ_Co.h: Likewise.
13066         * lib/unictype/categ_Cs.h: Likewise.
13067         * lib/unictype/categ_Lt.h: Likewise.
13068         * lib/unictype/categ_Me.h: Likewise.
13069         * lib/unictype/categ_Pc.h: Likewise.
13070         * lib/unictype/categ_Pe.h: Likewise.
13071         * lib/unictype/categ_Pf.h: Likewise.
13072         * lib/unictype/categ_Pi.h: Likewise.
13073         * lib/unictype/categ_Ps.h: Likewise.
13074         * lib/unictype/categ_Sk.h: Likewise.
13075         * lib/unictype/categ_Sm.h: Likewise.
13076         * lib/unictype/categ_Z.h: Likewise.
13077         * lib/unictype/categ_Zl.h: Likewise.
13078         * lib/unictype/categ_Zp.h: Likewise.
13079         * lib/unictype/categ_Zs.h: Likewise.
13080         * lib/unictype/ctype_blank.h: Likewise.
13081         * lib/unictype/ctype_cntrl.h: Likewise.
13082         * lib/unictype/ctype_digit.h: Likewise.
13083         * lib/unictype/ctype_space.h: Likewise.
13084         * lib/unictype/ctype_xdigit.h: Likewise.
13085         * lib/unictype/mirror.h: Likewise.
13086         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13087         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
13088         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13089         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
13090         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13091         * lib/unictype/pr_bidi_control.h: Likewise.
13092         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13093         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13094         * lib/unictype/pr_bidi_pdf.h: Likewise.
13095         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13096         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13097         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13098         * lib/unictype/pr_format_control.h: Likewise.
13099         * lib/unictype/pr_hex_digit.h: Likewise.
13100         * lib/unictype/pr_hyphen.h: Likewise.
13101         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13102         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13103         * lib/unictype/pr_iso_control.h: Likewise.
13104         * lib/unictype/pr_join_control.h: Likewise.
13105         * lib/unictype/pr_left_of_pair.h: Likewise.
13106         * lib/unictype/pr_line_separator.h: Likewise.
13107         * lib/unictype/pr_math.h: Likewise.
13108         * lib/unictype/pr_non_break.h: Likewise.
13109         * lib/unictype/pr_not_a_character.h: Likewise.
13110         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13111         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13112         * lib/unictype/pr_other_id_continue.h: Likewise.
13113         * lib/unictype/pr_other_id_start.h: Likewise.
13114         * lib/unictype/pr_other_lowercase.h: Likewise.
13115         * lib/unictype/pr_other_math.h: Likewise.
13116         * lib/unictype/pr_other_uppercase.h: Likewise.
13117         * lib/unictype/pr_paired_punctuation.h: Likewise.
13118         * lib/unictype/pr_paragraph_separator.h: Likewise.
13119         * lib/unictype/pr_pattern_syntax.h: Likewise.
13120         * lib/unictype/pr_pattern_white_space.h: Likewise.
13121         * lib/unictype/pr_private_use.h: Likewise.
13122         * lib/unictype/pr_quotation_mark.h: Likewise.
13123         * lib/unictype/pr_radical.h: Likewise.
13124         * lib/unictype/pr_soft_dotted.h: Likewise.
13125         * lib/unictype/pr_space.h: Likewise.
13126         * lib/unictype/pr_titlecase.h: Likewise.
13127         * lib/unictype/pr_variation_selector.h: Likewise.
13128         * lib/unictype/pr_white_space.h: Likewise.
13129         * lib/unictype/sy_c_ident.h: Likewise.
13130         * lib/unictype/sy_c_whitespace.h: Likewise.
13131         * lib/unictype/sy_java_whitespace.h: Likewise.
13132         * modules/uni*/*: Bump version number of expected libunistring version.
13133         Reported by Simon Josefsson.
13134
13135 2011-01-09  Karl Heuer  <kwzh@gnu.org>
13136
13137         useless-if-before-free: fix typo in --help and make the internal,
13138         automatic version date update process work once again.
13139         --help output contained a NUL character instead of the
13140         backslash-zero that was intended.  Also, the "must lie within
13141         the first 8 lines" line is on line 9, and hence not getting
13142         automatically updated.
13143         * build-aux/useless-if-before-free: Fix the former by adding a
13144         backslash, and the latter by condensing the three lines of what-it-does
13145         to a single line, leaving one line of slack for the future.
13146
13147 2011-01-09  Bruno Haible  <bruno@clisp.org>
13148
13149         uniwidth/width: Fix width of U+1D173..U+1D17A.
13150         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
13151         symbolic_width, output_width_property_test): New functions.
13152         (main): Invoke output_nonspacing_property, output_width_property_test.
13153         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
13154         U+1D173..U+1D17A.
13155         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
13156         1.
13157         * modules/uniwidth/*: Bump version number of expected libunistring
13158         version.
13159         * modules/unilbrk/*: Likewise.
13160
13161 2011-01-08  Bruno Haible  <bruno@clisp.org>
13162
13163         uninorm tests: Preserve copyright of Unicode data file.
13164         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
13165         Mention modifications.
13166
13167 2011-01-08  Bruno Haible  <bruno@clisp.org>
13168
13169         gen-uni-tables: Prepare for Unicode 5.2.0.
13170         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
13171         (debug_output_lbp, output_lbp): Update.
13172
13173 2011-01-08  Bruno Haible  <bruno@clisp.org>
13174
13175         unilbrk: Clarify gen-uni-tables.c code.
13176         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
13177         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
13178         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
13179
13180 2011-01-07  Bruno Haible  <bruno@clisp.org>
13181
13182         strtod: Restore errno when successfully parsing Infinity or NaN.
13183         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
13184         restore the original errno.
13185
13186 2011-01-07  Bruno Haible  <bruno@clisp.org>
13187
13188         remove test: Avoid failure on HP-UX 11.
13189         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
13190
13191 2011-01-07  Bruno Haible  <bruno@clisp.org>
13192
13193         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
13194         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
13195         error code.
13196
13197 2011-01-07  Pádraig Brady <P@draigBrady.com>
13198
13199         ignore-value: fixup comments, and add Eric Blake
13200         as an author since he rewrote the macros.
13201         * lib/ignore-value.h (ignore_value):  State that
13202         we now support aggregates.  Also specify exactly
13203         when the GCC warn_unused_result feature was added.
13204
13205 2011-01-06  Eric Blake  <eblake@redhat.com>
13206
13207         ignore-value: support aggregate types
13208         * lib/ignore-value.h (ignore_value): Provide separate gcc
13209         definition.
13210         * modules/ignore-value-tests: New test module.
13211         * tests/test-ignore-value.c: New test.
13212
13213         maint.mk: improve sc_prohibit_strcmp regex
13214         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
13215         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
13216         definition of STRNEQ.
13217
13218         signal: work around Haiku issue with SIGBUS
13219         * lib/siglist.h: Add comment.
13220         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
13221         strsignal's favoring of SIGSEGV.
13222         * tests/test-signal.c (main): Avoid test failure.
13223         * doc/posix-headers/signal.texi (signal.h): Document the issue.
13224         Reported by Scott McCreary.
13225
13226         maint.mk: add pre-release check to ensure submodule commits are public
13227         * top/maint.mk (public-submodule-commit): New rule.
13228         (submodule-checks): New variable.
13229         (alpha beta stable): Depend on the variable.
13230
13231 2011-01-05  Pádraig Brady <P@draigBrady.com>
13232         and Jim Meyering  <meyering@redhat.com>
13233
13234         ignore-value: make ignore_value more generic; deprecate ignore_ptr
13235         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
13236         (ATTRIBUTE_DEPRECATED): Define.
13237         (_ignore_case): New function.
13238         (ignore_value): New macro, to replace the old function.
13239         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
13240         * modules/ignore-value (Depends-on): Add stdint.
13241
13242 2011-01-04  Eric Blake  <eblake@redhat.com>
13243
13244         doc: regenerate INSTALL
13245         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
13246         @firstparagraphindent support, now that autoconf dropped it.
13247         (INSTALL_PRELUDE): Reinstate old macro.
13248         * doc/install.texi: Resync from autoconf.
13249         * doc/INSTALL: Reflect recent autoconf update.
13250         * doc/INSTALL.ISO: Likewise.
13251         * doc/INSTALL.UTF-8: Likewise.
13252         Reported by Karl Berry.
13253
13254 2011-01-04  Bruce Korb  <address@hidden>
13255
13256         git-version-gen: avoid a sub-shell
13257         * build-aux/git-version-gen: Redirect stderr in `...` via
13258         "exec 2>...", rather than via an added sub-shell.
13259
13260 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
13261
13262         git-version-gen: use (...) rather than sh -c '...'
13263         * build-aux/git-version-gen: Rather than hard-coding a shell's name
13264         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
13265
13266 2011-01-03  Jim Meyering  <meyering@redhat.com>
13267
13268         git-version-gen: convert leading TABs to spaces
13269         * build-aux/git-version-gen: Expand leading TABs.
13270
13271         git-version-gen: handle failed "git rev-list"
13272         * build-aux/git-version-gen: Rather than leaking a "fatal" error
13273         from git and proceeding as if it had succeeded but printed no SHA1
13274         checksums, suppress the diagnostic and handle the failure.
13275         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
13276
13277         git-version-gen: include command name in one more diagnostic
13278         * build-aux/git-version-gen: When the required .tarball-version file
13279         was missing or unreadable, you might see the diagnostic from "cat",
13280         but no trace of the name of the invoking script.  Now, you still see
13281         the diagnostic from cat, but also get one from "git-version-gen: ".
13282         Inspired by a patch from Bruce Korb.
13283
13284         update-copyright: adjust test to match changed code
13285         * tests/test-update-copyright.sh: Change test's expected output
13286         to match new actual output.
13287
13288 2011-01-02  Bruno Haible  <bruno@clisp.org>
13289
13290         getlogin_r: Avoid test failure on HP-UX 11.
13291         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
13292         ERANGE when the second argument is zero.
13293         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
13294         portability problem.
13295
13296 2011-01-02  Bruce Korb  <bkorb@gnu.org>
13297
13298         * build-aux/update-copyright: doc Simon's changes
13299
13300 2011-01-02  Simon Josefsson  <simon@josefsson.org>
13301
13302         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
13303         environment variable.
13304
13305 2011-01-02  Bruno Haible  <bruno@clisp.org>
13306
13307         unigbrk: Avoid gcc warnings.
13308         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
13309         unused variable.
13310         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
13311         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
13312         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
13313         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
13314         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
13315         Change type of first argument to 'const char *'.
13316         (main): Remove unused variable.
13317         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
13318         type of first argument to 'const char *'.
13319         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
13320         Likewise.
13321         (main): Change type of variable 's'.
13322         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
13323         to 'int'.
13324
13325 2011-01-02  Bruno Haible  <bruno@clisp.org>
13326
13327         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
13328         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
13329         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
13330         bug.
13331         * lib/pwrite.c: Undo 2010-12-31 patch.
13332         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
13333
13334 2011-01-02  Bruno Haible  <bruno@clisp.org>
13335
13336         pread: Fix test whether it works.
13337         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
13338
13339 2011-01-02  Bruno Haible  <bruno@clisp.org>
13340
13341         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
13342         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
13343         ends in "6". Don't require a specific month name. Try also the locale
13344         names found on HP-UX 11 and Solaris 7.
13345
13346 2011-01-02  Bruno Haible  <bruno@clisp.org>
13347
13348         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
13349         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
13350         C linkage.
13351         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
13352
13353 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13354
13355         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
13356         for consistency, since the "cluster" term is not used elsewhere.
13357         * lib/unigbrk.in.h: Update name.
13358         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
13359         * lib/unigbrk/u16-grapheme-next.c: Update name.
13360         * lib/unigbrk/u16-grapheme-prev.c: Update name.
13361         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
13362         * lib/unigbrk/u32-grapheme-next.c: Update name.
13363         * lib/unigbrk/u32-grapheme-prev.c: Update name.
13364         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
13365         * lib/unigbrk/u8-grapheme-next.c: Update name.
13366         * lib/unigbrk/u8-grapheme-prev.c: Update name.
13367         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
13368         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
13369         Suggested by Bruno Haible.
13370
13371 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13372
13373         Remove module 'u8-grapheme-len' as too redundant with
13374         'u8-grapheme-next'.
13375         * modules/unigbrk/u8-grapheme-len: Delete file.
13376         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
13377         * lib/unigbrk.in.h: Remove prototype for deleted function.
13378         * lib/unigbrk/u8-grapheme-len.c: Delete file.
13379         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
13380
13381         Remove module 'u16-grapheme-len' as too redundant with
13382         'u16-grapheme-next'.
13383         * modules/unigbrk/u16-grapheme-len: Delete file.
13384         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
13385         * lib/unigbrk.in.h: Remove prototype for deleted function.
13386         * lib/unigbrk/u16-grapheme-len.c: Delete file.
13387         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
13388
13389         Remove module 'u32-grapheme-len' as too redundant with
13390         'u32-grapheme-next'.
13391         * modules/unigbrk/u32-grapheme-len: Delete file.
13392         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
13393         * lib/unigbrk.in.h: Remove prototype for deleted function.
13394         * lib/unigbrk/u32-grapheme-len.c: Delete file.
13395         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
13396
13397         Suggested by Bruno Haible.
13398
13399 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13400
13401         * unigbrk.in.h: Fix typo: "ben" => "been".
13402         Reported by Bruno Haible.
13403
13404 2011-01-01  Jim Meyering  <meyering@redhat.com>
13405
13406         maint: update almost all copyright ranges to include 2011
13407         Run the new "make update-copyright" rule.
13408
13409 2011-01-01  Jim Meyering  <meyering@redhat.com>
13410
13411         maint: update-copyright: exempt doc/INSTALL*
13412         * Makefile (update-copyright): Also exclude doc/INSTALL*,
13413         since they are generated.  Suggested by Bruno Haible.
13414
13415 2011-01-01  Jim Meyering  <meyering@redhat.com>
13416
13417         maint: refine the update-copyright rule
13418         * Makefile (update-copyright): Also exclude any file that includes
13419         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
13420         code that merely generates the comment.
13421
13422 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13423
13424         New module 'u8-grapheme-len'.
13425         * modules/unigbrk/u8-grapheme-len: New file.
13426         * modules/unigbrk/u8-grapheme-len-tests: New file.
13427         * lib/unigbrk.in.h: Add prototype for new function.
13428         * lib/unigbrk/u8-grapheme-len.c: New file.
13429         * tests/unigbrk/test-u8-grapheme-len.c: New file.
13430
13431         New module 'u16-grapheme-len'.
13432         * modules/unigbrk/u16-grapheme-len: New file.
13433         * modules/unigbrk/u16-grapheme-len-tests: New file.
13434         * lib/unigbrk.in.h: Add prototype for new function.
13435         * lib/unigbrk/u16-grapheme-len.c: New file.
13436         * tests/unigbrk/test-u16-grapheme-len.c: New file.
13437
13438         New module 'u32-grapheme-len'.
13439         * modules/unigbrk/u32-grapheme-len: New file.
13440         * modules/unigbrk/u32-grapheme-len-tests: New file.
13441         * lib/unigbrk.in.h: Add prototype for new function.
13442         * lib/unigbrk/u32-grapheme-len.c: New file.
13443         * tests/unigbrk/test-u32-grapheme-len.c: New file.
13444
13445         New module 'u8-grapheme-next'.
13446         * modules/unigbrk/u8-grapheme-next: New file.
13447         * modules/unigbrk/u8-grapheme-next-tests: New file.
13448         * lib/unigbrk.in.h: Add prototype for new function.
13449         * lib/unigbrk/u8-grapheme-next.c: New file.
13450         * tests/unigbrk/test-u8-grapheme-next.c: New file.
13451
13452         New module 'u16-grapheme-next'.
13453         * modules/unigbrk/u16-grapheme-next: New file.
13454         * modules/unigbrk/u16-grapheme-next-tests: New file.
13455         * lib/unigbrk.in.h: Add prototype for new function.
13456         * lib/unigbrk/u16-grapheme-next.c: New file.
13457         * tests/unigbrk/test-u16-grapheme-next.c: New file.
13458
13459         New module 'u32-grapheme-next'.
13460         * modules/unigbrk/u32-grapheme-next: New file.
13461         * modules/unigbrk/u32-grapheme-next-tests: New file.
13462         * lib/unigbrk.in.h: Add prototype for new function.
13463         * lib/unigbrk/u32-grapheme-next.c: New file.
13464         * tests/unigbrk/test-u32-grapheme-next.c: New file.
13465
13466         New module 'u8-grapheme-prev'.
13467         * modules/unigbrk/u8-grapheme-prev: New file.
13468         * modules/unigbrk/u8-grapheme-prev-tests: New file.
13469         * lib/unigbrk.in.h: Add prototype for new function.
13470         * lib/unigbrk/u8-grapheme-prev.c: New file.
13471         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
13472
13473         New module 'u16-grapheme-prev'.
13474         * modules/unigbrk/u16-grapheme-prev: New file.
13475         * modules/unigbrk/u16-grapheme-prev-tests: New file.
13476         * lib/unigbrk.in.h: Add prototype for new function.
13477         * lib/unigbrk/u16-grapheme-prev.c: New file.
13478         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
13479
13480         New module 'u32-grapheme-prev'.
13481         * modules/unigbrk/u32-grapheme-prev: New file.
13482         * modules/unigbrk/u32-grapheme-prev-tests: New file.
13483         * lib/unigbrk.in.h: Add prototype for new function.
13484         * lib/unigbrk/u32-grapheme-prev.c: New file.
13485         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
13486
13487         New module 'u8-grapheme-breaks'.
13488         * modules/unigbrk/u8-grapheme-breaks: New file.
13489         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
13490         * lib/unigbrk.in.h: Add prototype for new function.
13491         * lib/unigbrk/u8-grapheme-breaks.c: New file.
13492         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
13493
13494         New module 'u16-grapheme-breaks'.
13495         * modules/unigbrk/u16-grapheme-breaks: New file.
13496         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
13497         * lib/unigbrk.in.h: Add prototype for new function.
13498         * lib/unigbrk/u16-grapheme-breaks.c: New file.
13499         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
13500
13501         New module 'u32-grapheme-breaks'.
13502         * modules/unigbrk/u32-grapheme-breaks: New file.
13503         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
13504         * lib/unigbrk.in.h: Add prototype for new function.
13505         * lib/unigbrk/u32-grapheme-breaks.c: New file.
13506         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
13507
13508         New module 'ulc-grapheme-breaks'.
13509         * modules/unigbrk/ulc-grapheme-breaks: New file.
13510         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
13511         * m4/locale-ar.m4: New file.
13512         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
13513         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
13514         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
13515
13516 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13517
13518         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
13519         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
13520         modified how this file was generated before I initially submitted
13521         the module, but failed to regenerate it.  This meant that several
13522         of the level2 entries were wrong.
13523         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
13524         Remove the division-by-2 that is folded into the table now that
13525         gbrkprop.h has been regenerated properly.  Now -1 entries are
13526         handled correctly.
13527
13528         New module 'unigbrk/uc-gbrk-prop-tests'.
13529         * modules/unigbrk/uc-gbrk-prop-tests: New file.
13530         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
13531         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
13532         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
13533
13534 2011-01-01  Bruno Haible  <bruno@clisp.org>
13535
13536         Avoid use of hexadecimal escapes.
13537         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
13538         instead of hexadecimal escapes.
13539
13540 2011-01-01  Jim Meyering  <meyering@redhat.com>
13541
13542         maint: new rule to update copyright year ranges
13543         * Makefile (update-copyright): New rule.
13544
13545         maint: indent with TABs in Makefile
13546         * Makefile: Expand leading sequences of spaces to TABs
13547
13548         version-etc: update the copyright year it reports
13549         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
13550
13551 2010-12-31  Bruno Haible  <bruno@clisp.org>
13552
13553         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
13554         * lib/isfinite.c (zerof, zerod, zerol): New variables.
13555         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
13556         zero.
13557
13558 2010-12-31  Bruno Haible  <bruno@clisp.org>
13559
13560         pwrite: Work around HP-UX 11.11 bug.
13561         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
13562         works and set REPLACE_PWRITE if not.
13563         * lib/pwrite.c (pwrite): Add an implementation that uses the system
13564         function.
13565         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
13566
13567 2010-12-31  Bruno Haible  <bruno@clisp.org>
13568
13569         pread: Work around HP-UX 11 bugs.
13570         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
13571         and set REPLACE_PREAD if not.
13572         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
13573
13574 2010-12-31  Eric Blake  <eblake@redhat.com>
13575
13576         nl_langinfo: fix YESEXPR on Irix 6.5
13577         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
13578         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
13579         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
13580         it.
13581
13582 2010-12-31  Bruno Haible  <bruno@clisp.org>
13583
13584         iconv: Document HP-UX 11 bug.
13585         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
13586
13587 2010-12-31  Bruno Haible  <bruno@clisp.org>
13588
13589         ldexpl: Fix link error on HP-UX 11.
13590         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
13591         LDEXPL_LIBM, using $ISNANL_LIBM.
13592
13593 2010-12-31  Eric Blake  <eblake@redhat.com>
13594
13595         ftello: avoid compilation failure with SunStudio c89
13596         * lib/ftello.c (ftello): Use lseek, not llseek.
13597
13598         tests: avoid failing coreutils tests on cygwin
13599         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
13600         (create_exe_shims_): Return 0 when skipping.
13601
13602 2010-12-31  Bruno Haible  <bruno@clisp.org>
13603
13604         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
13605         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
13606
13607 2010-12-31  Bruno Haible  <bruno@clisp.org>
13608
13609         waitpid: Fix link error in C++ mode.
13610         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
13611
13612 2010-12-31  Bruno Haible  <bruno@clisp.org>
13613
13614         isnan: Use GCC built-ins when possible.
13615         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
13616         __builtin_isnan.
13617         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
13618         (isnan): Define using GCC built-ins for GCC >= 4.0.
13619
13620 2010-12-31  Bruno Haible  <bruno@clisp.org>
13621
13622         isnand: Fix mistake.
13623         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
13624         __builtin_isnand.
13625
13626 2010-12-31  Bruno Haible  <bruno@clisp.org>
13627
13628         open: Avoid C++ error on HP-UX 11.
13629         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
13630
13631 2010-12-31  Bruno Haible  <bruno@clisp.org>
13632
13633         time_r: Add missing declarations on HP-UX 11.
13634         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
13635         instead of HAVE_LOCALTIME_R.
13636         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
13637         HAVE_LOCALTIME_R always.
13638         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
13639         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
13640         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
13641         HAVE_LOCALTIME_R.
13642         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
13643         * doc/posix-functions/localtime_r.texi: Likewise.
13644
13645 2010-12-29  Eric Blake  <eblake@redhat.com>
13646
13647         mountlist: tweak previous commit
13648         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
13649         Reported by Paul Eggert.
13650
13651         mountlist: fix local drive detection on cygwin
13652         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
13653         that works for cygwin.
13654
13655 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13656
13657         ftoastr, snprintf: ftoastr + snprintf module
13658         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
13659         since the snprintf module now should be good enough here.
13660         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
13661         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
13662         and gl_MODULE_INDICATOR([snprintf]), but the former enables
13663         GNULIB_SNPRINTF only for the test directory, and the latter
13664         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
13665         seems to suffice by itself.
13666
13667 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13668
13669         alloca: one step towards thread-safety
13670         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
13671         need for a static variable.  All callers changed.  This does not
13672         make the alloca replacement thread-safe, but it's one step.
13673
13674         tests: minor indenting change
13675         * tests/init.sh: Sync from coreutils housekeeping patch
13676         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
13677         to keep lines within 80 columns.
13678
13679 2010-12-28  Jim Meyering  <meyering@redhat.com>
13680
13681         regex: don't infloop on persistent failing calloc
13682         * lib/regexec.c (build_trtable): Return failure indication upon
13683         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13684         In glibc, this was fixed for version 2.13:
13685         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
13686
13687 2010-12-28  Bruno Haible  <bruno@clisp.org>
13688             Paul Eggert <eggert@cs.ucla.edu>
13689
13690         linkat: Make implementation robust against system behaviour variations.
13691         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
13692         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
13693         way, and to -2 if it needs a generic runtime test.
13694         * lib/linkat.c (solaris_optimized_link_immediate,
13695         solaris_optimized_link_follow): New functions.
13696         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
13697         (check_same_link): Use it.
13698
13699 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
13700
13701         New module 'unigbrk/base'.
13702         * modules/unigbrk/base: New file.
13703         * lib/unigbrk.in.h: New file.
13704
13705         New module 'unigbrk/uc-gbrk-prop'.
13706         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
13707         * modules/unigbrk/uc-gbrk-prop: New file.
13708         * lib/unigbrk/gbrkprop.h: New file.
13709         * lib/unigbrk/uc-gbrk-prop.c: New file.
13710
13711         New module 'unigbrk/uc-is-grapheme-break'.
13712         * modules/unigbrk/uc-is-grapheme-break: New file.
13713         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
13714         * lib/unigbrk/uc-is-grapheme-break.c: New file.
13715         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
13716         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
13717         * tests/unigbrk/GraphemeBreakTest.txt: New file.
13718
13719         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
13720
13721 2010-12-27  Bruno Haible  <bruno@clisp.org>
13722
13723         linkat test: Avoid failure on Solaris 11 2010-11.
13724         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
13725
13726 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13727
13728         utimens: work around glibc rounding bug on more platforms
13729         * lib/utimens.c (fdutimens): Work around rounding bug even if
13730         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
13731         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
13732
13733 2010-12-27  Bruno Haible  <bruno@clisp.org>
13734
13735         select tests: Improve comments.
13736         * tests/test-select.c (do_select): Add comments.
13737
13738 2010-12-27  Bruno Haible  <bruno@clisp.org>
13739
13740         select tests: Safer way of handling timeout.
13741         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
13742         at every invocation.
13743
13744 2010-12-27  Bruno Haible  <bruno@clisp.org>
13745
13746         select tests: Use 'bool' where appropriate.
13747         * tests/test-select.c (connect_to_socket): Change argument type to
13748         'bool'.
13749
13750 2010-12-27  Bruno Haible  <bruno@clisp.org>
13751
13752         select tests: Use existing modules.
13753         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
13754         (configure.ac): Don't test for unistd.h.
13755         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
13756         declared in <unistd.h>.
13757
13758 2010-12-27  Bruno Haible  <bruno@clisp.org>
13759
13760         mbrtowc: Work around a Solaris 7 bug.
13761         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
13762         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
13763         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
13764         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
13765         MBRTOWC_NULL_ARG1_BUG.
13766         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
13767         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
13768         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
13769         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
13770
13771 2010-12-27  Jim Meyering  <meyering@redhat.com>
13772
13773         read-file.c: tweak syntax
13774         * lib/read-file.c (fread_file): Remove space after "*" in function
13775         definitions.
13776
13777 2010-12-27  Bruno Haible  <bruno@clisp.org>
13778
13779         times test: Avoid gcc warnings on OSF/1.
13780         * tests/test-times.c (main): Cast printf arguments from clock_t to
13781         'long int'.
13782
13783 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13784
13785         utimens: work around glibc rounding bug on older Linux kernels
13786         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
13787         on Linux with a glibc whose utimes might not work, then work
13788         around a longstanding glibc bug involving rounding rather than
13789         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
13790         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13791
13792 2010-12-26  Bruno Haible  <bruno@clisp.org>
13793
13794         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
13795         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
13796         _GL_CXXALIAS_SYS.
13797         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13798
13799 2010-12-26  Bruno Haible  <bruno@clisp.org>
13800
13801         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
13802         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
13803         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13804         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
13805         looking for the declaration.
13806         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13807         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
13808         problem.
13809         * doc/posix-functions/inet_pton.texi: Likewise.
13810
13811 2010-12-26  Bruno Haible  <bruno@clisp.org>
13812
13813         arpa_inet: Use the common idioms with C++ support.
13814         * lib/arpa_inet.in.h: Include c++defs.h.
13815         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
13816         support.
13817         * modules/arpa_inet (Depends-on): Add c++defs.
13818         (Makefile.am): Substitute the contents of c++defs.h.
13819         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
13820         * modules/arpa_inet-c++-tests: New file.
13821         * tests/test-arpa_inet-c++.cc: New file.
13822
13823 2010-12-25  Bruno Haible  <bruno@clisp.org>
13824
13825         Fix more C++ link errors on Solaris 8.
13826         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
13827         $(LIB_EACCESS).
13828         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
13829         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
13830         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
13831         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
13832         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
13833
13834 2010-12-25  Bruno Haible  <bruno@clisp.org>
13835
13836         printf-posix: Fix link error when a non-GCC compiler is used.
13837         * lib/stdio.in.h (printf): When not using GCC, override printf
13838         correctly.
13839         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13840
13841 2010-12-25  Bruno Haible  <bruno@clisp.org>
13842
13843         strerror_r-posix: Update doc.
13844         * doc/posix-functions/strerror_r.texi: Update doc about the return
13845         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
13846
13847 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13848
13849         utimens: simplify the logic of the previous change
13850         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
13851         This should not affect whether the test succeeds or fails.
13852
13853         utimens: configure better on hosts with NFS clock skew
13854         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
13855         uses the clock of the local host.  It might use the clock of the
13856         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
13857         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13858
13859 2010-12-25  Bruno Haible  <bruno@clisp.org>
13860
13861         ptsname test: Avoid failure on Solaris.
13862         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
13863         open a pseudo-terminal; don't use BSD-style ptys.
13864         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
13865
13866 2010-12-25  Bruno Haible  <bruno@clisp.org>
13867
13868         ptsname: Avoid ERANGE failure on some systems.
13869         * lib/ptsname.c (buffer): Increase size.
13870
13871 2010-12-25  Bruno Haible  <bruno@clisp.org>
13872
13873         rename, renameat: Avoid test failures at NFS mounted locations.
13874         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
13875         so that subsequent mkdir calls succeed.
13876
13877 2010-12-25  Bruno Haible  <bruno@clisp.org>
13878
13879         iswblank: Fix C++ link error on Solaris 8.
13880         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
13881         _GL_FUNCDECL_SYS.
13882
13883 2010-12-25  Bruno Haible  <bruno@clisp.org>
13884
13885         unistd: Fix C++ link error on Solaris 8.
13886         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
13887
13888 2010-12-25  Bruno Haible  <bruno@clisp.org>
13889
13890         readlink doc: Mention an old glibc bug.
13891         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
13892
13893 2010-12-25  Bruno Haible  <bruno@clisp.org>
13894
13895         fcntl-h: Fix for use of C++ on glibc systems.
13896         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13897         also on glibc systems in C++ mode.
13898         Reported by Gary V. Vaughan <gary@gnu.org>.
13899
13900 2010-12-25  Bruno Haible  <bruno@clisp.org>
13901
13902         roundl-ieee: Make it work on OSF/1 5.1 with cc.
13903         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
13904
13905 2010-12-25  Bruno Haible  <bruno@clisp.org>
13906
13907         truncl-ieee: Make it work on OSF/1 5.1 with cc.
13908         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
13909         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
13910         test whether truncl works according to ISO C 99 with IEC 60559.
13911         * m4/truncl-ieee.m4: New file.
13912         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
13913         m4/signbit.m4.
13914         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
13915
13916 2010-12-25  Bruno Haible  <bruno@clisp.org>
13917
13918         ceill-ieee: Make it work on OSF/1 5.1 with cc.
13919         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
13920         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
13921         test whether ceill works according to ISO C 99 with IEC 60559.
13922         * m4/ceill-ieee.m4: New file.
13923         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
13924         m4/signbit.m4.
13925         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
13926
13927 2010-12-25  Bruno Haible  <bruno@clisp.org>
13928
13929         Ensure all prerequisites of <wchar.h> are included.
13930         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
13931         before <wchar.h>.
13932         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13933         gl_MBRLEN_NUL_RETVAL): Likewise.
13934         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13935         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
13936         AC_FUNC_MBRTOWC): Likewise.
13937         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13938         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13939         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13940         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13941         Likewise.
13942         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13943         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
13944         (gl_WCHAR_H): Improve comments.
13945         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13946
13947 2010-12-25  Bruno Haible  <bruno@clisp.org>
13948
13949         strtok_r: Fix C syntax error in autoconf macro.
13950         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
13951         characters in test program.
13952
13953 2010-12-24  Bruno Haible  <bruno@clisp.org>
13954
13955         ceil, trunc, round: Fix gcc warnings.
13956         * lib/ceil.c (MIN): Undefine before redefining.
13957         * lib/trunc.c (MIN): Likewise.
13958         * lib/round.c (MIN): Likewise.
13959         Include <math.h> first.
13960
13961 2010-12-24  Bruno Haible  <bruno@clisp.org>
13962
13963         select tests: Avoid failures on OSF/1 5.1.
13964         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
13965         failure of closing the last socket; it may fail with ECONNRESET.
13966
13967 2010-12-24  Eric Blake  <eblake@redhat.com>
13968
13969         stdint: avoid HP-UX 10.20 preprocessor bug
13970         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
13971         than #if.
13972         * tests/test-floor2.c (main): Likewise.
13973         Reported by Peter O'Gorman.
13974
13975         pipe: make obsoletion transition easier
13976         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13977         * modules/pipe (Files): Include revived file.
13978         (Include): Drop reference, to mirror getdate's behavior.
13979
13980 2010-12-24  Bruno Haible  <bruno@clisp.org>
13981
13982         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13983         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13984         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13985         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13986
13987 2010-12-24  Bruno Haible  <bruno@clisp.org>
13988
13989         gethostname: Ensure declaration on NonStop Kernel.
13990         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13991         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13992
13993 2010-12-24  Bruno Haible  <bruno@clisp.org>
13994
13995         sys_select: Ensure all necessary types on NonStop Kernel.
13996         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13997         include <sys/time.h>.
13998         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13999         NonStop Kernel.
14000         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14001
14002 2010-12-24  Bruno Haible  <bruno@clisp.org>
14003
14004         sys_select: Remove unneeded include.
14005         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
14006         have <sys/select.h>.
14007
14008 2010-12-24  Bruno Haible  <bruno@clisp.org>
14009
14010         gethostname: Provide a fallback for HOST_NAME_MAX.
14011         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
14012         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
14013         instead.
14014         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14015
14016 2010-12-24  Bruno Haible  <bruno@clisp.org>
14017
14018         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
14019         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
14020         (SA_RESTART): Likewise.
14021         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14022
14023 2010-12-24  Bruno Haible  <bruno@clisp.org>
14024
14025         signal: Define NSIG.
14026         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
14027         * tests/test-signal.c (nsig): New variable.
14028         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14029
14030 2010-12-24  Bruno Haible  <bruno@clisp.org>
14031
14032         rename, renameat: Avoid test failures on OSF/1 5.1.
14033         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
14034         alternative error codes.
14035         * tests/test-renameat.c (main): Likewise.
14036
14037 2010-12-24  Bruno Haible  <bruno@clisp.org>
14038
14039         *printf: Detect large precisions bug on Solaris 10/SPARC.
14040         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
14041         by Paul Eggert.
14042         * tests/test-snprintf-posix.h (test_function): Add this test code here
14043         too.
14044         * tests/test-sprintf-posix.h (test_function): Likewise.
14045         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14046         * tests/test-vasprintf-posix.c (test_function): Likewise.
14047         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
14048         around by gnulib.
14049         * doc/posix-functions/printf.texi: Likewise.
14050         * doc/posix-functions/snprintf.texi: Likewise.
14051         * doc/posix-functions/sprintf.texi: Likewise.
14052         * doc/posix-functions/vfprintf.texi: Likewise.
14053         * doc/posix-functions/vprintf.texi: Likewise.
14054         * doc/posix-functions/vsnprintf.texi: Likewise.
14055         * doc/posix-functions/vsprintf.texi: Likewise.
14056         * doc/posix-functions/dprintf.texi: Undo last commit.
14057         * doc/posix-functions/vdprintf.texi: Likewise.
14058
14059 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14060
14061         tests: port test-fdutimensat.c to Solaris 8
14062         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
14063         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
14064         On Solaris 8, it fails with errno == ENOSYS, because there is no
14065         futimens (so it can't use the fd), and there is no lutimens (so it
14066         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
14067
14068         vsnprintf: make more consistent with snprintf; doc fixes
14069
14070         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
14071         the byte count return problem was promoted from the snprintf-posix
14072         to the snprintf module.
14073         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14074         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
14075         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
14076         * tests/test-snprintf.c (main): Check the byte count returned.
14077         * tests/test-vsnprintf.c (main): Likewise.
14078
14079 2010-12-23  Eric Blake  <eblake@redhat.com>
14080
14081         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
14082         * modules/sigpipe (License): Relax license.
14083
14084 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14085
14086         doc: document Solaris printf bug with large float precisions
14087         * doc/posix-functions/dprintf.texi (dprintf):
14088         * doc/posix-functions/fprintf.texi (fprintf):
14089         * doc/posix-functions/printf.texi (printf):
14090         * doc/posix-functions/snprintf.texi (snprintf):
14091         * doc/posix-functions/sprintf.texi (sprintf):
14092         * doc/posix-functions/vdprintf.texi (vdprintf):
14093         * doc/posix-functions/vfprintf.texi (vfprintf):
14094         * doc/posix-functions/vprintf.texi (vprintf):
14095         * doc/posix-functions/vsnprintf.texi (vsnprintf):
14096         * doc/posix-functions/vsprintf.texi (vsprintf):
14097         Mention that these functions mishandle large floating point
14098         precisions on Solaris 10.  The same bug is also present in Solaris
14099         8, and I assume earlier.  This causes "cd gnulib-tests; make
14100         check" to fail on Solaris 8 (and I assume, later) when building
14101         the latest coreutils, in test-vasprintf-posix's call to
14102         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
14103         the wide flavors (e.g., wprintf) so this patch just updates the
14104         documentation for the narrow ones.
14105
14106         test-posixtm.c: add two tests
14107         * tests/test-posixtm.c: Add two tests, to highlight the
14108         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
14109         around this bug; this is merely to document it.
14110
14111 2010-12-22  Bruno Haible  <bruno@clisp.org>
14112
14113         getlogin_r: Work around portability problem on OSF/1.
14114         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
14115         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
14116         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
14117         test for a truncated result.
14118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
14119         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
14120         * modules/getlogin_r (Depends-on): Add memchr.
14121         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
14122
14123 2010-12-22  Bruno Haible  <bruno@clisp.org>
14124
14125         ptsname: Avoid test failure on OSF/1 5.1.
14126         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
14127         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
14128         (same_slave): New function.
14129         (main): Use it to compare ptsname's result with the expected file name.
14130
14131 2010-12-22  Bruno Haible  <bruno@clisp.org>
14132
14133         Port extended stdio modules to HP NonStop Kernel.
14134         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
14135         macros.
14136         * lib/fbufmode.c: Update comments.
14137         * lib/fflush.c: Likewise.
14138         * lib/fpurge.c: Likewise.
14139         * lib/freadable.c: Likewise.
14140         * lib/freadahead.c: Likewise.
14141         * lib/freading.c: Likewise.
14142         * lib/freadptr.c: Likewise.
14143         * lib/freadseek.c: Likewise.
14144         * lib/fseeko.c: Likewise.
14145         * lib/fseterr.c: Likewise.
14146         * lib/fwritable.c: Likewise.
14147         * lib/fwriting.c: Likewise.
14148         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14149
14150 2010-12-22  Bruno Haible  <bruno@clisp.org>
14151
14152         ttyname_r: Work around bug on OSF/1 5.1.
14153         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
14154         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
14155         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
14156         present.
14157         * lib/ttyname_r.c (ttyname_r): Update comments.
14158
14159 2010-12-22  Bruno Haible  <bruno@clisp.org>
14160
14161         round: Implement result sign according to IEEE 754.
14162         * lib/round.c (MIN, MINUS_ZERO): New macros.
14163         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
14164         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
14165         * tests/test-round-ieee.c (main): Likewise.
14166         * tests/test-roundl-ieee.c (main): Likewise.
14167
14168         trunc: Implement result sign according to IEEE 754.
14169         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
14170         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
14171         * tests/test-trunc2.c: Include minus-zero.h.
14172         (MINUS_ZERO): New macro.
14173         (trunc_reference): Keep in sync with lib/trunc.c.
14174         * tests/test-truncf2.c: Include minus-zero.h.
14175         (MINUS_ZERO): New macro.
14176         (truncf_reference): Keep in sync with lib/trunc.c.
14177         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
14178         * tests/test-trunc-ieee.c (main): Likewise.
14179         * tests/test-truncl-ieee.c (main): Likewise.
14180
14181         ceil: Implement result sign according to IEEE 754.
14182         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
14183         (FUNC): Return -0.0 for -1 < x < 0.
14184         * tests/test-ceil2.c: Include minus-zero.h.
14185         (MINUS_ZERO): New macro.
14186         (ceil_reference): Keep in sync with lib/ceil.c.
14187         * tests/test-ceilf2.c: Include minus-zero.h.
14188         (MINUS_ZERO): New macro.
14189         (ceilf_reference): Keep in sync with lib/ceil.c.
14190         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
14191         * tests/test-ceil-ieee.c (main): Likewise.
14192         * tests/test-ceill-ieee.c (main): Likewise.
14193
14194         floor: Implement result sign according to IEEE 754.
14195         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
14196         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
14197         * tests/test-floorf2.c (floorf_reference): Likewise.
14198         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
14199         * tests/test-floor-ieee.c (main): Likewise.
14200         * tests/test-floorl-ieee.c (main): Likewise.
14201
14202 2010-12-22  Bruno Haible  <bruno@clisp.org>
14203
14204         getaddrinfo: Update doc.
14205         * doc/posix-functions/gai_strerror.texi: Return type is also different
14206         on AIX and HP-UX.
14207
14208 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14209
14210         getaddrinfo, inet_ntop: Update doc for Solaris.
14211         * doc/posix-functions/gai_strerror.texi: Return type is also an
14212         issue on Solaris 9 and earlier.
14213         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
14214         on Solaris 10 and earlier.
14215
14216 2010-12-21  Bruno Haible  <bruno@clisp.org>
14217
14218         New module 'roundl-ieee'.
14219         * modules/roundl-ieee: New file.
14220         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
14221         test whether roundl works according to ISO C 99 with IEC 60559.
14222         * m4/roundl-ieee.m4: New file.
14223         * modules/roundl-ieee-tests: New file.
14224         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
14225         * tests/test-roundl.c (main): Remove signbit tests.
14226         * modules/roundl-tests (Depends-on): Remove signbit.
14227         * doc/posix-functions/roundl.texi: Mention the new module.
14228
14229 2010-12-21  Bruno Haible  <bruno@clisp.org>
14230
14231         New module 'truncl-ieee'.
14232         * modules/truncl-ieee: New file.
14233         * modules/truncl-ieee-tests: New file.
14234         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
14235         * tests/test-truncl.c (main): Remove signbit tests.
14236         * modules/truncl-tests (Depends-on): Remove signbit.
14237         * doc/posix-functions/truncl.texi: Mention the new module.
14238
14239 2010-12-21  Bruno Haible  <bruno@clisp.org>
14240
14241         New module 'ceill-ieee'.
14242         * modules/ceill-ieee: New file.
14243         * modules/ceill-ieee-tests: New file.
14244         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
14245         * tests/test-ceill.c (main): Remove signbit tests.
14246         * modules/ceill-tests (Depends-on): Remove signbit.
14247         * doc/posix-functions/ceill.texi: Mention the new module.
14248
14249 2010-12-21  Bruno Haible  <bruno@clisp.org>
14250
14251         New module 'floorl-ieee'.
14252         * modules/floorl-ieee: New file.
14253         * modules/floorl-ieee-tests: New file.
14254         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
14255         * tests/test-floorl.c (main): Remove signbit tests.
14256         * modules/floorl-tests (Depends-on): Remove signbit.
14257         * doc/posix-functions/floorl.texi: Mention the new module.
14258
14259 2010-12-21  Bruno Haible  <bruno@clisp.org>
14260
14261         New module 'round-ieee'.
14262         * modules/round-ieee: New file.
14263         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
14264         whether round works according to ISO C 99 with IEC 60559.
14265         * m4/round-ieee.m4: New file.
14266         * modules/round-ieee-tests: New file.
14267         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
14268         * tests/test-round1.c (main): Remove signbit tests.
14269         * modules/round-tests (Depends-on): Remove 'signbit'.
14270         * doc/posix-functions/round.texi: Mention the new module.
14271
14272 2010-12-21  Bruno Haible  <bruno@clisp.org>
14273
14274         New module 'trunc-ieee'.
14275         * modules/trunc-ieee: New file.
14276         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
14277         whether trunc works according to ISO C 99 with IEC 60559.
14278         * m4/trunc-ieee.m4: New file.
14279         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
14280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
14281         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
14282         * modules/trunc-ieee-tests: New file.
14283         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
14284         * tests/test-trunc1.c (main): Remove signbit tests.
14285         * modules/trunc-tests (Depends-on): Remove 'signbit'.
14286         * doc/posix-functions/trunc.texi: Mention the new module.
14287
14288 2010-12-21  Bruno Haible  <bruno@clisp.org>
14289
14290         New module 'ceil-ieee'.
14291         * modules/ceil-ieee: New file.
14292         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
14293         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
14294         ISO C 99 with IEC 60559.
14295         * m4/ceil-ieee.m4: New file.
14296         * modules/ceil (Files): Add lib/ceil.c.
14297         (Depends-on): Add 'float'.
14298         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14299         * lib/math.in.h (ceil): New declaration.
14300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
14301         REPLACE_CEIL.
14302         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
14303         * modules/ceil-ieee-tests: New file.
14304         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
14305         * tests/test-math-c++.cc: Check the signature of 'ceil'.
14306         * doc/posix-functions/ceil.texi: Mention the new module.
14307
14308 2010-12-21  Bruno Haible  <bruno@clisp.org>
14309
14310         New module 'floor-ieee'.
14311         * modules/floor-ieee: New file.
14312         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
14313         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
14314         ISO C 99 with IEC 60559.
14315         * m4/floor-ieee.m4: New file.
14316         * modules/floor (Files): Add lib/floor.c.
14317         (Depends-on): Add 'float'.
14318         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14319         * lib/math.in.h (floor): New declaration.
14320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
14321         REPLACE_FLOOR.
14322         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
14323         * modules/floor-ieee-tests: New file.
14324         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
14325         * tests/test-math-c++.cc: Check the signature of 'floor'.
14326         * doc/posix-functions/floor.texi: Mention the new module.
14327
14328 2010-12-21  Bruno Haible  <bruno@clisp.org>
14329
14330         New module 'roundf-ieee'.
14331         * modules/roundf-ieee: New file.
14332         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
14333         test whether roundf works according to ISO C 99 with IEC 60559.
14334         * m4/roundf-ieee.m4: New file.
14335         * modules/roundf-ieee-tests: New file.
14336         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
14337         * tests/test-roundf1.c (main): Remove signbit tests.
14338         * modules/roundf-tests (Depends-on): Remove 'signbit'.
14339         * doc/posix-functions/roundf.texi: Mention the new module.
14340
14341 2010-12-21  Bruno Haible  <bruno@clisp.org>
14342
14343         New module 'truncf-ieee'.
14344         * modules/truncf-ieee: New file.
14345         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
14346         test whether truncf works according to ISO C 99 with IEC 60559.
14347         * m4/truncf-ieee.m4: New file.
14348         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
14349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
14350         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
14351         * modules/truncf-ieee-tests: New file.
14352         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
14353         * tests/test-truncf1.c (main): Remove signbit tests.
14354         * modules/truncf-tests (Depends-on): Remove 'signbit'.
14355         * doc/posix-functions/truncf.texi: Mention the new module.
14356
14357 2010-12-21  Bruno Haible  <bruno@clisp.org>
14358
14359         New module 'ceilf-ieee'.
14360         * modules/ceilf-ieee: New file.
14361         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
14362         test whether ceilf works according to ISO C 99 with IEC 60559.
14363         * m4/ceilf-ieee.m4: New file.
14364         * modules/ceilf-ieee-tests: New file.
14365         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
14366         * tests/test-ceilf1.c (main): Remove signbit tests.
14367         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
14368         * doc/posix-functions/ceilf.texi: Mention the new module.
14369
14370 2010-12-21  Bruno Haible  <bruno@clisp.org>
14371
14372         New module 'floorf-ieee'.
14373         * modules/floorf-ieee: New file.
14374         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
14375         test whether floorf works according to ISO C 99 with IEC 60559.
14376         * m4/floorf-ieee.m4: New file.
14377         * modules/floorf-ieee-tests: New file.
14378         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
14379         * tests/test-floorf1.c (main): Remove signbit tests.
14380         * modules/floorf-tests (Depends-on): Remove 'signbit'.
14381         * doc/posix-functions/floorf.texi: Mention the new module.
14382
14383 2010-12-21  Bruno Haible  <bruno@clisp.org>
14384
14385         Support for minus zero in autoconf macros.
14386         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
14387         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
14388         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
14389         * tests/minus-zero.h: Update comments.
14390
14391 2010-12-21  Bruno Haible  <bruno@clisp.org>
14392
14393         Tests for module 'ceil'.
14394         * modules/ceil-tests: New file.
14395         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
14396         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
14397
14398 2010-12-21  Bruno Haible  <bruno@clisp.org>
14399
14400         Tests for module 'floor'.
14401         * modules/floor-tests: New file.
14402         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
14403         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
14404
14405 2010-12-21  Bruno Haible  <bruno@clisp.org>
14406
14407         math: Fix indentation.
14408         * lib/math.in.h (floorf): Fix indentation.
14409
14410 2010-12-21  Bruno Haible  <bruno@clisp.org>
14411
14412         Fix cross-compilation guesses on Solaris.
14413         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
14414         not match "solaris2.10".
14415         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14416         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
14417         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14418
14419 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
14420
14421         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
14422         This fixes a problem observed with the latest coreutils snapshot
14423         that caused a test to fail on Solaris 8.  src/csplit.c's call
14424         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
14425         earlier, instead of returning the number of bytes that would have
14426         been generated; this causes csplit to incorrectly report memory
14427         exhaustion.
14428         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
14429         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
14430         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
14431         comments to match.
14432         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
14433         Fix typo in matching older versions of Solaris: "solaris2.10"
14434         is matched by the shell pattern "solaris2.[0-9]*".  This matters
14435         only for guessing while cross-compiling.
14436         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
14437
14438 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
14439
14440         ftoastr: fix comment again
14441         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14442         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
14443         Also, simplify example a bit by using flags = 0.
14444
14445 2010-12-20  Bruno Haible  <bruno@clisp.org>
14446
14447         round*, trunc*: Update documentation regarding glibc.
14448         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
14449         * doc/posix-functions/round.texi: Likewise.
14450         * doc/posix-functions/roundl.texi: Likewise.
14451         * doc/posix-functions/truncf.texi: Likewise.
14452         * doc/posix-functions/trunc.texi: Likewise.
14453         * doc/posix-functions/truncl.texi: Likewise.
14454
14455 2010-12-20  Bruno Haible  <bruno@clisp.org>
14456
14457         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
14458         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
14459         * doc/posix-functions/round.texi: Likewise.
14460         * doc/posix-functions/roundl.texi: Likewise.
14461
14462 2010-12-20  Bruno Haible  <bruno@clisp.org>
14463
14464         ttyname_r: Add missing declaration on HP-UX 11.
14465         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
14466         HAVE_TTYNAME_R.
14467         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
14468         declared. Set HAVE_TTYNAME_R always.
14469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14470         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
14471         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
14472         HAVE_TTYNAME_R.
14473         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
14474
14475 2010-12-20  Bruno Haible  <bruno@clisp.org>
14476
14477         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
14478         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
14479         * doc/posix-functions/getlogin_r.texi: Likewise.
14480         * tests/test-getlogin.c: Include <errno.h>.
14481         (main): Avoid test failure on HP-UX 11.11.
14482         * tests/test-getlogin_r.c (main): Likewise.
14483
14484 2010-12-20  Bruno Haible  <bruno@clisp.org>
14485
14486         getlogin_r: Add missing declaration on HP-UX 11.
14487         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
14488         declared also when it exists as a function.
14489         * doc/posix-functions/getlogin_r.texi: Document this workaround.
14490
14491 2010-12-20  Bruno Haible  <bruno@clisp.org>
14492
14493         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
14494         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
14495         through wcrtomb.
14496
14497 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14498
14499         ftoastr: fix comment
14500         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14501         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
14502
14503 2010-12-19  Bruno Haible  <bruno@clisp.org>
14504
14505         isnan: Ensure it is a macro.
14506         * lib/math.in.h (isnan): Define as a macro if not already a macro.
14507         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
14508         Solaris.
14509
14510 2010-12-19  Bruno Haible  <bruno@clisp.org>
14511
14512         ldexpl test: Fix link error on OSF/1 5.1.
14513         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
14514
14515 2010-12-19  Bruno Haible  <bruno@clisp.org>
14516
14517         wctype: Make it work in C++ mode on OSF/1 5.1.
14518         * lib/wctype.in.h (iswblank): Declare but not define here.
14519         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
14520         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
14521         * modules/wctype (Files): Add lib/iswblank.c.
14522
14523 2010-12-19  Bruno Haible  <bruno@clisp.org>
14524
14525         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
14526         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
14527         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
14528
14529 2010-12-19  Bruno Haible  <bruno@clisp.org>
14530
14531         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
14532         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
14533         _POSIX_PII_SOCKET.
14534         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
14535         * doc/posix-functions/recvfrom.texi: Likewise.
14536         * doc/posix-functions/send.texi: Likewise.
14537         * doc/posix-functions/sendto.texi: Likewise.
14538
14539 2010-12-19  Bruno Haible  <bruno@clisp.org>
14540
14541         tcgetsid: Add missing declaration on OSF/1 5.1.
14542         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
14543         HAVE_TCGETSID.
14544         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
14545         Don't set HAVE_TCGETSID.
14546         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
14547         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
14548         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
14549         HAVE_TCGETSID.
14550         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
14551
14552 2010-12-19  Bruno Haible  <bruno@clisp.org>
14553
14554         stdio: Fix problem with popen() declaration on OSF/1 5.1.
14555         * lib/stdio.in.h: During the include_next statement, let recursive
14556         includes of this file include only the system header file.
14557
14558 2010-12-19  Bruno Haible  <bruno@clisp.org>
14559
14560         iconv_open: Fix regression from 2010-12-04.
14561         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
14562         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
14563
14564 2010-12-19  Bruno Haible  <bruno@clisp.org>
14565
14566         stdbool test: Avoid a gcc warning.
14567         * tests/test-stdbool.c (main): Fail if e1 is false.
14568         Reported by Jim Meyering.
14569
14570 2010-12-19  Jim Meyering  <meyering@redhat.com>
14571
14572         setenv: restore to working order
14573         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
14574         mistakenly removed.
14575         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
14576         HAVE_SETENV.
14577         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
14578         HAVE_SETENV.
14579
14580 2010-12-19  Bruno Haible  <bruno@clisp.org>
14581
14582         Document some different function declarations on OSF/1 5.1.
14583         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
14584         * doc/posix-functions/inet_ntop.texi: Likewise.
14585         * doc/posix-functions/gethostname.texi: Likewise.
14586         * lib/unistd.in.h (gethostname): Update comment.
14587
14588 2010-12-19  Bruno Haible  <bruno@clisp.org>
14589
14590         doc: Mention vasprintf-posix module.
14591         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
14592         the 'vasprintf-posix' module.
14593         * doc/glibc-functions/vasprintf.texi: Likewise.
14594
14595 2010-12-19  Bruno Haible  <bruno@clisp.org>
14596
14597         unsetenv: Add missing declaration on OSF/1 5.1.
14598         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
14599         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
14600         Don't set HAVE_UNSETENV. In the test program, set _BSD.
14601         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
14602         not HAVE_UNSETENV.
14603         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
14604         HAVE_UNSETENV.
14605         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
14606
14607 2010-12-19  Bruno Haible  <bruno@clisp.org>
14608
14609         setenv: Add missing declaration on OSF/1 5.1.
14610         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
14611         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
14612         declared. Don't set HAVE_SETENV.
14613         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
14614         not HAVE_SETENV.
14615         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
14616         HAVE_SETENV.
14617         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
14618
14619 2010-12-19  Bruno Haible  <bruno@clisp.org>
14620
14621         nl_langinfo tests: Avoid gcc warning.
14622         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
14623
14624 2010-12-19  Bruno Haible  <bruno@clisp.org>
14625
14626         mknod: Avoid error in C++ mode on OSF/1 with GCC.
14627         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
14628         _GL_CXXALIAS_SYS.
14629
14630 2010-12-19  Bruno Haible  <bruno@clisp.org>
14631
14632         stdbool: Relax test.
14633         * tests/test-stdbool.c (e): Don't require that casts from a variable's
14634         address to 'bool' work in static initializer, for compilers other than
14635         GCC.
14636
14637 2010-12-19  Bruno Haible  <bruno@clisp.org>
14638
14639         ftello: Add missing declaration on OSF/1 5.1.
14640         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
14641         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
14642         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
14643         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
14644         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
14645
14646 2010-12-19  Bruno Haible  <bruno@clisp.org>
14647
14648         fseeko: Add missing declaration on OSF/1 5.1.
14649         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
14650         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
14651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
14652         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
14653         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
14654
14655 2010-12-19  Bruno Haible  <bruno@clisp.org>
14656
14657         fchdir: Add missing declaration on OSF/1 5.1.
14658         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
14659         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
14660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
14661         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
14662         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
14663
14664 2010-12-19  Bruno Haible  <bruno@clisp.org>
14665
14666         relocatable-prog-wrapper: Separate from relocatable-prog.
14667         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
14668         uninstall-relocwrapper rule here.
14669         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
14670         Reported by Ian Beckwith <ianb@erislabs.net>.
14671
14672 2010-12-19  Bruno Haible  <bruno@clisp.org>
14673
14674         unistr/u8-mbsnlen: Add missing dependency.
14675         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
14676         Reported by Ian Beckwith <ianb@erislabs.net>.
14677
14678 2010-12-19  Bruno Haible  <bruno@clisp.org>
14679
14680         iconv: Make it possible again to use this module without 'iconv-h'.
14681         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
14682         if it is not defined.
14683         Reported by Ian Beckwith <ianb@erislabs.net>.
14684
14685 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14686
14687         acl: port to Solaris 8 when copying from tmpfs to ufs
14688         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
14689         error number.  Problem observed on Solaris 8 with latest
14690         coreutils, with "mv A B", where A is on a tmpfs file system and B
14691         is on a ufs file system.  This caused coreutils' mv/part-symlink
14692         test to fail.
14693
14694         tests: set fail=0 at start
14695         * tests/init.sh (setup_): Move fail=0 initialization here ...
14696         (mktempd_): ... from here, so that tests can rely on fail being
14697         set to 0 initially.  This fixes a problem in coreutils; see:
14698         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
14699
14700 2010-12-18  Bruno Haible  <bruno@clisp.org>
14701
14702         memmem-simple: Stylistic changes.
14703         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
14704         Fix preprocessor directive indentation.
14705
14706 2010-12-15  Pádraig Brady <P@draigBrady.com>
14707
14708         memmem, memmem-simple: reorganize and expand empty needle check
14709         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
14710         functional checks to memmem-simple so that one has a fully functional
14711         memmem by using just this module.
14712         Restrict the performance only check to the memmem module.
14713         Also expand the empty needle check to ensure the correct
14714         pointer is returned, not just a non NULL pointer.
14715         * doc/glibc-functions/memmem.texi: Rearrange the portability
14716         documentation to correlate with the rearranged checks.
14717         Clarify exactly how the memmem and memmem-simple modules
14718         relate to each other.
14719
14720 2010-12-15  Pádraig Brady <P@draigBrady.com>
14721             Bruno Haible  <bruno@clisp.org>
14722
14723         Improve cross-compilation guesses for uClibc.
14724         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
14725         that uClibc does not have the glibc bug.
14726         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14727         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
14728
14729 2010-12-14  Eric Blake  <eblake@redhat.com>
14730
14731         configmake: provide fallbacks for oldest supported autotools
14732         * m4/configmake.m4: New file.
14733         * modules/configmake (Files): Ship it.
14734         (configure.ac): Use it to guarantee fallbacks.
14735
14736 2010-12-13  Pádraig Brady <P@draigBrady.com>
14737
14738         read-file: Improve handling of large files
14739         * lib/read-file.c (fread_file): Minimize realloc()s
14740         for regular files, and better manage sizes around SIZE_MAX.
14741
14742 2010-12-13  Eric Blake  <eblake@redhat.com>
14743
14744         cloexec, fcntl: relax license
14745         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
14746         consent from all contributors.
14747         * modules/fcntl (License): Likewise.
14748
14749 2010-12-10  Bruno Haible  <bruno@clisp.org>
14750
14751         Tests for module 'pipe-posix'.
14752         * modules/pipe-posix-tests: New file.
14753         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
14754
14755 2010-12-10  Bruno Haible  <bruno@clisp.org>
14756
14757         pipe-posix: Make it work in C++ mode.
14758         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
14759         (pipe): Use common idiom, not a macro definition.
14760         * lib/pipe.c: New file.
14761         * m4/pipe.m4: New file.
14762         * modules/pipe-posix (Description): Enhance.
14763         (Files): Add lib/pipe.c, m4/pipe.m4.
14764         (configure.ac): Invoke gl_FUNC_PIPE.
14765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
14766         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
14767         * tests/test-unistd-c++.cc: Check the signature of pipe.
14768
14769 2010-12-10  Bruno Haible  <bruno@clisp.org>
14770
14771         Rename module 'pipe' to 'spawn-pipe'.
14772         * modules/spawn-pipe: New file, renamed from modules/pipe.
14773         (Files, configure.ac, Makefile.am): Update.
14774         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
14775         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
14776         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
14777         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
14778         "spawn-pipe.h" instead of "pipe.h".
14779         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
14780         to gl_SPAWN_PIPE.
14781         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
14782         (Files, Makefile.am): Update.
14783         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
14784         Update.
14785         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
14786         Include "spawn-pipe.h" instead of "pipe.h".
14787         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
14788         * lib/javacomp.c: Likewise.
14789         * lib/javaversion.c: Likewise.
14790         * lib/pipe-filter-gi.c: Likewise.
14791         * lib/pipe-filter-ii.c: Likewise.
14792         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
14793         * modules/javacomp (Depends-on): Likewise.
14794         * modules/javaversion (Depends-on): Likewise.
14795         * modules/pipe-filter-gi (Depends-on): Likewise.
14796         * modules/pipe-filter-ii (Depends-on): Likewise.
14797         * MODULES.html.sh (Executing programs): Update.
14798         * NEWS: Mention the change.
14799
14800 2010-12-10  Eric Blake  <eblake@redhat.com>
14801
14802         pipe-posix: new module
14803         * modules/pipe-posix: New file.
14804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
14805         (gl_UNISTD_H): Check for declaration.
14806         * modules/unistd (Makefile.am): Substitute it.
14807         * lib/unistd.in.h (pipe): Provide it for mingw.
14808         * doc/posix-functions/pipe.texi (pipe): Update documentation.
14809         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
14810
14811 2010-12-07  Bruno Haible  <bruno@clisp.org>
14812
14813         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
14814         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
14815         u8_strcmp_gnu.
14816         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
14817
14818 2010-12-06  Bruno Haible  <bruno@clisp.org>
14819
14820         Update internal documentation.
14821         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
14822
14823 2010-12-04  Bruno Haible  <bruno@clisp.org>
14824
14825         Put more information about failed tests into the test return codes.
14826         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
14827         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
14828         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14829         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14830         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14831         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14832         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14833         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14834         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
14835         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14836         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
14837         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14838         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14839         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14840         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
14841         returns a bit mask.
14842         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14843         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
14844         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
14845         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
14846         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14847         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14848         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14849         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14850         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14851         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14852         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14853         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14854         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14855         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14856         * m4/link.m4 (gl_FUNC_LINK): Likewise.
14857         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14858         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
14859         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
14860         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14861         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
14862         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14863         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14864         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14865         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14866         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14867         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14868         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
14869         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14870         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14871         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
14872         gl_PRINTF_PRECISION): Likewise.
14873         * m4/regex.m4 (gl_REGEX): Likewise.
14874         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14875         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14876         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
14877         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14878         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14879         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14880         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14881         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
14882         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14883         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14884         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14885         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14886         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14887         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14888         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14889         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14890         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14891         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14892         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14893         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
14894         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
14895         enumerated value.
14896         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
14897
14898 2010-12-04  Bruno Haible  <bruno@clisp.org>
14899
14900         Update for Solaris 11 2010-11.
14901         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
14902         Express, released in November 2010.
14903
14904 2010-12-04  Bruno Haible  <bruno@clisp.org>
14905
14906         nproc: Relax license.
14907         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
14908         and Paul Eggert.
14909         Requested by Ludovic Courtès <ludo@gnu.org>.
14910
14911 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
14912
14913         utimecmp: fine-grained src to nearby coarse-grained dest
14914
14915         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
14916         and the source is on a file system with higher-resolution time
14917         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
14918         not work, and the time stamps are close together, the algorithm to
14919         determine the exact resolution from the read-back mtime was buggy:
14920         it had a "!=" where it should have had an "==".  This bug has been
14921         in the code ever since it was introduced to gnulib.
14922         Problem reported by Dan Jacobson in
14923         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
14924
14925 2010-11-30  Bruno Haible  <bruno@clisp.org>
14926
14927         strerror_r-posix: Fix autoconf test.
14928         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
14929
14930 2010-11-28  Bruno Haible  <bruno@clisp.org>
14931             Paul Eggert  <eggert@cs.ucla.edu>
14932
14933         Tests for module 'getdomainname'.
14934         * modules/getdomainname-tests: New file.
14935         * tests/test-getdomainname.c: New file, based on
14936         tests/test-gethostname.c.
14937
14938 2010-11-28  Bruno Haible  <bruno@clisp.org>
14939             Paul Eggert  <eggert@cs.ucla.edu>
14940
14941         getdomainname: Use the system function when possible.
14942         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
14943         (getdomainname): Replace if needed. Provide the declaration if it is
14944         missing. Don't use _GL_CXXALIAS_SYS_CAST.
14945         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
14946         (getdomainname): When the system has getdomainname, call the system
14947         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
14948         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14949         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
14950         found in libnsl. Look for the declaration also in <netdb.h>. Replace
14951         the function if its second argument is of type 'int' or if it is found
14952         in libnsl.
14953         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
14954         <sys/systeminfo.h> and sysinfo().
14955         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
14956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14957         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
14958         HAVE_GETDOMAINNAME.
14959         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
14960         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
14961         * doc/glibc-functions/getdomainname.texi: Document the problems with
14962         the getdomainname declaration.
14963
14964 2010-11-28  Bruno Haible  <bruno@clisp.org>
14965
14966         sys_socket: Ensure ss_family field on AIX.
14967         * lib/sys_socket.in.h (ss_family): New macro definition.
14968         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
14969         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
14970         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14971         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14972         * modules/sys_socket (Makefile.am): Substitute
14973         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14974         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14975
14976 2010-11-27  Bruno Haible  <bruno@clisp.org>
14977
14978         readline: Improve configure output.
14979         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14980         "checking for readline..." result understandable.
14981
14982 2010-11-27  Bruno Haible  <bruno@clisp.org>
14983
14984         *printf-posix: Detect a bug on Solaris 10/x86.
14985         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14986         for floating-point output.
14987         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14988         directive.
14989         * tests/test-snprintf-posix.h (test_function): Likewise.
14990         * tests/test-sprintf-posix.h (test_function): Likewise.
14991         * tests/test-vasprintf-posix.c (test_function): Likewise.
14992         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14993         * doc/posix-functions/printf.texi: Likewise.
14994         * doc/posix-functions/snprintf.texi: Likewise.
14995         * doc/posix-functions/sprintf.texi: Likewise.
14996         * doc/posix-functions/vfprintf.texi: Likewise.
14997         * doc/posix-functions/vprintf.texi: Likewise.
14998         * doc/posix-functions/vsnprintf.texi: Likewise.
14999         * doc/posix-functions/vsprintf.texi: Likewise.
15000         * doc/glibc-functions/obstack_printf.texi: Likewise.
15001         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15002
15003 2010-11-27  Bruno Haible  <bruno@clisp.org>
15004
15005         Fix link error when module libunistring-optional is in use.
15006         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
15007         * modules/striconveha-tests (Makefile.am): Likewise.
15008
15009 2010-11-27  Bruno Haible  <bruno@clisp.org>
15010
15011         regex: Mention link dependencies.
15012         * modules/regex (Link): New section.
15013         * modules/rpmatch (Link): Likewise.
15014         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
15015
15016 2010-11-27  Bruno Haible  <bruno@clisp.org>
15017
15018         ftoastr: Fix compilation error on Solaris.
15019         * lib/ftoastr.c: Include <config.h>.
15020
15021 2010-11-27  Bruno Haible  <bruno@clisp.org>
15022
15023         getloadavg: Update documentation.
15024         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
15025
15026 2010-11-27  Bruno Haible  <bruno@clisp.org>
15027
15028         sys_socket: Fix test whether the functions are declared.
15029         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
15030         not <sys/select.h>.
15031
15032 2010-11-27  Bruno Haible  <bruno@clisp.org>
15033
15034         getpass: Make sure to get system declaration on some platforms.
15035         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
15036         gl_USE_SYSTEM_EXTENSIONS.
15037         * modules/getpass (Depends-on): Add extensions.
15038
15039 2010-11-26  Bruno Haible  <bruno@clisp.org>
15040
15041         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
15042         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
15043         'iconv' module is present.
15044         (ICONV_CONST): New macro.
15045         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
15046         ICONV_CONST.
15047         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
15048         set ICONV_CONST.
15049         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
15050         here.
15051         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
15052         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
15053         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
15054         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
15055         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
15056         present.
15057
15058 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15059
15060         ftoastr: comment fix
15061         * lib/ftoastr.c: "little" -> "little or no" in comment
15062
15063 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
15064
15065         stdint: port to GCC 4.3 + OSX + Octave
15066         On this platform, stdint.h is buggy and defines int64_t to long
15067         long int.  The replacement defined it to long int, causing
15068         problems with C++ style name mangling.  Instead, trust the system
15069         definition if INT64_MAX is defined, and likewise for the unsigned
15070         variant.   Problem reported by Jarno Rajahalme in
15071         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
15072         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
15073         and don't mess with int64_t and INT64_MAX in this case.
15074         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
15075
15076 2010-11-24  Bruno Haible  <bruno@clisp.org>
15077
15078         doc: Corrections regarding MacOS X 10.4 and 10.5.
15079         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
15080         MacOS X.
15081         Reported by Simon Josefsson.
15082
15083 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
15084
15085         Uninstall ".bin" files installed by relocwrapper.
15086         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
15087         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
15088         unless it is already there.
15089
15090 2010-11-21  Bruno Haible  <bruno@clisp.org>
15091
15092         Update for NetBSD 5.0.
15093         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15094         NetBSD; the test fails on NetBSD 5.0.
15095         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15096         about NetBSD.
15097
15098 2010-11-21  Bruno Haible  <bruno@clisp.org>
15099
15100         Update for HP-UX 11.23 and HP-UX 11.31.
15101         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
15102         HP-UX.
15103
15104 2010-11-21  Bruno Haible  <bruno@clisp.org>
15105
15106         Update for MacOS X 10.5.
15107         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15108         MacOS X; the test fails on MacOS X 10.5.8.
15109         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15110         about MacOS X.
15111
15112 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
15113
15114         bootstrap: add bootstrap_sync option.
15115         See discussion at
15116         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
15117         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
15118         * build-aux/bootstrap: Accept --bootstrap-sync to update
15119         bootstrap if it is not identical to the local gnulib's
15120         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
15121         enable this by default.  Accept --no-bootstrap-sync to disable
15122         it.
15123
15124 2010-11-20  Bruno Haible  <bruno@clisp.org>
15125
15126         Ensure that <features.h> is included before __GLIBC__ is tested.
15127         * lib/printf-parse.h: Include <features.h>.
15128         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
15129         Reported by Mike Frysinger <vapier@gentoo.org>.
15130
15131         Ensure that <features.h> is included before __GLIBC__ is tested.
15132         * lib/wchar.in.h: Include <features.h>.
15133         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
15134         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
15135         Reported by Mike Frysinger <vapier@gentoo.org>.
15136
15137         Ensure that <features.h> is included before __GLIBC__ is tested.
15138         * lib/arpa_inet.in.h: Include <features.h>.
15139         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
15140         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
15141         Reported by Mike Frysinger <vapier@gentoo.org>.
15142
15143         Ensure that <features.h> is included before __GLIBC__ is tested.
15144         * build-aux/link-warning.h: Include <features.h>.
15145         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
15146         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
15147         Reported by Mike Frysinger <vapier@gentoo.org>.
15148
15149         Ensure that <features.h> is included before __GLIBC__ is tested.
15150         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
15151         Reported by Mike Frysinger <vapier@gentoo.org>.
15152
15153 2010-11-20  Bruno Haible  <bruno@clisp.org>
15154
15155         memmem: Fix autoconf test.
15156         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
15157
15158 2010-11-20  Bruno Haible  <bruno@clisp.org>
15159
15160         Port to uClibc.
15161         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
15162         * lib/fcntl.in.h: Likewise.
15163         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
15164         * lib/mbrtowc.c (mbrtowc): Likewise.
15165         * lib/relocatable.c (find_shared_library_fullname): Likewise.
15166         * lib/strerror_r.c: Likewise.
15167         * lib/unistr/u8-strnlen.c: Likewise.
15168         * lib/vasnprintf.c (decimal_point_char): Likewise.
15169         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15170         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15171         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
15172         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
15173         * tests/test-sigaction.c (handler, main): Likewise.
15174         * lib/freading.h: Treat uClibc like a non-glibc platform.
15175         * lib/freading.c: Likewise.
15176         * lib/gettext.h: Likewise.
15177         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
15178         Likewise.
15179         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
15180         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
15181         * lib/propername.c (proper_name_utf8): Likewise.
15182         * lib/spawn.in.h: Likewise.
15183         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
15184         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
15185         mem_cd_iconveh_internal): Likewise.
15186         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
15187         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15188         strstr, strcasestr): Likewise.
15189         * lib/unicodeio.c (unicode_to_mb): Likewise.
15190         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
15191         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
15192         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
15193         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
15194         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
15195         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
15196         * lib/unistr/u8-stpncpy.c: Likewise.
15197         * lib/vasnprintf.c (VASNPRINTF): Likewise.
15198         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
15199         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15200         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15201         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
15202         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
15203         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
15204         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
15205         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15206         Likewise.
15207         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15208         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15209         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
15210         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15211         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15212         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15213         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15214         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15215         * tests/test-getopt.h (OPTIND_MIN): Likewise.
15216         * tests/test-striconveha.c (main): Likewise.
15217         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15218         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
15219         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
15220         * doc/posix-functions/getline.texi: Likewise.
15221         Reported by Mike Frysinger <vapier@gentoo.org>.
15222
15223 2010-11-20  Bruno Haible  <bruno@clisp.org>
15224
15225         nproc: Fix condition.
15226         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
15227         HAVE_PTHREAD_AFFINITY_NP.
15228
15229 2010-11-20  Bruno Haible  <bruno@clisp.org>
15230
15231         Fix a comment.
15232         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
15233
15234 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
15235
15236         ftoastr: don't assume snprintf
15237         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
15238         Implement a subset of snprintf here, by using sprintf safely.
15239         * modules/ftoastr (Depends-on): Remove snprintf.
15240
15241 2010-11-19  Jim Meyering  <meyering@redhat.com>
15242
15243         test-rename.h: fix compilation failure
15244         * tests/test-rename.h (test_rename): Add omitted "}".
15245
15246 2010-11-17  Jim Meyering  <meyering@redhat.com>
15247
15248         maint.mk: add a URL discussing the no-@acronym policy
15249         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
15250
15251 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
15252
15253         ftoastr: depend on snprintf, improve comments
15254         * lib/ftoastr.c: Also mention Loitsch's draft.
15255         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
15256         needed in the current implementation, but it might simplify
15257         speeding up the code later.
15258         * modules/ftoastr: Depend on snprintf; this improves portability.
15259         Suggested by Bruno Haible in the same email.
15260
15261         ftoastr: port to hosts lacking strtof and strtold
15262         Problem reported by Bruno Haible in
15263         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
15264         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
15265         environment and strtold (and presumably strtof) are not available.
15266         * modules/ftoastr (Files): Add m4/c-strtod.m4.
15267         (configure.ac): Require gl_C99_STRTOLD.
15268
15269 2010-11-18  Bruno Haible  <bruno@clisp.org>
15270
15271         c-strtold: Avoid link error on AIX 7.
15272         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
15273         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
15274         (gl_C_STRTOLD): Test whether strtold_l exists.
15275         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15276
15277 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15278
15279         intprops: new macro INT_BITS_STRLEN_BOUND
15280         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
15281         ftoastr.h.  This exposes an internal of intprops.h that was formerly
15282         not exposed.  Also, it uses a slightly tighter bound than before;
15283         though this makes no practical difference, we might as well be as
15284         tight as we easily can.
15285
15286         ftoastr: new module, for lossless conversion of floats to short strings
15287         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
15288         * modules/ftoastr: New files.
15289
15290 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
15291
15292         bootstrap: port to Solaris sed
15293         * build-aux/bootstrap (get_version): Port to Solaris sed.
15294         See Ralf Wildenhues's note in
15295         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
15296
15297 2010-11-14  Jim Meyering  <meyering@redhat.com>
15298
15299         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
15300         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
15301         and move definition closer to sole use.
15302
15303 2010-11-13  Jim Meyering  <meyering@redhat.com>
15304
15305         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
15306         Now we require at least autoconf-2.59, which means the work-around
15307         is no longer needed.
15308         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
15309         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15310         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
15311         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
15312         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
15313
15314 2010-11-13  Bruno Haible  <bruno@clisp.org>
15315
15316         rename, renameat: Avoid test failures at NFS mounted locations.
15317         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
15318         functions.
15319         (test_rename): Use assert_nonexistent.
15320         * tests/test-rename.c: Include <dirent.h>.
15321         * tests/test-renameat.c: Likewise.
15322         Reported by Gary V. Vaughan <gary@gnu.org>.
15323
15324         rename, renameat: Document Linux bug with NFS
15325         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
15326         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
15327         * doc/posix-functions/renameat.texi: Likewise.
15328         Suggested by Eric Blake.
15329
15330 2010-11-13  Bruno Haible  <bruno@clisp.org>
15331
15332         rename test: Add comments.
15333         * tests/test-rename.h (test_rename): Add structure and comments.
15334
15335 2010-11-13  Eric Blake  <eblake@redhat.com>
15336
15337         maintainer-makefile: cover a few more files
15338         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
15339         scripts generated within C files, for libvirt.
15340
15341 2010-11-13  Bruno Haible  <bruno@clisp.org>
15342
15343         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
15344         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
15345         character, return the number of bytes that belong together, not always
15346         1.
15347         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
15348         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
15349         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
15350         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
15351         number of bytes of an invalid character.
15352         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
15353         (main): Invoke it.
15354         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
15355         results.
15356         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
15357         malformed byte sequences.
15358         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
15359         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
15360         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
15361         Reported by Ben Pfaff and Paolo Bonzini.
15362
15363 2010-11-13  Bruno Haible  <bruno@clisp.org>
15364
15365         openat: Work around glibc bug with fchownat() and empty file names.
15366         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
15367         (gl_FUNC_FCHOWNAT): Invoke it.
15368         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
15369         * doc/posix-functions/fchownat.texi: Document the glibc bug.
15370         Reported by Gary V. Vaughan <gary@gnu.org>.
15371
15372 2010-11-13  Bruno Haible  <bruno@clisp.org>
15373
15374         openat: Ensure autoconf macro ordering.
15375         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
15376         gl_USE_SYSTEM_EXTENSIONS.
15377         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
15378
15379 2010-11-13  Bruno Haible  <bruno@clisp.org>
15380
15381         Update comments.
15382         * lib/unistr/u8-check.c: Update file name in comments.
15383         * lib/unistr/u8-mblen.c: Likewise.
15384         * lib/unistr/u8-prev.c: Likewise.
15385         * lib/unistr/u8-strmblen.c: Likewise.
15386         * lib/unistr/u8-strmbtouc.c: Likewise.
15387
15388 2010-11-13  Jim Meyering  <meyering@redhat.com>
15389
15390         tests: avoid test failure on Solaris 10 due to lack of PATH export
15391         * tests/test-update-copyright.sh: Don't forget to export PATH.
15392
15393         init.sh: ensure that IFS is defined, just in case...
15394         * tests/init.sh (setup_): Ensure that IFS is defined,
15395         so that saving and restoring it works as expected.  This
15396         appears to be useful at least for an old version of dash
15397         from a long time ago (RH 6).  See here for details:
15398         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
15399
15400         maint.mk: tighten "test a == b" check
15401         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
15402         test to files that contain something like #!/bin/sh.
15403         Without this, coreutils would get two false positives in
15404         the comments of C source files.
15405
15406 2010-11-12  Eric Blake  <eblake@redhat.com>
15407
15408         bootstrap: fix typo in previous attempt
15409         * build-aux/bootstrap (buildreq): Correct the grouping.
15410         Reported by Paul Eggert.
15411
15412         maintainer-makefile: prohibit test x == x
15413         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
15414         Based on a report by Matthias Bolte.
15415
15416         bootstrap: allow FreeBSD gzip
15417         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
15418         which has no '.' and goes to stderr.
15419         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
15420         Reported by Matthias Bolte.
15421
15422         maintainer-makefile: check for i18n setup
15423         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
15424         will likely work.
15425
15426 2010-11-12  Bruno Haible  <bruno@clisp.org>
15427
15428         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
15429         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
15430         * lib/nanosleep.c (nanosleep): Likewise.
15431
15432 2010-11-11  Bruno Haible  <bruno@clisp.org>
15433
15434         fcntl-h: Fix for use of C++ on glibc systems.
15435         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15436         also on glibc systems in C++ mode.
15437         Reported by Gary V. Vaughan <gary@gnu.org>.
15438
15439 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15440
15441         mknod: avoid false failure with dash
15442         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
15443
15444 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15445
15446         unlink: Fix "is it should" typo in diagnostic.
15447         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
15448         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
15449
15450 2010-11-11  Bruno Haible  <bruno@clisp.org>
15451
15452         Tests for module 'strerror_r-posix'.
15453         * modules/strerror_r-posix-tests: New file.
15454         * tests/test-strerror_r.c: New file.
15455         * tests/test-string-c++.cc: Check the signature of strerror_r.
15456
15457         New module 'strerror_r-posix'.
15458         * lib/string.in.h (strerror_r): New declaration.
15459         * lib/strerror_r.c: New file.
15460         * m4/strerror_r.m4: New file.
15461         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
15462         of strerror_r.
15463         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
15464         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15465         * modules/strerror_r-posix: New file.
15466         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
15467         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15468         * doc/posix-functions/strerror_r.texi: Mention the new module and the
15469         portability problems.
15470
15471 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
15472
15473         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
15474         line is also considered for output. Quoted function name in shell
15475         command, so temporary files for functions like MyClass::operator()
15476         are removed correctly without errors.
15477
15478 2010-11-09  Bruno Haible  <bruno@clisp.org>
15479
15480         * doc/posix-functions/strerror.texi: List more failing platforms.
15481
15482         * doc/posix-functions/strerror.texi: Add a comment.
15483
15484 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15485
15486         fdopendir: fix bug on MacOS X when low on file descriptors
15487
15488         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
15489         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
15490         All callers changed.
15491         (fdopendir): Invoke save_cwd at the top level, not after using
15492         multiple dup() calls to use up file descriptors.  Then retry
15493         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
15494         less than the maximum number of open file descriptors, because
15495         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
15496         on Mac OS X 10.6.4 for tar 1.24
15497         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
15498         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
15499         and for tar 1.25
15500         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
15501
15502 2010-11-07  Bruno Haible  <bruno@clisp.org>
15503
15504         vasnprintf: Support I flag on glibc systems.
15505         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
15506         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
15507         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
15508         snprintf function.
15509         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
15510         glibc systems.
15511         * tests/test-vasnprintf-posix3.c: New file.
15512         * modules/vasnprintf-posix-tests (Files): Add it.
15513         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
15514
15515 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15516
15517         [html] Fix copy/paste bug: Use unique name for compiler warnings.
15518         * MODULES.html.sh: For compiler warnings, use name
15519         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
15520
15521 2010-11-05  Eric Blake  <eblake@redhat.com>
15522
15523         ceil, floor: avoid spurious failure with icc
15524         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
15525         [denormals-as-zero] when optimizing without -mieee-fp option.
15526         * tests/test-floorf2.c (floorf_reference): Likewise.
15527         * tests/test-ceilf1.c (dummy): New function.
15528         (main): Use it to outsmart icc's optimization.
15529         * tests/test-floorf1.c (dummy, main): Likewise.
15530
15531         tests: require working signbit
15532         * modules/ceilf-tests (Depends-on): Add signbit.
15533         * modules/ceill-tests (Depends-on): Likewise.
15534         * modules/floorf-tests (Depends-on): Likewise.
15535         * modules/floorl-tests (Depends-on): Likewise.
15536         * modules/round-tests (Depends-on): Likewise.
15537         * modules/roundf-tests (Depends-on): Likewise.
15538         * modules/roundl-tests (Depends-on): Likewise.
15539         * modules/trunc-tests (Depends-on): Likewise.
15540         * modules/truncf-tests (Depends-on): Likewise.
15541         * modules/truncl-tests (Depends-on): Likewise.
15542
15543         strtod: work around icc bug
15544         * lib/strtod.c (minus_zero): Define to working value.
15545         (strtod): Use it to avoid icc bug.
15546
15547         copysign: enhance tests
15548         * modules/copysign-tests (Files): Add minus-zero.h.
15549         * tests/test-copysign.c (main): Also test zeros.
15550
15551 2010-11-04  Eric Blake  <eblake@redhat.com>
15552
15553         ceil, floor, round, trunc: enhance tests of -0
15554         * tests/test-ceilf1.c (main): Ensure correct sign of result.
15555         * tests/test-ceill.c (main): Likewise.
15556         * tests/test-floorf1.c (main): Likewise.
15557         * tests/test-floorl.c (main): Likewise.
15558         * tests/test-round1.c (main): Likewise.
15559         * tests/test-roundf1.c (main): Likewise.
15560         * tests/test-roundl.c (main): Likewise.
15561         * tests/test-trunc1.c (main): Likewise.
15562         * tests/test-truncf1.c (main): Likewise.
15563         * tests/test-truncl.c (main): Likewise.
15564
15565 2010-11-04  Eric Blake  <eblake@redhat.com>
15566
15567         frexp, tests: work around ICC bug with -zero
15568         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
15569         works with more compilers.
15570         * tests/minus-zero.h: New file.
15571         * modules/ceilf-tests (Files): Include it.
15572         * modules/ceill-tests (Files): Likewise.
15573         * modules/floorf-tests (Files): Likewise.
15574         * modules/floorl-tests (Files): Likewise.
15575         * modules/frexp-nolibm-tests (Files): Likewise.
15576         * modules/frexp-tests (Files): Likewise.
15577         * modules/frexpl-nolibm-tests (Files): Likewise.
15578         * modules/frexpl-tests (Files): Likewise.
15579         * modules/isnan-tests (Files): Likewise.
15580         * modules/isnand-nolibm-tests (Files): Likewise.
15581         * modules/isnand-tests (Files): Likewise.
15582         * modules/isnanf-nolibm-tests (Files): Likewise.
15583         * modules/isnanf-tests (Files): Likewise.
15584         * modules/isnanl-nolibm-tests (Files): Likewise.
15585         * modules/isnanl-tests (Files): Likewise.
15586         * modules/round-tests (Files): Likewise.
15587         * modules/roundf-tests (Files): Likewise.
15588         * modules/roundl-tests (Files): Likewise.
15589         * modules/ldexpl-tests (Files): Likewise.
15590         * modules/signbit-tests (Files): Likewise.
15591         * modules/snprintf-posix-tests (Files): Likewise.
15592         * modules/sprintf-posix-tests (Files): Likewise.
15593         * modules/strtod-tests (Files): Likewise.
15594         * modules/trunc-tests (Files): Likewise.
15595         * modules/truncf-tests (Files): Likewise.
15596         * modules/truncl-tests (Files): Likewise.
15597         * modules/vsnprintf-posix-tests (Files): Likewise.
15598         * modules/vsprintf-posix-tests (Files): Likewise.
15599         * modules/vasnprintf-posix-tests (Files): Likewise.
15600         * modules/vasprintf-posix-tests (Files): Likewise.
15601         * tests/test-ceilf1.c (main): Use it.
15602         * tests/test-ceill.c (main): Likewise.
15603         * tests/test-floorf1.c (main): Likewise.
15604         * tests/test-floorl.c (main): Likewise.
15605         * tests/test-frexp.c (main): Likewise.
15606         * tests/test-frexpl.c (main): Likewise.
15607         * tests/test-isnan.c (main): Likewise.
15608         * tests/test-isnand.h (main): Likewise.
15609         * tests/test-isnanf.h (main): Likewise.
15610         * tests/test-isnanl.h (main): Likewise.
15611         * tests/test-ldexpl.c (main): Likewise.
15612         * tests/test-round.c (main): Likewise.
15613         * tests/test-roundf.c (main): Likewise.
15614         * tests/test-roundl.c (main): Likewise.
15615         * tests/test-signbit.c (test_signbitf, test_signbitd)
15616         (test_signbitl): Likewise.
15617         * tests/test-snprintf-posix.h (test_function): Likewise.
15618         * tests/test-sprintf-posix.h (test_function): Likewise.
15619         * tests/test-strtod.c (main): Likewise.
15620         * tests/test-trunc1.c (main): Likewise.
15621         * tests/test-truncf1.c (main): Likewise.
15622         * tests/test-truncl.c (main): Likewise.
15623
15624         isnanl: work around icc bug
15625         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
15626
15627 2010-11-03  Eric Blake  <eblake@redhat.com>
15628
15629         tests: fix compiler warnings
15630         * tests/test-getopt.h (test_getopt): Fix condition.
15631         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15632         * tests/test-pipe2.c (main): Likewise.
15633         * tests/test-quotearg-simple.c (main): Avoid icc warning.
15634
15635         utimens: fix broken m4 test
15636         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
15637
15638 2010-10-28  Bruno Haible  <bruno@clisp.org>
15639
15640         posix_spawn*, getdtablesize: Relax license.
15641         * modules/posix_spawn (License): Change to LGPLv2+.
15642         * modules/posix_spawnp (License): Likewise.
15643         * modules/posix_spawn-internal (License): Likewise.
15644         * modules/posix_spawnattr_init (License): Likewise.
15645         * modules/posix_spawnattr_getflags (License): Likewise.
15646         * modules/posix_spawnattr_setflags (License): Likewise.
15647         * modules/posix_spawnattr_getpgroup (License): Likewise.
15648         * modules/posix_spawnattr_setpgroup (License): Likewise.
15649         * modules/posix_spawnattr_getschedparam (License): Likewise.
15650         * modules/posix_spawnattr_setschedparam (License): Likewise.
15651         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
15652         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
15653         * modules/posix_spawnattr_getsigdefault (License): Likewise.
15654         * modules/posix_spawnattr_setsigdefault (License): Likewise.
15655         * modules/posix_spawnattr_getsigmask (License): Likewise.
15656         * modules/posix_spawnattr_setsigmask (License): Likewise.
15657         * modules/posix_spawnattr_destroy (License): Likewise.
15658         * modules/posix_spawn_file_actions_init (License): Likewise.
15659         * modules/posix_spawn_file_actions_addclose (License): Likewise.
15660         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
15661         * modules/posix_spawn_file_actions_addopen (License): Likewise.
15662         * modules/posix_spawn_file_actions_destroy (License): Likewise.
15663         * modules/getdtablesize (License): Likewise.
15664         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
15665
15666 2010-10-26  Bruno Haible  <bruno@clisp.org>
15667
15668         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
15669         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
15670         Cygwin and mingw.
15671         Suggested by Eric Blake.
15672
15673 2010-10-26  Bruno Haible  <bruno@clisp.org>
15674
15675         stdio: Work around compilation error due to renameat() on Solaris 10.
15676         * lib/stdio.in.h: Include <unistd.h> on Solaris.
15677         * lib/renameat.c: Don't include <unistd.h> here.
15678         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
15679         Reported by Paul Eggert and Eric Blake.
15680
15681 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
15682
15683         renameat: port to Solaris 10, which declares renameat in unistd.h
15684
15685         * lib/renameat.c: Include unistd.h before stdio.h, because
15686         Solaris 10 declares renameat in unistd.h.  Problem encountered
15687         when building GNU tar 1.24 on Solaris 10.
15688
15689 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15690
15691         fdopendir: fix C89 compilation
15692         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
15693         compilers.
15694
15695 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15696
15697         inttostr: simplify by removing unnecessary redundancy
15698         * lib/anytostr.c: Don't include verify.h.
15699         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
15700         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
15701         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
15702         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
15703         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
15704         Likewise.
15705         * modules/inttostr (Depends-on): Remove 'verify'.
15706
15707 2010-10-23  Bruno Haible  <bruno@clisp.org>
15708
15709         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
15710         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
15711         Reported by Eric Blake.
15712
15713 2010-10-23  Bruno Haible  <bruno@clisp.org>
15714
15715         Tests: Fix LOCALE_JA on MirBSD 10.
15716         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
15717         to an UTF-8 locale.
15718         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
15719         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15720         Reported by Eric Blake.
15721
15722 2010-10-21  Bruno Haible  <bruno@clisp.org>
15723
15724         nl_langinfo test: Avoid test failure on NetBSD 5.
15725         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
15726         Reported by Eric Blake.
15727
15728 2010-10-21  Eric Blake  <eblake@redhat.com>
15729
15730         c-stack: work around libsigsegv 2.8 bug
15731         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
15732         overflow on at least PowerPC64.
15733
15734 2010-10-17  Bruno Haible  <bruno@clisp.org>
15735
15736         userspec: Drop redundant file.
15737         * modules/userspec (Files): Remove lib/inttostr.h.
15738
15739 2010-10-17  Bruno Haible  <bruno@clisp.org>
15740
15741         nl_langinfo tests: Silence some warnings.
15742         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
15743         Reported by Jim Meyering.
15744
15745 2010-10-17  Bruno Haible  <bruno@clisp.org>
15746
15747         Make use of GCC's attribute __alloc_size__.
15748         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
15749         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
15750         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
15751         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
15752         __alloc_size__.
15753         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15754         Suggested by Jim Meyering.
15755
15756 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
15757
15758         bootstrap: anchor .gitignore entries.
15759         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
15760         with...
15761         (insert_vc_ignore): ... this new function, which prepends `/' to
15762         all .gitignore entries before passing them to
15763         insert_sorted_if_absent.
15764
15765 2010-10-16  Bruno Haible  <bruno@clisp.org>
15766
15767         nextafter: Fix configure check.
15768         * modules/nextafter (configure.ac): Correct expected prototype.
15769
15770 2010-10-16  Bruno Haible  <bruno@clisp.org>
15771
15772         termios: Update documentation.
15773         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
15774
15775 2010-10-16  Bruno Haible  <bruno@clisp.org>
15776
15777         tests: Make them compile with TinyCC.
15778         * tests/test-strstr.c (main): Remove parentheses around array
15779         initializer.
15780
15781 2010-10-15  Eric Blake  <eblake@redhat.com>
15782
15783         ignore-value: make header idempotent
15784         * lib/ignore-value.h: Add double-inclusion guards.
15785         Reported by Stefan Berger.
15786
15787 2010-10-15  Jim Meyering  <meyering@redhat.com>
15788
15789         GNUmakefile: handle "stable" target, not "major"
15790         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
15791         lists in maint.mk and announce-gen.  Without this, "make stable"
15792         would fail to ensure that $(VERSION) is up to date.
15793
15794 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
15795
15796         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
15797         & co.
15798
15799 2010-10-14  Bruno Haible  <bruno@clisp.org>
15800
15801         vasnprintf: Don't set errno to 0.
15802         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
15803         block that sets it to 0.
15804         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
15805
15806 2010-10-14  Bruno Haible  <bruno@clisp.org>
15807
15808         socketlib: Fix.
15809         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
15810         gl_PREREQ_SYS_H_WINSOCK2.
15811         Reported by Ian Beckwith <ianb@erislabs.net>.
15812
15813 2010-10-13  Jim Meyering  <meyering@redhat.com>
15814
15815         test-select-stdin.c: avoid warn_unused_result warnings
15816         * tests/test-select-stdin.c: Include "macros.h".
15817         ASSERT that read and fflush succeed.
15818
15819 2010-10-13  Jim Meyering  <meyering@redhat.com>
15820
15821         git-version-gen: do require git-VC'd files in cwd
15822         * build-aux/git-version-gen: Reject a git version string
15823         if there are no commits associated with the current directory.
15824         This avoids an unlikely false-positive (unrelated dir whose parent
15825         repository also contains a tag matching v*), as pointed out
15826         by Giuseppe Scrivano in
15827         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
15828
15829 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15830
15831         argv-iter: omit nonconforming declaration
15832         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
15833         enum arg_iter_err declaration, which doesn't conform to C99.
15834         Solaris 10 cc warns about this.
15835
15836 2010-10-13  Eric Blake  <eblake@redhat.com>
15837
15838         termios: fix compilation on mingw
15839         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
15840         (gl_TERMIOS_H): Adjust it on mingw.
15841         * modules/termios (Makefile.am): Substitute new key.
15842         * lib/termios.in.h (includes): Make include_next conditional.
15843         * doc/posix-headers/termios.texi (termios.h): Update
15844         documentation.
15845         Reported by Daniel P. Berrange.
15846
15847 2010-10-13  Jim Meyering  <meyering@redhat.com>
15848
15849         git-version-gen: don't require that .git/ be in the current dir
15850         * build-aux/git-version-gen: Adjust this script so that it works
15851         when run from any working directory beneath the top-level .git/-
15852         containing directory.  Inspired by a patch from Giuseppe Scrivano,
15853         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
15854
15855         test-select: avoid warn_unused_result warnings
15856         * tests/test-select.c: Include "macros.h".
15857         ASSERT that each call to read, write, and pipe succeeds.
15858         While not technically required, also check each "close".
15859         * modules/select-tests (Files): Add tests/macros.h.
15860
15861         test-symlinkat: remove declaration of unused local
15862         * tests/test-symlinkat.c (main): Remove unused local, "buf".
15863
15864         test-inttostr: avoid shadowing warnings
15865         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
15866         and use malloc rather than the stack for the same reason as
15867         mentioned in the comment justifying the other allocation.
15868
15869 2010-10-11  Bruno Haible  <bruno@clisp.org>
15870
15871         stdlib: Allow multiple gnulib generated replacements to coexist.
15872         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
15873         Reported by Sam Steingold <sds@gnu.org>.
15874
15875 2010-10-11  Jim Meyering  <meyering@redhat.com>
15876
15877         fix a documentation typo
15878         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
15879
15880 2010-10-11  Eric Blake  <eblake@redhat.com>
15881
15882         futimens: work around Solaris 11 bug
15883         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
15884         * tests/test-futimens.h (test_futimens): Enhance, rather than
15885         weaken test.
15886         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15887
15888 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15889
15890         Indentation.
15891         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
15892         higher-level operators more to the left.
15893
15894 2010-10-11  Jim Meyering  <meyering@redhat.com>
15895
15896         test-futimens: avoid unwarranted test failure on Solaris 5.11
15897         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
15898         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
15899         because it tries to dereference the NULL name argument.
15900
15901 2010-10-11  Bruno Haible  <bruno@clisp.org>
15902
15903         Indentation.
15904         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
15905         indentation.
15906
15907 2010-10-11  Jim Meyering  <meyering@redhat.com>
15908
15909         spawn.in.h: make indentation consistent with parentheses
15910         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
15911         Make indentation consistent with parentheses.
15912
15913 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
15914
15915         Fix mismatched parens in previous commit
15916         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
15917         parens.
15918
15919 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15920
15921         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
15922
15923         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
15924         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
15925         * lib/malloca.c: Include "verify.h".
15926         (verify1): Remove, replacing with a verify call.
15927         * lib/relocwrapper.c (verify1): Likewise.
15928         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
15929         Likewise.
15930         * modules/malloca (Depends-on): Add 'verify'.
15931         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
15932         * modules/vasnprintf (Depends-on): Add 'verify'.
15933         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15934         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15935         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15936         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15937         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15938         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15939         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15940
15941         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
15942
15943         Formerly the style was sometimes 2*X - 1, because the C standard
15944         was wrongly thought to disallow ?: in integral constant expressions.
15945         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
15946         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
15947         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15948         * lib/stdint.in.h (_verify_intmax_size): Likewise.
15949         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
15950         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
15951         verify that time_t cannot be floating.
15952
15953 2010-10-08  Eric Blake  <eblake@redhat.com>
15954
15955         time: enforce recent POSIX ruling that time_t is integral
15956         * lib/time.in.h (__time_t_must_be_integral): Detect any
15957         problematic systems, allowing the rest of gnulib to assume POSIX.
15958
15959 2010-10-08  Jim Meyering  <meyering@redhat.com>
15960
15961         fdopendir: fix a bug on systems lacking openat and /proc support
15962         OpenBSD 4.7 is one such system.  The most noticeable effect was
15963         failure of any application making nontrivial use of fts: rm, du,
15964         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
15965           ./rm: traversal failed: `a': Bad file descriptor
15966         Debugging that, you see that even though FD 6 was closed just
15967         prior to the opendir call in fd_clone_opendir, its resulting
15968         dir->dd_fd was 8, rather than the expected value of 6:
15969
15970         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
15971         93                close (fd);
15972         (gdb) n
15973         94                dir = fd_clone_opendir (dupfd);
15974         (gdb) n
15975         95                saved_errno = errno;
15976         (gdb) p dir->dd_fd
15977         $11 = 8
15978
15979         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15980         The problem is that on OpenBSD, fd_clone_opendir has to resort
15981         to using the old-style save/restore CWD mechanism, due to its
15982         lack of openat/proc support, and *that* would steal the FD (6)
15983         that opendir was supposed to use.
15984
15985         The fix is to squirrel away the desired FD so that save_cwd uses a
15986         different one, and then free the dest FD right before calling opendir.
15987         That guarantees opendir will use the required file descriptor.
15988
15989         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15990
15991 2010-10-08  Bruno Haible  <bruno@clisp.org>
15992
15993         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15994         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15995
15996 2010-10-08  Bruno Haible  <bruno@clisp.org>
15997
15998         nanosleep: Make replacement POSIX compliant.
15999         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
16000         is out of range.
16001         Reported by Jim Meyering.
16002
16003 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16004
16005         bootstrap: add hook for altering gnulib.mk, for Bison
16006         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
16007         the Bison bootstrapping process can rewrite file names and variables
16008         in this file before later parts of 'bootstrap' use the file.
16009         Bison wants to include lib/gnulib.mk from the top-level makefile,
16010         so it needs the file names in this file to be relative to the top
16011         level, not relative to lib; plus it needs variable names to be
16012         rewritten.
16013         (slurp): Use the new function.
16014
16015         bootstrap: reformat for readability
16016         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
16017
16018 2010-10-08  Eric Blake  <eblake@redhat.com>
16019
16020         docs: update cygwin progress
16021         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
16022         1.7.7.
16023         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
16024         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
16025         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
16026         * doc/posix-functions/carg.texi (carg): Likewise.
16027         * doc/posix-functions/cargf.texi (cargf): Likewise.
16028         * doc/posix-functions/casin.texi (casin): Likewise.
16029         * doc/posix-functions/casinf.texi (casinf): Likewise.
16030         * doc/posix-functions/casinh.texi (casinh): Likewise.
16031         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
16032         * doc/posix-functions/catan.texi (catan): Likewise.
16033         * doc/posix-functions/catanf.texi (catanf): Likewise.
16034         * doc/posix-functions/catanh.texi (catanh): Likewise.
16035         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
16036         * doc/posix-functions/ccos.texi (ccos): Likewise.
16037         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
16038         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
16039         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
16040         * doc/posix-functions/cexp.texi (cexp): Likewise.
16041         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
16042         * doc/posix-functions/cimag.texi (cimag): Likewise.
16043         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
16044         * doc/posix-functions/clog.texi (clog): Likewise.
16045         * doc/posix-functions/clogf.texi (clogf): Likewise.
16046         * doc/posix-functions/conj.texi (conj): Likewise.
16047         * doc/posix-functions/conjf.texi (conjf): Likewise.
16048         * doc/posix-functions/cpow.texi (cpow): Likewise.
16049         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
16050         * doc/posix-functions/cproj.texi (cproj): Likewise.
16051         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
16052         * doc/posix-functions/creal.texi (creal): Likewise.
16053         * doc/posix-functions/crealf.texi (crealf): Likewise.
16054         * doc/posix-functions/csin.texi (csin): Likewise.
16055         * doc/posix-functions/csinf.texi (csinf): Likewise.
16056         * doc/posix-functions/csinh.texi (csinh): Likewise.
16057         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
16058         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
16059         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
16060         * doc/posix-functions/ctan.texi (ctan): Likewise.
16061         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
16062         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
16063         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
16064         * doc/posix-headers/complex.texi (complex.h): Likewise.
16065
16066 2010-10-07  Jim Meyering  <meyering@redhat.com>
16067
16068         parse-datetime: avoid compilation failure on OpenBSD 4.7
16069         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
16070         This works around a compilation failure on OpenBSD 4.7:
16071         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
16072
16073 2010-10-07  Eric Blake  <eblake@redhat.com>
16074
16075         docs: update cygwin progress
16076         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
16077         1.7.6.
16078         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
16079         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
16080         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
16081         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
16082         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
16083         Likewise.
16084         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
16085         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
16086         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
16087         Likewise.
16088         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
16089         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
16090         Likewise.
16091         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
16092         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
16093         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
16094         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
16095         Likewise.
16096         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
16097         Likewise.
16098         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
16099
16100         docs: update parse-datetime history
16101         * doc/parse-datetime.texi (Authors of parse_datetime): Better
16102         documentation of this function's history and alternatives.
16103
16104         cygwin: use more robust version check
16105         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
16106         exclude an eventual cygwin 1.9.1.
16107         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16108         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16109         (gl_FUNC_STRCASESTR): Likewise.
16110         Reported by Bruno Haible.
16111
16112 2010-10-06  Bruno Haible  <bruno@clisp.org>
16113
16114         string, sys_select: Avoid #including large headers unless necessary.
16115         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
16116         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
16117         OSF/1, BeOS, Haiku.
16118         Reported by Jim Meyering.
16119
16120 2010-10-05  Eric Blake  <eblake@redhat.com>
16121
16122         memmem, strstr, strcasestr: fix bug with long periodic needle
16123         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
16124         periodic needle having false positive.
16125         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
16126         and cygwin 1.7.7.
16127         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
16128         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16129         (gl_FUNC_STRCASESTR): Likewise.
16130         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16131         * tests/test-memmem.c (main): Expose the bug.
16132         * tests/test-strcasestr.c (main): Likewise.
16133         * tests/test-strstr.c (main): Likewise.
16134         * tests/test-c-strcasestr.c (main): Likewise.
16135         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
16136         * doc/posix-functions/strstr.texi (strstr): Likewise.
16137         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
16138         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
16139
16140 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16141
16142         parse-datetime: do some more renaming
16143         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
16144         parse_datetime, not get_date.  Mention the renaming.
16145         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
16146         in comments.
16147         * m4/bison.m4: Likewise.
16148
16149 2010-10-05  Eric Blake  <eblake@redhat.com>
16150
16151         parse-datetime: better name than get_date
16152         * NEWS: Reword the deprecation notice.
16153         * modules/get_date: Rename to modules/parse-datetime.
16154         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
16155         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
16156         * lib/get_date.y: Rename to lib/parse-datetime.y.
16157         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
16158         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
16159         * doc/getdate.texi: Provide fallback wrapper.
16160         * lib/getdate.h: Move guts, and wrap...
16161         * lib/parse-datetime.h: ...new file.
16162         * lib/parse-datetime.y (get_date): Rename...
16163         (parse_datetime): ...to this.
16164         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
16165         (gl_PARSE_DATETIME): ...to this.
16166         * doc/posix-functions/getdate.texi (get_date): Provide fallback
16167         documentation.
16168         * modules/getdate (Files): Provide fallback docs and header.
16169         (Notice, Depends-on): Update references.
16170         * tests/test-parse-datetime.c: Likewise.
16171         * DEPENDENCIES: Likewise.
16172         * MODULES.html.sh (Date and time <time.h>): Likewise.
16173         * doc/parse-datetime.texi (Date input formats)
16174         (Authors of parse_datetime): Likewise.
16175         * modules/parse-datetime (Files, configure.ac, Makefile.am)
16176         (Include): Likewise.
16177         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
16178         * gnulib-tool: Likewise.
16179         * m4/bison.m4 (gl_BISON): Likewise.
16180         Suggested by Bruno Haible.
16181
16182 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16183
16184         more ports to Solaris tr, which needs [] around ranges
16185         * gnulib-tool: Solaris tr needs [] around ranges.
16186         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16187         * tests/test-pipe-filter-gi1.c (main): Likewise.
16188         * tests/test-pipe-filter-ii1.c (main): Likewise.
16189
16190 2010-10-05  Eric Blake  <eblake@redhat.com>
16191
16192         bootstrap: fix Solaris regression
16193         * build-aux/bootstrap (check_versions): Solaris tr still needs []
16194         around ranges.
16195         Reported by Pádraig Brady.
16196
16197         bootstrap: work with pkg-config
16198         * build-aux/bootstrap (check_versions): Also transliterate - in
16199         prerequisite name.
16200         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
16201         prerequisites that were already found, to avoid confusion.
16202         Reported by Justin Clift.
16203
16204         faccessat: remove unused wrappers
16205         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
16206         presence of these wrappers dragged in -lgen on Solaris.
16207         Reported by Clemens Brogi; fix suggested by Paul Eggert.
16208
16209 2010-10-05  Jim Meyering  <meyering@redhat.com>
16210
16211         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
16212         * Makefile (sc_pragma_columns): New syntax-check rule.
16213
16214 2010-10-04  Bruno Haible  <bruno@clisp.org>
16215
16216         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
16217         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
16218         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
16219         Reported by Bruce Korb and Eric Blake.
16220
16221 2010-10-04  Bruno Haible  <bruno@clisp.org>
16222
16223         threadlib: Make option --with-libpth-prefix work.
16224         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
16225         use $LIBPTH, not just -lpth.
16226
16227 2010-10-04  Bruno Haible  <bruno@clisp.org>
16228
16229         Avoid line length limitation from HP NonStop system header files.
16230         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
16231         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
16232         * lib/ctype.in.h: Likewise.
16233         * lib/dirent.in.h: Likewise.
16234         * lib/errno.in.h: Likewise.
16235         * lib/fcntl.in.h: Likewise.
16236         * lib/float.in.h: Likewise.
16237         * lib/getopt.in.h: Likewise.
16238         * lib/iconv.in.h: Likewise.
16239         * lib/inttypes.in.h: Likewise.
16240         * lib/langinfo.in.h: Likewise.
16241         * lib/locale.in.h: Likewise.
16242         * lib/math.in.h: Likewise.
16243         * lib/netdb.in.h: Likewise.
16244         * lib/netinet_in.in.h: Likewise.
16245         * lib/poll.in.h: Likewise.
16246         * lib/pthread.in.h: Likewise.
16247         * lib/pty.in.h: Likewise.
16248         * lib/sched.in.h: Likewise.
16249         * lib/se-selinux.in.h: Likewise.
16250         * lib/search.in.h: Likewise.
16251         * lib/signal.in.h: Likewise.
16252         * lib/spawn.in.h: Likewise.
16253         * lib/stdarg.in.h: Likewise.
16254         * lib/stddef.in.h: Likewise.
16255         * lib/stdint.in.h: Likewise.
16256         * lib/stdio.in.h: Likewise.
16257         * lib/stdlib.in.h: Likewise.
16258         * lib/string.in.h: Likewise.
16259         * lib/strings.in.h: Likewise.
16260         * lib/sys_file.in.h: Likewise.
16261         * lib/sys_ioctl.in.h: Likewise.
16262         * lib/sys_select.in.h: Likewise.
16263         * lib/sys_socket.in.h: Likewise.
16264         * lib/sys_stat.in.h: Likewise.
16265         * lib/sys_time.in.h: Likewise.
16266         * lib/sys_times.in.h: Likewise.
16267         * lib/sys_utsname.in.h: Likewise.
16268         * lib/sys_wait.in.h: Likewise.
16269         * lib/sysexits.in.h: Likewise.
16270         * lib/termios.in.h: Likewise.
16271         * lib/time.in.h: Likewise.
16272         * lib/unistd.in.h: Likewise.
16273         * lib/wchar.in.h: Likewise.
16274         * lib/wctype.in.h: Likewise.
16275         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
16276         * modules/ctype (Makefile.am): Likewise.
16277         * modules/dirent (Makefile.am): Likewise.
16278         * modules/errno (Makefile.am): Likewise.
16279         * modules/fcntl-h (Makefile.am): Likewise.
16280         * modules/float (Makefile.am): Likewise.
16281         * modules/getopt-posix (Makefile.am): Likewise.
16282         * modules/iconv-h (Makefile.am): Likewise.
16283         * modules/inttypes (Makefile.am): Likewise.
16284         * modules/langinfo (Makefile.am): Likewise.
16285         * modules/locale (Makefile.am): Likewise.
16286         * modules/math (Makefile.am): Likewise.
16287         * modules/netdb (Makefile.am): Likewise.
16288         * modules/netinet_in (Makefile.am): Likewise.
16289         * modules/poll-h (Makefile.am): Likewise.
16290         * modules/pthread (Makefile.am): Likewise.
16291         * modules/pty (Makefile.am): Likewise.
16292         * modules/sched (Makefile.am): Likewise.
16293         * modules/search (Makefile.am): Likewise.
16294         * modules/selinux-h (Makefile.am): Likewise.
16295         * modules/signal (Makefile.am): Likewise.
16296         * modules/spawn (Makefile.am): Likewise.
16297         * modules/stdarg (Makefile.am): Likewise.
16298         * modules/stddef (Makefile.am): Likewise.
16299         * modules/stdint (Makefile.am): Likewise.
16300         * modules/stdio (Makefile.am): Likewise.
16301         * modules/stdlib (Makefile.am): Likewise.
16302         * modules/string (Makefile.am): Likewise.
16303         * modules/strings (Makefile.am): Likewise.
16304         * modules/sys_file (Makefile.am): Likewise.
16305         * modules/sys_ioctl (Makefile.am): Likewise.
16306         * modules/sys_select (Makefile.am): Likewise.
16307         * modules/sys_socket (Makefile.am): Likewise.
16308         * modules/sys_stat (Makefile.am): Likewise.
16309         * modules/sys_time (Makefile.am): Likewise.
16310         * modules/sys_times (Makefile.am): Likewise.
16311         * modules/sys_utsname (Makefile.am): Likewise.
16312         * modules/sys_wait (Makefile.am): Likewise.
16313         * modules/sysexits (Makefile.am): Likewise.
16314         * modules/termios (Makefile.am): Likewise.
16315         * modules/time (Makefile.am): Likewise.
16316         * modules/unistd (Makefile.am): Likewise.
16317         * modules/wchar (Makefile.am): Likewise.
16318         * modules/wctype (Makefile.am): Likewise.
16319
16320 2010-10-04  Bruno Haible  <bruno@clisp.org>
16321
16322         read-file tests: Avoid a test failure on NonStop Kernel.
16323         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
16324         a regular file.
16325         Reported by Joachim Schmitz <schmitz@hp.com>.
16326
16327 2010-10-03  Bruno Haible  <bruno@clisp.org>
16328
16329         gnulib-tool: Fixes for --create-testdir with --libtool.
16330         * gnulib-tool (func_get_automake_snippet): Don't augment
16331         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
16332         an executable.
16333         (func_create_testdir): Handle module 'alloca' like func_import.
16334         Reported by Bruce Korb <bruce.korb@gmail.com>.
16335
16336 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
16337
16338         Avoid some lines longer than 80 characters.
16339         * lib/stdint.in.h: Break long comment lines.
16340         * lib/math.in.h: Likewise.
16341         (_GL_NUM_UINT_WORDS): New macro, for readability.
16342         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
16343         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
16344         * lib/stdlib.in.h: Likewise.
16345         * lib/spawn.in.h: Likewise.
16346         * lib/sys_socket.in.h: Update an URL.
16347         * lib/sys_stat.in.h: Break long line.
16348
16349 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
16350
16351         Improve pmccabe2html.
16352         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
16353         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
16354         when the sources change. Remove the line in the HTML about "Used
16355         ranges" (which implied that there might be other unused ranges),
16356         rename "Resume" to "Summary" (easier to understand for more users).
16357         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
16358         styles, and some unnecessary blank lines.
16359
16360 2010-10-03  Bruno Haible  <bruno@clisp.org>
16361             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
16362
16363         acl: Add support for ACLs on NonStop Kernel.
16364         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
16365         Check whether the function aclsort() exists.
16366         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
16367         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
16368         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16369         (acl_nontrivial [HAVE_ACLSORT]: New function.
16370         (file_has_acl): Implement for NonStop Kernel.
16371         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16372         (qset_acl): Implement for NonStop Kernel.
16373         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
16374         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16375         (main): Implement for NonStop Kernel.
16376         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
16377         Kernel. Handle this flavor.
16378         * tests/test-set-mode-acl.sh: Likewise.
16379         * tests/test-copy-acl.sh: Likewise.
16380         * tests/test-copy-file.sh: Likewise.
16381
16382 2010-10-03  Bruno Haible  <bruno@clisp.org>
16383
16384         Info about ACLs on NonStop Kernel.
16385         * doc/acl-resources.txt: Add info about NonStop Kernel.
16386         References by Joachim Schmitz <schmitz@hp.com>.
16387
16388 2010-10-02  Bruno Haible  <bruno@clisp.org>
16389
16390         Define missing EDQUOT on NonStop Kernel.
16391         * lib/errno.in.h (EDQUOT): Assign a value if missing.
16392         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
16393         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
16394         missing.
16395         * doc/posix-headers/errno.texi: Mention the NSK bug.
16396         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
16397         Reported by Joachim Schmitz <schmitz@hp.com>.
16398
16399 2010-10-02  Bruno Haible  <bruno@clisp.org>
16400
16401         Update doc for POSIX:2008.
16402         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
16403         Update URL of POSIX specification.
16404
16405 2010-10-02  Bruno Haible  <bruno@clisp.org>
16406
16407         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
16408         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
16409         from gnulib, not from Automake.
16410
16411 2010-10-02  Bruno Haible  <bruno@clisp.org>
16412
16413         New module 'system-posix'.
16414         * modules/system-posix: New file.
16415         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
16416         module is present.
16417         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
16418         GNULIB_SYSTEM_POSIX.
16419         * modules/stdlib (Depends-on): Remove sys_wait.
16420         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
16421         * doc/posix-functions/system.texi: Mention the new module.
16422         * doc/posix-headers/stdlib.texi: Likewise.
16423         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
16424         define test_sys_wait_macros to a no-op.
16425         Reported by Sam Steingold <sds@gnu.org>.
16426
16427 2010-09-30  Bruno Haible  <bruno@clisp.org>
16428
16429         More renaming from 'getdate' to 'get_date'.
16430         * doc/get_date.texi: Renamed from doc/getdate.texi.
16431         * modules/get_date (Files): Update.
16432         * MODULES.html.sh (Date and time <time.h>): Update.
16433         * DEPENDENCIES: Update.
16434         * gnulib-tool: Update comment.
16435         * m4/bison.m4 (gl_BISON): Likewise.
16436         * m4/get_date.m4 (gl_GET_DATE): Likewise.
16437
16438 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
16439
16440         bootstrap: support ACLOCAL_FLAGS during aclocal
16441         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
16442         can add additional -I dir for third-party .m4 files.
16443
16444 2010-09-30  Eric Blake  <eblake@redhat.com>
16445
16446         bootstrap: use glibtoolize on MacOS
16447         * build-aux/bootstrap (check_versions): Convert libtool into
16448         libtoolize.
16449         (tool search): Move libtool check earlier, and look for
16450         glibtoolize for MacOS.
16451         (gnulib_tool_options): Auto-add --libtool when appropriate.
16452         Reported by Justin Clift.
16453
16454         poll: fix typo that broke test on MacOS
16455         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
16456         Reported by Justin Clift.
16457
16458         getdate: rename to get_date
16459         Note: getdate.h is not renamed, to minimize client impact.
16460         * modules/getdate: Mark obsolete.  Move old contents...
16461         * modules/get_date: ...to new module name.
16462         * modules/getdate-tests: Move...
16463         * modules/get_date-tests: ...here.
16464         * m4/getdate.m4: Move...
16465         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
16466         * lib/getdate.y: Move...
16467         * lib/get_date.y: ...here.
16468         * tests/test-getdate.c: Move...
16469         * tests/test-get_date.c: ...here.
16470         * doc/posix-functions/getdate.texi (getdate): Update name.
16471         * NEWS: Mention the change.
16472
16473 2010-09-29  Bruno Haible  <bruno@clisp.org>
16474
16475         Separate the module 'waitpid' from the module 'sys_wait'.
16476         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
16477         present.
16478         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
16479         gl_MODULE_INDICATOR_FOR_TESTS.
16480         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
16481         * modules/sys_wait (Depends-on): Remove waitpid.
16482         (Makefile.am): Substitute GNULIB_WAITPID.
16483         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
16484         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
16485         signature only if the 'waitpid' module is present.
16486         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
16487         * NEWS: Mention the change.
16488         * modules/grantpt (Depends-on): Add waitpid.
16489         * modules/wait-process (Depends-on): Likewise.
16490
16491 2010-09-29  Bruno Haible  <bruno@clisp.org>
16492
16493         More tests for module 'sys_wait'.
16494         * modules/sys_wait-c++-tests: New file.
16495         * tests/test-sys_wait-c++.cc: New file.
16496         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
16497         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16498
16499 2010-09-29  Bruno Haible  <bruno@clisp.org>
16500
16501         New module 'waitpid'.
16502         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
16503         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
16504         Don't include <process.h>.
16505         (waitpid): Declare only, using modern idiom.
16506         * m4/waitpid.m4: New file.
16507         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
16508         * modules/waitpid: New file.
16509         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
16510         (Makefile.am): Update.
16511         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16512
16513 2010-09-28  Bruno Haible  <bruno@clisp.org>
16514
16515         poll: Assume ANSI C.
16516         * lib/poll.c (poll): Use an ANSI C declaration.
16517
16518 2010-09-28  Bruno Haible  <bruno@clisp.org>
16519
16520         poll-h: Create poll.h on all platforms.
16521         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
16522         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
16523         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
16524         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
16525         (gl_REPLACE_POLL_H): Don't set POLL_H.
16526         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
16527         * modules/poll-h (Depends-on): Add include_next.
16528         (Makefile.am): Create poll.h unconditionally. Substitute also
16529         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
16530
16531 2010-09-28  Bruno Haible  <bruno@clisp.org>
16532
16533         Tests for module 'poll-h'.
16534         * modules/poll-h-c++-tests: New file.
16535         * tests/test-poll-h-c++.cc: New file.
16536
16537         Tests for module 'poll-h'.
16538         * modules/poll-h-tests: New file.
16539         * tests/test-poll-h.c: New file.
16540
16541 2010-09-28  Bruno Haible  <bruno@clisp.org>
16542
16543         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
16544         * modules/poll-h (Depends-on): Add 'extensions'.
16545
16546 2010-09-28  Bruno Haible  <bruno@clisp.org>
16547
16548         New module 'poll-h'.
16549         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
16550         (poll): Use modern idiom.
16551         * modules/poll-h: New file.
16552         * modules/poll (Files): Remove lib/poll.in.h.
16553         (Depends-on): Add poll-h.
16554         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
16555         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
16556         * m4/poll_h.m4: New file.
16557         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
16558         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
16559         and invoke gl_REPLACE_POLL_H.
16560         * lib/poll.c: Use common idiom.
16561         * tests/test-poll.c: Likewise.
16562         * doc/posix-headers/poll.texi: Mention the poll-h module.
16563         Suggested by Eric Blake.
16564
16565 2010-09-26  Bruno Haible  <bruno@clisp.org>
16566
16567         sys_wait: Implement WSTOPSIG.
16568         * lib/sys_wait.in.h (WSTOPSIG): New macro.
16569         Reported by Simon Josefsson.
16570
16571 2010-09-26  Simon Josefsson  <simon@josefsson.org>
16572
16573         stdlib, sys_wait: Avoid compilation error on mingw.
16574         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
16575
16576 2010-09-26  Bruno Haible  <bruno@clisp.org>
16577
16578         stdlib tests: Avoid code duplication.
16579         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
16580         * modules/sys_wait-tests (Files): Likewise.
16581         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
16582         * tests/test-stdlib.c: Include test-sys_wait.h.
16583         (main): Invoke test_sys_wait_macros.
16584         * tests/test-sys_wait.c: Include test-sys_wait.h.
16585         (main): Invoke test_sys_wait_macros.
16586
16587 2010-09-25  Simon Josefsson  <simon@josefsson.org>
16588
16589         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
16590         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
16591         sure Windows sockets are working before calling getaddrinfo.
16592         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
16593         * doc/gnulib.texi (Windows sockets): Fix typo.
16594
16595 2010-09-25  Bruno Haible  <bruno@clisp.org>
16596
16597         Tests for module 'regex-quote'.
16598         * modules/regex-quote-tests: New file.
16599         * tests/test-regex-quote.c: New file.
16600
16601         New module 'regex-quote'.
16602         * lib/regex-quote.h: New file.
16603         * lib/regex-quote.c: New file.
16604         * modules/regex-quote: New file.
16605         Suggested by Reuben Thomas <rrt@sc3d.org>.
16606
16607 2010-09-24  Bruno Haible  <bruno@clisp.org>
16608
16609         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
16610         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
16611
16612 2010-09-23  Bruno Haible  <bruno@clisp.org>
16613
16614         setenv: Relax license.
16615         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
16616         Blake.
16617         Requested by Eric Blake.
16618
16619 2010-09-22  Bruno Haible  <bruno@clisp.org>
16620
16621         termios: Relax license.
16622         * modules/termios (License): Change to LGPLv2+.
16623         Requested by Eric Blake.
16624
16625 2010-09-22  Bruno Haible  <bruno@clisp.org>
16626
16627         threadlib: Allow the package to change the default to 'no'.
16628         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
16629         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
16630         Reported by Paul Eggert.
16631
16632 2010-09-22  Pádraig Brady  <P@draigbrady.com>
16633             Bruno Haible  <bruno@clisp.org>
16634
16635         Fix endless loop in mbmemcasecoll.
16636         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
16637         byte.
16638         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
16639
16640 2010-09-22  Bruno Haible  <bruno@clisp.org>
16641
16642         Tests for module 'memcoll'.
16643         * modules/memcoll-tests: New file.
16644         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
16645
16646         memcoll, xmemcoll: Clarify size vs. length.
16647         * modules/memcoll.c (memcoll0): Clarify specification.
16648         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
16649         passed to collate_error.
16650
16651 2010-09-22  Bruno Haible  <bruno@clisp.org>
16652
16653         Tests for module 'memcasecmp'.
16654         * modules/memcasecmp-tests: New file.
16655         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
16656
16657 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16658
16659         * lib/pthread.in.h: Add split double-inclusion guard, and include
16660         system <pthread.h> if there is one.  Use @@-style as in other
16661         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
16662         pthread.h doesn't.
16663         (pthread_mutexattr_destroy, pthread_mutexattr_init):
16664         (pthread_mutexattr_settype, pthread_mutex_trylock):
16665         New static inline functions, if there's no system <pthread.h>.
16666         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
16667         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
16668         Approximate with mutexes if the system lacks spinlocks, as in
16669         MacOS.
16670         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
16671         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
16672         @@-style.  Check for spinlocks separately.
16673         (gl_PTHREAD_DEFAULTS): New macro.
16674         * modules/pthread: Redo to use a more typical style for in.h files.
16675
16676 2010-09-21  Eric Blake  <eblake@redhat.com>
16677
16678         net_if: enhance tests
16679         * tests/test-net_if.c (main): Move signature checks earlier.
16680         Print failures to stderr.
16681         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
16682         Document the bug that we do not yet fix.
16683
16684 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16685
16686         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
16687         about gnulib, not GSS.
16688
16689 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16690
16691         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
16692         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
16693         for Emacs.
16694         * build-aux/pmccabe2html: Make Makefile.am example code more
16695         cut-and-paste friendly.
16696
16697 2010-09-21  Simon Josefsson  <simon@josefsson.org>
16698
16699         * tests/test-net_if.c: New file.
16700         * modules/net_if-tests: New file.
16701
16702 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16703
16704         pthread: add pthread_spin_destroy
16705         * lib/pthread.in.h (pthread_spin_destroy): New function.
16706
16707 2010-09-19  Bruno Haible  <bruno@clisp.org>
16708
16709         gnulib-tool: Fix --help output.
16710         * gnulib-tool (func_usage): Fix help message.
16711         Reported by Reuben Thomas <rrt@sc3d.org>.
16712
16713 2010-09-18  Jim Meyering  <meyering@redhat.com>
16714
16715         maint.mk: avoid unexpanded \n in two diagnostics
16716         * top/maint.mk (sc_prohibit_always_true_header_tests):
16717         Don't use a literal \n in a halt=... assignment.  It would not be
16718         expanded, and the two \n bytes would appear in the diagnostic output
16719         rather than the desired newline.  Use halt=$$(printf ... instead.
16720         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16721
16722 2010-09-18  Bruno Haible  <bruno@clisp.org>
16723
16724         netinet_in: Doc tweak.
16725         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
16726         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16727
16728 2010-09-18  Jim Meyering  <meyering@redhat.com>
16729
16730         init.sh: correct an outdated comment
16731         * tests/init.sh (create_exe_shims_):  s/function/alias/
16732
16733         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
16734         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
16735         a file named "*.exe" is removed between the glob expansion and the
16736         processing of that oddly named file.
16737
16738 2010-09-17  Eric Blake  <eblake@redhat.com>
16739
16740         mirbsd: add some more support
16741         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
16742         in BSD family.
16743         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
16744         devices as OpenBSD.
16745         * m4/host-os.m4 (mirbsd): Add MirBSD.
16746
16747         tests: fix unportable assumption on sys/wait.h
16748         * tests/test-sys_wait.c (main): Relax test.
16749         * tests/test-stdlib.c (main): Likewise.
16750
16751         init.sh: accomodate directory with no .exes
16752         * tests/init.sh: Accomodate directory containing only scripts.
16753
16754         tests: avoid compiler warning
16755         * tests/test-stdlib.c (main): Use the variable.
16756
16757         fdutimens, fdutimensat: update signature, again
16758         * lib/utimens.h (gl_futimens): Delete, and move signature...
16759         (fdutimens): ...here.
16760         (fdutimensat): Rearrange signature.
16761         (lutimensat): Rename variable for clarity.
16762         * lib/fdutimensat.c (fdutimensat): Update signature.
16763         * lib/utimens.c (fdutimens): Likewise.
16764         (gl_futimens): Delete.
16765         (utimens, lutimens): Update callers.
16766         * lib/futimens.c (futimens): Likewise.
16767         * tests/test-fdutimensat.c: Likewise.
16768         * tests/test-utimens.c: Likewise.
16769         * tests/test-futimens.h: Update comment.
16770         * NEWS: Mention this.
16771         Suggested by Paul Eggert.
16772
16773 2010-09-17  Bruno Haible  <bruno@clisp.org>
16774
16775         Take over the maintenance of some older macros from Autoconf.
16776         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
16777         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
16778         GNU Autoconf.
16779         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
16780         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
16781
16782 2010-09-17  Eric Blake  <eblake@redhat.com>
16783
16784         fdutimensat: drop atflag validation
16785         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
16786         with valid fd, to close a race scenario where futimens is
16787         unsupported and FILE was replaced by a symlink.
16788         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
16789         accordingly.
16790         Suggested by Paul Eggert.
16791
16792 2010-09-16  Bruno Haible  <bruno@clisp.org>
16793
16794         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
16795         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
16796
16797 2010-09-16  Bruno Haible  <bruno@clisp.org>
16798
16799         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
16800         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
16801         login_tty exists.
16802         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16803
16804 2010-09-16  Bruno Haible  <bruno@clisp.org>
16805
16806         login_tty: Make the replacement code work on BSD systems.
16807         * lib/login_tty.c: Include <sys/ioctl.h>.
16808         (login_tty): Use ioctl TIOCSCTTY when available.
16809         * modules/login_tty (Depends-on): Add sys_ioctl.
16810         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16811
16812 2010-09-16  Bruno Haible  <bruno@clisp.org>
16813
16814         login_tty: Stricter unit test.
16815         * modules/login_tty-tests (Depends-on): Add tcgetsid.
16816         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
16817         and tcgetsid() after login_tty.
16818         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16819
16820 2010-09-16  Bruno Haible  <bruno@clisp.org>
16821
16822         New module 'tcgetsid'.
16823         * lib/tcgetsid.c: New file.
16824         * m4/tcgetsid.m4: New file.
16825         * modules/tcgetsid: New file.
16826         * modules/termios (Depends-on): Add c++defs, warn-on-use.
16827         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
16828         GNULIB_TCGETSID, HAVE_TCGETSID.
16829         * lib/termios.in.h: Include <sys/types.h>.
16830         (tcgetsid): New declaration.
16831         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
16832         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
16833         * doc/posix-functions/tcgetsid.texi: Mention the new module.
16834         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
16835
16836 2010-09-16  Bruno Haible  <bruno@clisp.org>
16837
16838         Tests for module 'termios'.
16839         * modules/termios-c++-tests: New file.
16840         * modules/termios-tests: New file.
16841         * tests/test-termios-c++.cc: New file.
16842         * tests/test-termios.c: New file.
16843
16844         New module 'termios'.
16845         * modules/termios: New file.
16846         * lib/termios.in.h: New file.
16847         * m4/termios_h.m4: New file.
16848         * doc/posix-headers/termios.texi: Mention the new module.
16849
16850 2010-09-16  Eric Blake  <eblake@redhat.com>
16851
16852         fdutimensat: add an atflag parameter
16853         * lib/fdutimensat.c (fdutimensat): Add new parameter.
16854         * lib/utimens.h (fdutimensat): Update prototype.
16855         * tests/test-fdutimensat.c: Adjust test to match.
16856         * NEWS: Document the change.
16857         Suggested by Paul Eggert.
16858
16859 2010-09-16  Bruno Haible  <bruno@clisp.org>
16860
16861         Fix typos in comments.
16862         * lib/striconveh.h: Fix typo in comment.
16863         * lib/login_tty.c (login_tty): Likewise.
16864
16865 2010-09-15  Bruno Haible  <bruno@clisp.org>
16866
16867         stdlib: clarify MirBSD WEXITSTATUS bug
16868         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
16869         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16870
16871 2010-09-15  Eric Blake  <eblake@redhat.com>
16872
16873         stdlib: work around MirBSD WEXITSTATUS bug
16874         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
16875         * modules/stdlib (Depends-on): Add sys_wait.
16876         * tests/test-sys_wait.c (main): Enhance test.
16877         * tests/test-stdlib.c (main): Likewise.
16878         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
16879
16880         docs: mention MacOS issue with WEXITSTATUS(constant)
16881         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
16882         issue.
16883         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16884
16885         strnlen: add tests
16886         * modules/strnlen-tests: New file.
16887         * tests/test-strnlen.c: Likewise.
16888
16889 2010-09-14  Bruno Haible  <bruno@clisp.org>
16890
16891         unistr/base: Avoid link errors when module 'libunistring' is also used.
16892         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
16893         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
16894         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
16895         Declare also when HAVE_LIBUNISTRING is set.
16896         Reported by Pádraig Brady <P@draigbrady.com>.
16897
16898 2010-09-14  Eric Blake  <eblake@redhat.com>
16899
16900         test-rawmemchr: make more robust
16901         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
16902         (Depends-on, configure.ac): Add needed prerequisites to use it.
16903         * modules/memchr-tests (Files, Depends-on, configure.ac):
16904         Likewise, to avoid implicit reliance on memchr module prereqs.
16905         * tests/test-memchr.c (main): Ensure proper masking.
16906         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
16907         reads.
16908
16909         memchr: detect glibc Alpha bug
16910         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
16911         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
16912         Alpha.
16913         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
16914         * tests/test-memchr.c (main): Enhance test.
16915         Reported by Nelson H. F. Beebe.
16916
16917 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16918
16919         fts, getcwd, glob: audit for dirfd returning -1
16920         * lib/fts.c (opendir): Remove #define; no longer used.
16921         (opendirat): New arg PDIR_FD.  All callers changed.
16922         (fts_build, _opendir2): Use new opendirat to avoid the need for
16923         dirfd, or for checking whether dirfd returns a negative value.
16924         Don't use opendir; always use openat followed by fdopendir.
16925         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
16926         it.
16927         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
16928         returns -1 here.
16929         * modules/fts (Depends-on): Remove dirfd.
16930         * modules/getcwd (Depends-on): Likewise.
16931
16932 2010-09-13  Eric Blake  <eblake@redhat.com>
16933
16934         float: fix broken MirBSD header
16935         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
16936         * doc/posix-headers/float.texi (float.h): Document it.
16937
16938 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16939
16940         fts: use O_NOFOLLOW to avoid race condition when opening a directory
16941         * lib/fts.c (opendirat): New arg extra_flags.
16942         (__opendir2): Use it to avoid following symlinks when opening
16943         a directory, if symlinks are not supposed to be followed.  See
16944         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
16945
16946         fdopendir: preserve argument fd before returning
16947         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
16948         (fdopendir_with_dup, fd_clone_opendir): New static functions.
16949         (fdopendir): Use them, arranging for FD to be open to the same
16950         directory that it was when it started.  (It might be temporarily
16951         closed while fdopendir is running, so this not thread- or
16952         signal-safe.)  Be careful to do the right thing even when file
16953         descriptors are scarce and dup fails with errno == EMFILE.  See
16954         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
16955
16956 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
16957
16958         regex: Pass the system regex if its only problem is 32-bit regoff_t.
16959         * NEWS: Document change.
16960         * m4/regex.m4: Disable test for regoff_t size.
16961
16962 2010-09-13  Jim Meyering  <meyering@redhat.com>
16963
16964         fts: don't operate on an invalid file descriptor after failed dup
16965         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
16966         negative file descriptor.
16967
16968 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16969
16970         savedir: add streamsavedir, deprecate fdsavedir
16971         * NEWS: Mention deprecation of fdsavedir.
16972         * lib/savedir.c (streamsavedir): New extern function, whose name
16973         ends in "savedir" to be consistent with the others.  This differs
16974         from savedirstream in that it doesn't close its argument.  The
16975         next version of GNU tar will use this instead of fdsavedir, to
16976         avoid some race conditions and conserve file descriptors.
16977         (savedirstream): Reimplement as a wrapper around streamsavedir.
16978         (fdsavedir): Add a comment deprecating this function.  As far as
16979         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16980         * lib/savedir.h (streamsavedir): New decl.
16981         (fdsavedir): Add a comment deprecating this.
16982
16983 2010-09-10  Bruno Haible  <bruno@clisp.org>
16984
16985         langinfo: Fix last commit.
16986         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16987         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16988         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16989
16990 2010-09-10  Bruno Haible  <bruno@clisp.org>
16991
16992         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16993         * lib/progreloc.c (O_EXEC): Define fallback.
16994
16995 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16996
16997         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16998         * NEWS: Document recent changes to fcntl-h.
16999         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
17000         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
17001         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
17002         Similarly for O_SEARCH; this last was already true, but not documented.
17003         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
17004         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
17005         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
17006         Likewise.
17007         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
17008         is zero, not whether it is defined.
17009         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
17010         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
17011         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
17012
17013 2010-09-10  Bruno Haible  <bruno@clisp.org>
17014
17015         langinfo, nl_langinfo: Fix for IRIX 5.3.
17016         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
17017         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
17018         HAVE_LANGINFO_YESEXPR.
17019         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
17020         HAVE_LANGINFO_YESEXPR.
17021         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
17022         HAVE_LANGINFO_T_FMT_AMPM is 0.
17023         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
17024         HAVE_LANGINFO_YESEXPR is 0.
17025         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
17026         NOEXPR.
17027         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
17028         * doc/posix-functions/nl_langinfo.texi: Likewise.
17029         Reported by Eric Blake.
17030
17031 2010-09-10  Bruno Haible  <bruno@clisp.org>
17032
17033         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
17034         * doc/glibc-functions/login_tty.texi: Mention the include file problem
17035         on FreeBSD 8.0 and OpenBSD 4.6.
17036         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
17037         * m4/pty_h.m4 (gl_PTY_H): Likewise.
17038         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
17039         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
17040         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
17041         ac_includes_default.
17042         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17043
17044 2010-09-09  Eric Blake  <eblake@redhat.com>
17045
17046         strsignal: work around NetBSD bug
17047         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
17048         * lib/string.in.h (includes): Likewise.
17049         * doc/posix-functions/strsignal.texi (strsignal): Document the
17050         bug.
17051         Reported by Nelson H. F. Beebe.
17052
17053         gnulib-tool: work with NetBSD /bin/sh
17054         * gnulib-tool (func_cache_var, func_cache_lookup_module)
17055         (func_get_description, func_get_comment, func_get_status)
17056         (func_get_notice, func_get_applicability, func_get_filelist)
17057         (func_get_dependencies, func_get_autoconf_early_snippet)
17058         (func_get_autoconf_snippet, func_get_automake_snippet)
17059         (func_get_include_directive, func_get_link_directive)
17060         (func_get_license, func_get_maintainer, func_import): Avoid
17061         shell syntax errors from parsing syntax extensions.
17062
17063 2010-09-09  Bruno Haible  <bruno@clisp.org>
17064
17065         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17066         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
17067         a reliable way to determine whether the 'alias' command works.
17068
17069 2010-09-08  Jim Meyering  <meyering@redhat.com>
17070
17071         init.sh: penalize a set-x-impaired shell; don't disqualify it
17072         * tests/init.sh: Too many shells corrupt application stderr when
17073         you set -x, so we can't afford to disqualify them, since at least
17074         on Irix-6.5, that would disqualify all bourne shells.
17075         Instead, use a two-pass approach.
17076         On the first pass, try to find a shell that meets the stricter
17077         condition that set -x does not corrupt stderr.
17078         If no shell meets the stricter condition, retest each candidate
17079         shell, but without that extra condition.  Finally, when
17080         VERBOSE=yes is requested and set -x might cause trouble, simply
17081         issue a warning and refrain from enabling debug output.
17082
17083 2010-09-08  Eric Blake  <eblake@redhat.com>
17084
17085         unsetenv: fix OpenBSD bug
17086         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
17087         * doc/posix-functions/unsetenv.texi (unsetenv): Update
17088         documentation.
17089         Reported by Jim Meyering.
17090
17091         strtod: work around IRIX 6.5 bug
17092         * lib/strtod.c (strtod): Reparse number on shorter string if
17093         exponent parse was invalid.
17094         * tests/test-strtod.c (main): Add check for "0x1p 2".
17095         Reported by Tom G. Christensen.
17096
17097         getopt: optimize previous patch
17098         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
17099         empty variable.  Speed up awk script.
17100         Reported by Paolo Bonzini.
17101
17102 2010-09-08  Jim Meyering  <meyering@redhat.com>
17103
17104         test.sh: disqualify shells for which set -x corrupts stderr
17105         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
17106         and OpenBSD 4.7.  They make it so with "set -x", environment settings
17107         appear in stderr output.  For example, this command:
17108             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
17109         prints "P=1" on those two systems:
17110
17111 2010-09-08  Bruno Haible  <bruno@clisp.org>
17112
17113         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17114         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
17115         commands, because some shells ignore redirections when there is an
17116         error in the command lookup.
17117         Reported by Eric Blake.
17118
17119 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
17120
17121         * lib/regex.h: Fix a mention of `regex_compile' (should be
17122         `re_compile_pattern').
17123         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
17124         (re_set_registers): Correct name of parameter in comment.
17125
17126         * doc/regex.texi: Add documentation for missing syntax flags.
17127         Remove commented-out documentation of defunct syntax option
17128         RE_NO_EMPTY_ALTS.
17129         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
17130         Add documentation of re_set_registers.
17131         Document trick to re-use a pattern buffer by setting fastmap manually.
17132         Update documentation of struct re_pattern_buffer per public members.
17133         Uncomment documentation of equivalence class operators and
17134         collating symbol operators, since they are now implemented,
17135         Explain leftmost-longest matching in relation to alternatives.
17136         Tidy documentation of substring matching.
17137         Remove POSIX documentation, which is done better in
17138         glibc, and refer the reader there. Keep BSD API documentation, as
17139         that is not readily available elsewhere.
17140
17141 2010-09-07  Eric Blake  <eblake@redhat.com>
17142
17143         getopt: handle POSIXLY_CORRECT set but not exported
17144         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
17145         export state of POSIXLY_CORRECT, due to bash set -o posix.
17146         Reported by Dustin J. Mitchell.
17147
17148 2010-09-05  Bruno Haible  <bruno@clisp.org>
17149
17150         gnulib-tool: Highlight the changed options.
17151         * gnulib-tool (func_usage): Display the --import, --add-import,
17152         --remove-import explanations in bold font.
17153
17154 2010-09-06  Karl Berry  <karl@gnu.org>
17155
17156         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
17157
17158 2010-09-05  Bruno Haible  <bruno@clisp.org>
17159
17160         uniwidth/width: Update comment.
17161         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
17162         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
17163
17164 2010-09-05  Bruno Haible  <bruno@clisp.org>
17165
17166         isinf, isnan: Relax license.
17167         * modules/isinf (License): Change from GPL to LGPL, with consent from
17168         Ben Pfaff.
17169         * modules/isnan (License): Likewise.
17170         Requested by Ludovic Courtès.
17171
17172 2010-09-04  Bruno Haible  <bruno@clisp.org>
17173
17174         gnulib-tool: Help migration from --import to --add-import or --update.
17175         * gnulib-tool: Emit a verbose error message when --import is used
17176         without any module name.
17177
17178 2010-09-04  Bruno Haible  <bruno@clisp.org>
17179
17180         Update doc about gnulib-tool.
17181         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
17182         'gnulib-tool --update' in more detail.
17183         Reported by Eric Blake.
17184
17185 2010-09-04  Bruno Haible  <bruno@clisp.org>
17186
17187         gnulib-tool: Change --import. New options --add/remove-import.
17188         * gnulib-tool: New options --add-import, --remove-import.
17189         (func_usage): Document them.
17190         (have_associative): Define always.
17191         (func_import): In import mode, don't merge the specified settings with
17192         the cached settings. Implement remove-import mode.
17193         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
17194         Explain when to use them versus --import.
17195         (Simple update): Use --add-import instead of --import.
17196         * NEWS: Mention the change.
17197
17198 2010-09-04  Bruno Haible  <bruno@clisp.org>
17199
17200         * doc/gnulib-tool.texi (Initial import): Update paragraph about
17201         separate gnulib.mk.
17202
17203 2010-09-04  Bruno Haible  <bruno@clisp.org>
17204
17205         gnulib-tool: Don't talk about CVS any more.
17206         * gnulib-tool (func_usage, func_import): Write "version control"
17207         instead of CVS.
17208
17209 2010-09-04  Jim Meyering  <meyering@redhat.com>
17210
17211         maint.mk: avoid obscure sc_copyright_check failure in coreutils
17212         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
17213         false positives (whose names may be ill-chosen) when searching
17214         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
17215         would cause a false-positive.
17216
17217         avoid coreutils "make distcheck" failure
17218         Coreutils tests with an absolute build directory name that contains
17219         a space.  Not quoting this directory name caused a failure.
17220         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
17221         * tests/test-vc-list-files-cvs.sh: Likewise.
17222
17223 2010-09-04  Bruno Haible  <bruno@clisp.org>
17224
17225         gnulib-tool: Avoid error when run in a package without Makefile.am.
17226         * gnulib-tool: When collecting the m4dirs in a package that does not
17227         have a Makefile.am, eliminate those directories that contain no
17228         gnulib-cache.m4. Fix expression that counts these directories.
17229
17230 2010-09-04  Bruno Haible  <bruno@clisp.org>
17231
17232         update-copyright test: Improve output when perl is missing or too old.
17233         * tests/test-update-copyright.sh: Move test of Perl version down after
17234         the test whether Perl exists. Provide an explanation relating Perl's
17235         error message to Automake's SKIP: message.
17236
17237 2010-09-04  Bruno Haible  <bruno@clisp.org>
17238
17239         Don't augment PATH in TESTS_ENVIRONMENT.
17240         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
17241         set abs_aux_dir instead of augmenting PATH.
17242         * modules/vc-list-files-tests (Makefile.am): Likewise.
17243         * tests/test-update-copyright.sh: Augment PATH here.
17244         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
17245         path_prepend_.
17246         * tests/test-vc-list-files-git.sh: Likewise.
17247
17248 2010-09-04  Jim Meyering  <meyering@redhat.com>
17249
17250         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
17251         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
17252
17253 2010-09-04  Bruno Haible  <bruno@clisp.org>
17254
17255         strdup: Fix compilation error in C++ mode.
17256         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
17257         the macro.
17258
17259 2010-09-04  Bruno Haible  <bruno@clisp.org>
17260
17261         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
17262         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
17263         macro into a function.
17264         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17265
17266 2010-09-04  Bruno Haible  <bruno@clisp.org>
17267
17268         Set PATH_SEPARATOR the same way autoconf does.
17269         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
17270         the value of PATH_SEPARATOR the same way autoconf-generated configure
17271         scripts do.
17272         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
17273         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17274
17275 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17276
17277         Set PATH_SEPARATOR the same way autoconf does.
17278         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
17279         the same way autoconf-generated configure scripts do.
17280         * posix-modules: Likewise.
17281
17282 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17283
17284         hash: fix safe_hasher const typo
17285         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
17286         const; otherwise, there is a type error later.
17287
17288 2010-09-02  Jim Meyering  <meyering@redhat.com>
17289
17290         test-update-copyright.sh: require perl 5.8.0
17291         * tests/test-update-copyright.sh: Require 5.8.0,
17292         which Tom G. Christensen has confirmed is adequate,
17293         while 5.6.1 is not.
17294
17295 2010-09-02  Eric Blake  <eblake@redhat.com>
17296
17297         tests: init.sh improvements for re-exec'ing with zsh
17298         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
17299         -vx through shell re-exec.
17300         Reported by Tom G. Christensen.
17301
17302         wctype: fix typo in previous commit
17303         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
17304         Reported by Ludovic Courtès.
17305
17306 2010-09-02  Jim Meyering  <meyering@redhat.com>
17307
17308         test-update-copyright.sh: skip test if Perl is too old
17309         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
17310         Reported by Tom G. Christensen.
17311
17312 2010-09-02  Bruno Haible  <bruno@clisp.org>
17313
17314         wctype: Avoid compilation error on IRIX 6.5.30.
17315         * lib/wctype.in.h (iswblank): Declare with a replacement if
17316         REPLACE_ISWBLANK is set.
17317         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
17318         declared. Set REPLACE_ISWBLANK.
17319         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
17320         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
17321         * doc/posix-headers/wctype.texi: Likewise.
17322         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17323
17324 2010-09-01  Bruno Haible  <bruno@clisp.org>
17325
17326         New module 'socketlib'.
17327         * modules/socketlib: New file.
17328         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
17329         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
17330         * modules/sockets (Depends-on): Add socketlib.
17331         Suggested by Sam Steingold <sds@gnu.org>.
17332
17333 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17334
17335         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
17336
17337         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
17338         when one needs search access to a directory but not read access.
17339         On systems where it is available, it works in some cases where
17340         O_RDONLY does not, namely on directories that are searchable but
17341         not readable, and which need only to be searchable.  If O_SEARCH
17342         is not available, fall back to the traditional method of using
17343         O_RDONLY.
17344
17345         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
17346         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
17347         when opening a directory that needs only to be searchable.
17348         * lib/chdir-safer.c (chdir_no_follow): Likewise.
17349         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
17350         * lib/openat-proc.c (openat_proc_name): Likewise.
17351         * lib/openat.c (openat_needs_fchdir): Likewise.
17352         * lib/save-cwd.c (save_cwd): Likewise.
17353         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
17354
17355 2010-08-28  Bruno Haible  <bruno@clisp.org>
17356
17357         New module 'host-cpu-c-abi'.
17358         * modules/host-cpu-c-abi: New file.
17359         * m4/host-cpu-c-abi.m4: New file, based on part of
17360         clisp/src/m4/general.m4.
17361         Requested by Sam Steingold <sds@gnu.org>.
17362
17363 2010-08-31  Eric Blake  <eblake@redhat.com>
17364         and Jim Meyering  <meyering@redhat.com>
17365
17366         hash: factor, and guard against misbehaving hasher function
17367         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
17368         of table->hasher's return value.  Also protect against a hash value
17369         so large that adding it to table->bucket results in a NULL pointer.
17370         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
17371         Use it in place of open-coded check-and-abort.
17372
17373 2010-08-30  Bruno Haible  <bruno@clisp.org>
17374
17375         hash: silence spurious clang warning
17376         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
17377         Reported by Eric Blake.
17378
17379 2010-08-30  Eric Blake  <eblake@redhat.com>
17380
17381         strstr, memmem, strcasestr: avoid leaked shell message
17382         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
17383         FreeBSD.
17384         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17385         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17386
17387         tests: silence clang warning
17388         * tests/test-malloca.c (do_allocation): Avoid dead store.
17389
17390 2010-08-29  Bruno Haible  <bruno@clisp.org>
17391
17392         gettext: Fix recent mistake.
17393         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
17394
17395 2010-08-29  Bruno Haible  <bruno@clisp.org>
17396
17397         selinux-h: Offer a --without-selinux option.
17398         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
17399         --without-selinux was specified, skip all tests and define
17400         HAVE_SELINUX_SELINUX_H to 0.
17401         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
17402         set LIB_SELINUX to empty.
17403         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
17404         gl_LIBSELINUX. If --without-selinux was specified, replace
17405         selinux/context.h.
17406         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
17407
17408 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17409             Bruno Haible  <bruno@clisp.org>
17410
17411         Make the module 'realloc-gnu' work again on AIX and OSF/1.
17412         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
17413         of HAVE_REALLOC.
17414         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
17415         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
17416         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
17417         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17418
17419 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17420             Bruno Haible  <bruno@clisp.org>
17421
17422         Make the module 'calloc-gnu' work again on AIX and OSF/1.
17423         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
17424         HAVE_CALLOC.
17425         * lib/xmalloc.c: Update accordingly.
17426         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
17427         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
17428         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17429
17430 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17431             Bruno Haible  <bruno@clisp.org>
17432
17433         Make the module 'malloc-gnu' work again on AIX and OSF/1.
17434         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
17435         HAVE_MALLOC.
17436         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
17437         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
17438         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17439
17440 2010-08-29  Bruno Haible  <bruno@clisp.org>
17441
17442         Update modules list.
17443         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
17444         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
17445         (String handling <string.h>): Add astrxfrm.
17446         (File system functions): Add readlinkat.
17447
17448 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17449
17450         Tests for module 'realloc-gnu'.
17451         * modules/realloc-gnu-tests: New file.
17452         * tests/test-realloc-gnu.c: New file.
17453
17454         Tests for module 'calloc-gnu'.
17455         * modules/calloc-gnu-tests: New file.
17456         * tests/test-calloc-gnu.c: New file.
17457
17458         Tests for module 'malloc-gnu'.
17459         * modules/malloc-gnu-tests: New file.
17460         * tests/test-malloc-gnu.c: New file.
17461
17462 2010-08-28  Bruno Haible  <bruno@clisp.org>
17463
17464         Rename module 'realloc' -> 'realloc-gnu'.
17465         * modules/realloc-gnu: New file, copied from modules/realloc.
17466         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
17467         obsolete.
17468         * modules/mgetgroups (Depends-on): Update.
17469         * doc/posix-functions/realloc.texi: Update.
17470         * NEWS: Mention the change.
17471
17472         Rename module 'calloc' -> 'calloc-gnu'.
17473         * modules/calloc-gnu: New file, copied from modules/calloc.
17474         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
17475         obsolete.
17476         * doc/posix-functions/calloc.texi: Update.
17477         * NEWS: Mention the change.
17478
17479         Rename module 'malloc' -> 'malloc-gnu'.
17480         * modules/malloc-gnu: New file, copied from modules/malloc.
17481         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
17482         obsolete.
17483         * modules/argp (Depends-on): Update.
17484         * modules/regex (Depends-on): Update.
17485         * doc/posix-functions/malloc.texi: Update.
17486         * NEWS: Mention the change.
17487
17488 2010-08-28  Eric Blake  <eblake@redhat.com>
17489
17490         pread, pwrite: add missing dependency
17491         * modules/pread (Depends-on): Add extensions.
17492         * modules/pwrite (Depends-on): Likewise.
17493
17494 2010-08-28  Bruno Haible  <bruno@clisp.org>
17495
17496         unistr/u*-strchr: Fix tests dependencies.
17497         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
17498         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
17499         Reported by Ian Beckwith <ianb@erislabs.net>.
17500
17501 2010-08-28  Bruno Haible  <bruno@clisp.org>
17502
17503         read-file: Don't occupy too much unused memory.
17504         * lib/read-file.c (fread_file): Shrink the buffer at the end.
17505
17506 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
17507             Eric Blake  <eblake@redhat.com>
17508             Bruno Haible  <bruno@clisp.org>
17509
17510         read-file: Avoid memory reallocations with regular files.
17511         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
17512         (fread_file): With regular files, use the remaining length as the
17513         initial buffer size.  Check against overflow.
17514         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
17515         sys_stat.
17516
17517 2010-08-28  Bruno Haible  <bruno@clisp.org>
17518
17519         ftello: Relax license.
17520         * modules/ftello (License): Relax to LGPLv2+.
17521         Reported by Eric Blake.
17522
17523 2010-08-28  Bruno Haible  <bruno@clisp.org>
17524
17525         Avoid relocwrapper link errors due to gnulib replacement functions.
17526         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
17527         function.
17528         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17529
17530 2010-08-28  Bruno Haible  <bruno@clisp.org>
17531
17532         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
17533         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
17534         defined.
17535         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
17536         Suggested by Eric Blake.
17537
17538 2010-08-28  Bruno Haible  <bruno@clisp.org>
17539
17540         sys_socket, netdb: Ensure socklen_t gets defined.
17541         * modules/sys_socket (Depends-on): Add socklen.
17542         * modules/netdb (Depends-on): Likewise.
17543         * modules/getaddrinfo (Depends-on): Remove socklen.
17544         * modules/getsockopt (Depends-on): Likewise.
17545         * modules/setsockopt (Depends-on): Likewise.
17546         * tests/test-sys_socket.c: Check that socklen_t is defined.
17547         * tests/test-netdb.c: Likewise.
17548         * m4/socklen.m4: Update comments.
17549         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17550
17551 2010-08-27  Eric Blake  <eblake@redhat.com>
17552
17553         login_tty: add missing dependency
17554         * modules/login_tty (Depends-on): Add pty.
17555
17556 2010-08-26  Eric Blake  <eblake@redhat.com>
17557
17558         lib-symbol-versions: fix m4 quoting
17559         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
17560         format for AC_LINK_IFELSE.
17561
17562         glob: fix compile test
17563         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
17564
17565         btowc: fix missing file
17566         * modules/btowc (Files): Also ship locale-fr.m4.
17567
17568         lseek: fix link test
17569         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
17570         AC_LINK_IFELSE.
17571
17572         include_next: silence autoconf 2.68 warning
17573         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
17574         AC_COMPILE_IFELSE as special.
17575         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
17576         autoconf < 2.68.
17577
17578         acl: fix compilation test
17579         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
17580         AC_COMPILE_IFELSE.
17581
17582 2010-08-26  Bruno Haible  <bruno@clisp.org>
17583
17584         Modernize AC_TRY_RUN invocations.
17585         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
17586         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17587         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
17588         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
17589         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
17590         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17591         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17592         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17593         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17594         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17595         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17596         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17597         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17598         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17599         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17600         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17601         gl_MBRLEN_NUL_RETVAL): Likewise.
17602         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17603         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17604         Likewise.
17605         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17606         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17607         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17608         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17609         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
17610         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
17611         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
17612         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
17613         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
17614         Likewise.
17615         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17616         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
17617         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17618         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17619         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17620         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17621         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17622         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
17623         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17624         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17625
17626 2010-08-26  Bruno Haible  <bruno@clisp.org>
17627
17628         Modernize AC_TRY_LINK invocations.
17629         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
17630         AC_TRY_LINK.
17631         * m4/argp.m4 (gl_ARGP): Likewise.
17632         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
17633         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17634         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
17635         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
17636         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
17637         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
17638         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
17639         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
17640         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
17641         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
17642         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
17643         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
17644         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
17645         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17646         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17647         * m4/hostent.m4 (gl_HOSTENT): Likewise.
17648         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17649         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
17650         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17651         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
17652         Likewise.
17653         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
17654         Likewise.
17655         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
17656         Likewise.
17657         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17658         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
17659         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
17660         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
17661         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
17662         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17663         * m4/servent.m4 (gl_SERVENT): Likewise.
17664         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
17665         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
17666         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
17667         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
17668         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17669         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17670         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17671         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17672         * modules/tsearch-tests (configure.ac): Likewise.
17673
17674 2010-08-26  Bruno Haible  <bruno@clisp.org>
17675
17676         Modernize AC_TRY_COMPILE invocations.
17677         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
17678         AC_TRY_COMPILE.
17679         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
17680         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
17681         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17682         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
17683         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17684         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17685         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17686         * m4/lock.m4 (gl_LOCK): Likewise.
17687         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
17688         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17689         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
17690         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17691         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17692         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
17693         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
17694         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
17695         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17696         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17697         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17698         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17699         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
17700         extraneous semicolon.
17701
17702 2010-08-26  Jim Meyering  <meyering@redhat.com>
17703
17704         stat-time: relax license LGPL
17705         * modules/stat-time (License): Change from GPL to LGPL,
17706         with consent from all contributors, for use in libguile.
17707         Requested by Ludovic Courtès.
17708
17709 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
17710
17711         poll: return immediately on POLLHUP.
17712         * lib/poll.c (poll): Always set timeout before wait_timeout is
17713         computed.
17714
17715 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17716
17717         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
17718         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
17719         rmdir ("dir/.//"), unlinkat.
17720
17721 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17722
17723         stdbool: avoid spurious failure with modern xlc
17724         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17725
17726 2010-08-24  Bruno Haible  <bruno@clisp.org>
17727
17728         getloadavg: simplify code
17729         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
17730         gl_have_func. Update comments.
17731
17732 2010-08-24  Eric Blake  <eblake@redhat.com>
17733
17734         getloadavg: don't define SVR4 on cygwin
17735         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
17736         only define SVR4 when -lkvm is required.
17737         Reported by Yaakov Selkowitz.
17738
17739 2010-08-24  Bruno Haible  <bruno@clisp.org>
17740
17741         priv-set: fix comment
17742         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
17743
17744 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17745
17746         priv-set: fix comments
17747         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
17748         to match code, as suggested by David Bartley in:
17749         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
17750
17751 2010-08-23  Eric Blake  <eblake@redhat.com>
17752
17753         stdbool: avoid rejecting clang
17754         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17755         * tests/test-stdbool.c: Enable more tests if using the system
17756         <stdbool.h> instead of the gnulib replacement.
17757         (main): Move xlc bug test to a runtime test for all compilers.
17758         Reported by Anders Kaseorg.
17759
17760         argz: fix shell quoting issue
17761         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
17762         Reported by Charles Wilson.
17763
17764 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
17765             Erik Faye-Lund <kusmabite@gmail.com>
17766
17767         poll, select: handle ERROR_BROKEN_PIPE.
17768         * lib/poll.c (win32_compute_revents): Return POLLHUP when
17769         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17770         * lib/select.c (win32_compute_revents): Do not mark a pipe
17771         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17772
17773 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
17774
17775         fts: allow compilation with C++
17776         * lib/fts_.h: Specify extern "C" linkage with C++.
17777
17778 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17779
17780         Fix gnulib-tool sed script de-commentation for AIX sed.
17781         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
17782         sed.
17783
17784 2010-08-17  Eric Blake  <eblake@redhat.com>
17785
17786         test-stddef: test for (some) offsetof bugs
17787         * tests/test-stddef.c: Enhance test to ensure correct type of
17788         offsetof.
17789         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
17790         that we are not fixing at this time.
17791
17792 2010-08-15  Bruno Haible  <bruno@clisp.org>
17793
17794         stpncpy: Allow stpncpy to be defined as a macro.
17795         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
17796         if it's already correctly declared.
17797         * lib/string.in.h (stpncpy): Undefine before redefining.
17798         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
17799
17800 2010-08-14  Bruno Haible  <bruno@clisp.org>
17801
17802         Rename module 'memxfrm' to 'amemxfrm'.
17803         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
17804         (amemxfrm): Renamed from memxfrm.
17805         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
17806         (amemxfrm): Renamed from memxfrm.
17807         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
17808         * NEWS: Mention the change.
17809         * MODULES.html.sh (String handling <string.h>): Update.
17810         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
17811         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
17812         * lib/unicase/u16-casexfrm.c: Likewise.
17813         * lib/unicase/u32-casexfrm.c: Likewise.
17814         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
17815         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
17816         * lib/uninorm/u16-normxfrm.c: Likewise.
17817         * lib/uninorm/u32-normxfrm.c: Likewise.
17818         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
17819         memxfrm.
17820         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
17821         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
17822         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
17823         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
17824         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
17825         Suggested by Paul Eggert.
17826
17827 2010-08-14  Bruno Haible  <bruno@clisp.org>
17828
17829         Tests for module 'astrxfrm'.
17830         * modules/astrxfrm-tests: New file.
17831         * tests/test-astrxfrm.c: New file.
17832
17833         New module 'astrxfrm'.
17834         * lib/astrxfrm.h: New file.
17835         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
17836         * modules/astrxfrm: New file.
17837
17838 2010-08-14  Reuben Thomas <rrt@sc3d.org>
17839
17840         regex: Tweak doc.
17841         * doc/regex.texi (Overview): Don't mention regex.c.
17842         (GNU Regular Expression Compiling): Likewise.
17843         (Match-end-of-line Operator): Mention 'not_eol'.
17844
17845 2010-08-14  Brian Gough  <bjg@gnu.org>
17846             Bruno Haible  <bruno@clisp.org>
17847
17848         git-merge-changelog: add doc relating to use with bzr and hg.
17849         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
17850
17851 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
17852
17853         pthread: fix pthread.h creation for srcdir != builddir
17854         * modules/pthread (Makefile.am): Fix the rule to work also in a
17855         non-srcdir build.
17856
17857 2010-08-13  Karl Berry  <karl@gnu.org>
17858
17859         * doc/regex.texi (Predefined Syntaxes): @smallexample.
17860         * doc/posix-*/*: force line break before @url of POSIX
17861         specifications.
17862         Suggested by Werner Lemberg.
17863
17864 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17865
17866         strtod: fix const diagnostic
17867         * lib/strtod.c (strtod): Don't assign const char * to char *,
17868         as this elicits a warning from GCC when warnings are enabled.
17869
17870 2010-08-10  Pádraig Brady <P@draigbrady.com>
17871         and Eric Blake  <eblake@redhat.com>
17872
17873         copy-acl: ignore ENOTSUP on HP-UX
17874         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
17875         so that it is available for HP-UX.
17876         * lib/copy-acl.c (qcopy_acl): Use it.
17877         Reported by Patrick M. Callahan.
17878
17879 2010-08-10  Eric Blake  <eblake@redhat.com>
17880
17881         open, chown: relax license
17882         * modules/open (License): Change to LGPLv2+, with consent by all
17883         authors, for use in augeas.
17884         * modules/chown (License): Likewise.
17885         * modules/lchown (Likewise): Likewise.
17886         Requested by Adam Stokes.
17887
17888 2010-08-09  Karl Berry  <karl@gnu.org>
17889
17890         * build-aux/ar-lib: new file, import from Automake.
17891         * config/srclist.txt: autocheck for updates.
17892
17893 2010-08-09  Eric Blake  <eblake@redhat.com>
17894
17895         readlinkat: adjust client modules
17896         * modules/areadlinkat (Depends-on): Use readlinkat, not
17897         symlinkat.
17898         * modules/areadlinkat-with-size (Depends-on): Likewise.
17899
17900         mknod: be more vocal about danger of running tests as root
17901         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
17902         root, since that is just asking for problems.
17903         Suggested by Bruno Haible, based on a report by Rainer Tammer.
17904
17905         readlinkat: split into its own module
17906         * modules/symlinkat: Split readlinkat...
17907         * modules/readlinkat: ...into separate module.
17908         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
17909         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
17910         * lib/symlinkat.c (readlinkat): Move...
17911         * lib/readlinkat.c: ...into new file.
17912         * modules/symlinkat-tests: Split readlinkat test...
17913         * modules/readlinkat-tests: ...into separate module.
17914         * tests/test-symlinkat.c: Split...
17915         * tests/test-readlinkat.c: ...into new file.
17916         * NEWS: Document the split.
17917         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17918         * lib/unistd.in.h (readlinkat): Likewise.
17919         Suggested by Bruno Haible.
17920
17921 2010-08-08  Bruno Haible  <bruno@clisp.org>
17922
17923         memxfrm: Speed up.
17924         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
17925         that usually only one call to strxfrm is necessary for each string
17926         part.
17927         Reported by Paul Eggert <eggert@cs.ucla.edu>.
17928
17929 2010-08-07  Karl Berry  <karl@gnu.org>
17930
17931         * doc/posix-headers/limits.texi,
17932         * doc/posix-functions/malloc.texi,
17933         * doc/posix-functions/strsignal.texi: missing @item.
17934         * doc/ld-version-script.texi: spurious leading i.
17935         * doc/regex.texi (Interval Operators): no commas inside @var.
17936
17937 2010-08-01  Bruno Haible  <bruno@clisp.org>
17938
17939         Integrate the regex documentation.
17940         * doc/gnulib.texi: Define 'cn' index.
17941         (Regular expressions): New a chapter that includes regex.texi and
17942         regexprops-generic.texi.
17943         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
17944         syntax.
17945
17946         Whitespace cleanup.
17947         * doc/regex.texi: Remove trailing spaces.
17948
17949         Add regex documentation.
17950         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
17951         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
17952         Written by Kathy A. Hargreaves and Karl Berry.
17953
17954 2010-08-01  Bruno Haible  <bruno@clisp.org>
17955
17956         link: Update documentation.
17957         * doc/posix-functions/link.texi: Update regarding Solaris.
17958
17959 2010-07-31  Bruno Haible  <bruno@clisp.org>
17960
17961         Update modules list.
17962         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
17963         (String handling <string.h>): Add memcmp2, memxfrm.
17964         (Container data structures): Add xlist, xsublist, xoset.
17965         (Core language properties): Add alignof, unused-parameter.
17966         (Process control, Numeric conversion functions <stdlib.h>): Renamed
17967         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
17968         (Unibyte characters <ctype.h>): New section.
17969         (String handling <string.h>): New section.
17970         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
17971         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
17972         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
17973         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17974         tan, tanh, tanl, y0, y1, yn.
17975         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17976         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17977         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17978         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17979         unlockpt, vdprintf, vdprintf-posix.
17980         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17981         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17982         xconcat-filename.
17983         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17984         getdtablesize, pipe2, pipe2-safer.
17985         (Security): New section.
17986         (Networking functions): Add accept4.
17987         (Signal handling): Add sigpipe.
17988         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17989         mbmemcasecoll.
17990         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17991         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17992         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17993         pipe-filter-ii.
17994         (Misc): Add argp-version-etc, login_tty, parse-duration.
17995
17996 2010-07-31  Bruno Haible  <bruno@clisp.org>
17997
17998         Improve doc in MODULES.html.
17999         * modules/linkat (Description): Add the word "function".
18000         * modules/mkfifo (Description): Likewise.
18001         * modules/mknod (Description): Likewise.
18002         * modules/remove (Description): Likewise.
18003         * modules/renameat (Description): Likewise.
18004         * modules/stat (Description): Likewise.
18005         * modules/symlink (Description): Likewise.
18006         * modules/unlink (Description): Likewise.
18007
18008 2010-07-31  Bruno Haible  <bruno@clisp.org>
18009
18010         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
18011         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
18012         option --enable/disable-c++ instead of --enable/disable-cxx.
18013         * NEWS: Mention the change.
18014
18015 2010-07-31  Bruno Haible  <bruno@clisp.org>
18016
18017         readlink, areadlink: Relax test a bit.
18018         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
18019         alternative to ENOTDIR.
18020         * tests/test-areadlink.h (test_areadlink): Likewise.
18021         Reported by Rainer Tammer.
18022
18023 2010-07-31  Bruno Haible  <bruno@clisp.org>
18024
18025         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
18026         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
18027         character, perform the search using U_STRCHR.
18028         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
18029         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
18030         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
18031         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
18032         Suggested by Paolo Bonzini.
18033
18034 2010-07-31  Bruno Haible  <bruno@clisp.org>
18035
18036         unistr/u*-strstr: Fix dependencies.
18037         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
18038         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
18039         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
18040
18041 2010-07-31  Bruno Haible  <bruno@clisp.org>
18042
18043         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
18044         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
18045         the beginning of the loop.
18046         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
18047         cases in 'switch' statement.
18048
18049         unistr/u8-strchr: Fix several bugs.
18050         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
18051         the string. When not found, return NULL, not a pointer near the end.
18052
18053         More tests for unistr/u8-strchr.
18054         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
18055         that the function does not read past the first occurrence of the byte
18056         being searched.
18057         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
18058         * tests/unistr/test-u16-strchr.c (main): New function.
18059         * tests/unistr/test-u32-strchr.c (main): New function.
18060
18061 2010-07-31  Bruno Haible  <bruno@clisp.org>
18062
18063         posix-modules: Ignore backup files of documentation files.
18064         * posix-modules: grep only through files named *.texi.
18065
18066 2010-07-31  Bruno Haible  <bruno@clisp.org>
18067
18068         symlinkat: Fix documentation.
18069         * doc/posix-functions/readlinkat.texi: Fix module name.
18070
18071 2010-07-31  Bruno Haible  <bruno@clisp.org>
18072
18073         fchownat: Replace also when chown has the trailing slash bug.
18074         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
18075         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
18076         introduced on 2010-04-10.
18077         Reported by Rainer Tammer.
18078
18079 2010-07-31  Bruno Haible  <bruno@clisp.org>
18080
18081         linkat: Work around AIX 7.1 bug.
18082         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
18083         whether linkat handles trailing slash correctly. If not, replace linkat
18084         and define LINKAT_TRAILING_SLASH_BUG.
18085         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
18086         check whether (fd1,file1) points to a directory if file1 or file2 ends
18087         in a slash. Code taken from lib/link.c.
18088         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
18089         Reported by Rainer Tammer.
18090
18091 2010-07-31  Bruno Haible  <bruno@clisp.org>
18092
18093         Correctly determine whether pow is available in libc on AIX 7 with xlc.
18094         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
18095         This disables an xlc optimization that was causing wrong test results.
18096         Reported by Rainer Tammer.
18097
18098 2010-07-31  Bruno Haible  <bruno@clisp.org>
18099
18100         iconv: Work around AIX 6.1..7.1 bug.
18101         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
18102         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
18103         cross-compiling, guess no on all versions of AIX.
18104         Reported by Rainer Tammer.
18105
18106 2010-07-31  Bruno Haible  <bruno@clisp.org>
18107
18108         readlink: Relax test a bit.
18109         * tests/test-readlink.h (test_readlink): Allow different errno value
18110         when readlink is called with a file name that ends in / and refers to
18111         a file.
18112         Suggested by Eric Blake.
18113         Reported by Rainer Tammer.
18114
18115 2010-07-31  Bruno Haible  <bruno@clisp.org>
18116
18117         copysign: Does not require -lm on glibc systems.
18118         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
18119         gl_COMMON_DOUBLE_MATHFUNC.
18120         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
18121
18122 2010-07-31  Bruno Haible  <bruno@clisp.org>
18123
18124         duplocale: Work around AIX 7.1 bug.
18125         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
18126         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
18127         * lib/duplocale.c (rpl_duplocale): Update comment.
18128         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
18129         Reported by Rainer Tammer.
18130
18131 2010-07-30  Bruno Haible  <bruno@clisp.org>
18132
18133         dirfd: Avoid link error on AIX 7.1.
18134         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
18135         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
18136         exist, set REPLACE_DIRFD.
18137         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
18138         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
18139         * doc/posix-functions/dirfd.texi: Update.
18140         Reported by Rainer Tammer.
18141
18142 2010-07-30  Eric Blake  <eblake@redhat.com>
18143
18144         strtod: next round of AIX fixes
18145         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
18146         exponent.
18147         * tests/test-strtod.c (main): Enhance tests.
18148         * doc/posix-functions/strtod.texi (strtod): Document next bug.
18149         Reported by Rainer Tammer.
18150
18151         futimens: fix configure check
18152         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
18153         Reported by Bruno Haible.
18154
18155 2010-07-30  Bruno Haible  <bruno@clisp.org>
18156
18157         getline: Update regarding AIX.
18158         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
18159         Reported by Rainer Tammer.
18160
18161 2010-07-30  Bruno Haible  <bruno@clisp.org>
18162
18163         wcwidth: Drop replacement on AIX 7.
18164         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
18165         AIX 7.
18166         Reported by Rainer Tammer.
18167
18168 2010-07-30  Bruno Haible  <bruno@clisp.org>
18169
18170         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
18171         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
18172         a 'char *'.
18173         Reported by Rainer Tammer.
18174
18175 2010-07-30  Bruno Haible  <bruno@clisp.org>
18176
18177         unlink: Update regarding AIX.
18178         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
18179         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
18180         Reported by Rainer Tammer.
18181
18182 2010-07-30  Bruno Haible  <bruno@clisp.org>
18183
18184         symlink: Update regarding AIX.
18185         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
18186         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
18187         Reported by Rainer Tammer.
18188
18189 2010-07-30  Bruno Haible  <bruno@clisp.org>
18190
18191         strndup: Update regarding AIX.
18192         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
18193         AIX 7.
18194         Reported by Rainer Tammer.
18195
18196 2010-07-30  Bruno Haible  <bruno@clisp.org>
18197
18198         stat: Update regarding AIX.
18199         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
18200         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
18201         Reported by Rainer Tammer.
18202
18203 2010-07-30  Bruno Haible  <bruno@clisp.org>
18204
18205         truncl: Fix autoconf test.
18206         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
18207         whether truncl works.
18208         Reported by Rainer Tammer.
18209
18210 2010-07-30  Bruno Haible  <bruno@clisp.org>
18211
18212         round: Update regarding AIX.
18213         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
18214         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
18215         Reported by Rainer Tammer.
18216
18217 2010-07-30  Bruno Haible  <bruno@clisp.org>
18218
18219         rename: Update regarding AIX.
18220         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
18221         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
18222         Reported by Rainer Tammer.
18223
18224 2010-07-30  Bruno Haible  <bruno@clisp.org>
18225
18226         printf.m4: Update regarding AIX.
18227         * m4/printf.m4: Update comments regarding AIX.
18228         Reported by Rainer Tammer.
18229
18230 2010-07-30  Bruno Haible  <bruno@clisp.org>
18231
18232         iconv: Update regarding AIX.
18233         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
18234         AIX 7.
18235         Reported by Rainer Tammer.
18236
18237 2010-07-30  Bruno Haible  <bruno@clisp.org>
18238
18239         getopt: Update regarding AIX.
18240         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
18241         no on AIX.
18242         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
18243         Reported by Rainer Tammer.
18244
18245 2010-07-30  Bruno Haible  <bruno@clisp.org>
18246
18247         ldexpl; Update regarding AIX.
18248         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
18249         on AIX 7.
18250         Reported by Rainer Tammer.
18251
18252 2010-07-30  Bruno Haible  <bruno@clisp.org>
18253
18254         frexpl: Update regarding AIX.
18255         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
18256         on AIX 7.
18257         Reported by Rainer Tammer.
18258
18259 2010-07-30  Bruno Haible  <bruno@clisp.org>
18260
18261         open, fopen: Update regarding AIX.
18262         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
18263         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18264         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
18265         * doc/posix-functions/fopen.texi: Likewise.
18266         Reported by Rainer Tammer.
18267
18268 2010-07-30  Bruno Haible  <bruno@clisp.org>
18269
18270         chown: Update doc regarding AIX.
18271         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
18272         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
18273         Reported by Rainer Tammer.
18274
18275 2010-07-30  Eric Blake  <eblake@redhat.com>
18276
18277         strtod: fix bug in replacement function on AIX
18278         * lib/strtod.c (strtod): Special case broken "0x" parse in
18279         underlying strtod.
18280         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
18281         * doc/posix-functions/strtod.texi (strtod): Likewise.
18282         Reported by Rainer Tammer.
18283
18284 2010-07-30  Bruno Haible  <bruno@clisp.org>
18285
18286         mbrlen: Fix cross-compilation guess for AIX.
18287         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
18288         guess. Leftover from 2008-12-22.
18289
18290 2010-07-30  Bruno Haible  <bruno@clisp.org>
18291
18292         mbrtowc: Fix cross-compilation guess for AIX.
18293         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
18294         guess. Leftover from 2008-12-21.
18295
18296 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
18297
18298         init.sh: work around trap limitation of some shells
18299         * tests/init.sh (setup_): Move exit trap outside of shell function.
18300
18301 2010-07-29  Eric Blake  <eblake@redhat.com>
18302
18303         strtod: aid debugging
18304         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
18305         understanding why strtod is rejected.
18306
18307 2010-07-28  Bruno Haible  <bruno@clisp.org>
18308
18309         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
18310         * lib/unistr/u8-chr.c: Include <string.h>.
18311         * tests/unistr/test-u8-chr.c: Likewise.
18312         * tests/unistr/test-u16-chr.c: Likewise.
18313         * tests/unistr/test-u32-chr.c: Likewise.
18314         * tests/unistr/test-u8-strchr.c: Likewise.
18315         * tests/unistr/test-u16-strchr.c: Likewise.
18316         * tests/unistr/test-u32-strchr.c: Likewise.
18317         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
18318         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
18319         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
18320         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
18321
18322 2010-07-28  Bruno Haible  <bruno@clisp.org>
18323
18324         Use spaces for indentation, not tabs.
18325         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
18326
18327 2010-07-27  Bruno Haible  <bruno@clisp.org>
18328
18329         mbspcasecmp: Fix function specification.
18330         * lib/string.in.h (mbspcasecmp): Fix specification comment.
18331         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
18332         Reported by Eric Blake <eblake@redhat.com>.
18333
18334 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
18335
18336         timespec: use cast and not conditional, as truncation isn't possible
18337         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
18338         instead of a conditional.  Comment about the situation in more detail.
18339         This undoes most of the 2009-10-29 patch.
18340
18341 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
18342
18343         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
18344         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
18345         * lib/unistr/u8-strchr.c: Likewise.
18346         * modules/unistr/u8-chr: Depend on memchr.
18347
18348         unistr/u*-strchr: add tests
18349         * modules/unistr/u8-strchr-tests: New file.
18350         * modules/unistr/u16-strchr-tests: New file.
18351         * modules/unistr/u32-strchr-tests: New file.
18352         * tests/unistr/test-strchr.h: New file.
18353         * tests/unistr/test-u8-strchr.c: New file.
18354         * tests/unistr/test-u16-strchr.c: New file.
18355         * tests/unistr/test-u32-strchr.c: New file.
18356
18357         unistr/u*-chr: test multibyte sequences more
18358         * tests/unistr/test-chr.h: Do complete testing of the characters in the
18359         test vector.
18360         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
18361         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
18362         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
18363
18364         unistr/u*-chr: test multibyte sequences
18365         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
18366
18367         unistr/u*-chr: prepare for multibyte tests
18368         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
18369         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
18370         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
18371         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
18372         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
18373         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
18374
18375 2010-07-18  Bruno Haible  <bruno@clisp.org>
18376
18377         unistr/u8-strchr: Optimize non-ASCII argument case.
18378         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
18379         because the first byte often matches anyway.
18380         Reported by Pádraig Brady <P@draigbrady.com>.
18381
18382 2010-07-15  Karl Berry  <karl@gnu.org>
18383
18384         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
18385
18386 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
18387
18388         getcwd: on Solaris, work better if ancestors are inaccessible
18389         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
18390         buffer and size, try again with a large buffer.  This works better
18391         on Solaris, since its getcwd succeeds even if the path to the root
18392         is inaccessible, and this is helpful in common cases such as .zfs
18393         hidden directories.  Problem reported by J Chapman Flack in
18394         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
18395         Use system getcwd if it's declared, not merely if it's partly
18396         working; use the partly-working test only to avoid needless effort
18397         if the system getcwd fails.
18398         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
18399         comment that was already obsolete and is now even more obsolete.
18400         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
18401         now might call strdup.
18402
18403 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
18404
18405         pthread: Add enough so that coreutils/src/sort.c compiles.
18406         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
18407         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
18408         gnulib. Include <sched.h> and <time.h>, as per POSIX.
18409         Include <sys/types.h>, in case it defines pthread_t.
18410         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
18411         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
18412         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
18413         (pthread_rwlockattr_t, pthread_spinlock_t):
18414         New typedefs, if HAVE_PTHREAD_T is not defined.
18415         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
18416         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
18417         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
18418         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
18419         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
18420         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
18421         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
18422         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
18423         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
18424         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
18425         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
18426         New macros.
18427         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
18428         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
18429         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
18430         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
18431         (pthread_spin_unlock): New dummy functions.
18432         (pthread_create): Return EAGAIN; don't set errno.
18433         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
18434         require AC_C_INLINE.
18435         * modules/pthread (Depends-on): Add sched, time.
18436         (pthread.h): Use AM_V_GEN.
18437
18438 2010-07-13  Bruno Haible  <bruno@clisp.org>
18439
18440         striconveh: Don't malloc memory if the result buffer is sufficient.
18441         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
18442         buffer if its size is sufficient.
18443         Reported by Ludovic Courtès <ludo@gnu.org>.
18444
18445 2010-07-13  Bruno Haible  <bruno@clisp.org>
18446
18447         strtod: Add safety check.
18448         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
18449
18450 2010-07-12  Bruno Haible  <bruno@clisp.org>
18451
18452         Unify tests that set gl_cv_func_ldexpl_no_libm.
18453         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
18454         gl_FUNC_LDEXPL.
18455         (gl_FUNC_LDEXPL): Invoke it.
18456         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18457
18458 2010-07-12  Bruno Haible  <bruno@clisp.org>
18459
18460         Unify tests that set gl_cv_func_ldexp_no_libm.
18461         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
18462         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
18463         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
18464         (configure.ac): Simply invoke gl_FUNC_LDEXP.
18465         * modules/strtod (Files): Add m4/ldexp.m4.
18466
18467 2010-07-12  Bruno Haible  <bruno@clisp.org>
18468
18469         Unify tests that set gl_cv_func_frexpl_no_libm.
18470         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
18471         gl_FUNC_FREXPL_NO_LIBM.
18472         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
18473         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18474
18475 2010-07-12  Bruno Haible  <bruno@clisp.org>
18476
18477         Unify tests that set gl_cv_func_frexp_no_libm.
18478         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
18479         gl_FUNC_FREXP_NO_LIBM.
18480         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
18481         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18482
18483 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18484
18485         memcoll: clarify sizes versus lengths, document better, and tweak perf
18486         * lib/memcoll.c (strcoll_loop, memcoll0):
18487         Improve quality of descriptive comments.  Name variables
18488         consistently as to whether they are lengths (which do not include
18489         terminating null) versus sizes (which do).
18490         * lib/xmemcoll.c (xmemcoll0): Likewise.
18491         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
18492         returned when s1size == 0; this is easier to compile and saves
18493         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
18494
18495 2010-07-12  Bruno Haible  <bruno@clisp.org>
18496
18497         Tests for module '_Exit'.
18498         * modules/_Exit-tests: New file.
18499         * tests/test-_Exit.sh: New file.
18500         * tests/test-_Exit.c: New file.
18501
18502         New module '_Exit'.
18503         * lib/stdlib.in.h (__attribute__): New macro.
18504         (_Exit): New declaration.
18505         * lib/_Exit.c: New file.
18506         * m4/_Exit.m4: New file.
18507         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
18508         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
18509         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
18510         * modules/_Exit: New file.
18511         * tests/test-stdlib-c++.cc (_Exit): Check signature.
18512         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
18513
18514 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18515
18516         strtod: make it more-accurate typically, and don't require libm
18517         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
18518         Include limits.h.  Don't include string.h.
18519         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
18520         (locale_isspace): New function, so that no casts are needed to
18521         check whether *s is a space.
18522         (ldexp): Provide an unused dummy if not available.
18523         (scale_radix_exp, parse_number, underlying_strtod): New functions.
18524         (strtod): Use them.  This implementation prefers to use the
18525         underlying strtod if available, falling back on our own code
18526         only to fix known bugs.  This is more likely to produce an
18527         accurate result.  Also, it avoids the use of libm functions.
18528         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
18529         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
18530         was absent, but it caused a test failure with coreutils.
18531         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
18532         with libm.
18533         * modules/strtod (Makefile.am, Link): libm is no longer needed.
18534         * modules/strtod-tests (Makefile.am): Likewise.
18535
18536 2010-07-11  Pádraig Brady  <P@draigBrady.com>
18537             Bruno Haible  <bruno@clisp.org>
18538
18539         unistr/u8-strchr: Optimize ASCII argument case.
18540         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
18541
18542 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
18543
18544         (x)memcoll: minor tweaks
18545         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
18546         is after the type that it qualifies.
18547         (memcoll0): Likewise.
18548         * lib/memcoll.h (memcoll0): Likewise.
18549         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
18550         * lib/xmemcoll.h (xmemcoll0): Likewise.
18551         * lib/memcoll.c (memcoll0): Correct the comment.  This function
18552         differs from memcoll in that the NUL byte is part of the argument.
18553         Omit the abort-checks, as performance is a real issue here.  Plus,
18554         the checks were wrong anyway (an off-by-one error).  Omit local
18555         variable 'diff', as it's a bit clearer that way.
18556         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
18557         no longer needed.
18558
18559 2010-07-08  Chen Guo <chenguo4@yahoo.com>
18560
18561         (x)memcoll: speedup when input is known to be NUL delimited
18562         * lib/memcoll.c: Include stdlib.
18563         (memcoll0): New function.
18564         (strcoll_loop): New function, refactored for use in both memcoll
18565         and memcoll0.
18566         * lib/memcoll.h (memcoll0): Add prototype.
18567         * lib/xmemcoll.c (xmemcoll0): New function.
18568         (collate_error): New function, refactored for use in both xmemcoll
18569         and xmemcoll0.
18570         * lib/xmemcoll.h (xmemcoll0): Add prototype.
18571         * m4/memcoll.m4: add inline invocation.
18572
18573 2010-07-06  Pádraig Brady  <P@draigBrady.com>
18574
18575         * build-aux/bootstrap: Remove any local translations
18576         from the translation project synchronization directory,
18577         so that local only translations are not distributed.
18578
18579 2010-07-04  Bruno Haible  <bruno@clisp.org>
18580
18581         fsusage: Clarify which code applies to which platforms.
18582         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
18583         platform.
18584         * lib/fsusage.c (get_fs_usage): Likewise.
18585
18586 2010-07-04  Bruno Haible  <bruno@clisp.org>
18587
18588         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
18589         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
18590         Reported by Martin Lambers <marlam@marlam.de>.
18591
18592 2010-07-04  Jim Meyering  <meyering@redhat.com>
18593
18594         hash: once again explicitly disallow insertion of NULL
18595         * lib/hash.c (hash_insert0): Reinstate just-removed test:
18596         inserting a NULL pointer cannot work with these functions.
18597         Add a comment with details.
18598         This reverts part of the 2010-07-01 commit, 5bef1a35
18599         "hash: extend module to deal with non-pointer keys".
18600
18601 2010-07-01  Bruno Haible  <bruno@clisp.org>
18602
18603         stdbool: Update doc.
18604         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
18605         Info from Christian Weisgerber <naddy@mips.inka.de>.
18606
18607 2010-07-01  Jim Meyering  <meyering@redhat.com>
18608
18609         hash: extend module to deal with non-pointer keys
18610         * lib/hash.c (hash_insert0): New interface, much like hash_insert
18611         but that allows insertion of non-pointer entries.
18612         Do not disallow an ENTRY value of NULL.
18613         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
18614         * lib/hash.h (hash_insert0): Declare.
18615
18616 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18617
18618         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
18619         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
18620         not present (i.e. with autoconf 2.59 and when using gettextize, not
18621         gnulib), require AC_GNU_SOURCE instead.
18622
18623 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
18624
18625         idpriv-drop: Fix tests.
18626         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
18627         not to the test-idpriv-droptemp program.
18628
18629 2010-06-29  Bruno Haible  <bruno@clisp.org>
18630
18631         string: Fix syntax error with g++ 2.96.
18632         * lib/string.in.h (__pure__): Remove definition.
18633         (_GL_ATTRIBUTE_PURE): New macro.
18634         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
18635         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
18636         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18637
18638 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
18639
18640         unitypes: Fix bug introduced on 2010-05-18.
18641         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
18642
18643 2010-06-22  Eric Blake  <eblake@redhat.com>
18644
18645         memmem: slight optimization
18646         * lib/str-two-way.h (critical_factorization): Update comments.
18647         Reduce work during factorization phase.
18648         Reported by Carlos Bueno <carlos@bueno.org>.
18649
18650 2010-06-21  Bruno Haible  <bruno@clisp.org>
18651
18652         Fix HAVE_CALLOC_POSIX misnomer.
18653         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
18654         !HAVE_CALLOC_POSIX.
18655         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
18656         HAVE_CALLOC_POSIX.
18657         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
18658         instead of HAVE_CALLOC_POSIX.
18659         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
18660         HAVE_CALLOC_POSIX.
18661
18662         Use modern idiom for calloc() replacement.
18663         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
18664         AC_FUNC_CALLOC.
18665         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
18666         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
18667         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18668         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
18669         (gl_REPLACE_CALLOC): New macro.
18670
18671 2010-06-21  Bruno Haible  <bruno@clisp.org>
18672
18673         Fix HAVE_REALLOC_POSIX misnomer.
18674         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
18675         !HAVE_REALLOC_POSIX.
18676         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
18677         HAVE_REALLOC_POSIX.
18678         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
18679         instead of HAVE_REALLOC_POSIX.
18680         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
18681         HAVE_REALLOC_POSIX.
18682
18683         Use modern idiom for realloc() replacement.
18684         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
18685         AC_FUNC_REALLOC.
18686         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
18687         Autoconf's AC_FUNC_REALLOC.
18688         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18689         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
18690         (gl_REPLACE_REALLOC): New macro.
18691         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18692
18693 2010-06-21  Bruno Haible  <bruno@clisp.org>
18694
18695         Fix HAVE_MALLOC_POSIX misnomer.
18696         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
18697         !HAVE_MALLOC_POSIX.
18698         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
18699         HAVE_MALLOC_POSIX.
18700         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
18701         instead of HAVE_MALLOC_POSIX.
18702         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
18703         HAVE_MALLOC_POSIX.
18704
18705         Use modern idiom for malloc() replacement.
18706         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
18707         AC_FUNC_MALLOC.
18708         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
18709         Autoconf's AC_FUNC_MALLOC.
18710         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18711         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
18712         (gl_REPLACE_MALLOC): New macro.
18713         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18714
18715 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
18716
18717         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
18718         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
18719         This macro takes 3 arguments, not 4.
18720
18721 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
18722
18723         ipv6: fix detection under mingw
18724         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
18725         in6_addr.
18726
18727 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
18728
18729         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
18730         that strtod() works when cross-compiling to a glibc version known
18731         to work.
18732
18733 2010-06-15  Bruno Haible  <bruno@clisp.org>
18734
18735         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
18736
18737 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
18738
18739         select: Correct timeout.
18740         * lib/select.c (rpl_select): Compute wait_timeout correctly.
18741
18742 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18743
18744         git-version-gen: init shell var to avoid env var influence
18745         * build-aux/git-version-gen (v): Init shell var to empty.
18746
18747 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
18748
18749         priv-set: Don't assume that priv.h exists merely because getppriv does.
18750         See Jan Andersen's bug report about AIX 5L in
18751         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
18752         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
18753         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
18754         * lib/priv-set.h: Likewise.
18755         * tests/test-priv-set.c: Likewise.
18756
18757 2010-06-13  Bruno Haible  <bruno@clisp.org>
18758
18759         relocatable: Make it easier to test whether to install wrappers.
18760         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
18761         RELOCATABLE_VIA_WRAPPER.
18762
18763 2010-06-13  Bruno Haible  <bruno@clisp.org>
18764
18765         gnulib-tool: Display specified modules and dependencies differently.
18766         * gnulib-tool (func_show_module_list): New function.
18767         (func_import, func_create_testdir): Invoke it.
18768         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
18769
18770 2010-06-13  Bruno Haible  <bruno@clisp.org>
18771
18772         gnulib-tool: Align code of func_import and func_create_testdir.
18773         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
18774         specified_modules.
18775
18776 2010-06-12  Jim Meyering  <meyering@redhat.com>
18777
18778         test-inttostr: avoid spurious failure on Solaris 9
18779         * tests/test-inttostr.c (main): Skip the test when snprintf fails
18780         to accept "%ju".  Reported by Bruno Haible.
18781
18782 2010-06-11  Jim Meyering  <meyering@redhat.com>
18783
18784         test-sys_socket: mark variables as used more readably
18785         * tests/test-sys_socket.c (main): Mark otherwise unused variables
18786         as "used" explicitly via (void) statement casts.  This is more
18787         readable than using them in an artificial return expression.
18788         Suggestion from Bruno Haible.
18789
18790 2010-06-11  Bruno Haible  <bruno@clisp.org>
18791
18792         Avoid some more warnings from "gcc -Wwrite-strings".
18793         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
18794         to 'const char *'.
18795         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
18796         * tests/test-c-strcasestr.c (main): Likewise.
18797         * tests/test-mbscasestr1.c (main): Likewise.
18798         * tests/test-mbscasestr2.c (main): Likewise.
18799         * tests/test-memmem.c (main): Likewise.
18800         * tests/test-strstr.c (main): Likewise.
18801         * tests/test-strcasestr.c (main): Likewise.
18802
18803 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18804
18805         init.sh: change framework_failure_ to fail with status 99, not 1
18806         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
18807         automake's parallel-tests rule that this is an unexpected failure,
18808         even if the test is listed in XFAIL_TESTS.
18809
18810 2010-06-11  Jim Meyering  <meyering@redhat.com>
18811
18812         test-inttostr: avoid warnings about 4-6KB literal strings
18813         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
18814         Include "macros.h", for its definition of ASSERT.
18815         (CK): s/assert/ASSERT/
18816         * modules/inttostr-tests (Files): Add macros.h.
18817
18818         init.sh: don't use $ME_ or skip_ before they are defined
18819         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
18820         their first uses.  Also hoist their companions: warn_, fail_,
18821         framework_failure_, $stderr_fileno.  Prompted by a patch from
18822         Stefano Lattarini.
18823
18824         test-sys_socket: avoid set-but-not-used warnings from gcc
18825         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
18826         avoid warning about set-but-not-used variables.
18827
18828         test-xvasprintf: avoid 'const' discard warnings
18829         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
18830         "const" when assigning from literal strings.
18831         (test_xasprintf): Add "void" in function argument list to placate
18832         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
18833
18834         tests: avoid compilation warnings in argmatch and exclude tests...
18835         in packages that define ARGMATCH_DIE_DECL, like coreutils.
18836         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
18837         Since it always exits, declare with the "noreturn" attribute.
18838         * tests/test-argmatch.c: Likewise.
18839
18840         tests: avoid 'const' discard warnings in mbsstr tests
18841         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
18842         * tests/test-mbsstr2.c (main): Likewise.
18843
18844         test-verify: avoid warning from gcc's -Wmissing-declarations
18845         * tests/test-verify.c (function): Declare to be static.
18846
18847         test-inttostr.c: include <string.h> for use of strcmp
18848         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
18849
18850         test-linkat: avoid failed assertion on "other" architectures
18851         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
18852         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
18853         sparc: https://bugs.launchpad.net/bugs/591968
18854
18855 2010-06-11  Jim Meyering  <meyering@redhat.com>
18856
18857         printf.m4: avoid autoconf's "Expanded Before Required" warning
18858         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
18859         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
18860         autoconf warning.
18861
18862 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
18863
18864         Replacement header templates are now named with ".in", not "_".
18865         * doc/gnulib-intro.texi: Correct.
18866
18867 2010-06-10  Jim Meyering  <meyering@redhat.com>
18868
18869         inttostr-tests: depend on snprintf, not snprintf-posix
18870         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
18871         snprintf-posix, to avoid this aclocal failure:
18872           missing file gnulib-tests/vasnprintf.c
18873           configure.ac:45: error: expected source file, required through \
18874           AC_LIBSOURCES, not found
18875
18876 2010-06-10  Jim Meyering  <meyering@redhat.com>
18877
18878         inttostr: add a new function, inttostr, and tests
18879         The namesake function was not available.  The existence of the
18880         template file, inttostr.c makes its addition nontrivial.
18881         * lib/anytostr.c: Rename from inttostr.c.
18882         (anytostr): Rename from inttostr.
18883         * lib/inttostr.c: New file.
18884         * modules/inttostr (Files): Add anytostr.c.
18885         (Makefile.am): Set lib_SOURCES instead of ...
18886         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
18887         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
18888         * lib/offtostr.c: Likewise.
18889         * lib/uinttostr.c: Likewise.
18890         * lib/umaxtostr.c: Likewise.
18891         * modules/inttostr-tests: New file.
18892         * tests/test-inttostr.c: New file.  Test these functions.
18893
18894 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
18895             Bruno Haible  <bruno@clisp.org>
18896
18897         Add "Extending Gnulib" chapter to manual.
18898         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
18899         chapter.
18900         (Extending Gnulib): New chapter.
18901         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
18902         chapter.
18903
18904 2010-06-09  Bruno Haible  <bruno@clisp.org>
18905
18906         Avoid relocwrapper link errors due to gnulib replacement functions.
18907         * lib/areadlink.c: Use the system's malloc, realloc functions.
18908         (areadlink): Set errno to ENOMEM explicitly.
18909         * modules/areadlink (Depends-on): Remove malloc-posix.
18910         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18911
18912 2010-06-09  Bruno Haible  <bruno@clisp.org>
18913
18914         Avoid relocwrapper link errors due to gnulib replacement functions.
18915         * lib/canonicalize-lgpl.c: Use the system's malloc function.
18916         * lib/malloca.c: Likewise.
18917         * lib/relocatable.c: Likewise.
18918         * lib/progreloc.c: Use the system's malloc, sprintf functions.
18919         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
18920         * lib/setenv.c: Use the system's malloc, realloc functions.
18921         * lib/strerror.c: Use the system's sprintf function.
18922         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18923
18924 2010-06-04  Bruno Haible  <bruno@clisp.org>
18925
18926         Prefer documented low-level autoconf macro names.
18927         * m4/lib-link.m4: Use m4_translit instead of translit.
18928         * m4/environ.m4: Likewise.
18929         * m4/mathfunc.m4: Likewise.
18930         * m4/onceonly.m4: Likewise.
18931         * m4/stdint.m4: Likewise.
18932         Suggested by Eric Blake.
18933
18934 2010-06-04  Martin Lambers  <marlam@marlam.de>
18935             Bruno Haible  <bruno@clisp.org>
18936
18937         havelib: Allow library names with '+' characters.
18938         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18939         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
18940
18941 2010-06-09  Bruno Haible  <bruno@clisp.org>
18942
18943         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
18944         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
18945         realloc failed.
18946
18947 2010-06-08  Peter Simons  <simons@cryp.to>
18948
18949         maint.mk: make the news-check rule more configurable
18950         * top/maint.mk (news-check-lines-spec): New variable.
18951         (news-check): Use "sed -n 1,10p" in place of "head".
18952
18953 2010-06-07  Jim Meyering  <meyering@redhat.com>
18954
18955         do-release-commit-and-tag: fix typo in --help
18956         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
18957
18958         regex: avoid new dead-code warning with gcc-4.6.0
18959         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
18960         if-block containing a while-loop.  It's been unused for at least
18961         5 years.
18962
18963 2010-06-05  Bruno Haible  <bruno@clisp.org>
18964
18965         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
18966         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
18967
18968 2010-06-04  Bruno Haible  <bruno@clisp.org>
18969
18970         Update to GNU gettext 0.18.1.
18971         * modules/gettext (configure.ac): Require gettext infrastructure from
18972         version 0.18.1.
18973
18974 2010-06-03  Bruno Haible  <bruno@clisp.org>
18975
18976         Don't use AC_LIBOBJ with file names in subdirectories.
18977         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18978         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18979         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18980         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18981         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18982         gl_LIBUNISTRING_LIBSOURCE.
18983         (Makefile.am): Augment lib_SOURCES here, conditionally.
18984         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18985
18986 2010-06-03  Bruno Haible  <bruno@clisp.org>
18987
18988         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18989         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18990         expansion does not end with a newline.
18991         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18992         unnecessary newline.
18993
18994 2010-06-03  Bruno Haible  <bruno@clisp.org>
18995
18996         Reduce dependencies.
18997         * tests/test-quotearg.h: New file, extracted from
18998         tests/test-quotearg.c.
18999         * tests/test-quotearg-simple.c: New file, extracted from
19000         tests/test-quotearg.c.
19001         * tests/test-quotearg.c: Don't include <ctype.h>.
19002         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
19003         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
19004         use_quote_double_quotes, use_quotearg_colon): Moved to
19005         tests/test-quotearg.h.
19006         (results_g, flag_results, custom_quotes, custom_results): Moved
19007         to tests/test-quotearg-simple.c.
19008         (main): Moved the part that does not depend on gettext to
19009         tests/test-quotearg-simple.c. Return 77 if the test cannot be
19010         performed.
19011         * modules/quotearg-simple: New file.
19012         * modules/quotearg-simple-tests: New file.
19013         * modules/quotearg (Depends-on): Add quotearg-simple.
19014         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
19015         (Files): Add tests/test-quotearg.h.
19016         Reported by Paolo Bonzini.
19017
19018 2010-06-03  Bruno Haible  <bruno@clisp.org>
19019
19020         Reduce dependencies.
19021         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
19022
19023 2010-06-03  Bruno Haible  <bruno@clisp.org>
19024
19025         time: Undefine more broken macros.
19026         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
19027         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
19028         Reported by Eric Blake.
19029
19030 2010-06-03  Bruno Haible  <bruno@clisp.org>
19031
19032         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
19033         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
19034         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
19035         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
19036         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
19037         Reported by Ludovic Courtès <ludo@gnu.org>.
19038
19039 2010-06-02  Eric Blake  <eblake@redhat.com>
19040
19041         time: work with mingw + pthreads-win32 library
19042         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
19043         if timespec is defined only in pthread.h.
19044         * modules/time (Makefile.am): Substitute it.
19045         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
19046         <pthread.h>, when needed.
19047         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
19048         from the library.
19049
19050 2010-05-31  Bruno Haible  <bruno@clisp.org>
19051
19052         Avoid expanding two macros in the wrong order.
19053         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
19054         gl_LIBUNISTRING if it is defined.
19055         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
19056         autoconf >= 2.64.
19057         Reported by Ludovic Courtès <ludo@gnu.org>.
19058
19059 2010-05-27  Jim Meyering  <meyering@redhat.com>
19060
19061         maint.mk: also prohibit "#undef" of always-defined symbols
19062         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
19063         Allow more than one space before the symbol name.
19064         (sc_prohibit_always-defined_macros): Use grep's -E, now that
19065         the regexp uses alternation.
19066
19067 2010-05-26  Eric Blake  <eblake@redhat.com>
19068
19069         maint.mk: avoid echo -e
19070         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
19071         Convert all uses of echo -* to printf.
19072         Reported by Matthias Bolte.
19073
19074 2010-05-25  Bruno Haible  <bruno@clisp.org>
19075
19076         Update to GNU gettext 0.18, part 2.
19077         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
19078         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
19079
19080 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19081
19082         Add missing include in test-pwrite.c.
19083         * tests/test-pwrite.c: Include string.h, for strcmp.
19084
19085 2010-05-24  Bruno Haible  <bruno@clisp.org>
19086
19087         * NEWS: Mention requirement for Automake option 'subdir-objects'.
19088
19089 2010-05-24  Bruno Haible  <bruno@clisp.org>
19090
19091         Don't use conversion with transliteration in u{8,16,32}_strcoll.
19092         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
19093         iconveh_error argument.
19094         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
19095         U_STRCONV_TO_LOCALE.
19096         * lib/unistr/u16-strcoll.c: Likewise.
19097         * lib/unistr/u32-strcoll.c: Likewise.
19098         * modules/unistr/u8-strcoll (Depends-on): Add
19099         uniconv/u8-strconv-to-enc, localcharset. Remove
19100         uniconv/u8-strconv-to-locale.
19101         (configure.ac): Bump version number.
19102         * modules/unistr/u16-strcoll (Depends-on): Add
19103         uniconv/u16-strconv-to-enc, localcharset. Remove
19104         uniconv/u16-strconv-to-locale.
19105         (configure.ac): Bump version number.
19106         * modules/unistr/u32-strcoll (Depends-on): Add
19107         uniconv/u32-strconv-to-enc, localcharset. Remove
19108         uniconv/u32-strconv-to-locale.
19109         (configure.ac): Bump version number.
19110
19111 2010-05-24  Bruno Haible  <bruno@clisp.org>
19112
19113         Avoid a test failure on NetBSD 5.0.
19114         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
19115         an iconv() bug.
19116
19117 2010-05-24  Bruno Haible  <bruno@clisp.org>
19118
19119         Adjust #include directive style.
19120         * modules/regex (Includes): Recommend to write <regex.h>.
19121
19122 2010-05-24  Bruno Haible  <bruno@clisp.org>
19123
19124         regex: Don't require alloca.
19125         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
19126         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
19127         only inside if (0).
19128
19129 2010-05-23  Jim Meyering  <meyering@redhat.com>
19130
19131         test-renameat.c: include <sys/stat.h>
19132         * tests/test-renameat.c: Include <sys/stat.h>; required for
19133         definition of S_IS* macros.
19134
19135 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
19136
19137         Update maintainer documentation for 'relocatable-prog' module.
19138         * doc/relocatable-maint.texi: Update.
19139         Comments by Bruno Haible.
19140
19141 2010-05-23  Bruno Haible  <bruno@clisp.org>
19142
19143         git-merge-changelog: Enable --split-merged-entry by default.
19144         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
19145         (usage): Don't mention this option any more.
19146         Reported by Ralf Wildenhues.
19147
19148 2010-05-23  Jim Meyering  <meyering@redhat.com>
19149
19150         test-pwrite: do not leave behind a test file named "out"
19151         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
19152         The trivial-looking use of init.sh is really necessary.
19153         It ensures that the temporary file, "out", is created in
19154         a temporary directory, and removed upon termination.
19155         * tests/test-pwrite.sh: Re-add file.
19156         * modules/pwrite-tests: Reference it.
19157
19158 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19159
19160         Fix output redirection buglet in init.sh.
19161         * tests/init.sh: Fix redirection of stderr.
19162
19163 2010-05-20  Simon Josefsson  <simon@josefsson.org>
19164
19165         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
19166
19167 2010-05-17  Simon Josefsson  <simon@josefsson.org>
19168
19169         * modules/valgrind-tests: New file.
19170         * m4/valgrind-tests.m4: New file.
19171         * doc/valgrind-tests.texi: New file.
19172         * doc/gnulib.texi (Running self-tests under valgrind): New
19173         section.
19174
19175 2010-05-19  Bruno Haible  <bruno@clisp.org>
19176
19177         Clean up dead code in recent commit.
19178         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
19179         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
19180         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
19181         Suggested by Paolo Bonzini.
19182
19183 2010-05-19  Bruno Haible  <bruno@clisp.org>
19184
19185         Avoid valgrind error reports from libunistring.
19186         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
19187         * modules/libunistring (Files): Add it.
19188         * modules/libunistring-optional (Files): Likewise.
19189
19190 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
19191             Bruno Haible  <bruno@clisp.org>
19192
19193         New module 'libunistring-optional'.
19194         * modules/libunistring-optional: New file.
19195         * m4/libunistring-base.m4: New file.
19196         * m4/libunistring-optional.m4: New file.
19197         * lib/unicase.in.h: Renamed from lib/unicase.h.
19198         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
19199         * lib/unictype.in.h: Renamed from lib/unictype.h.
19200         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
19201         * lib/uniname.in.h: Renamed from lib/uniname.h.
19202         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
19203         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
19204         * lib/unistr.in.h: Renamed from lib/unistr.h.
19205         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
19206         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
19207         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
19208         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
19209         gl_LIBUNISTRING. If the library was found, determine the installed
19210         version and set LIBUNISTRING_VERSION.
19211         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
19212         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
19213         handle a configuration option --with-included-libunistring.
19214         * modules/libunistring (Files): Add m4/absolute-header.m4.
19215         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
19216         Add m4/libunistring-base.m4.
19217         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19218         (Makefile.am): Build unicase.h from unicase.in.h.
19219         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
19220         Add m4/libunistring-base.m4.
19221         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19222         (Makefile.am): Build uniconv.h from uniconv.in.h.
19223         * modules/unictype/base (Files): Use unictype.in.h instead of
19224         unictype.h. Add m4/libunistring-base.m4.
19225         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19226         (Makefile.am): Build unictype.h from unictype.in.h.
19227         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
19228         Add m4/libunistring-base.m4.
19229         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19230         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
19231         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
19232         Add m4/libunistring-base.m4.
19233         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19234         (Makefile.am): Build uniname.h from uniname.in.h.
19235         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
19236         Add m4/libunistring-base.m4.
19237         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19238         (Makefile.am): Build uninorm.h from uninorm.in.h.
19239         * modules/unistdio/base (Files): Use unistdio.in.h instead of
19240         unistdio.h. Add m4/libunistring-base.m4.
19241         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19242         (Makefile.am): Build unistdio.h from unistdio.in.h.
19243         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
19244         Add m4/libunistring-base.m4.
19245         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19246         (Makefile.am): Build unistr.h from unistr.in.h.
19247         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
19248         Add m4/libunistring-base.m4.
19249         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19250         (Makefile.am): Build unitypes.h from unitypes.in.h.
19251         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
19252         Add m4/libunistring-base.m4.
19253         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19254         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
19255         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
19256         uniwidth.h. Add m4/libunistring-base.m4.
19257         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19258         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
19259         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
19260         instead of augmenting lib_SOURCES.
19261         * modules/unicase/empty-suffix-context: Likewise.
19262         * modules/unicase/locale-language: Likewise.
19263         * modules/unicase/tolower: Likewise.
19264         * modules/unicase/totitle: Likewise.
19265         * modules/unicase/toupper: Likewise.
19266         * modules/unicase/u8-casecmp: Likewise.
19267         * modules/unicase/u8-casecoll: Likewise.
19268         * modules/unicase/u8-casefold: Likewise.
19269         * modules/unicase/u8-casexfrm: Likewise.
19270         * modules/unicase/u8-ct-casefold: Likewise.
19271         * modules/unicase/u8-ct-tolower: Likewise.
19272         * modules/unicase/u8-ct-totitle: Likewise.
19273         * modules/unicase/u8-ct-toupper: Likewise.
19274         * modules/unicase/u8-is-cased: Likewise.
19275         * modules/unicase/u8-is-casefolded: Likewise.
19276         * modules/unicase/u8-is-lowercase: Likewise.
19277         * modules/unicase/u8-is-titlecase: Likewise.
19278         * modules/unicase/u8-is-uppercase: Likewise.
19279         * modules/unicase/u8-prefix-context: Likewise.
19280         * modules/unicase/u8-suffix-context: Likewise.
19281         * modules/unicase/u8-tolower: Likewise.
19282         * modules/unicase/u8-totitle: Likewise.
19283         * modules/unicase/u8-toupper: Likewise.
19284         * modules/unicase/u16-casecmp: Likewise.
19285         * modules/unicase/u16-casecoll: Likewise.
19286         * modules/unicase/u16-casefold: Likewise.
19287         * modules/unicase/u16-casexfrm: Likewise.
19288         * modules/unicase/u16-ct-casefold: Likewise.
19289         * modules/unicase/u16-ct-tolower: Likewise.
19290         * modules/unicase/u16-ct-totitle: Likewise.
19291         * modules/unicase/u16-ct-toupper: Likewise.
19292         * modules/unicase/u16-is-cased: Likewise.
19293         * modules/unicase/u16-is-casefolded: Likewise.
19294         * modules/unicase/u16-is-lowercase: Likewise.
19295         * modules/unicase/u16-is-titlecase: Likewise.
19296         * modules/unicase/u16-is-uppercase: Likewise.
19297         * modules/unicase/u16-prefix-context: Likewise.
19298         * modules/unicase/u16-suffix-context: Likewise.
19299         * modules/unicase/u16-tolower: Likewise.
19300         * modules/unicase/u16-totitle: Likewise.
19301         * modules/unicase/u16-toupper: Likewise.
19302         * modules/unicase/u32-casecmp: Likewise.
19303         * modules/unicase/u32-casecoll: Likewise.
19304         * modules/unicase/u32-casefold: Likewise.
19305         * modules/unicase/u32-casexfrm: Likewise.
19306         * modules/unicase/u32-ct-casefold: Likewise.
19307         * modules/unicase/u32-ct-tolower: Likewise.
19308         * modules/unicase/u32-ct-totitle: Likewise.
19309         * modules/unicase/u32-ct-toupper: Likewise.
19310         * modules/unicase/u32-is-cased: Likewise.
19311         * modules/unicase/u32-is-casefolded: Likewise.
19312         * modules/unicase/u32-is-lowercase: Likewise.
19313         * modules/unicase/u32-is-titlecase: Likewise.
19314         * modules/unicase/u32-is-uppercase: Likewise.
19315         * modules/unicase/u32-prefix-context: Likewise.
19316         * modules/unicase/u32-suffix-context: Likewise.
19317         * modules/unicase/u32-tolower: Likewise.
19318         * modules/unicase/u32-totitle: Likewise.
19319         * modules/unicase/u32-toupper: Likewise.
19320         * modules/unicase/ulc-casecmp: Likewise.
19321         * modules/unicase/ulc-casecoll: Likewise.
19322         * modules/unicase/ulc-casexfrm: Likewise.
19323         * modules/uniconv/u8-conv-from-enc: Likewise.
19324         * modules/uniconv/u8-conv-to-enc: Likewise.
19325         * modules/uniconv/u8-strconv-from-enc: Likewise.
19326         * modules/uniconv/u8-strconv-from-locale: Likewise.
19327         * modules/uniconv/u8-strconv-to-enc: Likewise.
19328         * modules/uniconv/u8-strconv-to-locale: Likewise.
19329         * modules/uniconv/u16-conv-from-enc: Likewise.
19330         * modules/uniconv/u16-conv-to-enc: Likewise.
19331         * modules/uniconv/u16-strconv-from-enc: Likewise.
19332         * modules/uniconv/u16-strconv-from-locale: Likewise.
19333         * modules/uniconv/u16-strconv-to-enc: Likewise.
19334         * modules/uniconv/u16-strconv-to-locale: Likewise.
19335         * modules/uniconv/u32-conv-from-enc: Likewise.
19336         * modules/uniconv/u32-conv-to-enc: Likewise.
19337         * modules/uniconv/u32-strconv-from-enc: Likewise.
19338         * modules/uniconv/u32-strconv-from-locale: Likewise.
19339         * modules/uniconv/u32-strconv-to-enc: Likewise.
19340         * modules/uniconv/u32-strconv-to-locale: Likewise.
19341         * modules/unictype/bidicategory-byname: Likewise.
19342         * modules/unictype/bidicategory-name: Likewise.
19343         * modules/unictype/bidicategory-of: Likewise.
19344         * modules/unictype/bidicategory-test: Likewise.
19345         * modules/unictype/block-list: Likewise.
19346         * modules/unictype/block-test: Likewise.
19347         * modules/unictype/category-C: Likewise.
19348         * modules/unictype/category-Cc: Likewise.
19349         * modules/unictype/category-Cf: Likewise.
19350         * modules/unictype/category-Cn: Likewise.
19351         * modules/unictype/category-Co: Likewise.
19352         * modules/unictype/category-Cs: Likewise.
19353         * modules/unictype/category-L: Likewise.
19354         * modules/unictype/category-Ll: Likewise.
19355         * modules/unictype/category-Lm: Likewise.
19356         * modules/unictype/category-Lo: Likewise.
19357         * modules/unictype/category-Lt: Likewise.
19358         * modules/unictype/category-Lu: Likewise.
19359         * modules/unictype/category-M: Likewise.
19360         * modules/unictype/category-Mc: Likewise.
19361         * modules/unictype/category-Me: Likewise.
19362         * modules/unictype/category-Mn: Likewise.
19363         * modules/unictype/category-N: Likewise.
19364         * modules/unictype/category-Nd: Likewise.
19365         * modules/unictype/category-Nl: Likewise.
19366         * modules/unictype/category-No: Likewise.
19367         * modules/unictype/category-P: Likewise.
19368         * modules/unictype/category-Pc: Likewise.
19369         * modules/unictype/category-Pd: Likewise.
19370         * modules/unictype/category-Pe: Likewise.
19371         * modules/unictype/category-Pf: Likewise.
19372         * modules/unictype/category-Pi: Likewise.
19373         * modules/unictype/category-Po: Likewise.
19374         * modules/unictype/category-Ps: Likewise.
19375         * modules/unictype/category-S: Likewise.
19376         * modules/unictype/category-Sc: Likewise.
19377         * modules/unictype/category-Sk: Likewise.
19378         * modules/unictype/category-Sm: Likewise.
19379         * modules/unictype/category-So: Likewise.
19380         * modules/unictype/category-Z: Likewise.
19381         * modules/unictype/category-Zl: Likewise.
19382         * modules/unictype/category-Zp: Likewise.
19383         * modules/unictype/category-Zs: Likewise.
19384         * modules/unictype/category-and: Likewise.
19385         * modules/unictype/category-and-not: Likewise.
19386         * modules/unictype/category-byname: Likewise.
19387         * modules/unictype/category-name: Likewise.
19388         * modules/unictype/category-none: Likewise.
19389         * modules/unictype/category-of: Likewise.
19390         * modules/unictype/category-or: Likewise.
19391         * modules/unictype/category-test: Likewise.
19392         * modules/unictype/combining-class: Likewise.
19393         * modules/unictype/ctype-alnum: Likewise.
19394         * modules/unictype/ctype-alpha: Likewise.
19395         * modules/unictype/ctype-blank: Likewise.
19396         * modules/unictype/ctype-cntrl: Likewise.
19397         * modules/unictype/ctype-digit: Likewise.
19398         * modules/unictype/ctype-graph: Likewise.
19399         * modules/unictype/ctype-lower: Likewise.
19400         * modules/unictype/ctype-print: Likewise.
19401         * modules/unictype/ctype-punct: Likewise.
19402         * modules/unictype/ctype-space: Likewise.
19403         * modules/unictype/ctype-upper: Likewise.
19404         * modules/unictype/ctype-xdigit: Likewise.
19405         * modules/unictype/decimal-digit: Likewise.
19406         * modules/unictype/digit: Likewise.
19407         * modules/unictype/mirror: Likewise.
19408         * modules/unictype/numeric: Likewise.
19409         * modules/unictype/property-alphabetic: Likewise.
19410         * modules/unictype/property-ascii-hex-digit: Likewise.
19411         * modules/unictype/property-bidi-arabic-digit: Likewise.
19412         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
19413         * modules/unictype/property-bidi-block-separator: Likewise.
19414         * modules/unictype/property-bidi-boundary-neutral: Likewise.
19415         * modules/unictype/property-bidi-common-separator: Likewise.
19416         * modules/unictype/property-bidi-control: Likewise.
19417         * modules/unictype/property-bidi-embedding-or-override: Likewise.
19418         * modules/unictype/property-bidi-eur-num-separator: Likewise.
19419         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
19420         * modules/unictype/property-bidi-european-digit: Likewise.
19421         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
19422         * modules/unictype/property-bidi-left-to-right: Likewise.
19423         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
19424         * modules/unictype/property-bidi-other-neutral: Likewise.
19425         * modules/unictype/property-bidi-pdf: Likewise.
19426         * modules/unictype/property-bidi-segment-separator: Likewise.
19427         * modules/unictype/property-bidi-whitespace: Likewise.
19428         * modules/unictype/property-byname: Likewise.
19429         * modules/unictype/property-combining: Likewise.
19430         * modules/unictype/property-composite: Likewise.
19431         * modules/unictype/property-currency-symbol: Likewise.
19432         * modules/unictype/property-dash: Likewise.
19433         * modules/unictype/property-decimal-digit: Likewise.
19434         * modules/unictype/property-default-ignorable-code-point: Likewise.
19435         * modules/unictype/property-deprecated: Likewise.
19436         * modules/unictype/property-diacritic: Likewise.
19437         * modules/unictype/property-extender: Likewise.
19438         * modules/unictype/property-format-control: Likewise.
19439         * modules/unictype/property-grapheme-base: Likewise.
19440         * modules/unictype/property-grapheme-extend: Likewise.
19441         * modules/unictype/property-grapheme-link: Likewise.
19442         * modules/unictype/property-hex-digit: Likewise.
19443         * modules/unictype/property-hyphen: Likewise.
19444         * modules/unictype/property-id-continue: Likewise.
19445         * modules/unictype/property-id-start: Likewise.
19446         * modules/unictype/property-ideographic: Likewise.
19447         * modules/unictype/property-ids-binary-operator: Likewise.
19448         * modules/unictype/property-ids-trinary-operator: Likewise.
19449         * modules/unictype/property-ignorable-control: Likewise.
19450         * modules/unictype/property-iso-control: Likewise.
19451         * modules/unictype/property-join-control: Likewise.
19452         * modules/unictype/property-left-of-pair: Likewise.
19453         * modules/unictype/property-line-separator: Likewise.
19454         * modules/unictype/property-logical-order-exception: Likewise.
19455         * modules/unictype/property-lowercase: Likewise.
19456         * modules/unictype/property-math: Likewise.
19457         * modules/unictype/property-non-break: Likewise.
19458         * modules/unictype/property-not-a-character: Likewise.
19459         * modules/unictype/property-numeric: Likewise.
19460         * modules/unictype/property-other-alphabetic: Likewise.
19461         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
19462         * modules/unictype/property-other-grapheme-extend: Likewise.
19463         * modules/unictype/property-other-id-continue: Likewise.
19464         * modules/unictype/property-other-id-start: Likewise.
19465         * modules/unictype/property-other-lowercase: Likewise.
19466         * modules/unictype/property-other-math: Likewise.
19467         * modules/unictype/property-other-uppercase: Likewise.
19468         * modules/unictype/property-paired-punctuation: Likewise.
19469         * modules/unictype/property-paragraph-separator: Likewise.
19470         * modules/unictype/property-pattern-syntax: Likewise.
19471         * modules/unictype/property-pattern-white-space: Likewise.
19472         * modules/unictype/property-private-use: Likewise.
19473         * modules/unictype/property-punctuation: Likewise.
19474         * modules/unictype/property-quotation-mark: Likewise.
19475         * modules/unictype/property-radical: Likewise.
19476         * modules/unictype/property-sentence-terminal: Likewise.
19477         * modules/unictype/property-soft-dotted: Likewise.
19478         * modules/unictype/property-space: Likewise.
19479         * modules/unictype/property-terminal-punctuation: Likewise.
19480         * modules/unictype/property-test: Likewise.
19481         * modules/unictype/property-titlecase: Likewise.
19482         * modules/unictype/property-unassigned-code-value: Likewise.
19483         * modules/unictype/property-unified-ideograph: Likewise.
19484         * modules/unictype/property-uppercase: Likewise.
19485         * modules/unictype/property-variation-selector: Likewise.
19486         * modules/unictype/property-white-space: Likewise.
19487         * modules/unictype/property-xid-continue: Likewise.
19488         * modules/unictype/property-xid-start: Likewise.
19489         * modules/unictype/property-zero-width: Likewise.
19490         * modules/unictype/scripts: Likewise.
19491         * modules/unictype/syntax-c-ident: Likewise.
19492         * modules/unictype/syntax-c-whitespace: Likewise.
19493         * modules/unictype/syntax-java-ident: Likewise.
19494         * modules/unictype/syntax-java-whitespace: Likewise.
19495         * modules/unilbrk/u8-possible-linebreaks: Likewise.
19496         * modules/unilbrk/u8-width-linebreaks: Likewise.
19497         * modules/unilbrk/u16-possible-linebreaks: Likewise.
19498         * modules/unilbrk/u16-width-linebreaks: Likewise.
19499         * modules/unilbrk/u32-possible-linebreaks: Likewise.
19500         * modules/unilbrk/u32-width-linebreaks: Likewise.
19501         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
19502         * modules/unilbrk/ulc-width-linebreaks: Likewise.
19503         * modules/uniname/uniname: Likewise.
19504         * modules/uninorm/canonical-decomposition: Likewise.
19505         * modules/uninorm/composition: Likewise.
19506         * modules/uninorm/decomposing-form: Likewise.
19507         * modules/uninorm/decomposition: Likewise.
19508         * modules/uninorm/filter: Likewise.
19509         * modules/uninorm/nfc: Likewise.
19510         * modules/uninorm/nfd: Likewise.
19511         * modules/uninorm/nfkc: Likewise.
19512         * modules/uninorm/nfkd: Likewise.
19513         * modules/uninorm/u8-normalize: Likewise.
19514         * modules/uninorm/u8-normcmp: Likewise.
19515         * modules/uninorm/u8-normcoll: Likewise.
19516         * modules/uninorm/u8-normxfrm: Likewise.
19517         * modules/uninorm/u16-normalize: Likewise.
19518         * modules/uninorm/u16-normcmp: Likewise.
19519         * modules/uninorm/u16-normcoll: Likewise.
19520         * modules/uninorm/u16-normxfrm: Likewise.
19521         * modules/uninorm/u32-normalize: Likewise.
19522         * modules/uninorm/u32-normcmp: Likewise.
19523         * modules/uninorm/u32-normcoll: Likewise.
19524         * modules/uninorm/u32-normxfrm: Likewise.
19525         * modules/unistdio/u8-asnprintf: Likewise.
19526         * modules/unistdio/u8-asprintf: Likewise.
19527         * modules/unistdio/u8-snprintf: Likewise.
19528         * modules/unistdio/u8-sprintf: Likewise.
19529         * modules/unistdio/u8-u8-asnprintf: Likewise.
19530         * modules/unistdio/u8-u8-asprintf: Likewise.
19531         * modules/unistdio/u8-u8-snprintf: Likewise.
19532         * modules/unistdio/u8-u8-sprintf: Likewise.
19533         * modules/unistdio/u8-u8-vasnprintf: Likewise.
19534         * modules/unistdio/u8-u8-vasprintf: Likewise.
19535         * modules/unistdio/u8-u8-vsnprintf: Likewise.
19536         * modules/unistdio/u8-u8-vsprintf: Likewise.
19537         * modules/unistdio/u8-vasnprintf: Likewise.
19538         * modules/unistdio/u8-vasprintf: Likewise.
19539         * modules/unistdio/u8-vsnprintf: Likewise.
19540         * modules/unistdio/u8-vsprintf: Likewise.
19541         * modules/unistdio/u16-asnprintf: Likewise.
19542         * modules/unistdio/u16-asprintf: Likewise.
19543         * modules/unistdio/u16-snprintf: Likewise.
19544         * modules/unistdio/u16-sprintf: Likewise.
19545         * modules/unistdio/u16-u16-asnprintf: Likewise.
19546         * modules/unistdio/u16-u16-asprintf: Likewise.
19547         * modules/unistdio/u16-u16-snprintf: Likewise.
19548         * modules/unistdio/u16-u16-sprintf: Likewise.
19549         * modules/unistdio/u16-u16-vasnprintf: Likewise.
19550         * modules/unistdio/u16-u16-vasprintf: Likewise.
19551         * modules/unistdio/u16-u16-vsnprintf: Likewise.
19552         * modules/unistdio/u16-u16-vsprintf: Likewise.
19553         * modules/unistdio/u16-vasnprintf: Likewise.
19554         * modules/unistdio/u16-vasprintf: Likewise.
19555         * modules/unistdio/u16-vsnprintf: Likewise.
19556         * modules/unistdio/u16-vsprintf: Likewise.
19557         * modules/unistdio/u32-asnprintf: Likewise.
19558         * modules/unistdio/u32-asprintf: Likewise.
19559         * modules/unistdio/u32-snprintf: Likewise.
19560         * modules/unistdio/u32-sprintf: Likewise.
19561         * modules/unistdio/u32-u32-asnprintf: Likewise.
19562         * modules/unistdio/u32-u32-asprintf: Likewise.
19563         * modules/unistdio/u32-u32-snprintf: Likewise.
19564         * modules/unistdio/u32-u32-sprintf: Likewise.
19565         * modules/unistdio/u32-u32-vasnprintf: Likewise.
19566         * modules/unistdio/u32-u32-vasprintf: Likewise.
19567         * modules/unistdio/u32-u32-vsnprintf: Likewise.
19568         * modules/unistdio/u32-u32-vsprintf: Likewise.
19569         * modules/unistdio/u32-vasnprintf: Likewise.
19570         * modules/unistdio/u32-vasprintf: Likewise.
19571         * modules/unistdio/u32-vsnprintf: Likewise.
19572         * modules/unistdio/u32-vsprintf: Likewise.
19573         * modules/unistdio/ulc-asnprintf: Likewise.
19574         * modules/unistdio/ulc-asprintf: Likewise.
19575         * modules/unistdio/ulc-fprintf: Likewise.
19576         * modules/unistdio/ulc-snprintf: Likewise.
19577         * modules/unistdio/ulc-sprintf: Likewise.
19578         * modules/unistdio/ulc-vasnprintf: Likewise.
19579         * modules/unistdio/ulc-vasprintf: Likewise.
19580         * modules/unistdio/ulc-vfprintf: Likewise.
19581         * modules/unistdio/ulc-vsnprintf: Likewise.
19582         * modules/unistdio/ulc-vsprintf: Likewise.
19583         * modules/unistr/u8-check: Likewise.
19584         * modules/unistr/u8-chr: Likewise.
19585         * modules/unistr/u8-cmp: Likewise.
19586         * modules/unistr/u8-cmp2: Likewise.
19587         * modules/unistr/u8-cpy: Likewise.
19588         * modules/unistr/u8-cpy-alloc: Likewise.
19589         * modules/unistr/u8-endswith: Likewise.
19590         * modules/unistr/u8-mblen: Likewise.
19591         * modules/unistr/u8-mbsnlen: Likewise.
19592         * modules/unistr/u8-mbtouc: Likewise.
19593         * modules/unistr/u8-mbtouc-unsafe: Likewise.
19594         * modules/unistr/u8-mbtoucr: Likewise.
19595         * modules/unistr/u8-move: Likewise.
19596         * modules/unistr/u8-next: Likewise.
19597         * modules/unistr/u8-prev: Likewise.
19598         * modules/unistr/u8-set: Likewise.
19599         * modules/unistr/u8-startswith: Likewise.
19600         * modules/unistr/u8-stpcpy: Likewise.
19601         * modules/unistr/u8-stpncpy: Likewise.
19602         * modules/unistr/u8-strcat: Likewise.
19603         * modules/unistr/u8-strchr: Likewise.
19604         * modules/unistr/u8-strcmp: Likewise.
19605         * modules/unistr/u8-strcoll: Likewise.
19606         * modules/unistr/u8-strcpy: Likewise.
19607         * modules/unistr/u8-strcspn: Likewise.
19608         * modules/unistr/u8-strdup: Likewise.
19609         * modules/unistr/u8-strlen: Likewise.
19610         * modules/unistr/u8-strmblen: Likewise.
19611         * modules/unistr/u8-strmbtouc: Likewise.
19612         * modules/unistr/u8-strncat: Likewise.
19613         * modules/unistr/u8-strncmp: Likewise.
19614         * modules/unistr/u8-strncpy: Likewise.
19615         * modules/unistr/u8-strnlen: Likewise.
19616         * modules/unistr/u8-strpbrk: Likewise.
19617         * modules/unistr/u8-strrchr: Likewise.
19618         * modules/unistr/u8-strspn: Likewise.
19619         * modules/unistr/u8-strstr: Likewise.
19620         * modules/unistr/u8-strtok: Likewise.
19621         * modules/unistr/u8-to-u16: Likewise.
19622         * modules/unistr/u8-to-u32: Likewise.
19623         * modules/unistr/u8-uctomb: Likewise.
19624         * modules/unistr/u16-check: Likewise.
19625         * modules/unistr/u16-chr: Likewise.
19626         * modules/unistr/u16-cmp: Likewise.
19627         * modules/unistr/u16-cmp2: Likewise.
19628         * modules/unistr/u16-cpy: Likewise.
19629         * modules/unistr/u16-cpy-alloc: Likewise.
19630         * modules/unistr/u16-endswith: Likewise.
19631         * modules/unistr/u16-mblen: Likewise.
19632         * modules/unistr/u16-mbsnlen: Likewise.
19633         * modules/unistr/u16-mbtouc: Likewise.
19634         * modules/unistr/u16-mbtouc-unsafe: Likewise.
19635         * modules/unistr/u16-mbtoucr: Likewise.
19636         * modules/unistr/u16-move: Likewise.
19637         * modules/unistr/u16-next: Likewise.
19638         * modules/unistr/u16-prev: Likewise.
19639         * modules/unistr/u16-set: Likewise.
19640         * modules/unistr/u16-startswith: Likewise.
19641         * modules/unistr/u16-stpcpy: Likewise.
19642         * modules/unistr/u16-stpncpy: Likewise.
19643         * modules/unistr/u16-strcat: Likewise.
19644         * modules/unistr/u16-strchr: Likewise.
19645         * modules/unistr/u16-strcmp: Likewise.
19646         * modules/unistr/u16-strcoll: Likewise.
19647         * modules/unistr/u16-strcpy: Likewise.
19648         * modules/unistr/u16-strcspn: Likewise.
19649         * modules/unistr/u16-strdup: Likewise.
19650         * modules/unistr/u16-strlen: Likewise.
19651         * modules/unistr/u16-strmblen: Likewise.
19652         * modules/unistr/u16-strmbtouc: Likewise.
19653         * modules/unistr/u16-strncat: Likewise.
19654         * modules/unistr/u16-strncmp: Likewise.
19655         * modules/unistr/u16-strncpy: Likewise.
19656         * modules/unistr/u16-strnlen: Likewise.
19657         * modules/unistr/u16-strpbrk: Likewise.
19658         * modules/unistr/u16-strrchr: Likewise.
19659         * modules/unistr/u16-strspn: Likewise.
19660         * modules/unistr/u16-strstr: Likewise.
19661         * modules/unistr/u16-strtok: Likewise.
19662         * modules/unistr/u16-to-u32: Likewise.
19663         * modules/unistr/u16-to-u8: Likewise.
19664         * modules/unistr/u16-uctomb: Likewise.
19665         * modules/unistr/u32-check: Likewise.
19666         * modules/unistr/u32-chr: Likewise.
19667         * modules/unistr/u32-cmp: Likewise.
19668         * modules/unistr/u32-cmp2: Likewise.
19669         * modules/unistr/u32-cpy: Likewise.
19670         * modules/unistr/u32-cpy-alloc: Likewise.
19671         * modules/unistr/u32-endswith: Likewise.
19672         * modules/unistr/u32-mblen: Likewise.
19673         * modules/unistr/u32-mbsnlen: Likewise.
19674         * modules/unistr/u32-mbtouc: Likewise.
19675         * modules/unistr/u32-mbtouc-unsafe: Likewise.
19676         * modules/unistr/u32-mbtoucr: Likewise.
19677         * modules/unistr/u32-move: Likewise.
19678         * modules/unistr/u32-next: Likewise.
19679         * modules/unistr/u32-prev: Likewise.
19680         * modules/unistr/u32-set: Likewise.
19681         * modules/unistr/u32-startswith: Likewise.
19682         * modules/unistr/u32-stpcpy: Likewise.
19683         * modules/unistr/u32-stpncpy: Likewise.
19684         * modules/unistr/u32-strcat: Likewise.
19685         * modules/unistr/u32-strchr: Likewise.
19686         * modules/unistr/u32-strcmp: Likewise.
19687         * modules/unistr/u32-strcoll: Likewise.
19688         * modules/unistr/u32-strcpy: Likewise.
19689         * modules/unistr/u32-strcspn: Likewise.
19690         * modules/unistr/u32-strdup: Likewise.
19691         * modules/unistr/u32-strlen: Likewise.
19692         * modules/unistr/u32-strmblen: Likewise.
19693         * modules/unistr/u32-strmbtouc: Likewise.
19694         * modules/unistr/u32-strncat: Likewise.
19695         * modules/unistr/u32-strncmp: Likewise.
19696         * modules/unistr/u32-strncpy: Likewise.
19697         * modules/unistr/u32-strnlen: Likewise.
19698         * modules/unistr/u32-strpbrk: Likewise.
19699         * modules/unistr/u32-strrchr: Likewise.
19700         * modules/unistr/u32-strspn: Likewise.
19701         * modules/unistr/u32-strstr: Likewise.
19702         * modules/unistr/u32-strtok: Likewise.
19703         * modules/unistr/u32-to-u16: Likewise.
19704         * modules/unistr/u32-to-u8: Likewise.
19705         * modules/unistr/u32-uctomb: Likewise.
19706         * modules/uniwbrk/u8-wordbreaks: Likewise.
19707         * modules/uniwbrk/u16-wordbreaks: Likewise.
19708         * modules/uniwbrk/u32-wordbreaks: Likewise.
19709         * modules/uniwbrk/ulc-wordbreaks: Likewise.
19710         * modules/uniwbrk/wordbreak-property: Likewise.
19711         * modules/uniwidth/u8-strwidth: Likewise.
19712         * modules/uniwidth/u8-width: Likewise.
19713         * modules/uniwidth/u16-strwidth: Likewise.
19714         * modules/uniwidth/u16-width: Likewise.
19715         * modules/uniwidth/u32-strwidth: Likewise.
19716         * modules/uniwidth/u32-width: Likewise.
19717         * modules/uniwidth/width: Likewise.
19718         * modules/unicase/cased-tests (Makefile.am): Link all test programs
19719         with $(LIBUNISTRING).
19720         * modules/unicase/ignorable-tests: Likewise.
19721         * modules/unicase/locale-language-tests: Likewise.
19722         * modules/unicase/tolower-tests: Likewise.
19723         * modules/unicase/totitle-tests: Likewise.
19724         * modules/unicase/toupper-tests: Likewise.
19725         * modules/unicase/u8-casecmp-tests: Likewise.
19726         * modules/unicase/u8-casecoll-tests: Likewise.
19727         * modules/unicase/u8-casefold-tests: Likewise.
19728         * modules/unicase/u8-is-cased-tests: Likewise.
19729         * modules/unicase/u8-is-casefolded-tests: Likewise.
19730         * modules/unicase/u8-is-lowercase-tests: Likewise.
19731         * modules/unicase/u8-is-titlecase-tests: Likewise.
19732         * modules/unicase/u8-is-uppercase-tests: Likewise.
19733         * modules/unicase/u8-tolower-tests: Likewise.
19734         * modules/unicase/u8-totitle-tests: Likewise.
19735         * modules/unicase/u8-toupper-tests: Likewise.
19736         * modules/unicase/u16-casecmp-tests: Likewise.
19737         * modules/unicase/u16-casecoll-tests: Likewise.
19738         * modules/unicase/u16-casefold-tests: Likewise.
19739         * modules/unicase/u16-is-cased-tests: Likewise.
19740         * modules/unicase/u16-is-casefolded-tests: Likewise.
19741         * modules/unicase/u16-is-lowercase-tests: Likewise.
19742         * modules/unicase/u16-is-titlecase-tests: Likewise.
19743         * modules/unicase/u16-is-uppercase-tests: Likewise.
19744         * modules/unicase/u16-tolower-tests: Likewise.
19745         * modules/unicase/u16-totitle-tests: Likewise.
19746         * modules/unicase/u16-toupper-tests: Likewise.
19747         * modules/unicase/u32-casecmp-tests: Likewise.
19748         * modules/unicase/u32-casecoll-tests: Likewise.
19749         * modules/unicase/u32-casefold-tests: Likewise.
19750         * modules/unicase/u32-is-cased-tests: Likewise.
19751         * modules/unicase/u32-is-casefolded-tests: Likewise.
19752         * modules/unicase/u32-is-lowercase-tests: Likewise.
19753         * modules/unicase/u32-is-titlecase-tests: Likewise.
19754         * modules/unicase/u32-is-uppercase-tests: Likewise.
19755         * modules/unicase/u32-tolower-tests: Likewise.
19756         * modules/unicase/u32-totitle-tests: Likewise.
19757         * modules/unicase/u32-toupper-tests: Likewise.
19758         * modules/unicase/ulc-casecmp-tests: Likewise.
19759         * modules/unicase/ulc-casecoll-tests: Likewise.
19760         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
19761         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
19762         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
19763         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
19764         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
19765         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
19766         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
19767         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
19768         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
19769         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
19770         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
19771         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
19772         * modules/unictype/bidicategory-byname-tests: Likewise.
19773         * modules/unictype/bidicategory-name-tests: Likewise.
19774         * modules/unictype/bidicategory-of-tests: Likewise.
19775         * modules/unictype/bidicategory-test-tests: Likewise.
19776         * modules/unictype/block-list-tests: Likewise.
19777         * modules/unictype/block-of-tests: Likewise.
19778         * modules/unictype/block-test-tests: Likewise.
19779         * modules/unictype/category-C-tests: Likewise.
19780         * modules/unictype/category-Cc-tests: Likewise.
19781         * modules/unictype/category-Cf-tests: Likewise.
19782         * modules/unictype/category-Cn-tests: Likewise.
19783         * modules/unictype/category-Co-tests: Likewise.
19784         * modules/unictype/category-Cs-tests: Likewise.
19785         * modules/unictype/category-L-tests: Likewise.
19786         * modules/unictype/category-Ll-tests: Likewise.
19787         * modules/unictype/category-Lm-tests: Likewise.
19788         * modules/unictype/category-Lo-tests: Likewise.
19789         * modules/unictype/category-Lt-tests: Likewise.
19790         * modules/unictype/category-Lu-tests: Likewise.
19791         * modules/unictype/category-M-tests: Likewise.
19792         * modules/unictype/category-Mc-tests: Likewise.
19793         * modules/unictype/category-Me-tests: Likewise.
19794         * modules/unictype/category-Mn-tests: Likewise.
19795         * modules/unictype/category-N-tests: Likewise.
19796         * modules/unictype/category-Nd-tests: Likewise.
19797         * modules/unictype/category-Nl-tests: Likewise.
19798         * modules/unictype/category-No-tests: Likewise.
19799         * modules/unictype/category-P-tests: Likewise.
19800         * modules/unictype/category-Pc-tests: Likewise.
19801         * modules/unictype/category-Pd-tests: Likewise.
19802         * modules/unictype/category-Pe-tests: Likewise.
19803         * modules/unictype/category-Pf-tests: Likewise.
19804         * modules/unictype/category-Pi-tests: Likewise.
19805         * modules/unictype/category-Po-tests: Likewise.
19806         * modules/unictype/category-Ps-tests: Likewise.
19807         * modules/unictype/category-S-tests: Likewise.
19808         * modules/unictype/category-Sc-tests: Likewise.
19809         * modules/unictype/category-Sk-tests: Likewise.
19810         * modules/unictype/category-Sm-tests: Likewise.
19811         * modules/unictype/category-So-tests: Likewise.
19812         * modules/unictype/category-Z-tests: Likewise.
19813         * modules/unictype/category-Zl-tests: Likewise.
19814         * modules/unictype/category-Zp-tests: Likewise.
19815         * modules/unictype/category-Zs-tests: Likewise.
19816         * modules/unictype/category-and-not-tests: Likewise.
19817         * modules/unictype/category-and-tests: Likewise.
19818         * modules/unictype/category-byname-tests: Likewise.
19819         * modules/unictype/category-name-tests: Likewise.
19820         * modules/unictype/category-none-tests: Likewise.
19821         * modules/unictype/category-of-tests: Likewise.
19822         * modules/unictype/category-or-tests: Likewise.
19823         * modules/unictype/category-test-withtable-tests: Likewise.
19824         * modules/unictype/combining-class-tests: Likewise.
19825         * modules/unictype/ctype-alnum-tests: Likewise.
19826         * modules/unictype/ctype-alpha-tests: Likewise.
19827         * modules/unictype/ctype-blank-tests: Likewise.
19828         * modules/unictype/ctype-cntrl-tests: Likewise.
19829         * modules/unictype/ctype-digit-tests: Likewise.
19830         * modules/unictype/ctype-graph-tests: Likewise.
19831         * modules/unictype/ctype-lower-tests: Likewise.
19832         * modules/unictype/ctype-print-tests: Likewise.
19833         * modules/unictype/ctype-punct-tests: Likewise.
19834         * modules/unictype/ctype-space-tests: Likewise.
19835         * modules/unictype/ctype-upper-tests: Likewise.
19836         * modules/unictype/ctype-xdigit-tests: Likewise.
19837         * modules/unictype/decimal-digit-tests: Likewise.
19838         * modules/unictype/digit-tests: Likewise.
19839         * modules/unictype/mirror-tests: Likewise.
19840         * modules/unictype/numeric-tests: Likewise.
19841         * modules/unictype/property-alphabetic-tests: Likewise.
19842         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
19843         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
19844         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
19845         * modules/unictype/property-bidi-block-separator-tests: Likewise.
19846         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
19847         * modules/unictype/property-bidi-common-separator-tests: Likewise.
19848         * modules/unictype/property-bidi-control-tests: Likewise.
19849         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
19850         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
19851         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
19852         * modules/unictype/property-bidi-european-digit-tests: Likewise.
19853         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
19854         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
19855         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
19856         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
19857         * modules/unictype/property-bidi-pdf-tests: Likewise.
19858         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
19859         * modules/unictype/property-bidi-whitespace-tests: Likewise.
19860         * modules/unictype/property-byname-tests: Likewise.
19861         * modules/unictype/property-combining-tests: Likewise.
19862         * modules/unictype/property-composite-tests: Likewise.
19863         * modules/unictype/property-currency-symbol-tests: Likewise.
19864         * modules/unictype/property-dash-tests: Likewise.
19865         * modules/unictype/property-decimal-digit-tests: Likewise.
19866         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
19867         * modules/unictype/property-deprecated-tests: Likewise.
19868         * modules/unictype/property-diacritic-tests: Likewise.
19869         * modules/unictype/property-extender-tests: Likewise.
19870         * modules/unictype/property-format-control-tests: Likewise.
19871         * modules/unictype/property-grapheme-base-tests: Likewise.
19872         * modules/unictype/property-grapheme-extend-tests: Likewise.
19873         * modules/unictype/property-grapheme-link-tests: Likewise.
19874         * modules/unictype/property-hex-digit-tests: Likewise.
19875         * modules/unictype/property-hyphen-tests: Likewise.
19876         * modules/unictype/property-id-continue-tests: Likewise.
19877         * modules/unictype/property-id-start-tests: Likewise.
19878         * modules/unictype/property-ideographic-tests: Likewise.
19879         * modules/unictype/property-ids-binary-operator-tests: Likewise.
19880         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
19881         * modules/unictype/property-ignorable-control-tests: Likewise.
19882         * modules/unictype/property-iso-control-tests: Likewise.
19883         * modules/unictype/property-join-control-tests: Likewise.
19884         * modules/unictype/property-left-of-pair-tests: Likewise.
19885         * modules/unictype/property-line-separator-tests: Likewise.
19886         * modules/unictype/property-logical-order-exception-tests: Likewise.
19887         * modules/unictype/property-lowercase-tests: Likewise.
19888         * modules/unictype/property-math-tests: Likewise.
19889         * modules/unictype/property-non-break-tests: Likewise.
19890         * modules/unictype/property-not-a-character-tests: Likewise.
19891         * modules/unictype/property-numeric-tests: Likewise.
19892         * modules/unictype/property-other-alphabetic-tests: Likewise.
19893         * modules/unictype/property-other-default-ignorable-code-point-tests:
19894         Likewise.
19895         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
19896         * modules/unictype/property-other-id-continue-tests: Likewise.
19897         * modules/unictype/property-other-id-start-tests: Likewise.
19898         * modules/unictype/property-other-lowercase-tests: Likewise.
19899         * modules/unictype/property-other-math-tests: Likewise.
19900         * modules/unictype/property-other-uppercase-tests: Likewise.
19901         * modules/unictype/property-paired-punctuation-tests: Likewise.
19902         * modules/unictype/property-paragraph-separator-tests: Likewise.
19903         * modules/unictype/property-pattern-syntax-tests: Likewise.
19904         * modules/unictype/property-pattern-white-space-tests: Likewise.
19905         * modules/unictype/property-private-use-tests: Likewise.
19906         * modules/unictype/property-punctuation-tests: Likewise.
19907         * modules/unictype/property-quotation-mark-tests: Likewise.
19908         * modules/unictype/property-radical-tests: Likewise.
19909         * modules/unictype/property-sentence-terminal-tests: Likewise.
19910         * modules/unictype/property-soft-dotted-tests: Likewise.
19911         * modules/unictype/property-space-tests: Likewise.
19912         * modules/unictype/property-terminal-punctuation-tests: Likewise.
19913         * modules/unictype/property-test-tests: Likewise.
19914         * modules/unictype/property-titlecase-tests: Likewise.
19915         * modules/unictype/property-unassigned-code-value-tests: Likewise.
19916         * modules/unictype/property-unified-ideograph-tests: Likewise.
19917         * modules/unictype/property-uppercase-tests: Likewise.
19918         * modules/unictype/property-variation-selector-tests: Likewise.
19919         * modules/unictype/property-white-space-tests: Likewise.
19920         * modules/unictype/property-xid-continue-tests: Likewise.
19921         * modules/unictype/property-xid-start-tests: Likewise.
19922         * modules/unictype/property-zero-width-tests: Likewise.
19923         * modules/unictype/scripts-tests: Likewise.
19924         * modules/unictype/syntax-c-ident-tests: Likewise.
19925         * modules/unictype/syntax-c-whitespace-tests: Likewise.
19926         * modules/unictype/syntax-java-ident-tests: Likewise.
19927         * modules/unictype/syntax-java-whitespace-tests: Likewise.
19928         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
19929         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
19930         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
19931         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
19932         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
19933         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
19934         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
19935         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
19936         * modules/uniname/uniname-tests: Likewise.
19937         * modules/uninorm/canonical-decomposition-tests: Likewise.
19938         * modules/uninorm/compat-decomposition-tests: Likewise.
19939         * modules/uninorm/composition-tests: Likewise.
19940         * modules/uninorm/decomposing-form-tests: Likewise.
19941         * modules/uninorm/decomposition-tests: Likewise.
19942         * modules/uninorm/filter-tests: Likewise.
19943         * modules/uninorm/nfc-tests: Likewise.
19944         * modules/uninorm/nfd-tests: Likewise.
19945         * modules/uninorm/nfkc-tests: Likewise.
19946         * modules/uninorm/nfkd-tests: Likewise.
19947         * modules/uninorm/u8-normcmp-tests: Likewise.
19948         * modules/uninorm/u8-normcoll-tests: Likewise.
19949         * modules/uninorm/u16-normcmp-tests: Likewise.
19950         * modules/uninorm/u16-normcoll-tests: Likewise.
19951         * modules/uninorm/u32-normcmp-tests: Likewise.
19952         * modules/uninorm/u32-normcoll-tests: Likewise.
19953         * modules/unistdio/u8-asnprintf-tests: Likewise.
19954         * modules/unistdio/u8-vasnprintf-tests: Likewise.
19955         * modules/unistdio/u8-vasprintf-tests: Likewise.
19956         * modules/unistdio/u8-vsnprintf-tests: Likewise.
19957         * modules/unistdio/u8-vsprintf-tests: Likewise.
19958         * modules/unistdio/u16-asnprintf-tests: Likewise.
19959         * modules/unistdio/u16-vasnprintf-tests: Likewise.
19960         * modules/unistdio/u16-vasprintf-tests: Likewise.
19961         * modules/unistdio/u16-vsnprintf-tests: Likewise.
19962         * modules/unistdio/u16-vsprintf-tests: Likewise.
19963         * modules/unistdio/u32-asnprintf-tests: Likewise.
19964         * modules/unistdio/u32-vasnprintf-tests: Likewise.
19965         * modules/unistdio/u32-vasprintf-tests: Likewise.
19966         * modules/unistdio/u32-vsnprintf-tests: Likewise.
19967         * modules/unistdio/u32-vsprintf-tests: Likewise.
19968         * modules/unistdio/ulc-asnprintf-tests: Likewise.
19969         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
19970         * modules/unistdio/ulc-vasprintf-tests: Likewise.
19971         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
19972         * modules/unistdio/ulc-vsprintf-tests: Likewise.
19973         * modules/unistr/u8-check-tests: Likewise.
19974         * modules/unistr/u8-chr-tests: Likewise.
19975         * modules/unistr/u8-cmp-tests: Likewise.
19976         * modules/unistr/u8-cmp2-tests: Likewise.
19977         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19978         * modules/unistr/u8-cpy-tests: Likewise.
19979         * modules/unistr/u8-mblen-tests: Likewise.
19980         * modules/unistr/u8-mbsnlen-tests: Likewise.
19981         * modules/unistr/u8-mbtouc-tests: Likewise.
19982         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19983         * modules/unistr/u8-mbtoucr-tests: Likewise.
19984         * modules/unistr/u8-move-tests: Likewise.
19985         * modules/unistr/u8-next-tests: Likewise.
19986         * modules/unistr/u8-prev-tests: Likewise.
19987         * modules/unistr/u8-set-tests: Likewise.
19988         * modules/unistr/u8-stpcpy-tests: Likewise.
19989         * modules/unistr/u8-stpncpy-tests: Likewise.
19990         * modules/unistr/u8-strcat-tests: Likewise.
19991         * modules/unistr/u8-strcmp-tests: Likewise.
19992         * modules/unistr/u8-strcoll-tests: Likewise.
19993         * modules/unistr/u8-strcpy-tests: Likewise.
19994         * modules/unistr/u8-strdup-tests: Likewise.
19995         * modules/unistr/u8-strlen-tests: Likewise.
19996         * modules/unistr/u8-strmblen-tests: Likewise.
19997         * modules/unistr/u8-strmbtouc-tests: Likewise.
19998         * modules/unistr/u8-strncat-tests: Likewise.
19999         * modules/unistr/u8-strncmp-tests: Likewise.
20000         * modules/unistr/u8-strncpy-tests: Likewise.
20001         * modules/unistr/u8-strnlen-tests: Likewise.
20002         * modules/unistr/u8-to-u16-tests: Likewise.
20003         * modules/unistr/u8-to-u32-tests: Likewise.
20004         * modules/unistr/u8-uctomb-tests: Likewise.
20005         * modules/unistr/u16-check-tests: Likewise.
20006         * modules/unistr/u16-chr-tests: Likewise.
20007         * modules/unistr/u16-cmp-tests: Likewise.
20008         * modules/unistr/u16-cmp2-tests: Likewise.
20009         * modules/unistr/u16-cpy-alloc-tests: Likewise.
20010         * modules/unistr/u16-cpy-tests: Likewise.
20011         * modules/unistr/u16-mblen-tests: Likewise.
20012         * modules/unistr/u16-mbsnlen-tests: Likewise.
20013         * modules/unistr/u16-mbtouc-tests: Likewise.
20014         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
20015         * modules/unistr/u16-mbtoucr-tests: Likewise.
20016         * modules/unistr/u16-move-tests: Likewise.
20017         * modules/unistr/u16-next-tests: Likewise.
20018         * modules/unistr/u16-prev-tests: Likewise.
20019         * modules/unistr/u16-set-tests: Likewise.
20020         * modules/unistr/u16-stpcpy-tests: Likewise.
20021         * modules/unistr/u16-stpncpy-tests: Likewise.
20022         * modules/unistr/u16-strcat-tests: Likewise.
20023         * modules/unistr/u16-strcmp-tests: Likewise.
20024         * modules/unistr/u16-strcoll-tests: Likewise.
20025         * modules/unistr/u16-strcpy-tests: Likewise.
20026         * modules/unistr/u16-strdup-tests: Likewise.
20027         * modules/unistr/u16-strlen-tests: Likewise.
20028         * modules/unistr/u16-strmblen-tests: Likewise.
20029         * modules/unistr/u16-strmbtouc-tests: Likewise.
20030         * modules/unistr/u16-strncat-tests: Likewise.
20031         * modules/unistr/u16-strncmp-tests: Likewise.
20032         * modules/unistr/u16-strncpy-tests: Likewise.
20033         * modules/unistr/u16-strnlen-tests: Likewise.
20034         * modules/unistr/u16-to-u32-tests: Likewise.
20035         * modules/unistr/u16-to-u8-tests: Likewise.
20036         * modules/unistr/u16-uctomb-tests: Likewise.
20037         * modules/unistr/u32-check-tests: Likewise.
20038         * modules/unistr/u32-chr-tests: Likewise.
20039         * modules/unistr/u32-cmp-tests: Likewise.
20040         * modules/unistr/u32-cmp2-tests: Likewise.
20041         * modules/unistr/u32-cpy-alloc-tests: Likewise.
20042         * modules/unistr/u32-cpy-tests: Likewise.
20043         * modules/unistr/u32-mblen-tests: Likewise.
20044         * modules/unistr/u32-mbsnlen-tests: Likewise.
20045         * modules/unistr/u32-mbtouc-tests: Likewise.
20046         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
20047         * modules/unistr/u32-mbtoucr-tests: Likewise.
20048         * modules/unistr/u32-move-tests: Likewise.
20049         * modules/unistr/u32-next-tests: Likewise.
20050         * modules/unistr/u32-prev-tests: Likewise.
20051         * modules/unistr/u32-set-tests: Likewise.
20052         * modules/unistr/u32-stpcpy-tests: Likewise.
20053         * modules/unistr/u32-stpncpy-tests: Likewise.
20054         * modules/unistr/u32-strcat-tests: Likewise.
20055         * modules/unistr/u32-strcmp-tests: Likewise.
20056         * modules/unistr/u32-strcoll-tests: Likewise.
20057         * modules/unistr/u32-strcpy-tests: Likewise.
20058         * modules/unistr/u32-strdup-tests: Likewise.
20059         * modules/unistr/u32-strlen-tests: Likewise.
20060         * modules/unistr/u32-strmblen-tests: Likewise.
20061         * modules/unistr/u32-strmbtouc-tests: Likewise.
20062         * modules/unistr/u32-strncat-tests: Likewise.
20063         * modules/unistr/u32-strncmp-tests: Likewise.
20064         * modules/unistr/u32-strncpy-tests: Likewise.
20065         * modules/unistr/u32-strnlen-tests: Likewise.
20066         * modules/unistr/u32-to-u16-tests: Likewise.
20067         * modules/unistr/u32-to-u8-tests: Likewise.
20068         * modules/unistr/u32-uctomb-tests: Likewise.
20069         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
20070         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
20071         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
20072         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
20073         * modules/uniwidth/u8-strwidth-tests: Likewise.
20074         * modules/uniwidth/u8-width-tests: Likewise.
20075         * modules/uniwidth/u16-strwidth-tests: Likewise.
20076         * modules/uniwidth/u16-width-tests: Likewise.
20077         * modules/uniwidth/u32-strwidth-tests: Likewise.
20078         * modules/uniwidth/u32-width-tests: Likewise.
20079         * modules/uniwidth/width-tests: Likewise.
20080
20081 2010-05-18  Richard Jones  <rjones@redhat.com>
20082
20083         doc: users.txt: list hivex
20084         * users.txt: Add hivex.
20085
20086 2010-05-18  Richard Jones  <rjones@redhat.com>
20087
20088         doc: users.txt: list febootstrap
20089         * users.txt: Add febootstrap.
20090
20091 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
20092
20093         bootstrap: fix an error when gnulib is not used as a git submodule
20094         * build-aux/bootstrap (gnulib_path): If its length is zero then
20095         assign "gnulib" to it.
20096         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
20097
20098 2010-05-16  Bruno Haible  <bruno@clisp.org>
20099
20100         Avoid autoconf warnings about AM_ICONV.
20101         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
20102         2.64.
20103
20104 2010-05-16  Bruno Haible  <bruno@clisp.org>
20105
20106         absolute-header: Make the macro usable in more situations.
20107         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
20108         from gl_ABSOLUTE_HEADER.
20109         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
20110
20111 2010-05-16  James Youngman  <jay@gnu.org>
20112
20113         doc: update users.txt
20114         * users.txt: Add CSSC.
20115
20116 2010-05-16  Jim Meyering  <meyering@redhat.com>
20117
20118         init.sh: fix an error in the previous change; add more comments
20119         * tests/init.sh: Compare exit code in loop against 9, not 2.
20120         Patch by Bruno Haible.
20121         Make the two tests more similar by adding an empty "then" clause.
20122         Add comments.
20123
20124         init.sh: avoid unnecessary shell re-exec
20125         * tests/init.sh: Improve the re-exec-required check to first test the
20126         current shell.  If it passes the test, do not search for a shell that
20127         does pass, and do not re-exec.  This test is particularly contorted to
20128         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
20129         of $(...) evokes a syntax error and causes immediate shell exit with
20130         status 2.  Bruno Haible reported that the re-exec made it impossible
20131         to single-step through any init.sh-using script.
20132
20133 2010-05-16  Bruno Haible  <bruno@clisp.org>
20134
20135         Fix collision between gnulib's and libintl's printf replacements.
20136         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
20137         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
20138         (printf): When using GNU C, map the __printf__ function to rpl_printf
20139         via __asm__. When not using GNU C, define rpl_printf instead of
20140         __printf__.
20141         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
20142         commit.
20143         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
20144         commit.
20145         * m4/asm-underscore.m4: New file.
20146         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
20147         * modules/stdio (Files): Add m4/asm-underscore.m4.
20148         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
20149         Reported by Ben Pfaff.
20150
20151 2010-05-16  Bruno Haible  <bruno@clisp.org>
20152
20153         verify: Avoid skipping the test on openSUSE 11.0.
20154         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
20155
20156 2010-05-13  Bruno Haible  <bruno@clisp.org>
20157
20158         Avoid useless warnings from G++.
20159         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
20160         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
20161         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20162
20163 2010-05-11  Jim Meyering  <meyering@redhat.com>
20164
20165         maint.mk: tweak preceding change
20166         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
20167         regexps tighter by anchoring at EOL, and make the new group "shy"
20168         for slightly decreased overhead.
20169
20170 2010-05-11  Eric Blake  <eblake@redhat.com>
20171
20172         maint.mk: gnulib doesn't guarantee NSIG
20173         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
20174
20175 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20176
20177         test-pwrite.c: Remove unused variable declaration.
20178         * tests/test-pwrite.c (main): Remove read_buf declaration.
20179
20180         Remove useless test-pwrite.sh file.
20181         * tests/test-pwrite.sh: Delete file.
20182         * modules/pwrite-tests: Remove references.
20183         Reported by Bruno Haible.
20184
20185 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20186
20187         init.sh: fix a typo
20188         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
20189
20190 2010-05-10  Jim Meyering  <meyering@redhat.com>
20191
20192         maint.mk: avoid using a temporary file in the always-defined-macros check
20193         * top/maint.mk (.re-defmac): Remove rule.
20194         (gl_trap_): Remove definition.
20195         (sc_prohibit_always-defined_macros): Rewrite not to create and
20196         depend on a temporary file.  Instead, depend on GNU grep's ability
20197         to read a list of regular expressions from stdin when given "-f -".
20198
20199 2010-05-09  Bruno Haible  <bruno@clisp.org>
20200
20201         Update to GNU gettext 0.18, part 1.
20202         * m4/gettext.m4: Update to GNU gettext 0.18.
20203         * m4/intl.m4: Likewise.
20204         * m4/po.m4: Likewise.
20205         * modules/gettext (Files): Add m4/fcntl-o.m4.
20206         (configure.ac): Require gettext infrastructure from version 0.18.
20207
20208 2010-05-09  Jim Meyering  <meyering@redhat.com>
20209
20210         init.sh: enable MALLOC_PERTURB_
20211         * tests/init.sh: Enable glibc's malloc-perturbing option.
20212
20213         maint.mk: improve sc_cross_check_PATH_usage_in_tests
20214         With my recent change in init.sh from the two-line form:
20215             -#   : ${srcdir=.}
20216             -#   . "$srcdir/init.sh"; path_prepend_ .
20217             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
20218         I noticed that using the one-line form would cause this test
20219         to fail with a false-positive, or to stop working altogether,
20220         depending on whether help-version changed or all the tests did.
20221         * top/maint.mk (_hv_regex): Remove this definition.
20222         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
20223         (_hv_regex_strong): Use a stronger regex to check for conformance.
20224         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
20225         Give a separate diagnostic for lack of conforming use.
20226
20227         maint.mk: prohibit definition of symbols defined by gnulib
20228         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
20229         definition of symbols defined by gnulib.
20230
20231 2010-05-09  Bruno Haible  <bruno@clisp.org>
20232
20233         acl: Avoid test failure on Cygwin-hosted mingw.
20234         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
20235
20236 2010-05-09  Bruno Haible  <bruno@clisp.org>
20237
20238         error: Use system's fcntl function.
20239         * lib/error.c (fcntl): Undefine.
20240
20241 2010-05-09  Jim Meyering  <meyering@redhat.com>
20242
20243         verify: adjust formatting to be more consistent
20244         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
20245         argument-list '('s, and after one comma.
20246
20247 2010-05-09  Bruno Haible  <bruno@clisp.org>
20248
20249         error: More reliable output on mingw.
20250         * lib/error.c: Include <windows.h>.
20251         (is_open): New function.
20252         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
20253         defined.
20254
20255 2010-05-09  Bruno Haible  <bruno@clisp.org>
20256
20257         vasnprintf: Fix syntax errors in libintl build on mingw.
20258         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
20259         pad_ourselves and prec_ourselves after use.
20260
20261 2010-05-08  Bruno Haible  <bruno@clisp.org>
20262
20263         * lib/config.charset: Update comments for Cygwin 1.7.
20264         * lib/localcharset.c: Likewise.
20265
20266 2010-05-07  Jim Meyering  <meyering@redhat.com>
20267
20268         init.sh: improve comments
20269         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
20270         . "${srcdir=.}/init.sh"; path_prepend_ .
20271         Add a note about path_prepend_ and the alternative of using
20272         TESTS_ENVIRONMENT.
20273
20274 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20275
20276         exclude: Unescape hashed patterns in wildcard mode.
20277         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
20278         to the hash list.
20279         * tests/test-exclude8.sh: New test case.
20280         * modules/exclude-tests: Add new test.
20281
20282 2010-05-05  Eric Blake  <eblake@redhat.com>
20283
20284         verify: automate tests
20285         * modules/verify-tests: New module.
20286         * tests/test-verify.sh: New file.
20287         * tests/test-verify.c: Guard each negative test with a unique id.
20288         Also avoid warning about unused left hand of comma expressions.
20289
20290 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20291
20292         Further improvements to verify.h, suggested by Eric Blake.
20293         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
20294         the GL_* versions, to avoid collision with OpenGL.
20295         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
20296         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
20297         than testing merely whether it's defined.
20298
20299         Modify verify.h to pacify gcc -Wredundant_decls.
20300         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
20301         These use the prefix "GL_" since they're likely to be useful elsewhere.
20302         We may need to break them out into a different .h file.
20303         (__COUNTER__): Define to 0 if the compiler doesn't support it.
20304         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
20305         of verify_function__.
20306
20307 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20308
20309         Tests for module pwrite.
20310         * modules/pwrite-tests: New file.
20311         * tests/test-pwrite.sh: New file.
20312         * tests/test-pwrite.c: New file.
20313
20314         New module pwrite.
20315         * lib/unistd.in.h (pwrite): New declaration.
20316         * lib/pwrite.c: New file, from glibc with modifications.
20317         * m4/pwrite.m4: New file.
20318         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
20319         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
20320         REPLACE_PWRITE.
20321         * modules/pwrite: New file.
20322         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
20323         REPLACE_PWRITE.
20324         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
20325         * doc/posix-functions/pwrite.texi: Mention the new module.
20326
20327 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20328
20329         pread: Update documentation.
20330         * doc/posix-functions/pread.texi: Mention the 'pread' module.
20331
20332 2010-05-04  Eric Blake  <eblake@redhat.com>
20333
20334         docs: update cygwin progress
20335         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
20336         this bug.
20337         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
20338         Added in cygwin 1.7.2.
20339         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
20340         Likewise.
20341         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
20342         Likewise.
20343         * doc/glibc-functions/dup3.texi (dup3): Likewise.
20344         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
20345         * doc/glibc-functions/accept4.texi (accept4): Likewise.
20346         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
20347         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
20348         Mention nproc module.
20349         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
20350         bug in cygwin 1.7.5 addition.
20351         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
20352         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
20353         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
20354         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
20355         1.7.5.
20356         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
20357         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
20358         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
20359         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
20360         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
20361         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
20362         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
20363         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
20364         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
20365         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
20366         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
20367         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
20368         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
20369         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
20370         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
20371         Likewise.
20372         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
20373         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
20374         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
20375         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
20376         Likewise.
20377         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
20378         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
20379         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
20380         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
20381         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
20382         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
20383         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
20384         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
20385         Likewise.
20386         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
20387         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
20388         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
20389         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
20390         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
20391         Likewise.
20392         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
20393         Likewise.
20394         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
20395         Likewise.
20396         * doc/glibc-functions/xdrrec_endofrecord.texi
20397         (xdrrec_endofrecord): Likewise.
20398         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
20399         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
20400         Likewise.
20401         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
20402         Likewise.
20403
20404 2010-05-04  Jim Meyering  <meyering@redhat.com>
20405
20406         gendocs.sh: make its "-s FILE" option more useful
20407         * build-aux/gendocs.sh: When honoring the -s FILE option, update
20408         $PACKAGE to reflect the probably-different basename of "FILE".
20409
20410 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20411
20412         bootstrap: don't ignore download_po_files failure
20413         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
20414         failure.
20415
20416 2010-05-03  Jim Meyering  <meyering@redhat.com>
20417
20418         maint.mk: allow to pass options to gendocs.sh
20419         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
20420         (gendocs_options_): New overridable variable.
20421
20422         gnu-web-doc-update: don't ignore configure or build failure
20423         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
20424
20425         announce-gen: backslash-escape '@'s in --help output
20426         * build-aux/announce-gen: Fix syntax errors.
20427
20428         maint.mk, announce-gen: allow project-specific announcement mail headers
20429         * top/maint.mk (translation_project_): Define default.
20430         (announcement_Cc_, announcement_mail_headers_): Likewise.
20431         (announcement): Invoke announce-gen with new --mail-headers option.
20432         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
20433
20434         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
20435         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
20436         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
20437         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
20438         line in the "err2" output file when running "make check" in verbose
20439         mode (i.e., with set -x enabled).
20440
20441 2010-05-03  Bruno Haible  <bruno@clisp.org>
20442
20443         wctob: Fix for weird platforms.
20444         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
20445         argument value.
20446
20447 2010-05-03  Jim Meyering  <meyering@redhat.com>
20448
20449         maint.mk: prohibit unwarranted use of <strings.h>
20450         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
20451         strings.h in a file that does not also use strcasecmp, strncasecmp,
20452         ffs or ffsll.
20453
20454         maint.mk: remove obsolete comments
20455         * top/maint.mk: Remove stale, commented-out rules.
20456
20457 2010-05-02  Bruno Haible  <bruno@clisp.org>
20458
20459         wcwidth: Declare also when it's aliased.
20460         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
20461         macro.
20462
20463 2010-05-02  Bruno Haible  <bruno@clisp.org>
20464
20465         Fix regression from 2010-04-25.
20466         * gnulib-tool (func_modules_transitive_closure): Check the status of
20467         all modules, not only of the tests that are of the form foo-tests where
20468         foo is a module.
20469
20470 2010-05-02  Bruno Haible  <bruno@clisp.org>
20471
20472         wctob: Work around nasty Cygwin 1.7.2 bug.
20473         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
20474         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
20475
20476 2010-05-01  Bruno Haible  <bruno@clisp.org>
20477
20478         fpurge: Sharper test.
20479         * tests/test-fpurge.c (main): Add one more ftell check.
20480         * modules/fpurge-tests (Depends-on): Add ftell.
20481         Suggested by Eric Blake.
20482
20483 2010-05-01  Bruno Haible  <bruno@clisp.org>
20484
20485         ftello: Another test.
20486         * tests/test-ftello3.c: New file.
20487         * modules/ftello-tests (Files): Add it.
20488         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20489         MOSTLYCLEANFILES.
20490
20491         ftell: Another test.
20492         * tests/test-ftell3.c: New file.
20493         * modules/ftell-tests (Files): Add it.
20494         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20495         MOSTLYCLEANFILES.
20496
20497 2010-05-01  Bruno Haible  <bruno@clisp.org>
20498
20499         ftell, ftello: Work around Solaris bug.
20500         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
20501         * lib/ftello.c: Include stdio-impl.h.
20502         (ftello): On Solaris, when _IOWRT is set, compute the result without
20503         looking at _IOREAD.
20504         * modules/ftello (Files): Add lib/stdio-impl.h.
20505         * doc/posix-functions/ftell.texi: Mention Solaris bug.
20506         * doc/posix-functions/ftello.texi: Likewise.
20507         Reported by Eric Blake.
20508
20509 2010-05-01  Bruno Haible  <bruno@clisp.org>
20510
20511         freading: Adapt to special meaning of _IOREAD flag on Solaris.
20512         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
20513         the _IOWRT flag is also set.
20514
20515 2010-05-01  Bruno Haible  <bruno@clisp.org>
20516
20517         Fix doc about a HP-UX stdio bug.
20518         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
20519         * doc/posix-functions/ftello.texi: Likewise.
20520
20521 2010-05-01  Bruno Haible  <bruno@clisp.org>
20522
20523         lseek test: Fix failure on Solaris.
20524         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
20525         output.
20526
20527 2010-04-30  Jim Meyering  <meyering@redhat.com>
20528
20529         bootstrap: don't ignore failure to generate po*/Makevars
20530         * build-aux/bootstrap (with_gettext): Don't ignore failure
20531         to create po/Makevars or runtime-po/Makevars.
20532
20533 2010-04-29  Eric Blake  <eblake@redhat.com>
20534
20535         headers: relax license to LGPLv2+
20536         * modules/fcntl-h (License): Relax license.
20537         * modules/getopt-posix (License): Likewise.
20538         * modules/locale (License): Likewise.
20539         * modules/math (License): Likewise.
20540         * modules/pty (License): Likewise.
20541         * modules/sched (License): Likewise.
20542         * modules/search (License): Likewise.
20543         * modules/spawn (License): Likewise.
20544         * modules/stdarg (License): Likewise.
20545         * modules/sysexits (License): Likewise.
20546
20547 2010-04-29  Jim Meyering  <meyering@redhat.com>
20548
20549         inttypes: relax license to LGPLv2+
20550         * modules/inttypes (License): Relax license.
20551
20552 2010-04-29  Simon Josefsson  <simon@josefsson.org>
20553
20554         * top/maint.mk (indent): Run twice to produce idempotent results.
20555
20556 2010-04-28  Bruno Haible  <bruno@clisp.org>
20557
20558         getdate: Generate getdate.c in the source directory.
20559         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
20560         MOSTLYCLEANFILES.
20561         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
20562
20563 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
20564
20565         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
20566         is not declared as a const *; avoid warnings in that case.
20567
20568 2010-04-28  Eric Blake  <eblake@redhat.com>
20569
20570         canonicalize-lgpl: avoid compiler warning
20571         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
20572         declaration' / 'extraneous semicolon' warning with some compilers.
20573         Reported by Andreas Gruenbacher.
20574
20575 2010-04-28  Jim Meyering  <meyering@redhat.com>
20576
20577         init.sh: ensure a more reliable exit status when exiting via trap
20578         * tests/init.sh (setup_): Don't rely on $? in signal handler.
20579         Inspired by patches from Dmitry V. Levin.
20580         Also trap on signal 3 (SIGQUIT).
20581
20582 2010-04-27  Bruno Haible  <bruno@clisp.org>
20583
20584         Update doc about utimes().
20585         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
20586         'utimens' module.
20587         Reported by Andreas Gruenbacher <agruen@suse.de>.
20588
20589 2010-04-27  Eric Blake  <eblake@redhat.com>
20590
20591         full-read, full-write: relax license
20592         * modules/full-read (License): Drop to LGPLv2+.
20593         * modules/full-write (License): Likewise.
20594         * modules/safe-read (License): Likewise.
20595         * modules/safe-write (License): Likewise.
20596
20597         pthread: mention library for linking
20598         * modules/pthread (Link): Mention $(LIB_PTHREAD).
20599
20600 2010-04-27  Jim Meyering  <meyering@redhat.com>
20601
20602         maint.mk: fix a bug introduced in last change
20603         * top/maint.mk (gl_assured_headers_): Now that all names are on
20604         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
20605         is not anchored to end of word, it should be adequate.
20606
20607         maint.mk: avoid side-effect in latest syntax-check
20608         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
20609         to run commands via $(shell...), and hence to incur cost only when
20610         the new rule is actually run.
20611
20612         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
20613         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
20614         and use that to create a regexp used to detect all #if HAVE_..._H uses.
20615         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
20616         (gl_assured_headers_, az_, AZ_): Define.
20617         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
20618
20619 2010-04-26  Jim Meyering  <jim@meyering.net>
20620             Bruno Haible  <bruno@clisp.org>
20621
20622         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
20623         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
20624         Prompted by an exchange with Gilles Espinasse.
20625
20626 2010-04-26  Jim Meyering  <meyering@redhat.com>
20627
20628         git-version-gen: aesthetic tweak
20629         * build-aux/git-version-gen: Use "$nl" rather than a literal,
20630         so that the command remains on a single line.
20631
20632 2010-04-26  Eric Blake  <eblake@redhat.com>
20633
20634         git-version-gen: allow use on EBCDIC hosts
20635         * build-aux/git-version-gen (dirty): Use literal rather than tying
20636         ourselves to ascii.
20637         Reported by Steve Goetze.
20638
20639 2010-04-25  Bruno Haible  <bruno@clisp.org>
20640
20641         netdb: Add support for GNULIB_POSIXCHECK.
20642         * lib/netdb.in.h: Include warn-on-use.h.
20643         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
20644         functions are used when GNULIB_POSIXCHECK is defined and the
20645         getaddrinfo module is not in use.
20646         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
20647         freeaddrinfo, gai_strerror, getnameinfo are declared.
20648         * modules/netdb (Depends-on): Add warn-on-use.
20649         (Makefile.am): Include warn-on-use.h in netdb.h.
20650
20651 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
20652
20653         build: avoid "make check" failure without .git/ directory
20654         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
20655         there is no .git/ directory.
20656
20657 2010-04-25  Bruno Haible  <bruno@clisp.org>
20658
20659         ptsname: Fix misuse of ttyname_r.
20660         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
20661         of errno.
20662
20663 2010-04-25  Bruno Haible  <bruno@clisp.org>
20664
20665         ttyname_r: Make it work on Solaris 10.
20666         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
20667         if the system function has the POSIX declaration. Test whether the
20668         function fails if the buffer is less than 128 bytes large.
20669         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
20670         system's ttyname_r function. Provide a reasonably large buffer.
20671         * modules/ttyname_r (Depends-on): Add extensions.
20672         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
20673
20674 2010-04-25  Bruno Haible  <bruno@clisp.org>
20675
20676         Use the 'extensions' module for some more functions on Solaris.
20677         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
20678         module.
20679         * doc/posix-functions/ctime_r.texi: Likewise.
20680         * doc/posix-functions/getgrgid_r.texi: Likewise.
20681         * doc/posix-functions/getgrnam_r.texi: Likewise.
20682         * doc/posix-functions/getpwnam_r.texi: Likewise.
20683         * doc/posix-functions/getpwuid_r.texi: Likewise.
20684         * doc/posix-functions/readdir_r.texi: Likewise.
20685         * doc/posix-functions/sigwait.texi: Likewise.
20686         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
20687         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
20688
20689 2010-04-25  Bruno Haible  <bruno@clisp.org>
20690
20691         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
20692         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
20693         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
20694         * lib/ttyname_r.c: Include <limits.h>.
20695         (ttyname_r): Define using the system's ttyname_r function, if it exists
20696         and not on Solaris.
20697         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
20698         set.
20699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
20700         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
20701         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
20702         Reported by Simon Josefsson.
20703
20704 2010-04-25  Bruno Haible  <bruno@clisp.org>
20705
20706         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
20707         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
20708         * doc/posix-functions/ctime_r.texi: Likewise.
20709         * doc/posix-functions/getgrgid_r.texi: Likewise.
20710         * doc/posix-functions/getgrnam_r.texi: Likewise.
20711         * doc/posix-functions/getlogin_r.texi: Likewise.
20712         * doc/posix-functions/getpwnam_r.texi: Likewise.
20713         * doc/posix-functions/getpwuid_r.texi: Likewise.
20714         * doc/posix-functions/readdir_r.texi: Likewise.
20715         * doc/posix-functions/sigwait.texi: Likewise.
20716         * doc/posix-functions/ttyname_r.texi: Likewise.
20717         Reported by Simon Josefsson.
20718
20719 2010-04-25  Bruno Haible  <bruno@clisp.org>
20720
20721         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
20722         * gnulib-tool (func_usage): Document that --with-*-tests options apply
20723         also to --create-testdir.
20724         (func_acceptable): Don't consider the status of *-tests modules here.
20725         (func_modules_transitive_closure): Consider it here, before including a
20726         test module.
20727         (func_import, func_create_testdir): Set inc_all_direct_tests,
20728         inc_all_indirect_tests.
20729         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
20730         --create-testdir and --create-megatestdir.
20731
20732 2010-04-25  Bruno Haible  <bruno@clisp.org>
20733
20734         gnulib-tool: Add --without-*-tests options.
20735         * gnulib-tool (func_usage): Document the --without-*-tests options.
20736         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
20737         excl_unportable_tests): New variables.
20738         Fail if they are specified with --import or --update.
20739         (func_acceptable): Respect the excl_*_tests variables.
20740         (func_import): Set the excl_*_tests variables to empty.
20741
20742 2010-04-25  Simon Josefsson  <simon@josefsson.org>
20743             Bruno Haible  <bruno@clisp.org>
20744
20745         Work around a MacOS X 10.4 bug with openpty.
20746         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
20747         * tests/test-openpty.c (main): Close the master side explicitly.
20748
20749 2010-04-25  Bruno Haible  <bruno@clisp.org>
20750
20751         strnlen: Fix a C++ test error on MacOS X and Solaris.
20752         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
20753         the function is not declared.
20754         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
20755         Simon Josefsson.
20756
20757 2010-04-24  Bruno Haible  <bruno@clisp.org>
20758
20759         Avoid a gcc warning.
20760         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
20761         of correct type for %08lx directive.
20762         Reported by Eric Blake.
20763
20764 2010-04-24  Bruno Haible  <bruno@clisp.org>
20765
20766         vasnprintf: Correct errno value in case of out-of-memory.
20767         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
20768         or sprintf. Use the errno value from SNPRINTF or sprintf.
20769         Reported by Ian Beckwith <ianb@erislabs.net>.
20770
20771 2010-04-24  Bruno Haible  <bruno@clisp.org>
20772
20773         ansi-c++-opt: Find correct compiler when cross-compiling.
20774         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
20775         AC_CHECK_PROGS.
20776         Reported by Simon Josefsson.
20777
20778 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
20779
20780         vc-list-files: Add support for subversion
20781         * build-aux/vc-list-files: Use "svn list" to generate the list of
20782         files controlled by subversion.
20783
20784 2010-04-23  Jim Meyering  <meyering@redhat.com>
20785
20786         vc-list-files tests: convert to use init.sh
20787         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
20788         path_prepend_.
20789         Use Exit, not exit.
20790         Use skip_ rather than open coding it.
20791         Remove trap set-up and compare definitions.
20792         * tests/test-vc-list-files-git.sh: Likewise.
20793         * modules/vc-list-files-tests (Files): Add tests/init.sh.
20794
20795 2010-04-22  Simon Josefsson  <simon@josefsson.org>
20796
20797         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
20798         backup files.
20799
20800 2010-04-21  Simon Josefsson  <simon@josefsson.org>
20801
20802         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
20803
20804 2010-04-20  Eric Blake  <eblake@redhat.com>
20805
20806         tests: be robust to ignored SIGPIPE
20807         * tests/test-select-in.sh: Consume all output.
20808         * tests/test-lseek.sh: Check correct exit status, while avoiding
20809         EPIPE.
20810
20811 2010-04-20  Simon Josefsson  <simon@josefsson.org>
20812             Bruno Haible  <bruno@clisp.org>
20813
20814         visibility: Don't use -fvisibility if it leads to a warning.
20815         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
20816         yes, don't pretend that visibility works if it leads to a warning.
20817         Reported by Mike Gran <spk121@yahoo.com>.
20818
20819 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
20820
20821         * build-aux/bootstrap: Use "git -h" for testing for supported options
20822         instead of "git --help".  The short-form option only shows a summary,
20823         and doesn't layout the full man page.  Grep for the full option name
20824         in the summary, too.
20825
20826 2010-04-19  Bruno Haible  <bruno@clisp.org>
20827
20828         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
20829         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
20830         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
20831         mention of RELOCATABLE_STRIP.
20832         Reported by Sylvain Beucler <beuc@beuc.net>.
20833
20834 2010-04-19  Bruno Haible  <bruno@clisp.org>
20835
20836         * lib/diffseq.h: Fix typo in comment.
20837         Reported by Eric Blake.
20838
20839 2010-04-19  Bruno Haible  <bruno@clisp.org>
20840
20841         ioctl: Move autoconf macro to a .m4 file.
20842         * m4/ioctl.m4: New file, extracted from modules/ioctl.
20843         * modules/ioctl (Files): Add it.
20844         (configure.ac): Simply invoke gl_FUNC_IOCTL.
20845         Reported by Ian Beckwith <ianb@erislabs.net>.
20846
20847 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
20848             Bruno Haible  <bruno@clisp.org>
20849
20850         diffseq: Accommodate use-case with abstract arrays.
20851         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
20852         is not defined.
20853         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
20854         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
20855
20856 2010-04-18  Bruno Haible  <bruno@clisp.org>
20857
20858         * doc/posix-headers/stdbool.texi: More precise wording.
20859
20860 2010-04-17  Jim Meyering  <meyering@redhat.com>
20861
20862         maint.mk: use gnu-style indentation in an embedded perl script
20863         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
20864         Rename variable: s/two/last_two_bytes/
20865
20866 2010-04-16  Eric Blake  <eblake@redhat.com>
20867
20868         test-stdbool: skip test that fails with Solaris CC
20869         * tests/test-stdbool.c (f): Skip test that causes compilation
20870         error under buggy C++ compiler.
20871         * lib/stdbool.in.h: Document the limitation.
20872         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
20873
20874         setenv: allow compilation with C++
20875         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
20876         register keyword.
20877
20878         stdint: allow test to pass with C++
20879         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
20880
20881         getopt: allow compilation with C++
20882         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
20883         struct.
20884         * lib/getopt.c (_getopt_internal_r): Use correct type.
20885         Reported by Dagobert Michelson, via Joel E. Denny.
20886
20887 2010-04-16  Bruno Haible  <bruno@clisp.org>
20888
20889         Override netdb.h always.
20890         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
20891         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
20892         Reported by Ludovic Courtès <ludo@gnu.org>.
20893
20894 2010-04-15  Bruno Haible  <bruno@clisp.org>
20895
20896         openpty: Fix mistake from 2010-03-21.
20897         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
20898         Reported by Simon Josefsson.
20899
20900 2010-04-15  Eric Blake  <eblake@redhat.com>
20901
20902         test-forkpty: fix expected signature
20903         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
20904         Reported by Simon Josefsson.
20905
20906 2010-04-15  Jim Meyering  <meyering@redhat.com>
20907
20908         maint.mk: texinfo_suffix_re_: correct the default regexp
20909         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
20910
20911         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
20912         make it configurable via texinfo_suffix_re_.
20913
20914 2010-04-14  Eric Blake  <eblake@redhat.com>
20915
20916         strtok_r: relax license to LGPLv2+
20917         * modules/strtok_r (License): Relax license.
20918         Reported by Matthias Bolte.
20919
20920 2010-04-14  Simon Josefsson  <simon@josefsson.org>
20921
20922         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
20923         version 1.4.4 by default instead of requiring the libgcrypt
20924         version used during build.  This makes it possible to use the
20925         application with older but still binary compatible libgcrypt
20926         versions.
20927
20928 2010-04-13  Eric Blake  <eblake@redhat.com>
20929
20930         getopt-gnu: match recent glibc fixes and posix ruling
20931         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
20932         '+' handling, when requesting extensions.
20933         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
20934         'W;' handling.
20935         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
20936         * doc/posix-functions/getopt.texi (getopt): Document this.
20937         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20938         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20939         Likewise.
20940
20941         getopt: merge bug fixes from glibc
20942         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
20943         diagnostics.  Honor '+:' correctly.  Reject ';'.
20944
20945         getopt-posix: detect MacOS bug
20946         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
20947         optind when missing a required argument.
20948         * doc/posix-functions/getopt.texi (getopt): Document the bug.
20949         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20950         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20951         Likewise.
20952
20953         getopt-posix: avoid spurious failure on Solaris
20954         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
20955         an indicator that setting optind=1 is sufficient for reset.
20956
20957         getopt-posix: avoid spurious failure on FreeBSD
20958         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
20959         in POSIX mode, since the m4 test uses it.
20960
20961         gnulib-tool: silence warning on BSD sh
20962         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
20963
20964 2010-04-13  Jim Meyering  <meyering@redhat.com>
20965
20966         doc: users.txt: GNU patch now uses gnulib
20967         * users.txt: Add patch.
20968
20969 2010-04-12  Jim Meyering  <meyering@redhat.com>
20970
20971         maint.mk: generate more concise timing data for syntax-check rules
20972         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
20973         " done" from each line that reports a syntax-check test duration.
20974
20975 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20976
20977         git-version-gen: use "git update-index..." rather than "git status"
20978         * build-aux/git-version-gen: Use git update-index --refresh, not
20979         "git status".  With some versions of git, "git status" would fail
20980         to update the index and result in an unwarranted "-dirty" suffix.
20981
20982 2010-04-11  Jim Meyering  <meyering@redhat.com>
20983
20984         openat: correct formatting (no semantic change)
20985         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20986         Suggested by Bruno Haible.
20987
20988 2010-04-11  Bruno Haible  <bruno@clisp.org>
20989
20990         Stricter declaration checking in testdirs.
20991         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20992         If for_tests is true, augment AM_CPPFLAGS to define
20993         GNULIB_STRICT_CHECKING.
20994         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20995         GNULIB_STRICT_CHECKING is defined, verify that the function is
20996         declared.
20997
20998 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20999             Bruno Haible  <bruno@clisp.org>
21000
21001         libunistring: Improve configure output.
21002         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
21003         Don't say "consider installing GNU libunistring" when checking again
21004         with libiconv.
21005
21006 2010-04-11  Bruno Haible  <bruno@clisp.org>
21007
21008         libunistring: Correct value of $LTLIBUNISTRING.
21009         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
21010         correct the value of $LTLIBUNISTRING.
21011
21012 2010-04-11  Bruno Haible  <bruno@clisp.org>
21013
21014         havelib: Add static libraries to LIBS in the right order.
21015         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
21016         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
21017
21018 2010-04-11  Bruno Haible  <bruno@clisp.org>
21019
21020         libunistring: Detect libunistring also when it depends on libiconv.
21021         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
21022         the second AC_LIB_HAVE_LINKFLAGS invocation.
21023
21024 2010-04-11  James Youngman  <jay@gnu.org>
21025
21026         close-stream: declare local scalars to be "const"
21027         * lib/close-stream.c (close_stream): Make boolean variables const
21028         to document the fact that we set but do not change them.
21029
21030 2010-04-11  Bruno Haible  <bruno@clisp.org>
21031
21032         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
21033
21034 2010-04-11  Jim Meyering  <meyering@redhat.com>
21035
21036         maint.mk: don't include dist-check.mk
21037         * top/maint.mk: Remove bogus include directive.
21038
21039         maint.mk: improve empty-line-at-EOF check
21040         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
21041         solution, rather than tail+Perl-based one.  The latter would read
21042         a few kilobytes from the end of each file, and did not handle empty
21043         files properly.
21044
21045         maint.mk: print the elapsed time for each syntax-check rule
21046         * top/maint.mk (sc_m_rules_): Save start time in a file.
21047         (sc_z_rules_): New rules: remove temp file and print elapsed time.
21048         (local-check): Interpose the .z rules
21049
21050 2010-04-11  Jim Meyering  <meyering@redhat.com>
21051
21052         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
21053         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
21054         empty file with one that ends in an empty line.
21055
21056 2010-04-10  Bruno Haible  <bruno@clisp.org>
21057
21058         mkdir: Make it work on mingw64.
21059         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
21060         * lib/mkdir.c: Update comment.
21061         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
21062
21063 2010-04-10  Bruno Haible  <bruno@clisp.org>
21064
21065         Don't override improved macro from newer autoconf.
21066         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
21067         autoconf >= 2.62.
21068         Reported by Joel E. Denny <jdenny@clemson.edu>.
21069
21070 2010-04-10  Jim Meyering  <meyering@redhat.com>
21071
21072         maint.mk: new syntax-check rule: prohibit empty lines at end of file
21073         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
21074
21075         maint.mk: correct a diagnostic
21076         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
21077         in diagnostic; now use $prohibit.
21078
21079 2010-04-10  Bruno Haible  <address@hidden>
21080
21081         fchownat: Fix a C++ test error on Solaris 8.
21082         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
21083         the function does not exist.
21084
21085 2010-04-10  Bruno Haible  <bruno@clisp.org>
21086
21087         vasnprintf: Add more tests.
21088         * tests/test-vasnprintf-posix.c: Include <errno.h>.
21089         (test_function): Test converting an invalid wide string.
21090
21091         vasnprintf: Correct handling of unconvertible wide string arguments.
21092         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
21093         VASNPRINTF.
21094         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
21095         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
21096         smaller than the expected maximum need for the directive. Set errno to
21097         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
21098         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
21099         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
21100         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
21101         * modules/vasnprintf (Files): Add m4/printf.m4.
21102         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21103
21104 2010-04-10  Bruno Haible  <bruno@clisp.org>
21105
21106         vasnprintf: Fix crash in %ls directive.
21107         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
21108         string is passed as argument to %ls, with no precision and no width.
21109         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21110
21111 2010-04-10  Bruno Haible  <bruno@clisp.org>
21112
21113         vasnprintf: Fix multiple test failures on mingw.
21114         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
21115         _snprintf, or snwprintf, not _snwprintf.
21116
21117 2010-04-10  Bruno Haible  <bruno@clisp.org>
21118
21119         write: Fix a C++ test error on mingw.
21120         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
21121
21122 2010-04-10  Bruno Haible  <bruno@clisp.org>
21123
21124         vasnprintf test: Reduce code duplication.
21125         * tests/test-vasnprintf.c (test_function): New function, extracted from
21126         test_vasnprintf.
21127         (test_vasnprintf, test_asnprintf): Invoke it.
21128
21129 2010-04-10  Bruno Haible  <bruno@clisp.org>
21130
21131         strnlen: Fix warning in C++ mode on MacOS X.
21132         * lib/string.in.h (strnlen): Use the modern idiom.
21133         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
21134         defining strnlen as a macro already in <config.h>.
21135         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21136         REPLACE_STRNLEN.
21137         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
21138         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21139
21140 2010-04-08  James Youngman  <jay@gnu.org>
21141
21142         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
21143         the example.
21144
21145 2010-04-09  Jim Meyering  <meyering@redhat.com>
21146
21147         maint.mk: print better diagnostic when there is no $(_hv_file)
21148         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
21149         announce that when $(_hv_file) (aka help-version) does not exist.
21150
21151         init.sh: run tr in the "C" locale to avoid multibyte interpretation
21152         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
21153         not try to interpret its random input bytes.  Jarno Rajahalme reported
21154         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
21155         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
21156         (mktempd_): Likewise, just in case.
21157
21158         ftruncate: add two years to projected module removal date: 2012
21159         * m4/ftruncate.m4: Adjust comments.
21160
21161         ftruncate: mark module as obsolete; even MinGW provides it, now
21162         * modules/ftruncate (Status): Obsolete.
21163         (Notice): Say that.
21164         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
21165         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
21166
21167 2010-04-08  Bruno Haible  <bruno@clisp.org>
21168
21169         Fix side effects from tests-related modules.
21170         * modules/dprintf-posix (Comment): New section.
21171         * modules/fprintf-posix (Comment): Likewise.
21172         * modules/obstack-printf-posix (Comment): Likewise.
21173         * modules/printf-posix (Comment): Likewise.
21174         * modules/snprintf-posix (Comment): Likewise.
21175         * modules/sprintf-posix (Comment): Likewise.
21176         * modules/vasnprintf-posix (Comment): Likewise.
21177         * modules/vasprintf-posix (Comment): Likewise.
21178         * modules/vdprintf-posix (Comment): Likewise.
21179         * modules/vfprintf-posix (Comment): Likewise.
21180         * modules/vprintf-posix (Comment): Likewise.
21181         * modules/vsnprintf-posix (Comment): Likewise.
21182         * modules/vsprintf-posix (Comment): Likewise.
21183         * modules/xprintf-posix (Comment): Likewise.
21184         * modules/xvasprintf-posix (Comment): Likewise.
21185         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
21186         * modules/floorf-tests (Depends-on): Likewise.
21187         * modules/round-tests (Depends-on): Likewise.
21188         * modules/roundf-tests (Depends-on): Likewise.
21189         * modules/trunc-tests (Depends-on): Likewise.
21190         * modules/truncf-tests (Depends-on): Likewise.
21191         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
21192         'fprintf-posix' module is not present.
21193         * tests/test-floorf2.c (check): Likewise.
21194         * tests/test-trunc2.c (check): Likewise.
21195         * tests/test-truncf2.c (check): Likewise.
21196         * tests/test-round2.c (equal): Likewise.
21197         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21198
21199 2010-04-07  Karl Berry  <karl@gnu.org>
21200
21201         * config/srclist.txt,
21202         * config/srclistvars.sh,
21203         * config/srclist-update: doc fixes.
21204
21205 2010-04-07  Jim Meyering  <meyering@redhat.com>
21206
21207         maint.mk: add a PATH crosschecking syntax-check rule
21208         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
21209         Useful if you use a test like the one in help-version (coreutils,
21210         diffutils, grep, gzip) that ensures $(VERSION) matches what is
21211         printed by prog --version.
21212
21213 2010-04-06  Bruno Haible  <bruno@clisp.org>
21214
21215         Fix link error on mingw.
21216         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
21217         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
21218
21219 2010-04-06  Bruno Haible  <bruno@clisp.org>
21220
21221         Assume rmdir exists.
21222         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
21223
21224 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
21225
21226         doc: update users.txt
21227         * users.txt: Add gcal.
21228
21229 2010-04-06  Jim Meyering  <meyering@redhat.com>
21230
21231         init.sh: simply unset TMPDIR rather than risking env -i
21232         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
21233         although it probably works fine on all Unix-based systems, some
21234         systems (Cygwin?) cannot tolerate a totally cleared environment.
21235         Suggestion from Eric Blake.
21236
21237 2010-04-06  Jim Meyering  <meyering@redhat.com>
21238
21239         init.sh: portability fix: use env's POSIX-specified -i option not -u
21240         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
21241         than unportable env -u.  Solaris 5.11's env lacks support for -u.
21242
21243 2010-04-05  Bruno Haible  <bruno@clisp.org>
21244
21245         btowc: Work around Cygwin 1.7.2 bug.
21246         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
21247         does not map NUL to 0.
21248         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
21249
21250 2010-04-05  Bruno Haible  <bruno@clisp.org>
21251
21252         Make the multithread modules work on Cygwin 1.7.2.
21253         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
21254         imported symbols can be declared weak, so that it returns "no" on
21255         Cygwin 1.7.2.
21256
21257 2010-04-05  Bruno Haible  <bruno@clisp.org>
21258
21259         Use the module 'strncat'.
21260         * modules/unistr/u8-strncat (Depends-on): Add strncat.
21261
21262         Tests for module 'strncat'.
21263         * modules/strncat-tests: New file.
21264         * tests/test-strncat.c: New file.
21265
21266         New module 'strncat'.
21267         * lib/string.in.h (strncat): New declaration.
21268         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
21269         * m4/strncat.m4: New file, based on m4/memchr.m4.
21270         * modules/strncat: New file.
21271         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
21272         is declared.
21273         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
21274         REPLACE_STRNCAT.
21275         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
21276         REPLACE_STRNCAT.
21277         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
21278         module.
21279         * tests/test-string-c++.cc: Check signature of strncat.
21280
21281 2010-04-05  Jim Meyering  <meyering@redhat.com>
21282
21283         xstrtoumax-tests: convert to use init.sh
21284         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
21285         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21286         Use Exit, not exit.
21287         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21288
21289         xstrtoimax-tests: convert to use init.sh
21290         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
21291         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21292         Use Exit, not exit.
21293         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21294
21295 2010-04-05  Bruno Haible  <bruno@clisp.org>
21296
21297         sys_socket: Avoid #define replacements in C++ mode.
21298         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
21299         warning to the function if possible, rather than #defining the symbol
21300         to a dysfunctional alias.
21301
21302 2010-04-05  Bruno Haible  <bruno@clisp.org>
21303
21304         fseeko: Fix C++ test error on mingw.
21305         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
21306         gl_FUNC_FSEEKO.
21307         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
21308         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
21309         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
21310         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
21311
21312 2010-04-05  Bruno Haible  <bruno@clisp.org>
21313
21314         duplocale: Improve test output.
21315         * tests/test-duplocale.c (main): Print reason for skipped test.
21316
21317 2010-04-05  Bruno Haible  <bruno@clisp.org>
21318
21319         Assume rmdir exists.
21320         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
21321         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
21322
21323 2010-04-05  Bruno Haible  <bruno@clisp.org>
21324
21325         Fix link error on Solaris 8 with cc.
21326         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
21327
21328 2010-04-05  Bruno Haible  <bruno@clisp.org>
21329
21330         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21331         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
21332
21333 2010-04-05  Bruno Haible  <bruno@clisp.org>
21334
21335         vasprintf: Update documentation.
21336         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
21337
21338 2010-04-05  Bruno Haible  <bruno@clisp.org>
21339
21340         ptsname: Improve test.
21341         * tests/test-ptsname.c (main): Also try the various master names of BSD
21342         systems.
21343
21344 2010-04-05  Bruno Haible  <bruno@clisp.org>
21345
21346         memchr: Avoid a possible C++ test error.
21347         * lib/string.in.h (memchr): Provide declaration if function is missing.
21348         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
21349         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
21350         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
21351         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
21352
21353 2010-04-05  Bruno Haible  <bruno@clisp.org>
21354
21355         strtok_r: Improve idiom.
21356         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
21357         AC_LIBOBJ is used.
21358
21359 2010-04-05  Bruno Haible  <bruno@clisp.org>
21360
21361         strdup: Improve idiom.
21362         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
21363         AC_LIBOBJ is used.
21364         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
21365         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
21366         when AC_LIBOBJ is used.
21367
21368 2010-04-05  Bruno Haible  <bruno@clisp.org>
21369
21370         mbsinit, mbrtowc, wcrtomb: Improve idioms.
21371         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
21372         don't set REPLACE_MBSINIT to 1.
21373         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
21374         don't set REPLACE_MBRTOWC to 1.
21375         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
21376         exist, don't set REPLACE_MBSRTOWCS to 1.
21377         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
21378         exist, don't set REPLACE_MBSNRTOWCS to 1.
21379         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
21380         don't set REPLACE_WCRTOMB to 1.
21381         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
21382         exist, don't set REPLACE_WCSRTOMBS to 1.
21383         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
21384         exist, don't set REPLACE_WCSNRTOMBS to 1.
21385
21386 2010-04-05  Bruno Haible  <bruno@clisp.org>
21387
21388         ldexpl: Improve idiom.
21389         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
21390         make sure to set HAVE_DECL_LDEXPL to 0.
21391
21392 2010-04-05  Jim Meyering  <meyering@redhat.com>
21393
21394         xstrtol-tests: convert to use init.sh
21395         * modules/xstrtol-tests (Files): Add tests/init.sh.
21396         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21397         Use Exit, not exit.
21398         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21399
21400         atexit-tests: convert to use init.sh
21401         * modules/atexit-tests (Files): Add tests/init.sh.
21402         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21403         Use Exit, not exit.
21404         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21405
21406         init.sh: fix typo
21407         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
21408
21409         init.sh: make it easier for a test script to write to the tty, ...
21410         when using automake's parallel-tests mode.
21411         * tests/init.sh (stderr_fileno_): Define overridable variable.
21412         (warn_): New function, to use it.
21413         (fail_, skip_, framework_failure_): Use warn_.
21414
21415 2010-04-04  Bruno Haible  <bruno@clisp.org>
21416
21417         btowc: Avoid warning.
21418         * lib/btowc.c: Include <stdlib.h>.
21419         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
21420
21421 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21422             Bruno Haible  <bruno@clisp.org>
21423
21424         wchar: Port to NetBSD 1.5.
21425         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
21426         * lib/wctype.in.h (WEOF): Likewise.
21427
21428 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21429             Bruno Haible  <bruno@clisp.org>
21430
21431         Port extended stdio to NetBSD 1.5.
21432         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
21433         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
21434         older.
21435
21436 2010-04-04  Bruno Haible  <bruno@clisp.org>
21437
21438         string: Remove unused substitution.
21439         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
21440         HAVE_DECL_STRERROR.
21441         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
21442
21443 2010-04-04  Bruno Haible  <bruno@clisp.org>
21444
21445         strtod: Avoid a possible C++ test error.
21446         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
21447         set REPLACE_STRTOD.
21448
21449 2010-04-04  Bruno Haible  <bruno@clisp.org>
21450
21451         strerror: Update documentation.
21452         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
21453
21454 2010-04-04  Bruno Haible  <bruno@clisp.org>
21455
21456         stdio: Fix some C++ test errors on Solaris 8 with GCC.
21457         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
21458         _GL_CXXALIAS_SYS_CAST.
21459
21460 2010-04-04  Bruno Haible  <bruno@clisp.org>
21461
21462         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21463         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
21464         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
21465         REPLACE_FREXPL to 1.
21466         * doc/posix-functions/frexpl.texi: Update documentation.
21467
21468 2010-04-04  Bruno Haible  <bruno@clisp.org>
21469
21470         math: Fix some C++ test errors on Solaris 8 and Cygwin.
21471         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
21472
21473 2010-04-04  Bruno Haible  <bruno@clisp.org>
21474
21475         Implement nanosleep for native Windows.
21476         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
21477
21478 2010-04-04  Bruno Haible  <bruno@clisp.org>
21479
21480         math: Fix some C++ test errors on Solaris 8.
21481         * lib/math.in.h (truncf, trunc): Use simpler idiom.
21482
21483 2010-04-04  Bruno Haible  <bruno@clisp.org>
21484
21485         math: Fix some C++ test errors on Cygwin.
21486         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
21487         truncl): Provide declaration if the system does not have it.
21488         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
21489         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
21490         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
21491         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
21492         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
21493         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
21494         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
21495         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
21496         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
21497         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
21498         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
21499         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
21500         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
21501         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
21502         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
21503         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
21504         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
21505         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21506         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21507         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
21508         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21509         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21510
21511 2010-04-04  Bruno Haible  <bruno@clisp.org>
21512
21513         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
21514         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21515         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21516         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
21517         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
21518         * m4/isinf.m4 (gl_ISINF): Likewise.
21519         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21520
21521 2010-04-04  Bruno Haible  <bruno@clisp.org>
21522
21523         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
21524         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21525
21526 2010-04-04  Bruno Haible  <bruno@clisp.org>
21527
21528         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
21529         * modules/tmpfile (configure.ac): Update.
21530
21531         tmpfile: Fix C++ test error on mingw.
21532         * lib/stdio.in.h (tmpfile): New declaration.
21533         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
21534         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
21535         * modules/tmpfile (Depends-on): Add stdio.
21536         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
21537         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
21538         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
21539         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
21540         REPLACE_TMPFILE.
21541         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
21542
21543 2010-04-04  Bruno Haible  <bruno@clisp.org>
21544
21545         ioctl: Fix C++ test error on mingw.
21546         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
21547         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
21548         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
21549
21550 2010-04-03  Bruno Haible  <bruno@clisp.org>
21551
21552         wcwidth: Fix C++ test error on mingw.
21553         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
21554         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
21555         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
21556
21557 2010-04-03  Bruno Haible  <bruno@clisp.org>
21558
21559         nanosleep: Fix C++ test error on mingw.
21560         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
21561         * lib/time.in.h (nanosleep): Use modern idiom.
21562         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
21563         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
21564         REPLACE_NANOSLEEP to 1.
21565         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
21566         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
21567
21568 2010-04-03  Bruno Haible  <bruno@clisp.org>
21569
21570         strptime: Fix C++ test error on mingw.
21571         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
21572         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
21573         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
21574         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
21575         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
21576         not REPLACE_STRPTIME.
21577         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
21578         REPLACE_STRPTIME.
21579
21580 2010-04-03  Bruno Haible  <bruno@clisp.org>
21581
21582         timegm: Fix C++ test error on mingw.
21583         * lib/time.in.h (timegm): Use modern idiom.
21584         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
21585         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
21586         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
21587         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
21588
21589 2010-04-03  Bruno Haible  <bruno@clisp.org>
21590
21591         timegm: Assume declaration if function exists.
21592         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
21593         if it exists. Don't clobber ac_cv_func_timegm.
21594
21595 2010-04-03  Bruno Haible  <bruno@clisp.org>
21596
21597         time_r: Fix C++ test error on mingw.
21598         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
21599         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
21600         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
21601         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
21602         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
21603
21604 2010-04-03  Bruno Haible  <bruno@clisp.org>
21605
21606         time_r: Minor updates.
21607         * modules/time_r (Description): Mention the provided functions.
21608         * lib/time_r.c: Don't include <string.h>.
21609         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
21610         * doc/posix-functions/localtime_r.texi: Likewise.
21611
21612 2010-04-03  Bruno Haible  <bruno@clisp.org>
21613
21614         time: Fix regression introduced on 2010-03-08.
21615         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
21616         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
21617
21618 2010-04-03  Jim Meyering  <meyering@redhat.com>
21619
21620         maint.mk: don't silently disable project-specific syntax-check rules
21621         * top/maint.mk (_prohibit_regexp): Define, to help people realize
21622         that they need to convert their project-specific syntax-check rules
21623         to use the new _sc_search_regexp.
21624
21625 2010-04-03  Bruno Haible  <bruno@clisp.org>
21626
21627         fchdir: Fix regression introduced on 2010-03-08.
21628         * lib/unistd.in.h (fchdir): Fix declaration.
21629         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
21630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
21631         REPLACE_FCHDIR.
21632         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
21633         REPLACE_FCHDIR.
21634
21635 2010-04-03  Bruno Haible  <bruno@clisp.org>
21636
21637         getpagesize: Fix C++ test error on mingw.
21638         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
21639         system does not declare the function.
21640         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
21641         declared.
21642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21643         HAVE_DECL_GETPAGESIZE.
21644         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
21645
21646 2010-04-03  Bruno Haible  <bruno@clisp.org>
21647
21648         stdio: Make C++ tests work on mingw.
21649         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
21650         does not declare the function.
21651
21652 2010-04-03  Bruno Haible  <bruno@clisp.org>
21653
21654         ftello: Fix C++ test error on mingw.
21655         * lib/stdio.in.h (ftello): Use modern idiom.
21656         * lib/ftello.c (ftello): Renamed from rpl_ftello.
21657         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
21658         is missing and that it needs to be replaced.
21659         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
21660         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
21661         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
21662
21663 2010-04-03  Bruno Haible  <bruno@clisp.org>
21664
21665         fseeko: Fix C++ test error on mingw.
21666         * lib/stdio.in.h (fseeko): Use modern idiom.
21667         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
21668         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
21669         is missing and that it needs to be replaced.
21670         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
21671         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
21672         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
21673
21674 2010-04-03  Bruno Haible  <bruno@clisp.org>
21675
21676         mkstemp: Fix C++ test error on mingw.
21677         * lib/stdlib.in.h (mkstemp): Use modern idiom.
21678         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
21679         function is missing and that it needs to be replaced.
21680         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
21681         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
21682
21683 2010-04-03  Bruno Haible  <bruno@clisp.org>
21684
21685         stpncpy: Fix C++ test error on mingw.
21686         * lib/string.in.h (stpncpy): Use modern idiom.
21687         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
21688         function is missing and that it needs to be replaced.
21689         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21690         REPLACE_STPNCPY.
21691         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
21692
21693 2010-04-03  Bruno Haible  <bruno@clisp.org>
21694
21695         sys_stat: Fix C++ test error on mingw.
21696         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
21697         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
21698
21699 2010-04-03  Bruno Haible  <bruno@clisp.org>
21700
21701         pty: Update doc.
21702         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
21703
21704 2010-04-03  Bruno Haible  <bruno@clisp.org>
21705
21706         unistd: Fix C++ test error on mingw.
21707         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
21708
21709 2010-04-03  Bruno Haible  <bruno@clisp.org>
21710
21711         Update doc regarding mingw.
21712         * doc/glibc-functions/openpty.texi: Update regarding mingw.
21713         * doc/glibc-functions/login_tty.texi: Likewise.
21714         * doc/glibc-functions/forkpty.texi: Likewise.
21715
21716 2010-04-03  Bruno Haible  <bruno@clisp.org>
21717
21718         stdlib: Avoid compilation failure of c-strtold on mingw.
21719         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
21720
21721 2010-04-03  Bruno Haible  <bruno@clisp.org>
21722
21723         locale: Make C++ tests work on Cygwin and mingw.
21724         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
21725         cannot provide the function.
21726         Reported by Simon Josefsson.
21727
21728 2010-04-03  Bruno Haible  <bruno@clisp.org>
21729
21730         localename: Port to MacOS X 10.6.
21731         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
21732         memory layout of the locales in MacOS X 10.6 as well.
21733         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
21734
21735 2010-04-02  Bruno Haible  <bruno@clisp.org>
21736
21737         gnulib-tool: Ensure that long-running tests are executed last.
21738         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
21739         running tests after the one for the other tests.
21740
21741 2010-04-02  Bruno Haible  <bruno@clisp.org>
21742
21743         gnulib-tool: Ensure the tests in the main directory are executed first.
21744         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
21745         start with the current directory.
21746
21747 2010-04-02  Bruno Haible  <bruno@clisp.org>
21748
21749         Tests for module 'havelib', moved here from GNU gettext.
21750         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
21751         modifications.
21752         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
21753         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
21754         with modifications.
21755         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
21756         modifications.
21757         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
21758         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
21759         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
21760         with modifications.
21761         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
21762         with modifications.
21763         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
21764         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
21765         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
21766         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
21767         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
21768         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
21769         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
21770         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
21771         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
21772         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
21773         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
21774         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
21775         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
21776         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
21777         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
21778         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
21779         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
21780         with modifications.
21781         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
21782         with modifications.
21783         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
21784         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
21785         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
21786         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
21787         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
21788         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
21789         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
21790         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
21791         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
21792         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
21793         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
21794         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
21795         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
21796         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
21797         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
21798         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
21799         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
21800         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
21801         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
21802         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
21803         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
21804         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
21805         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
21806         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
21807         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
21808         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
21809         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
21810         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
21811         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
21812         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
21813         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
21814         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
21815         * tests/havelib/rpathx/rpathx.c: New file, from
21816         gettext/autoconf-lib-link.
21817         * tests/havelib/rpathx/Makefile.am: New file, from
21818         gettext/autoconf-lib-link.
21819         * tests/havelib/rpathx/configure.ac: New file, from
21820         gettext/autoconf-lib-link with modifications.
21821         * tests/havelib/rpathy/rpathy.c: New file, from
21822         gettext/autoconf-lib-link.
21823         * tests/havelib/rpathy/Makefile.am: New file, from
21824         gettext/autoconf-lib-link.
21825         * tests/havelib/rpathy/configure.ac: New file, from
21826         gettext/autoconf-lib-link with modifications.
21827         * tests/havelib/rpathz/rpathz.c: New file, from
21828         gettext/autoconf-lib-link.
21829         * tests/havelib/rpathz/Makefile.am: New file, from
21830         gettext/autoconf-lib-link.
21831         * tests/havelib/rpathz/configure.ac: New file, from
21832         gettext/autoconf-lib-link with modifications.
21833         * tests/havelib/rpathlx/usex.c: New file, from
21834         gettext/autoconf-lib-link.
21835         * tests/havelib/rpathlx/Makefile.am: New file, from
21836         gettext/autoconf-lib-link.
21837         * tests/havelib/rpathlx/configure.ac: New file, from
21838         gettext/autoconf-lib-link with modifications.
21839         * tests/havelib/rpathly/usey.c: New file, from
21840         gettext/autoconf-lib-link.
21841         * tests/havelib/rpathly/Makefile.am: New file, from
21842         gettext/autoconf-lib-link.
21843         * tests/havelib/rpathly/configure.ac: New file, from
21844         gettext/autoconf-lib-link with modifications.
21845         * tests/havelib/rpathlz/usez.c: New file, from
21846         gettext/autoconf-lib-link.
21847         * tests/havelib/rpathlz/Makefile.am: New file, from
21848         gettext/autoconf-lib-link.
21849         * tests/havelib/rpathlz/configure.ac: New file, from
21850         gettext/autoconf-lib-link with modifications.
21851         * tests/havelib/rpathlyx/usey.c: New file, from
21852         gettext/autoconf-lib-link.
21853         * tests/havelib/rpathlyx/Makefile.am: New file, from
21854         gettext/autoconf-lib-link.
21855         * tests/havelib/rpathlyx/configure.ac: New file, from
21856         gettext/autoconf-lib-link with modifications.
21857         * tests/havelib/rpathlzyx/usez.c: New file, from
21858         gettext/autoconf-lib-link.
21859         * tests/havelib/rpathlzyx/Makefile.am: New file, from
21860         gettext/autoconf-lib-link.
21861         * tests/havelib/rpathlzyx/configure.ac: New file, from
21862         gettext/autoconf-lib-link with modifications.
21863         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
21864         with modifications.
21865
21866 2010-04-02  Bruno Haible  <bruno@clisp.org>
21867
21868         gnulib-tool: Create distributed built sources also for the tests.
21869         * gnulib-tool (func_create_testdir): Also generate distributed built
21870         sources in the tests directory.
21871
21872 2010-04-02  Bruno Haible  <bruno@clisp.org>
21873
21874         gnulib-tool: Obey user's environment variables.
21875         * gnulib-tool (func_create_testdir): When creating built sources,
21876         respect the environment variables for autoconf, automake, etc. given by
21877         the user.
21878
21879 2010-04-02  Bruno Haible  <bruno@clisp.org>
21880
21881         gnulib-tool: Provide the value of --m4-base to modules.
21882         * gnulib-tool (func_import, func_create_testdir): Emit a definition
21883         of gl_m4_base.
21884
21885 2010-04-02  Eric Blake  <eblake@redhat.com>
21886
21887         maint.mk: fix some fallout
21888         * NEWS: Document the incompatible change, and its effect on cfg.mk.
21889         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
21890
21891 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21892
21893         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
21894         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
21895         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
21896         (sc_cast_of_x_alloc_return_value): Likewise.
21897         (sc_cast_of_alloca_return_value): Likewise.
21898         (sc_space_tab): Likewise.
21899         (sc_prohibit_atoi_atof): Likewise.
21900         (sc_prohibit_magic_number_exit): Likewise.
21901         (sc_error_exit_success): Likewise.
21902         (sc_file_system): Likewise.
21903         (sc_prohibit_have_config_h): Likewise.
21904         (sc_require_config_h): Likewise.
21905         (sc_prohibit_HAVE_MBRTOWC): Likewise.
21906         (sc_obsolete_symbols): Likewise.
21907         (sc_changelog): Likewise.
21908         (sc_program_name): Likewise.
21909         (sc_the_the): Likewise.
21910         (sc_trailing_blank): Likewise.
21911         (sc_two_space_separator_in_usage): Likewise.
21912         (sc_useless_cpp_parens): Likewise.
21913         (sc_GPL_version): Likewise.
21914         (sc_GFDL_version): Likewise.
21915         (sc_texinfo_acronym): Likewise.
21916         (sc_prohibit_cvs_keyword): Likewise.
21917         (sc_prohibit_stat_st_blocks): Likewise.
21918         (sc_prohibit_S_IS_definition): Likewise.
21919         (sc_redundant_const): Likewise.
21920         (sc_makefile_TAB_only_indentation): Likewise.
21921         (sc_m4_quote_check): Likewise.
21922         (sc_makefile_path_separator_check): Likewise.
21923         (sc_copyright_check): Likewise.
21924         (sc_Wundef_boolean): Likewise.
21925         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21926
21927         maint.mk: match 0 or more whitespace-before-function-call '('
21928         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
21929         that have zero or two-and-more spaces between the function name
21930         and the open parenthesis.
21931         (sc_error_message_warn_fatal): Likewise.
21932         (sc_error_message_uppercase): Likewise.
21933         (sc_error_message_period): Likewise.
21934
21935 2010-03-31  Eric Blake  <eblake@redhat.com>
21936
21937         maint.mk: check for [ as well as test
21938         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
21939         Based on a libvirt report by Matthias Bolte.
21940
21941         gnumakefile: don't squelch _version output
21942         * top/GNUmakefile (_version): Create one-shot dependency rather
21943         than using $(shell) when version must be regenerated.
21944         (_autoreconf): Run verbosely, by default.
21945
21946         sys_time: avoid compiler warnings
21947         * lib/sys_time.in.h (includes): Ensure gcc pragma is
21948         unconditional, fixing regression from 2010-03-29.
21949         Reported by Simon Josefsson.
21950
21951 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21952
21953         maint.mk: s/_header_without_use/_sc_header_without_use/
21954         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
21955         (sc_prohibit_assert_without_use): Use the new name.
21956         (sc_prohibit_close_stream_without_use): Likewise.
21957         (sc_prohibit_getopt_without_use): Likewise.
21958         (sc_prohibit_quotearg_without_use): Likewise.
21959         (sc_prohibit_quote_without_use): Likewise.
21960         (sc_prohibit_long_options_without_use): Likewise.
21961         (sc_prohibit_inttostr_without_use): Likewise.
21962         (sc_prohibit_ignore_value_without_use): Likewise.
21963         (sc_prohibit_error_without_use): Likewise.
21964         (sc_prohibit_xalloc_without_use): Likewise.
21965         (sc_prohibit_hash_without_use): Likewise.
21966         (sc_prohibit_hash_pjw_without_use): Likewise.
21967         (sc_prohibit_safe_read_without_use): Likewise.
21968         (sc_prohibit_argmatch_without_use): Likewise.
21969         (sc_prohibit_canonicalize_without_use): Likewise.
21970         (sc_prohibit_root_dev_ino_without_use): Likewise.
21971         (sc_prohibit_openat_without_use): Likewise.
21972         (sc_prohibit_c_ctype_without_use): Likewise.
21973         (sc_prohibit_signal_without_use): Likewise.
21974         (sc_prohibit_intprops_without_use): Likewise.
21975
21976 2010-03-30  Eric Blake  <eblake@redhat.com>
21977
21978         maint: improve module indicators
21979         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21980         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21981         columns, and avoid extra macro expansion.
21982
21983         fdopendir: work around FreeBSD bug
21984         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21985         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21986         * modules/dirent (Makefile.am): Substitute it.
21987         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21988         declaration.
21989         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21990         fix.
21991         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21992
21993 2010-03-29  Bruno Haible  <bruno@clisp.org>
21994
21995         Emit #pragma system_header after the inclusion guard, not before.
21996         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21997         guard that spans the entire file, not before. This enables an
21998         optimization in GCC's preprocessor.
21999         * lib/ctype.in.h: Likewise.
22000         * lib/dirent.in.h: Likewise.
22001         * lib/errno.in.h: Likewise.
22002         * lib/float.in.h: Likewise.
22003         * lib/getopt.in.h: Likewise.
22004         * lib/iconv.in.h: Likewise.
22005         * lib/langinfo.in.h: Likewise.
22006         * lib/locale.in.h: Likewise.
22007         * lib/math.in.h: Likewise.
22008         * lib/netdb.in.h: Likewise.
22009         * lib/netinet_in.in.h: Likewise.
22010         * lib/pty.in.h: Likewise.
22011         * lib/sched.in.h: Likewise.
22012         * lib/se-selinux.in.h: Likewise.
22013         * lib/search.in.h: Likewise.
22014         * lib/spawn.in.h: Likewise.
22015         * lib/stdarg.in.h: Likewise.
22016         * lib/stdint.in.h: Likewise.
22017         * lib/string.in.h: Likewise.
22018         * lib/strings.in.h: Likewise.
22019         * lib/sys_file.in.h: Likewise.
22020         * lib/sys_ioctl.in.h: Likewise.
22021         * lib/sys_time.in.h: Likewise.
22022         * lib/sys_times.in.h: Likewise.
22023         * lib/sys_utsname.in.h: Likewise.
22024         * lib/sys_wait.in.h: Likewise.
22025         * lib/sysexits.in.h: Likewise.
22026         * lib/wctype.in.h: Likewise.
22027
22028 2010-03-28  James Youngman  <jay@gnu.org>
22029
22030         save-cwd: don't leak a file descriptor when the caller execs.
22031         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
22032         saved file descriptor.
22033         * modules/save-cwd (Depends-on): Depend on cloexec.
22034
22035 2010-03-29  Bruno Haible  <bruno@clisp.org>
22036
22037         Remove vestiges of fts-lgpl module.
22038         * lib/fts_.h: Assume GNULIB_FTS is 1.
22039         * lib/fts.c: Likewise.
22040         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22041
22042 2010-03-28  Bruno Haible  <bruno@clisp.org>
22043
22044         Fix definition of tests witness macro.
22045         * gnulib-tool (func_import): Fix definition of witness macro.
22046
22047 2010-03-28  Bruno Haible  <bruno@clisp.org>
22048
22049         Fix ioctl's protoype on glibc systems.
22050         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
22051         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
22052         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
22053         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
22054         signature. If not, arrange to replace the ioctl function.
22055         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
22056         REPLACE_IOCTL.
22057         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
22058         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
22059         Reported by Ludovic Courtès <ludo@gnu.org>.
22060
22061 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
22062
22063         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
22064         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
22065         made it so grep -r --include=GLOB* ... did not work.
22066
22067 2010-03-26  Jim Meyering  <meyering@redhat.com>
22068             Eric Blake  <eblake@redhat.com>
22069
22070         maint.mk: prohibit use of test's -o and -a operators
22071         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
22072
22073 2010-03-28  Bruno Haible  <bruno@clisp.org>
22074
22075         Remove unused GNULIB_XYZ macro definitions.
22076         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
22077         invocation.
22078
22079 2010-03-28  Bruno Haible  <bruno@clisp.org>
22080
22081         Mark privileged tests modules.
22082         * modules/idpriv-drop-tests (Status): New section.
22083         * modules/idpriv-droptemp-tests (Status): New section.
22084
22085 2010-03-28  Bruno Haible  <bruno@clisp.org>
22086
22087         Split C++ tests into separate tests modules.
22088         * modules/dirent-c++-tests: New file, extracted from
22089         modules/dirent-tests.
22090         * modules/dirent-tests: Depend on it.
22091         * modules/fcntl-h-c++-tests: New file, extracted from
22092         modules/fcntl-h-tests.
22093         * modules/fcntl-h-tests: Depend on it.
22094         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
22095         * modules/glob-tests: Depend on it.
22096         * modules/iconv-h-c++-tests: New file, extracted from
22097         modules/iconv-h-tests.
22098         * modules/iconv-h-tests: Depend on it.
22099         * modules/langinfo-c++-tests: New file, extracted from
22100         modules/langinfo-tests.
22101         * modules/langinfo-tests: Depend on it.
22102         * modules/locale-c++-tests: New file, extracted from
22103         modules/locale-tests.
22104         * modules/locale-tests: Depend on it.
22105         * modules/math-c++-tests: New file, extracted from modules/math-tests.
22106         * modules/math-tests: Depend on it.
22107         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
22108         * modules/pty-tests: Depend on it.
22109         * modules/search-c++-tests: New file, extracted from
22110         modules/search-tests.
22111         * modules/search-tests: Depend on it.
22112         * modules/signal-c++-tests: New file, extracted from
22113         modules/signal-tests.
22114         * modules/signal-tests: Depend on it.
22115         * modules/spawn-c++-tests: New file, extracted from
22116         modules/spawn-tests.
22117         * modules/spawn-tests: Depend on it.
22118         * modules/stdio-c++-tests: New file, extracted from
22119         modules/stdio-tests.
22120         * modules/stdio-tests: Depend on it.
22121         * modules/stdlib-c++-tests: New file, extracted from
22122         modules/stdlib-tests.
22123         * modules/stdlib-tests: Depend on it.
22124         * modules/string-c++-tests: New file, extracted from
22125         modules/string-tests.
22126         * modules/string-tests: Depend on it.
22127         * modules/sys_ioctl-c++-tests: New file, extracted from
22128         modules/sys_ioctl-tests.
22129         * modules/sys_ioctl-tests: Depend on it.
22130         * modules/sys_select-c++-tests: New file, extracted from
22131         modules/sys_select-tests.
22132         * modules/sys_select-tests: Depend on it.
22133         * modules/sys_socket-c++-tests: New file, extracted from
22134         modules/sys_socket-tests.
22135         * modules/sys_socket-tests: Depend on it.
22136         * modules/sys_stat-c++-tests: New file, extracted from
22137         modules/sys_stat-tests.
22138         * modules/sys_stat-tests: Depend on it.
22139         * modules/sys_time-c++-tests: New file, extracted from
22140         modules/sys_time-tests.
22141         * modules/sys_time-tests: Depend on it.
22142         * modules/time-c++-tests: New file, extracted from modules/time-tests.
22143         * modules/time-tests: Depend on it.
22144         * modules/unistd-c++-tests: New file, extracted from
22145         modules/unistd-tests.
22146         * modules/unistd-tests: Depend on it.
22147         * modules/wchar-c++-tests: New file, extracted from
22148         modules/wchar-tests.
22149         * modules/wchar-tests: Depend on it.
22150         * modules/wctype-c++-tests: New file, extracted from
22151         modules/wctype-tests.
22152         * modules/wctype-tests: Depend on it.
22153         Reported by Simon Josefsson.
22154
22155 2010-03-28  Bruno Haible  <bruno@clisp.org>
22156
22157         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
22158         * gnulib-tool (func_exists_module): New function, extracted from
22159         func_verify_module.
22160         (func_verify_module): Use it.
22161         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
22162         'foo' only if 'foo' exists.
22163         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
22164         module.
22165
22166 2010-03-28  Bruno Haible  <bruno@clisp.org>
22167
22168         gnulib-tool: Add support for special categories of tests.
22169         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
22170         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
22171         (func_usage): Document them.
22172         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
22173         inc_unportable_tests, inc_all_tests): New variables.
22174         (func_acceptable): Consider these variables.
22175         (func_modules_transitive_closure): Make it work when the 'Status' field
22176         consists of multiple words.
22177         (func_import): Store and restore the values of inc_cxx_tests,
22178         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
22179         inc_all_tests in gnulib-comp.m4.
22180         (func_create_testdir): Set inc_all_tests to true.
22181         * doc/gnulib.texi (Extra tests modules): New section.
22182         Suggested by Jim Meyering.
22183
22184 2010-03-28  Bruno Haible  <bruno@clisp.org>
22185
22186         ansi-c++-opt: Allow turning off the C++ build by default.
22187         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
22188         gl_CXX_CHOICE_DEFAULT_NO is defined.
22189         Requested by Eric Blake.
22190
22191 2010-03-28  Bruno Haible  <bruno@clisp.org>
22192
22193         unistd: Avoid #define replacements in C++ mode.
22194         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
22195         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
22196         setsockopt, shutdown, select): In C++, attach a warning to the function
22197         if possible, rather than #defining the symbol to a dysfunctional alias.
22198         Reported by John W. Eaton <jwe@gnu.org>.
22199
22200 2010-03-28  Bruno Haible  <bruno@clisp.org>
22201
22202         Fix link errors on mingw.
22203         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
22204         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
22205         $(LIBSOCKET).
22206         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
22207         $(LIBSOCKET).
22208
22209 2010-03-28  Bruno Haible  <bruno@clisp.org>
22210             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22211
22212         lib-ignore: Determine different options for different compilers.
22213         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
22214         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
22215         Add comments.
22216         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
22217         * NEWS: Mention the change.
22218
22219 2010-03-27  Bruno Haible  <bruno@clisp.org>
22220
22221         Remove unused GNULIB_XYZ macro definitions.
22222         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22223         * modules/fseek (configure.ac): Likewise.
22224         * modules/ioctl (configure.ac): Likewise.
22225         * modules/open (configure.ac): Likewise.
22226         * modules/stdlib-safer (configure.ac): Likewise.
22227
22228 2010-03-27  Bruno Haible  <bruno@clisp.org>
22229
22230         Add a remark about certain modules.
22231         * modules/malloc (Comment): New section.
22232         * modules/realloc (Comment): Likewise.
22233         * modules/sigpipe (Comment): Likewise.
22234
22235 2010-03-27  Bruno Haible  <bruno@clisp.org>
22236
22237         Resolve conflict between the two kinds of module indicators.
22238         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
22239         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
22240         * modules/canonicalize (configure.ac): Invoke
22241         gl_MODULE_INDICATOR_FOR_TESTS.
22242         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
22243         GNULIB_XYZ.
22244         * tests/test-dirent-c++.cc: Likewise.
22245         * tests/test-dirent-safer.c: Likewise.
22246         * tests/test-dup2.c: Likewise.
22247         * tests/test-fchdir.c: Likewise.
22248         * tests/test-fcntl-h-c++.cc: Likewise.
22249         * tests/test-getopt.c: Likewise.
22250         * tests/test-getopt.h: Likewise.
22251         * tests/test-langinfo-c++.cc: Likewise.
22252         * tests/test-locale-c++.cc: Likewise.
22253         * tests/test-math-c++.cc: Likewise.
22254         * tests/test-pty-c++.cc: Likewise.
22255         * tests/test-search-c++.cc: Likewise.
22256         * tests/test-signal-c++.cc: Likewise.
22257         * tests/test-spawn-c++.cc: Likewise.
22258         * tests/test-stdio-c++.cc: Likewise.
22259         * tests/test-stdlib-c++.cc: Likewise.
22260         * tests/test-string-c++.cc: Likewise.
22261         * tests/test-sys_ioctl-c++.cc: Likewise.
22262         * tests/test-sys_select-c++.cc: Likewise.
22263         * tests/test-sys_socket-c++.cc: Likewise.
22264         * tests/test-sys_stat-c++.cc: Likewise.
22265         * tests/test-sys_time-c++.cc: Likewise.
22266         * tests/test-time-c++.cc: Likewise.
22267         * tests/test-unistd-c++.cc: Likewise.
22268         * tests/test-wchar-c++.cc: Likewise.
22269         * tests/uninorm/test-u8-nfc.c: Likewise.
22270         * tests/uninorm/test-u8-nfd.c: Likewise.
22271         * tests/uninorm/test-u8-nfkc.c: Likewise.
22272         * tests/uninorm/test-u8-nfkd.c: Likewise.
22273         * tests/uninorm/test-u16-nfc.c: Likewise.
22274         * tests/uninorm/test-u16-nfd.c: Likewise.
22275         * tests/uninorm/test-u16-nfkc.c: Likewise.
22276         * tests/uninorm/test-u16-nfkd.c: Likewise.
22277         * tests/uninorm/test-u32-nfc.c: Likewise.
22278         * tests/uninorm/test-u32-nfc-big.c: Likewise.
22279         * tests/uninorm/test-u32-nfd.c: Likewise.
22280         * tests/uninorm/test-u32-nfd-big.c: Likewise.
22281         * tests/uninorm/test-u32-nfkc.c: Likewise.
22282         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
22283         * tests/uninorm/test-u32-nfkd.c: Likewise.
22284         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
22285         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22286
22287 2010-03-27  Bruno Haible  <bruno@clisp.org>
22288
22289         Distinguish two kinds of module indicators.
22290         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
22291         gl_MODULE_INDICATOR.
22292         (gl_MODULE_INDICATOR): New macro.
22293         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22294         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
22295         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22296         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22297         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22298         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22299         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22300         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22301         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22302         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22303         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22304         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22305         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22306         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22307         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22308         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22309         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22310         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22311         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22312         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22313         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22314         * modules/cloexec (configure.ac): Likewise.
22315         * modules/getopt-gnu (configure.ac): Likewise.
22316         * modules/uninorm/u8-normalize (configure.ac): Likewise.
22317         * modules/uninorm/u16-normalize (configure.ac): Likewise.
22318         * modules/uninorm/u32-normalize (configure.ac): Likewise.
22319         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
22320
22321 2010-03-27  Bruno Haible  <bruno@clisp.org>
22322
22323         New module description field 'Comment'.
22324         * gnulib-tool: New option --extract-comment.
22325         (func_usage): Document it.
22326         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
22327         (func_get_comment): New function.
22328         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
22329
22330 2010-03-27  Bruno Haible  <bruno@clisp.org>
22331
22332         Addendum to 2010-02-07 commit.
22333         * gnulib-tool (func_usage): Document --extract-applicability option.
22334
22335 2010-03-27  Bruno Haible  <bruno@clisp.org>
22336
22337         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
22338         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
22339         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
22340         rather than link errors.
22341
22342 2010-03-27  Bruno Haible  <bruno@clisp.org>
22343
22344         Avoid side effects from tests-related modules on the compilation of lib.
22345         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
22346         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
22347         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
22348         parameter. Emit into AM_CPPFLAGS a definition of the designated C
22349         macro.
22350         (func_import): Define a witness macro. Assign it a value that depends
22351         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
22352         tests-related modules.
22353         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
22354         Reported by Jim Meyering.
22355
22356 2010-03-27  Bruno Haible  <bruno@clisp.org>
22357
22358         Factorize common .m4 code.
22359         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
22360         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
22361         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
22362         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
22363         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22364         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
22365         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
22366         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22367         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22368         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22369         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
22370         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22371         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22372         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22373         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22374         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
22375         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22376         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22377         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22378         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
22379         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
22380         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22381         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22382         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22383         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22384         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22385         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
22386         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
22387         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
22388         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22389         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22390         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22391
22392 2010-03-27  Bruno Haible  <bruno@clisp.org>
22393
22394         Fix a compilation error on Cygwin with g++ >= 4.3.
22395         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
22396         if it is undefined or if we alias it to chmod.
22397         (lstat): Don't warn about the use of this function if it is undefined
22398         or if we alias it to stat.
22399         Reported by Simon Josefsson.
22400
22401 2010-03-27  Bruno Haible  <bruno@clisp.org>
22402
22403         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
22404         * modules/getlogin (configure.ac): Update.
22405
22406         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
22407         * modules/getlogin_r (configure.ac): Update.
22408
22409         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
22410         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
22411         * modules/inet_ntop (configure.ac): Update.
22412
22413         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
22414         * modules/inet_pton (configure.ac): Update.
22415
22416         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
22417         * modules/mbslen (configure.ac): Update.
22418
22419         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
22420         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
22421         * modules/forkpty (configure.ac): Update.
22422         * modules/openpty (configure.ac): Update.
22423
22424 2010-03-26  Simon Josefsson  <simon@josefsson.org>
22425
22426         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
22427         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
22428
22429 2010-03-25  Eric Blake  <eblake@redhat.com>
22430
22431         maint: use pragma consistently across replacement headers
22432         * lib/ctype.in.h (system_header): Hoist for consistent placement.
22433         * lib/dirent.in.h (system_header): Likewise.
22434         * lib/errno.in.h (system_header): Likewise.
22435         * lib/float.in.h (system_header): Likewise.
22436         * lib/getopt.in.h (system_header): Likewise.
22437         * lib/iconv.in.h (system_header): Likewise.
22438         * lib/inttypes.in.h (system_header): Likewise.
22439         * lib/langinfo.in.h (system_header): Likewise.
22440         * lib/locale.in.h (system_header): Likewise.
22441         * lib/math.in.h (system_header): Likewise.
22442         * lib/netdb.in.h (system_header): Likewise.
22443         * lib/netinet_in.in.h (system_header): Likewise.
22444         * lib/pty.in.h (system_header): Likewise.
22445         * lib/sched.in.h (system_header): Likewise.
22446         * lib/se-selinux.in.h (system_header): Likewise.
22447         * lib/search.in.h (system_header): Likewise.
22448         * lib/spawn.in.h (system_header): Likewise.
22449         * lib/stdarg.in.h (system_header): Likewise.
22450         * lib/stdint.in.h (system_header): Likewise.
22451         * lib/string.in.h (system_header): Likewise.
22452         * lib/strings.in.h (system_header): Likewise.
22453         * lib/sys_file.in.h (system_header): Likewise.
22454         * lib/sys_ioctl.in.h (system_header): Likewise.
22455         * lib/sys_socket.in.h (system_header): Likewise.
22456         * lib/sys_times.in.h (system_header): Likewise.
22457         * lib/sys_utsname.in.h (system_header): Likewise.
22458         * lib/sys_wait.in.h (system_header): Likewise.
22459         * lib/sysexits.in.h (system_header): Likewise.
22460         * lib/unistd.in.h (system_header): Likewise.
22461         * lib/wctype.in.h (system_header): Likewise.
22462
22463         arpa/inet: fix mingw compilation warning
22464         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
22465         Reported by Matthew Bolte.
22466
22467 2010-03-25  Bruno Haible  <bruno@clisp.org>
22468
22469         Avoid collision between gnulib wrapper and libintl wrapper.
22470         * lib/printf.c (printf): Don't define if a printf wrapper is already
22471         defined in intl/printf.c.
22472         Reported by Michel Boaventura <michel@michelboaventura.com>.
22473
22474 2010-03-25  Bruno Haible  <bruno@clisp.org>
22475
22476         Use ANSI C.
22477         * lib/readutmp.h (getutent): Provide ANSI C prototype.
22478
22479 2010-03-25  Bruno Haible  <bruno@clisp.org>
22480
22481         Minor formatting changes.
22482         * lib/acosl.c: Insert space before function argument list.
22483         * lib/argz.c: Likewise.
22484         * lib/asinl.c: Likewise.
22485         * lib/expl.c: Likewise.
22486         * lib/gen-uni-tables.c: Likewise.
22487         * lib/gettext.h: Likewise.
22488         * lib/glthread/lock.h: Likewise.
22489         * lib/tanl.c: Likewise.
22490         * lib/uniname/uniname.c: Likewise.
22491         * tests/test-idpriv-drop.c: Likewise.
22492         * tests/test-idpriv-droptemp.c: Likewise.
22493         * tests/test-lock.c: Likewise.
22494         * tests/test-tls.c: Likewise.
22495         * lib/argp-help.c: Insert space before function-like macro argument
22496         list.
22497         * lib/memcmp.c: Likewise.
22498         * tests/test-base64.c: Likewise.
22499         * lib/localename.c: Insert space before sizeof's argument list.
22500         * lib/safe-alloc.h: Likewise.
22501         * lib/file-set.h: Insert space before macro argument list.
22502         * tests/test-argp.c: Likewise.
22503         * lib/argp-namefrob.h: Insert space before function parameter list.
22504         * lib/getaddrinfo.c: Likewise.
22505         * lib/netdb.in.h: Likewise.
22506         * lib/parse-duration.h: Likewise.
22507         * lib/parse-duration.c: Likewise.
22508         * lib/poll.c: Likewise.
22509         * lib/select.c: Likewise.
22510         * lib/trim.h: Likewise.
22511         * tests/test-usleep.c: Likewise.
22512         * lib/ldexpl.c: Insert space before function parameter list and before
22513         function argument list.
22514         * lib/logl.c: Likewise.
22515         * lib/sqrtl.c: Likewise.
22516         * lib/trim.c: Likewise.
22517         * lib/cosl.c: Use GNU style indentation. Insert space before function
22518         argument list.
22519         * lib/sinl.c: Likewise.
22520         * lib/tsearch.c: Insert space after 'for'.
22521         Reported by Jim Meyering.
22522
22523 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
22524
22525         * maint.mk (sc_Wundef_boolean): Check for the presence of the
22526         config header before grepping, as it's not present before
22527         autoreconf/configure are run.  Reported by Simon Josefsson.
22528
22529 2010-03-23  Bruno Haible  <bruno@clisp.org>
22530
22531         pt_chown: Make it work with automake < 1.11.
22532         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
22533         Reported by Simon Josefsson.
22534
22535 2010-03-23  Bruno Haible  <bruno@clisp.org>
22536
22537         pt_chown: Don't depend on GPLed modules.
22538         * lib/pt_chown.c: Don't include idpriv.h.
22539         (main): Don't drop privileges.
22540         * modules/pt_chown (Depends-on): Remove idpriv-drop.
22541         Reported by Simon Josefsson.
22542
22543 2010-03-24  Simon Josefsson  <simon@josefsson.org>
22544
22545         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
22546         suggestions from karl@freefriends.org (Karl Berry).
22547
22548 2010-03-22  Eric Blake  <eblake@redhat.com>
22549
22550         gethostname: further tweaks
22551         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
22552         are overriding gethostname.
22553         Suggested by Bruno Haible.
22554
22555 2010-03-21  Bruno Haible  <bruno@clisp.org>
22556
22557         Fix comments.
22558         * lib/forkpty.c (rpl_forkpty): Fix comment.
22559         * lib/openpty.c (rpl_openpty): Likewise.
22560         Reported by Eric Blake.
22561
22562 2010-03-22  Eric Blake  <eblake@redhat.com>
22563
22564         gethostname: fix build on mingw
22565         * lib/unistd.in.h (includes): Work around fact that mingw
22566         <winsock2.h> re-includes <unistd.h>, by avoiding any
22567         redeclarations if we are being included by <winsock2.h>.
22568         Reported by Matthias Bolte.
22569
22570 2010-03-21  Bruno Haible  <bruno@clisp.org>
22571
22572         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22573         * lib/forkpty.c (forkpty): New replacement function, from glibc with
22574         modifications.
22575         * lib/pty.in.h (forkpty): Update declaration. Add comments.
22576         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
22577         provide the replacement.
22578         * modules/forkpty (Depends-on): Add openpty, login_tty.
22579         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
22580         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
22581         * doc/glibc-functions/forkpty.texi: More supported platforms.
22582         * config/srclist.txt: Add forkpty.c (commented).
22583
22584 2010-03-21  Bruno Haible  <bruno@clisp.org>
22585
22586         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
22587         (Makefile.am): Verify that PTY_LIB is defined.
22588
22589         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
22590
22591 2010-03-21  Bruno Haible  <bruno@clisp.org>
22592
22593         Tests for module 'login_tty'.
22594         * modules/login_tty-tests: New file.
22595         * tests/test-login_tty.c: New file.
22596
22597         New module 'login_tty'.
22598         * lib/login_tty.c: New file.
22599         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
22600         * modules/login_tty: New file.
22601         * doc/glibc-functions/login_tty.texi: Mention the new module.
22602
22603 2010-03-21  Bruno Haible  <bruno@clisp.org>
22604
22605         login_tty: Documentation.
22606         * doc/glibc-functions/login_tty.texi: New file.
22607         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
22608
22609 2010-03-21  Bruno Haible  <bruno@clisp.org>
22610
22611         pty: Consistent macro naming.
22612         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
22613         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
22614         * modules/pty (configure.ac): Update.
22615
22616 2010-03-21  Bruno Haible  <bruno@clisp.org>
22617
22618         Tests for openpty: Make stricter.
22619         * tests/test-openpty.c (main): Add test of canonical processing and
22620         erase.
22621         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
22622
22623         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22624         * lib/openpty.c (openpty): New replacement function.
22625         * lib/pty.in.h: Include <termios.h>.
22626         (openpty): Update declaration. Add comments.
22627         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
22628         is not declared, arrange to provide the replacement. Check for _getpty
22629         and posix_openpt.
22630         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
22631         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
22632         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
22633         * modules/pty-tests (test_pty_c___LDADD): New variable.
22634         * doc/glibc-functions/openpty.texi: More supported platforms.
22635
22636 2010-03-21  Bruno Haible  <bruno@clisp.org>
22637
22638         setenv: Tweaks.
22639         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
22640         the test program.
22641         * doc/posix-functions/setenv.texi: Update platforms list.
22642
22643 2010-03-21  Bruno Haible  <bruno@clisp.org>
22644
22645         New module 'unlockpt'.
22646         * lib/unlockpt.c: New file, from glibc with modifications.
22647         * m4/unlockpt.m4: New file.
22648         * modules/unlockpt: New file.
22649         * lib/stdlib.in.h (unlockpt): New declaration.
22650         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
22651         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
22652         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
22653         HAVE_UNLOCKPT.
22654         * doc/posix-functions/unlockpt.texi: Mention the new module.
22655         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
22656         * config/srclist.txt: Add unlockpt.c (commented).
22657
22658 2010-03-21  Jim Meyering  <meyering@redhat.com>
22659
22660         maint.mk: prohibit inclusion of "intprops.h" without use
22661         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
22662
22663 2010-03-21  Bruno Haible  <bruno@clisp.org>
22664
22665         New module 'grantpt'.
22666         * lib/grantpt.c: New file, from glibc with modifications.
22667         * m4/grantpt.m4: New file.
22668         * modules/grantpt: New file.
22669         * lib/stdlib.in.h (grantpt): New declaration.
22670         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
22671         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
22672         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
22673         HAVE_GRANTPT.
22674         * doc/posix-functions/grantpt.texi: Mention the new module.
22675         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
22676         * config/srclist.txt: Add grantpt.c (commented).
22677
22678 2010-03-21  Bruno Haible  <bruno@clisp.org>
22679
22680         New module 'pt_chown'.
22681         * lib/pt_chown.c: New file, from glibc with modifications.
22682         * lib/pty-private.h: New file, from glibc with modifications.
22683         * modules/pt_chown: New file.
22684         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
22685
22686 2010-03-21  Bruno Haible  <bruno@clisp.org>
22687
22688         Tests for module 'ptsname'.
22689         * modules/ptsname-tests: New file.
22690         * tests/test-ptsname.c: New file.
22691
22692         New module 'ptsname'.
22693         * lib/ptsname.c: New file, from glibc with modifications.
22694         * m4/ptsname.m4: New file.
22695         * modules/ptsname: New file.
22696         * lib/stdlib.in.h (ptsname): New declaration.
22697         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
22698         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
22699         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
22700         HAVE_PTSNAME.
22701         * doc/posix-functions/ptsname.texi: Mention the new module.
22702         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
22703         * config/srclist.txt: Add ptsname.c (commented).
22704
22705 2010-03-21  Bruno Haible  <bruno@clisp.org>
22706
22707         Tests for module 'ttyname_r'.
22708         * modules/ttyname_r-tests: New file.
22709         * tests/test-ttyname_r.c: New file.
22710
22711         New module 'ttyname_r'.
22712         * lib/ttyname_r.c: New file.
22713         * m4/ttyname_r.m4: New file.
22714         * modules/ttyname_r: New file.
22715         * lib/unistd.in.h (ttyname_r): New declaration.
22716         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
22717         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
22718         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
22719         HAVE_TTYNAME_R.
22720         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
22721         * doc/posix-functions/ttyname_r.texi: Mention the new module.
22722
22723 2010-03-20  Bruno Haible  <bruno@clisp.org>
22724
22725         signal: Undefine macro definitions in C++ mode.
22726         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
22727         sigfillset): Undefine macro definitions from the system header in C++
22728         mode.
22729         Reported by John W. Eaton <jwe@gnu.org>.
22730
22731 2010-03-20  Bruno Haible  <bruno@clisp.org>
22732
22733         Ensure no #include statements inside extern "C" { ... }.
22734         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
22735         contain #include statements.
22736         * lib/time.in.h: Likewise.
22737
22738 2010-03-20  Bruno Haible  <bruno@clisp.org>
22739
22740         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
22741         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
22742         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
22743         Reported by John W. Eaton <jwe@gnu.org>.
22744
22745 2010-03-20  Bruno Haible  <bruno@clisp.org>
22746
22747         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
22748         Reported by Jim Meyering.
22749
22750 2010-03-20  Bruno Haible  <bruno@clisp.org>
22751
22752         pipe: Set errno upon failure.
22753         * lib/pipe.h: Specify that when -1 is returned, errno is set.
22754         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
22755         errno value in error message.
22756
22757 2010-03-20  Bruno Haible  <bruno@clisp.org>
22758             Jim Meyering  <meyering@redhat.com>
22759
22760         lchown: Avoid "unused variable" warning.
22761         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
22762
22763 2010-03-20  Bruno Haible  <bruno@clisp.org>
22764
22765         Work around unlink() bug on MacOS X 10.5.6.
22766         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
22767         attempting to unlink a parent directory.
22768         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
22769         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
22770         activate for the replacement function.
22771         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
22772
22773 2010-03-20  Bruno Haible  <bruno@clisp.org>
22774
22775         Fix link errors on Solaris 8.
22776         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
22777         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
22778
22779 2010-03-19  Jim Meyering  <meyering@redhat.com>
22780
22781         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
22782         The _LIBC implementation of build_range_exp correctly honors the
22783         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
22784         However, the non-_LIBC implementation would ignore that syntax-bit
22785         flag and return REG_ERANGE unconditionally.
22786         This change makes it honor that flag.
22787         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
22788         Make two pointer parameters "const".
22789         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
22790         (parse_bracket_exp): Update caller.
22791
22792         regex.m4: correct the reversed range endpoint ([b-a]) test
22793         * m4/regex.m4: When requiring that [b-a] evoke failure,
22794         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
22795         test pass once again for x86-based systems.
22796
22797 2010-03-19  Bruno Haible  <bruno@clisp.org>
22798
22799         scandir: Fix link error on Solaris 8.
22800         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
22801         macros.
22802
22803 2010-03-19  Bruno Haible  <bruno@clisp.org>
22804
22805         getusershell: Fix documentation.
22806         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
22807         module.
22808         * doc/glibc-functions/setusershell.texi: Likewise.
22809
22810         getusershell: Provide declaration, missing on Solaris 9.
22811         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
22812         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
22813         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
22814         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
22815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22816         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
22817         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
22818         HAVE_GETUSERSHELL.
22819         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
22820
22821 2010-03-19  Bruno Haible  <bruno@clisp.org>
22822
22823         wctype: Provide iswblank function.
22824         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
22825         exists and is fine.
22826         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
22827         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
22828         * tests/test-wctype.c (main): Re-enable the iswblank tests.
22829         * doc/posix-functions/iswblank.texi: Update.
22830
22831 2010-03-19  Bruno Haible  <bruno@clisp.org>
22832
22833         Tests of module 'pty' in C++ mode.
22834         * modules/pty-tests: New file.
22835         * tests/test-pty-c++.cc: New file.
22836         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22837
22838 2010-03-19  Eric Blake  <eblake@redhat.com>
22839
22840         logb: fix documentation
22841         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
22842         1.5 declaration bug.
22843
22844         forkpty, openpty: prefer glibc's const-safe prototype
22845         * lib/forkpty.c (rpl_forkpty): New file.
22846         * lib/openpty.c (rpl_openpty): Likewise.
22847         * modules/forkpty (Files): Distribute it.
22848         * modules/openpty (Files): Likewise.
22849         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
22850         check...
22851         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
22852         replacement for for non-const BSD signature.
22853         * modules/pty (Makefile.am): Substitute witnesses.
22854         * lib/pty.in.h (forkpty, openpty): Declare replacements.
22855         * tests/test-forkpty.c: Update signature check.
22856         * tests/test-openpty.c: Likewise.
22857         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
22858         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22859
22860         forkpty, openpty: split functions into new modules
22861         * modules/pty (Makefile.am): Substitute new witnesses.
22862         (Libraries): Move library detection...
22863         * modules/forkpty: ...into new module.
22864         * modules/openpty: Another new module.
22865         * modules/pty-tests: Rename and split...
22866         * modules/forkpty-tests: ...to this...
22867         * modules/openpty-tests: ...and this.
22868         * tests/test-pty.c: Rename and split...
22869         * tests/test-forkpty.c: ...to this...
22870         * tests/test-openpty.c: ...and this.
22871         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
22872         (gl_PTY): Split library searching...
22873         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
22874         (gl_FORKPTY, gl_OPENPTY): New macros.
22875         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
22876         * NEWS: Mention the split.
22877         * MODULES.html.sh (Misc): Document the modules.
22878         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
22879         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22880
22881         pty: improve replacement header
22882         * lib/pty.in.h: New file.
22883         * modules/pty (Files): Ship it.
22884         (Makefile.am): Always build replacement.
22885         * m4/pty.m4: Rename...
22886         * m4/pty_h.m4: ...to this.
22887         (gl_PTY): Modernize setting of witness macros; update check of
22888         forkpty to take proper advantage of cache.
22889         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
22890
22891         getopt: avoid compiler warning
22892         * lib/getopt.c (attribute_hidden): Remove unused macro.
22893
22894 2010-03-18  Bruno Haible  <bruno@clisp.org>
22895
22896         Fix link errors on Solaris 8.
22897         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
22898         * modules/search-tests (test_search_c___LDADD): Likewise.
22899         * modules/signal-tests (test_signal_c___LDADD): Likewise.
22900         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
22901         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
22902         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
22903         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
22904         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
22905         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
22906
22907 2010-03-18  Bruno Haible  <bruno@clisp.org>
22908
22909         Fix bug introduced on 2010-03-14.
22910         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
22911         (gl_SPAWN_H): Require it.
22912         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
22913         Reported by Simon Josefsson.
22914
22915 2010-03-18  Bruno Haible  <bruno@clisp.org>
22916
22917         Fix typo introduced on 2009-12-31.
22918         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
22919         posix_spawn_file_actions_adddup2.
22920
22921 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
22922         and Eric Blake  <eblake@redhat.com>
22923
22924         test-vc-list-files-git: make more robust
22925         * tests/test-vc-list-files-git.sh: Unset problematic environment
22926         variables.  Chain commands together.
22927
22928 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
22929
22930         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
22931         `AC_CHECK_DECL' invocation.
22932
22933 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
22934
22935         * lib/inttostr.c (inttostr): Make sure the invocation of verify
22936         appears before executable statements. Suggested by Petr Sumbera
22937         <Petr.Sumbera@Sun.COM>.
22938
22939 2010-03-14  Bruno Haible  <bruno@clisp.org>
22940
22941         * tests/test-flock.c (test_exclusive): Comment out a test that causes
22942         portability problems. Instead use a simpler test.
22943         (main): Check that invalid arguments are rejected only on Linux.
22944
22945 2010-03-14  Bruno Haible  <bruno@clisp.org>
22946
22947         Fix bug introduced on 2009-12-31.
22948         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22949         gl_PREREQ_SYS_H_WINSOCK2 always.
22950         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
22951         SYS_SOCKET_H variable.
22952         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
22953         Update comments.
22954         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
22955         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22956         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22957         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22958         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22959
22960 2010-03-14  Bruno Haible  <bruno@clisp.org>
22961
22962         Fix values returned by sinl, cosl.
22963         * lib/trigl.h: Add specification comments.
22964         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
22965         that combines the values from the precomputed table with the values of
22966         the Chebyshev polynomials.
22967
22968 2010-03-14  Bruno Haible  <bruno@clisp.org>
22969
22970         Fix compilation error when modules 'posix_spawn[p]' are not used.
22971         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
22972         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
22973
22974 2010-03-14  Bruno Haible  <bruno@clisp.org>
22975
22976         Fix compilation error on mingw when module 'time_r' is not used.
22977         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22978         is 1.
22979         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22980         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22981         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22982         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22983
22984 2010-03-14  Bruno Haible  <bruno@clisp.org>
22985
22986         Fix compilation error with Sun C.
22987         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22988         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22989         instead of GCC specific ULONG_LONG_MAX.
22990         * lib/xstrtoll.c: Likewise.
22991         * lib/xstrtoull.c: Likewise.
22992
22993 2010-03-13  Bruno Haible  <bruno@clisp.org>
22994
22995         Allow the user to disable C++ code and tests.
22996         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22997         (gl_PROG_ANSI_CXX): Require it.
22998
22999 2010-03-13  Bruno Haible  <bruno@clisp.org>
23000
23001         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
23002         cases.
23003
23004 2010-03-13  Bruno Haible  <bruno@clisp.org>
23005
23006         Test that gnulib does not break the standard C++ headers.
23007         * tests/test-locale-c++2.cc: New file.
23008         * modules/locale-tests (Files): Add it.
23009         (Makefile.am): Compile it for test-locale-c++.
23010         * tests/test-math-c++2.cc: New file.
23011         * modules/math-tests (Files): Add it.
23012         (Makefile.am): Compile it for test-math-c++.
23013         * tests/test-signal-c++2.cc: New file.
23014         * modules/signal-tests (Files): Add it.
23015         (Makefile.am): Compile it for test-signal-c++.
23016         * tests/test-stdio-c++2.cc: New file.
23017         * modules/stdio-tests (Files): Add it.
23018         (Makefile.am): Compile it for test-stdio-c++.
23019         * tests/test-stdlib-c++2.cc: New file.
23020         * modules/stdlib-tests (Files): Add it.
23021         (Makefile.am): Compile it for test-stdlib-c++.
23022         * tests/test-string-c++2.cc: New file.
23023         * modules/string-tests (Files): Add it.
23024         (Makefile.am): Compile it for test-string-c++.
23025         * tests/test-time-c++2.cc: New file.
23026         * modules/time-tests (Files): Add it.
23027         (Makefile.am): Compile it for test-time-c++.
23028         Reported by John W. Eaton <jwe@gnu.org>.
23029
23030 2010-03-13  Bruno Haible  <bruno@clisp.org>
23031
23032         * gnulib-tool (func_usage): Clarify which options are available for
23033         --create-testdir and --create-megatestdir.
23034
23035 2010-03-13  Bruno Haible  <bruno@clisp.org>
23036
23037         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
23038         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
23039         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
23040         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23041         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
23042         when appropriate.
23043         Reported by Jim Meyering.
23044
23045 2010-03-12  Simon Josefsson  <simon@josefsson.org>
23046
23047         * gnulib-tool (func_import): Explain origin of code.
23048
23049 2010-03-12  Bruno Haible  <bruno@clisp.org>
23050
23051         Fix problem with automake's definition of CXXLINK.
23052         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
23053         Reported by Simon Josefsson and Ludovic Courtès.
23054
23055 2010-03-12  Bruno Haible  <bruno@clisp.org>
23056
23057         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
23058         stable releases.
23059
23060 2010-03-11  Bruno Haible  <bruno@clisp.org>
23061
23062         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
23063         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
23064         whether the system provides one variant or multiple variants of the
23065         function.
23066         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
23067         C++ compilers.
23068         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
23069         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
23070         Reported by Jim Meyering.
23071
23072 2010-03-09  Simon Josefsson  <simon@josefsson.org>
23073
23074         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
23075
23076 2010-03-08  Bruno Haible  <bruno@clisp.org>
23077
23078         gnulib-tool: Add support for --libtool in --create-testdir.
23079         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
23080         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
23081
23082 2010-03-08  Eric Blake  <eblake@redhat.com>
23083
23084         gnulib-tool.texi: mention possibility of git submodule
23085         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
23086         submodules.
23087         * doc/.gitignore: Ignore another generated file.
23088
23089 2010-03-08  Karl Berry  <karl@gnu.org>
23090
23091         * doc/gnulib-tool.texi (VCS Issues): Mention third option
23092         of committing gnulib files while skipping others.
23093
23094 2010-03-07  Bruno Haible  <bruno@clisp.org>
23095
23096         Tests of module 'wctype' in C++ mode.
23097         * tests/test-wctype-c++.cc: New file.
23098         * modules/wctype-tests (Files): Add it and tests/signature.h.
23099         (Depends-on): Add ansi-c++-opt.
23100         (Makefile.am): Arrange to compile and run test-wctype-c++.
23101
23102         Tests of module 'wchar' in C++ mode.
23103         * tests/test-wchar-c++.cc: New file.
23104         * modules/wchar-tests (Files): Add it and tests/signature.h.
23105         (Depends-on): Add ansi-c++-opt.
23106         (Makefile.am): Arrange to compile and run test-wchar-c++.
23107         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
23108         gl_MODULE_INDICATOR.
23109
23110         Tests of module 'unistd' in C++ mode.
23111         * tests/test-unistd-c++.cc: New file.
23112         * modules/unistd-tests (Files): Add it and tests/signature.h.
23113         (Depends-on): Add ansi-c++-opt.
23114         (Makefile.am): Arrange to compile and run test-unistd-c++.
23115         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
23116         gl_MODULE_INDICATOR.
23117
23118         Tests of module 'time' in C++ mode.
23119         * tests/test-time-c++.cc: New file.
23120         * modules/time-tests (Files): Add it and tests/signature.h.
23121         (Depends-on): Add ansi-c++-opt.
23122         (Makefile.am): Arrange to compile and run test-time-c++.
23123         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23124
23125         Tests of module 'sys_time' in C++ mode.
23126         * tests/test-sys_time-c++.cc: New file.
23127         * modules/sys_time-tests (Files): Add it and tests/signature.h.
23128         (Depends-on): Add ansi-c++-opt.
23129         (Makefile.am): Arrange to compile and run test-sys_time-c++.
23130         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
23131         gl_MODULE_INDICATOR.
23132
23133         Tests of module 'sys_stat' in C++ mode.
23134         * tests/test-sys_stat-c++.cc: New file.
23135         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
23136         (Depends-on): Add ansi-c++-opt.
23137         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
23138         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
23139         gl_MODULE_INDICATOR.
23140
23141         Tests of module 'sys_socket' in C++ mode.
23142         * tests/test-sys_socket-c++.cc: New file.
23143         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
23144         (Depends-on): Add ansi-c++-opt.
23145         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
23146         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
23147         gl_MODULE_INDICATOR.
23148
23149         Tests of module 'sys_select' in C++ mode.
23150         * tests/test-sys_select-c++.cc: New file.
23151         * modules/sys_select-tests (Files): Add it and tests/signature.h.
23152         (Depends-on): Add ansi-c++-opt.
23153         (Makefile.am): Arrange to compile and run test-sys_select-c++.
23154         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
23155         gl_MODULE_INDICATOR.
23156
23157         Tests of module 'sys_ioctl' in C++ mode.
23158         * tests/test-sys_ioctl-c++.cc: New file.
23159         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
23160         (Depends-on): Add ansi-c++-opt.
23161         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
23162         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
23163         gl_MODULE_INDICATOR.
23164
23165         Tests of module 'string' in C++ mode.
23166         * tests/test-string-c++.cc: New file.
23167         * modules/string-tests (Files): Add it and tests/signature.h.
23168         (Depends-on): Add ansi-c++-opt.
23169         (Makefile.am): Arrange to compile and run test-string-c++.
23170         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
23171         gl_MODULE_INDICATOR.
23172
23173         Tests of module 'stdlib' in C++ mode.
23174         * tests/test-stdlib-c++.cc: New file.
23175         * modules/stdlib-tests (Files): Add it and tests/signature.h.
23176         (Depends-on): Add ansi-c++-opt.
23177         (Makefile.am): Arrange to compile and run test-stdlib-c++.
23178         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
23179         gl_MODULE_INDICATOR.
23180
23181         Tests of module 'stdio' in C++ mode.
23182         * tests/test-stdio-c++.cc: New file.
23183         * modules/stdio-tests (Files): Add it and tests/signature.h.
23184         (Depends-on): Add ansi-c++-opt.
23185         (Makefile.am): Arrange to compile and run test-stdio-c++.
23186         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
23187         gl_MODULE_INDICATOR.
23188
23189         Tests of module 'spawn' in C++ mode.
23190         * tests/test-spawn-c++.cc: New file.
23191         * modules/spawn-tests (Files): Add it and tests/signature.h.
23192         (Depends-on): Add ansi-c++-opt.
23193         (Makefile.am): Arrange to compile and run test-spawn-c++.
23194         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
23195         gl_MODULE_INDICATOR.
23196
23197         Tests of module 'signal' in C++ mode.
23198         * tests/test-signal-c++.cc: New file.
23199         * modules/signal-tests (Files): Add it and tests/signature.h.
23200         (Depends-on): Add ansi-c++-opt.
23201         (Makefile.am): Arrange to compile and run test-signal-c++.
23202         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
23203         gl_MODULE_INDICATOR.
23204
23205         Tests of module 'search' in C++ mode.
23206         * tests/test-search-c++.cc: New file.
23207         * modules/search-tests (Files): Add it and tests/signature.h.
23208         (Depends-on): Add ansi-c++-opt.
23209         (Makefile.am): Arrange to compile and run test-search-c++.
23210         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
23211         gl_MODULE_INDICATOR.
23212
23213         Tests of module 'math' in C++ mode.
23214         * tests/test-math-c++.cc: New file.
23215         * modules/math-tests (Files): Add it and tests/signature.h.
23216         (Depends-on): Add ansi-c++-opt.
23217         (Makefile.am): Arrange to compile and run test-math-c++.
23218         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23219
23220         Tests of module 'locale' in C++ mode.
23221         * tests/test-locale-c++.cc: New file.
23222         * modules/locale-tests (Files): Add it and tests/signature.h.
23223         (Depends-on): Add ansi-c++-opt.
23224         (Makefile.am): Arrange to compile and run test-locale-c++.
23225         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
23226         gl_MODULE_INDICATOR.
23227
23228         Tests of module 'langinfo' in C++ mode.
23229         * tests/test-langinfo-c++.cc: New file.
23230         * modules/langinfo-tests (Files): Add it and tests/signature.h.
23231         (Depends-on): Add ansi-c++-opt.
23232         (Makefile.am): Arrange to compile and run test-langinfo-c++.
23233         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
23234         gl_MODULE_INDICATOR.
23235
23236         Tests of module 'iconv-h' in C++ mode.
23237         * tests/test-iconv-h-c++.cc: New file.
23238         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
23239         (Depends-on): Add ansi-c++-opt.
23240         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
23241
23242         Tests of module 'glob' in C++ mode.
23243         * tests/test-glob-c++.cc: New file.
23244         * modules/glob-tests (Files): Add it.
23245         (Depends-on): Add ansi-c++-opt.
23246         (Makefile.am): Arrange to compile and run test-glob-c++.
23247
23248         Tests of module 'fcntl-h' in C++ mode.
23249         * tests/test-fcntl-h-c++.cc: New file.
23250         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
23251         (Depends-on): Add ansi-c++-opt.
23252         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
23253         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
23254         gl_MODULE_INDICATOR.
23255
23256         Tests of module 'dirent' in C++ mode.
23257         * tests/test-dirent-c++.cc: New file.
23258         * modules/dirent-tests (Files): Add it and tests/signature.h.
23259         (Depends-on): Add ansi-c++-opt.
23260         (Makefile.am): Arrange to compile and run test-dirent-c++.
23261         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
23262         gl_MODULE_INDICATOR.
23263
23264         New module 'ansi-c++-opt'.
23265         * modules/ansi-c++-opt: New file.
23266         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
23267
23268         Document C++ namespace mode.
23269         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
23270
23271         wctype: Avoid #define replacements in C++ mode.
23272         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
23273         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
23274         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
23275         In C++, define a namespaced alias symbol.
23276         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
23277         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
23278         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
23279         rule.
23280
23281         wchar: Avoid #define replacements in C++ mode.
23282         * lib/wchar.in.h: Include c++defs.h.
23283         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
23284         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
23285         symbol.
23286         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
23287         * modules/wchar (Depends-on): Add c++defs.
23288         (Makefile.am): Update wchar.h rule.
23289
23290         unistd: Avoid #define replacements in C++ mode.
23291         * lib/unistd.in.h: Include c++defs.h.
23292         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
23293         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
23294         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
23295         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
23296         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
23297         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
23298         symbol.
23299         (environ): Update.
23300         * modules/unistd (Depends-on): Add c++defs.
23301         (Makefile.am): Update unistd.h rule.
23302
23303         time: Avoid #define replacements in C++ mode.
23304         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
23305         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
23306         define a namespaced alias symbol.
23307         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
23308         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
23309         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
23310         * modules/time (Depends-on): Add c++defs, warn-on-use.
23311         (Makefile.am): Update time.h rule.
23312         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23313         * modules/nanosleep (configure.ac): Likewise.
23314         * modules/strptime (configure.ac): Likewise.
23315         * modules/timegm (configure.ac): Likewise.
23316
23317         sys_time: Avoid #define replacements in C++ mode.
23318         * lib/sys_time.in.h: Include c++defs.h.
23319         (gettimeofday): In C++, define a namespaced alias symbol.
23320         * modules/sys_time (Depends-on): Add c++defs.
23321         (Makefile.am): Update sys/time.h rule.
23322
23323         sys_stat: Avoid #define replacements in C++ mode.
23324         * lib/sys_stat.in.h: Include c++defs.h.
23325         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
23326         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
23327         namespaced alias symbol.
23328         In C++, define a namespaced alias symbol.
23329         * modules/sys_stat (Depends-on): Add c++defs.
23330         (Makefile.am): Update sys/stat.h rule.
23331
23332         sys_socket: Avoid #define replacements in C++ mode.
23333         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
23334         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
23335         definitions also when the system has a <sys/socket.h>.
23336         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
23337         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
23338         In C++, define a namespaced alias symbol.
23339         * modules/sys_socket (Depends-on): Add c++defs.
23340         (Makefile.am): Update sys/socket.h rule.
23341
23342         sys_select: Avoid #define replacements in C++ mode.
23343         * lib/sys_select.in.h: Include c++defs.h. Enable the function
23344         definitions also when the system has a <sys/select.h>.
23345         (select): In C++, define a namespaced alias symbol.
23346         * modules/sys_select (Depends-on): Add c++defs.
23347         (Makefile.am): Update sys/select.h rule.
23348
23349         sys_ioctl: Avoid #define replacements in C++ mode.
23350         * lib/sys_ioctl.in.h: Include c++defs.h.
23351         (ioctl): In C++, define a namespaced alias symbol.
23352         * modules/sys_ioctl (Depends-on): Add c++defs.
23353         (Makefile.am): Update sys/ioctl.h rule.
23354
23355         string: Avoid #define replacements in C++ mode.
23356         * lib/string.in.h: Include c++defs.h.
23357         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
23358         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23359         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23360         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
23361         strsignal, strverscmp): In C++, define a namespaced alias symbol.
23362         * modules/string (Depends-on): Add c++defs.
23363         (Makefile.am): Update string.h rule.
23364
23365         stdlib: Avoid #define replacements in C++ mode.
23366         * lib/stdlib.in.h: Include c++defs.h.
23367         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
23368         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
23369         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
23370         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
23371         symbol.
23372         * modules/stdlib (Depends-on): Add c++defs.
23373         (Makefile.am): Update stdlib.h rule.
23374
23375         stdio: Avoid #define replacements in C++ mode.
23376         * lib/stdio.in.h: Include c++defs.h.
23377         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
23378         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
23379         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
23380         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
23381         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
23382         namespaced alias symbol.
23383         * modules/stdio (Depends-on): Add c++defs.
23384         (Makefile.am): Update stdio.h rule.
23385
23386         spawn: Avoid #define replacements in C++ mode.
23387         * lib/spawn.in.h: Include c++defs.h.
23388         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23389         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23390         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23391         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23392         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23393         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23394         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23395         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23396         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23397         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23398         In C++, define a namespaced alias symbol.
23399         * modules/spawn (Depends-on): Add c++defs.
23400         (Makefile.am): Update spawn.h rule.
23401
23402         signal: Avoid #define replacements in C++ mode.
23403         * lib/signal.in.h: Include c++defs.h.
23404         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23405         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
23406         namespaced alias symbol.
23407         * modules/signal (Depends-on): Add c++defs.
23408         (Makefile.am): Update signal.h rule.
23409
23410         search: Avoid #define replacements in C++ mode.
23411         * lib/search.in.h: Include c++defs.h.
23412         (_gl_search_compar_fn, _gl_search_action_fn): New types.
23413         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
23414         symbol.
23415         * modules/search (Depends-on): Add c++defs.
23416         (Makefile.am): Update search.h rule.
23417
23418         math: Avoid #define replacements in C++ mode.
23419         * lib/math.in.h: Include c++defs.h.
23420         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
23421         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
23422         trunc, truncl): In C++, define a namespaced alias symbol.
23423         * modules/math (Depends-on): Add c++defs.
23424         (Makefile.am): Update math.h rule.
23425
23426         locale: Avoid #define replacements in C++ mode.
23427         * lib/locale.in.h: Include c++defs.h.
23428         (duplocale): In C++, define a namespaced alias symbol.
23429         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
23430         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
23431         * modules/locale (Depends-on): Add c++defs.
23432         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
23433
23434         langinfo: Avoid #define replacements in C++ mode.
23435         * lib/langinfo.in.h: Include c++defs.h.
23436         (nl_langinfo): In C++, define a namespaced alias symbol.
23437         * modules/langinfo (Depends-on): Add c++defs.
23438         (Makefile.am): Update langinfo.h rule.
23439
23440         iconv-h: Avoid #define replacements in C++ mode.
23441         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
23442         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
23443         symbol.
23444         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
23445         whenever iconv is present.
23446         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
23447         (Makefile.am): Update iconv.h rule.
23448
23449         glob: Avoid #define replacements in C++ mode.
23450         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
23451         (_gl_glob_errfunc_fn): New type.
23452         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
23453         symbol.
23454         * modules/glob (Depends-on): Add c++defs, warn-on-use.
23455         (Makefile.am): Update glob.h rule.
23456
23457         fcntl-h: Avoid #define replacements in C++ mode.
23458         * lib/fcntl.in.h: Include c++defs.h.
23459         (fcntl, open, openat): In C++, define a namespaced alias symbol.
23460         * modules/fcntl-h (Depends-on): Add c++defs.
23461         (Makefile.am): Update fcntl.h rule.
23462
23463         dirent: Avoid #define replacements in C++ mode.
23464         * lib/dirent.in.h: Include c++defs.h.
23465         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
23466         namespaced alias symbol.
23467         (dirfd): Update declaration.
23468         * modules/dirent (Depends-on): Add c++defs.
23469         (Makefile.am): Update dirent.h rule.
23470
23471         ctype: Make it usable in C++ code.
23472         * lib/ctype.in.h: Include c++defs.h.
23473         (isblank): Declare as extern "C".
23474         * modules/ctype (Depends-on): Add c++defs.
23475         (Makefile.am): Update ctype.h rule.
23476
23477         New module 'c++defs'.
23478         * modules/c++defs: New file.
23479         * build-aux/c++defs.h: New file.
23480         Reported by John W. Eaton <jwe@gnu.org>.
23481
23482 2010-03-07  Bruno Haible  <bruno@clisp.org>
23483
23484         logb: Provide missing declaration for Cygwin.
23485         * lib/math.in.h (logb): New declaration.
23486         * m4/logb.m4: New file.
23487         * modules/logb (Files): Add m4/logb.m4.
23488         (Depends-on): Add math.
23489         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
23490         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
23491         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
23492         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
23493         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
23494
23495 2010-03-07  Bruno Haible  <bruno@clisp.org>
23496
23497         Fix test-cond link error.
23498         * tests/test-cond.c: Include <stdio.h>.
23499
23500 2010-03-07  Bruno Haible  <bruno@clisp.org>
23501
23502         Fix test-dirent-safer link error.
23503         * modules/dirent-safer-tests (Makefile.am): Define
23504         test_dirent_safer_LDADD.
23505
23506 2010-03-07  Bruno Haible  <bruno@clisp.org>
23507
23508         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
23509         among default module list.
23510
23511 2010-03-07  Bruno Haible  <bruno@clisp.org>
23512
23513         Fix link error on platforms with GNU libiconv.
23514         * modules/unistr/u8-strcoll-tests (Makefile): Define
23515         test_u8_strcoll_LDADD.
23516         * modules/unistr/u16-strcoll-tests (Makefile): Define
23517         test_u16_strcoll_LDADD.
23518         * modules/unistr/u32-strcoll-tests (Makefile): Define
23519         test_u32_strcoll_LDADD.
23520
23521 2010-03-07  Bruno Haible  <bruno@clisp.org>
23522
23523         Use POSIX declarations for socket functions.
23524         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
23525         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
23526         rpl_sendto): Change declaration to match POSIX.
23527         * lib/connect.c (rpl_connect): Likewise.
23528         * lib/accept.c (rpl_accept): Likewise.
23529         * lib/bind.c (rpl_bind): Likewise.
23530         * lib/getpeername.c (rpl_getpeername): Likewise.
23531         * lib/getsockname.c (rpl_getsockname): Likewise.
23532         * lib/recv.c (rpl_recv): Likewise.
23533         * lib/send.c (rpl_send): Likewise.
23534         * lib/recvfrom.c (rpl_recvfrom): Likewise.
23535         * lib/sendto.c (rpl_sendto): Likewise.
23536
23537 2010-03-06  Bruno Haible  <bruno@clisp.org>
23538
23539         Clarify access, euidaccess, faccessat.
23540         * doc/posix-functions/faccessat.texi: Mention security problem under
23541         "Other problems", not "Portability problems".
23542         * doc/posix-functions/access.texi: Likewise. Mention a related security
23543         problem.
23544         * doc/glibc-functions/euidaccess.texi: Mention security problems.
23545         * lib/euidaccess.c: Add comments about platforms.
23546         * lib/unistd.in.h (access, euidaccess): Add warnings.
23547
23548 2010-03-07  Bruno Haible  <bruno@clisp.org>
23549
23550         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
23551         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
23552         (POSIX_SPAWN_SETSCHEDULER): Likewise.
23553         (POSIX_SPAWN_USEVFORK): Define in a way that works when
23554         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23555         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
23556         declare when POSIX_SPAWN_SETSCHEDULER is zero.
23557         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
23558         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
23559         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
23560         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
23561         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
23562         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
23563         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
23564         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
23565         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
23566         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
23567         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
23568         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
23569         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
23570         Likewise.
23571         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
23572         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
23573         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
23574         Likewise.
23575         * tests/test-spawn.c (main): Make it work when
23576         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23577
23578 2010-03-07  Bruno Haible  <bruno@clisp.org>
23579
23580         Fix incorrect Makefile.am generation in German locale.
23581         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23582         Execute sed command with character range in C locale.
23583
23584 2010-03-06  Bruno Haible  <bruno@clisp.org>
23585
23586         Tests for module 'iconv-h'.
23587         * modules/iconv-h-tests: New file.
23588         * tests/test-iconv-h.c: New file.
23589
23590         New module 'iconv-h'.
23591         * modules/iconv-h: New file.
23592         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
23593         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
23594         (configure.ac): Remove gl_ICONV_H.
23595         (Makefile.am): Remove rule for iconv.h.
23596
23597 2010-03-06  Bruno Haible  <bruno@clisp.org>
23598
23599         More consistent naming of *.m4 files.
23600         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
23601         * modules/wctype (Files): Update.
23602
23603         More consistent naming of *.m4 files.
23604         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
23605         * modules/wchar (Files): Update.
23606
23607 2010-03-06  Jim Meyering  <meyering@redhat.com>
23608
23609         euidaccess: relax license to LGPLv2+
23610         * modules/euidaccess (License): Relax to LGPLv2+.
23611
23612 2010-03-06  Bruno Haible  <bruno@clisp.org>
23613
23614         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
23615         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
23616         (Makefile.am): Augment lib_SOURCES instead.
23617
23618 2010-03-04  Jim Meyering  <meyering@redhat.com>
23619
23620         utime: remove obsolete module
23621         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
23622         unnecessary for years, and has been marked as obsolete for 10 months.
23623         * modules/utime: Remove file.
23624         * lib/utime.c: Remove file.
23625         * m4/utime.m4: Remove file.
23626         * m4/utimes-null.m4: Remove file.
23627         * doc/posix-functions/utime.texi (utime): Remove reference to
23628         the module.  Move the sole "fixed by gnulib" item into the
23629         "problems not fixed by Gnulib" list.
23630         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
23631
23632 2010-03-05  Simon Josefsson  <simon@josefsson.org>
23633
23634         * modules/exit (License): Relax license to LGPLv2+.
23635         (Status): Mark as obsolete.
23636         * NEWS: Mention deprecated 'exit' module.
23637         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
23638         of now obsolete 'exit'.
23639
23640 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23641
23642         fts-lgpl: remove unused module
23643         * modules/fts-lgpl: Remove.
23644         * MODULES.html.sh (func_all_modules): Adjust.
23645         * check-module (find_included_lib_files): Adjust.
23646         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
23647
23648 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
23649
23650         copy-acl: enhance Solaris ACL error handling
23651         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
23652         * lib/set-mode-acl.c (qset_acl): Likewise.
23653
23654 2010-03-02  Bruno Haible  <bruno@clisp.org>
23655
23656         spawn: Don't override the system defined values on FreeBSD 8.
23657         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
23658         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
23659         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
23660         if HAVE_POSIX_SPAWN is 1.
23661         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
23662
23663 2010-03-01  Bruno Haible  <bruno@clisp.org>
23664
23665         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
23666         regarding Automake.
23667
23668 2010-02-25  Bruno Haible  <bruno@clisp.org>
23669
23670         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
23671         * gnulib-tool: Define 'echo' as a function only before the ksh alias
23672         setting, not afterwards.
23673         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
23674
23675 2010-02-24  Eric Blake  <eblake@redhat.com>
23676
23677         bootstrap, git-version-gen: use timestamp
23678         * build-aux/git-version-gen (scriptversion): Force UTC.
23679         * build-aux/bootstrap (scriptversion): New variable.
23680
23681         bootstrap: allow older git
23682         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
23683         older than 1.6.4.  Requested by the libvirt project.
23684
23685 2010-02-23  Eric Blake  <eblake@redhat.com>
23686
23687         warn-on-use: work with old autoconf
23688         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
23689         AS_VAR semantics of autoconf 2.60.
23690         Reported by Bruno Haible.
23691
23692         bootstrap: improve some comments
23693         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
23694         clarification comments.
23695
23696         gettimeofday: provide correct function
23697         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
23698         when replacement is declared, otherwise provide gettimeofday.
23699         Reported by Michael Goffioul.
23700
23701 2010-02-23  Jim Meyering  <meyering@redhat.com>
23702
23703         lib-ignore: relax license to "unlimited", not LGPLv2+
23704         * modules/lib-ignore (License): Relax to "unlimited".
23705
23706 2010-02-23  Jim Meyering  <meyering@redhat.com>
23707
23708         lib-ignore: relax license to LGPLv2+
23709         * modules/lib-ignore (License): Relax to LGPLv2+.
23710
23711 2010-02-22  Eric Blake  <eblake@redhat.com>
23712
23713         lseek: avoid bash 3.2 broken pipe bug
23714         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
23715         warning from bash 3.2.
23716         Reported by Ben Pfaff, with analysis from Bruno Haible.
23717
23718         bootstrap: support non-FSF copyright holder
23719         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
23720         bootstrap.conf override of COPYRIGHT_HOLDER.
23721         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
23722
23723         bootstrap: interoperate with gettext 0.14.1
23724         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
23725
23726         bootstrap: allow for alternate submodule location
23727         * build-aux/bootstrap (gnulib_path): New variable; use instead of
23728         hardcoding submodule location.
23729         (gnulib_mk): Allow direct use of Makefile.am.
23730
23731         bootstrap: use GNULIB_SRCDIR to reduce disk usage
23732         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
23733         rather than reconfiguring where the submodule points.
23734
23735         gettimeofday: restore support for platforms that lack function
23736         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
23737         replacement if function is missing.
23738         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
23739         * modules/sys_time (Makefile.am): Substitute it.
23740         * lib/sys_time.in.h (gettimeofday): Check it.
23741         Reported by Michael Goffioul.
23742
23743 2010-02-21  Bruno Haible  <bruno@clisp.org>
23744
23745         * lib/stdio.in.h (obstack_printf): Fix typo.
23746
23747 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
23748
23749         vc-list-files: use bzr ls's -R option
23750         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
23751         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
23752
23753 2010-02-21  Jim Meyering  <meyering@redhat.com>
23754
23755         init.sh: fix EXEEXT shims to work also for names like test-prog
23756         * tests/init.sh: Re-exec a better shell, when needed.
23757         If the current shell lacks support for posix $(...), an init.sh-using
23758         test will now try to find a shell that supports that.  If EXEEXT is
23759         nonempty, we also require support for hyphen-in-alias-name and shell
23760         substitutions like ${var#glob}.  Failure to find such a shell results
23761         in a skipped test.
23762
23763 2010-02-21  Bruno Haible  <bruno@clisp.org>
23764
23765         Really work around around "broken pipe" error message from bash 3.2.
23766         * gnulib-tool (func_reset_sigpipe): Remove function.
23767         (echo): In bash 3.2, define to a function that uses printf.
23768         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
23769
23770 2010-02-20  Bruno Haible  <bruno@clisp.org>
23771
23772         Restore support for automake 1.9.6 with autoconf 2.61.
23773         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
23774         Reported by James Youngman <jay@gnu.org>.
23775
23776 2010-02-20  Bruno Haible  <bruno@clisp.org>
23777
23778         Improve *printf warning condition.
23779         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
23780         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
23781         and the function is overridden due to SIGPIPE emulation.
23782
23783 2010-02-20  Bruno Haible  <bruno@clisp.org>
23784
23785         * lib/stdio.in.h: Tweak comments.
23786
23787 2010-02-19  Bruno Haible  <bruno@clisp.org>
23788
23789         Make it easier to find modules. New gnulib-tool option '--find'.
23790         * gnulib-tool: New option --find.
23791         (func_usage): Document it.
23792         (func_sanitize_modulelist): New function, extracted from
23793         func_all_modules.
23794         (func_all_modules): Invoke it.
23795         * doc/gnulib-tool.texi (Which modules?): New node.
23796
23797 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
23798
23799         * lib/sys_select.in.h: Provide select replacement even if
23800         sys/select.h exists on a system, for Interix.
23801
23802 2010-02-18  Jim Meyering  <meyering@redhat.com>
23803
23804         init.sh: don't use $(...) just yet
23805         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
23806         to accommodate e.g., Solaris' /bin/sh.
23807
23808 2010-02-17  Bruno Haible  <bruno@clisp.org>
23809
23810         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
23811         Reported by Ludovic Courtès <ludo@gnu.org>.
23812
23813 2010-02-16  Simon Josefsson  <simon@josefsson.org>
23814
23815         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
23816         linking with -lintl.
23817
23818 2010-02-17  Simon Josefsson  <simon@josefsson.org>
23819
23820         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
23821         if not provided by the system's netdb.h.  Reported by
23822         ludo@gnu.org (Ludovic Courtès).
23823
23824 2010-02-15  Jim Meyering  <meyering@redhat.com>
23825
23826         init.sh: improve portability and efficiency
23827         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
23828         "dummy" in a for loop.
23829         Use '!', not '^' to select the complement of a character set used
23830         in a "case" statement.
23831         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
23832         Suggestions from Eric Blake.
23833
23834         init.sh: automatically accommodate programs with the .exe suffix
23835         Automatically arrange for an invocation of "prog" to execute the
23836         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
23837         may use the simpler "prog", yet still work when built on a system
23838         that requires specifying the added suffix.
23839         Do this by constructing a function named "prog" that invokes
23840         "prog.exe" for each .exe file in selected directories.
23841         * tests/init.sh (find_exe_basenames_): New function.
23842         (create_exe_shim_functions_): New function.
23843         (path_prepend_): Use it.
23844
23845         maint.mk: mark syntax-check sc_*.m rules as .PHONY
23846         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
23847         "make -t syntax-check" doesn't create a ton of sc_*.m files.
23848
23849 2010-02-14  Jim Meyering  <meyering@redhat.com>
23850
23851         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
23852         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
23853         (sc_prohibit_hash_pjw_without_use): New rule.
23854
23855         maint.mk: allow the default upload destination dir to be overridden
23856         * top/maint.mk (upload_dest_dir_): Define with a default that
23857         preserves the status quo.
23858         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
23859         Reported by Peter Simons.
23860
23861         maint.mk: prohibit inclusion of "hash.h" without_use
23862         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
23863
23864 2010-02-10  Jim Meyering  <meyering@redhat.com>
23865
23866         maint.mk: prohibit inclusion of "ignore-value.h" without_use
23867         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
23868
23869 2010-02-09  Eric Blake  <ebb9@byu.net>
23870         and Bruno Haible  <bruno@clisp.org>
23871
23872         obstack-printf-posix: ensure declaration
23873         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
23874         extracted from gl_FUNC_OBSTACK_PRINTF.
23875         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
23876         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23877         Likewise.
23878         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
23879         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
23880         0.
23881
23882 2010-02-08  Bruno Haible  <bruno@clisp.org>
23883
23884         gnulib-tool: Fix typo in 2010-02-07 commit.
23885         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
23886         Reported by Eric Blake.
23887
23888 2010-02-07  Bruno Haible  <bruno@clisp.org>
23889
23890         gnulib-tool: Fix up caching patches.
23891         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
23892         option --no-cache. Use associative arrays when supported by the shell.
23893         (sed_comments): New variable.
23894         (modcache): Renamed from do_cache.
23895         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
23896         abbreviate unnecessarily.
23897         (have_associative): New variable.
23898         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
23899         way also for ksh and zsh.
23900         (func_init_sed_convert_to_cache_statements): New function, extracted
23901         from func_cache_lookup_module. Add support for associative arrays.
23902         Don't set the c_MODULE_cached variable here. Ignore all lines before
23903         the first field header. Remove only the final newline, not all trailing
23904         newlines. Support empty fields correctly. Limit the use of 'eval' to
23905         assignments.
23906         (func_get_description, func_get_status, func_get_notice,
23907         func_get_applicability, func_get_filelist, func_get_dependencies,
23908         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
23909         func_get_automake_snippet, func_get_include_directive,
23910         func_get_link_directive, func_get_license, func_get_maintainer):
23911         Update documentation. List the unoptimized code first. Add support for
23912         associative arrays. Limit the use of 'eval' to assignments.
23913         (func_get_applicability): Undo stylistic pessimisations.
23914         (func_get_automake_snippet, func_get_include_directive): Reduce code
23915         duplication.
23916         (func_modules_transitive_closure, func_modules_add_dummy,
23917         func_modules_notice, func_modules_to_filelist, func_add_file,
23918         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
23919         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
23920         func_create_testdir, func_create_megatestdir): Update documentation.
23921
23922 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23923
23924         * gnulib-tool (func_cache_lookup_module): Store the module name
23925         belonging to the cache variable; error out if two different
23926         module names map to the same cache variable name.
23927
23928 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23929
23930         gnulib-tool: Make caching optional.
23931         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
23932         Update matching short versions of --no-changelog.
23933         (func_usage): Update.
23934         (sed_extract_cache_prog): Renamed from ...
23935         (sed_extract_prog): ... this; revert to old extraction script.
23936         (func_get_description, func_get_status)
23937         (func_get_notice, func_get_applicability, func_get_filelist)
23938         (func_get_dependencies, func_get_autoconf_early_snippet)
23939         (func_get_autoconf_snippet, func_get_automake_snippet)
23940         (func_get_include_directive, func_get_link_directive)
23941         (func_get_license, func_get_maintainer): If $do_cache is false,
23942         use old, non-caching extraction scripts.
23943         Suggestion by Bruno Haible.
23944
23945 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23946
23947         gnulib-tool: cache module metainformation.
23948         * gnulib-tool (sed_extract_prog): Match newline before each
23949         header, and rewrite header to a shell variable suffix.
23950         (func_cache_var, func_cache_lookup_module): New functions,
23951         to turn a module name into a cache variable prefix, and to
23952         look up and cache module metainformation.
23953         (func_get_description, func_get_status)
23954         (func_get_notice, func_get_applicability, func_get_filelist)
23955         (func_get_dependencies, func_get_autoconf_early_snippet)
23956         (func_get_autoconf_snippet, func_get_automake_snippet)
23957         (func_get_include_directive, func_get_link_directive)
23958         (func_get_license, func_get_maintainer): Use
23959         func_cache_lookup_module.
23960
23961 2010-02-07  Bruno Haible  <bruno@clisp.org>
23962
23963         fnctl: Fix missing dependency.
23964         * modules/fcntl (Depends-on): Add getdtablesize.
23965         Reported by John W. Eaton <jwe@gnu.org>.
23966
23967 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23968
23969         Argp: fix recognition of short alias options.
23970
23971         * lib/argp-parse.c (convert_options): Fix improper use of
23972         `|' between character values.
23973         * tests/test-argp.c (group1_option): New alias option
23974         --read (-r).
23975         (group1_parser): Special handling for 'r'.
23976         (test15): New test case.
23977         (test_fun): Add test15.
23978         * tests/test-argp-2.sh: Update expected --help and --usage
23979         outputs.
23980
23981 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23982
23983         * tests/test-argp.c: Fix indentation.
23984
23985 2010-02-04  Eric Blake  <ebb9@byu.net>
23986
23987         gettimeofday: expose type of second argument
23988         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23989         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23990         * tests/test-gettimeofday.c: Use it to silence warning.
23991         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23992         the issue.
23993
23994 2010-02-03  Jim Meyering  <meyering@redhat.com>
23995
23996         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23997         * lib/regcomp.c (TYPE_SIGNED): Define.
23998         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23999
24000         regcomp.c: avoid a new -Wshadow warning
24001         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
24002
24003 2010-02-01  Jim Meyering  <meyering@redhat.com>
24004
24005         removing useless parentheses in cpp #define directives
24006         For motivation, see commit c0221df4, "define STREQ(a,b)
24007         consistently, removing useless parentheses"
24008         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
24009         * lib/mountlist.c (MNT_IGNORE): Likewise.
24010         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
24011
24012 2010-02-01  Eric Blake  <ebb9@byu.net>
24013
24014         sys_time: use link-warning
24015         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
24016         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
24017         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
24018         * modules/sys_time (Depends-on): Add warn-on-use.
24019         (Makefile.am): Always build replacement.
24020         (configure.ac): Update substitutions.
24021         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
24022         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
24023         bother with SYS_TIME_H.
24024         * modules/gettimeofday (configure.ac): Declare indicator.
24025         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
24026         in use.
24027
24028         closein-tests: silence compiler warning
24029         * tests/test-closein.c (main): Ignore fread result.
24030         * modules/closein-tests (Depends-on): Add ignore-value.
24031
24032         tests: silence warning about system return
24033         * tests/test-areadlink-with-size.c (main): Ignore system result.
24034         * tests/test-areadlink.c (main): Likewise.
24035         * tests/test-areadlinkat-with-size.c (main): Likewise.
24036         * tests/test-areadlinkat.c (main): Likewise.
24037         * tests/test-canonicalize-lgpl.c (main): Likewise.
24038         * tests/test-canonicalize.c (main): Likewise.
24039         * tests/test-chown.c (main): Likewise.
24040         * tests/test-fchownat.c (main): Likewise.
24041         * tests/test-fdutimensat.c (main): Likewise.
24042         * tests/test-fstatat.c (main): Likewise.
24043         * tests/test-futimens.c (main): Likewise.
24044         * tests/test-lchown.c (main): Likewise.
24045         * tests/test-link.c (main): Likewise.
24046         * tests/test-linkat.c (main): Likewise.
24047         * tests/test-lstat.c (main): Likewise.
24048         * tests/test-mkdir.c (main): Likewise.
24049         * tests/test-mkdirat.c (main): Likewise.
24050         * tests/test-mkfifo.c (main): Likewise.
24051         * tests/test-mkfifoat.c (main): Likewise.
24052         * tests/test-mknod.c (main): Likewise.
24053         * tests/test-readlink.c (main): Likewise.
24054         * tests/test-remove.c (main): Likewise.
24055         * tests/test-rename.c (main): Likewise.
24056         * tests/test-renameat.c (main): Likewise.
24057         * tests/test-rmdir.c (main): Likewise.
24058         * tests/test-symlink.c (main): Likewise.
24059         * tests/test-symlinkat.c (main): Likewise.
24060         * tests/test-unlink.c (main): Likewise.
24061         * tests/test-unlinkat.c (main): Likewise.
24062         * tests/test-utimens.c (main): Likewise.
24063         * tests/test-utimensat.c (main): Likewise.
24064         * modules/areadlink-tests (Depends-on): Add ignore-value.
24065         * modules/areadlink-with-size-tests (Depends-on): Likewise.
24066         * modules/areadlinkat-tests (Depends-on): Likewise.
24067         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
24068         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24069         * modules/canonicalize-tests (Depends-on): Likewise.
24070         * modules/chown-tests (Depends-on): Likewise.
24071         * modules/fdutimensat-tests (Depends-on): Likewise.
24072         * modules/futimens-tests (Depends-on): Likewise.
24073         * modules/lchown-tests (Depends-on): Likewise.
24074         * modules/link-tests (Depends-on): Likewise.
24075         * modules/linkat-tests (Depends-on): Likewise.
24076         * modules/lstat-tests (Depends-on): Likewise.
24077         * modules/mkdir-tests (Depends-on): Likewise.
24078         * modules/mkfifo-tests (Depends-on): Likewise.
24079         * modules/mkfifoat-tests (Depends-on): Likewise.
24080         * modules/mknod-tests (Depends-on): Likewise.
24081         * modules/openat-tests (Depends-on): Likewise.
24082         * modules/readlink-tests (Depends-on): Likewise.
24083         * modules/remove-tests (Depends-on): Likewise.
24084         * modules/rename-tests (Depends-on): Likewise.
24085         * modules/renameat-tests (Depends-on): Likewise.
24086         * modules/rmdir-tests (Depends-on): Likewise.
24087         * modules/symlink-tests (Depends-on): Likewise.
24088         * modules/symlinkat-tests (Depends-on): Likewise.
24089         * modules/unlink-tests (Depends-on): Likewise.
24090         * modules/utimens-tests (Depends-on): Likewise.
24091         * modules/utimensat-tests (Depends-on): Likewise.
24092
24093 2010-01-31  Bruno Haible  <bruno@clisp.org>
24094
24095         Perform the same test for many <math.h> functions.
24096         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
24097         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
24098         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
24099         of gl_MATHFUNC.
24100         * modules/acos (configure.ac): Likewise.
24101         * modules/asin (configure.ac): Likewise.
24102         * modules/atan (configure.ac): Likewise.
24103         * modules/atan2 (configure.ac): Likewise.
24104         * modules/cbrt (configure.ac): Likewise.
24105         * modules/copysign (configure.ac): Likewise.
24106         * modules/cos (configure.ac): Likewise.
24107         * modules/cosh (configure.ac): Likewise.
24108         * modules/erf (configure.ac): Likewise.
24109         * modules/erfc (configure.ac): Likewise.
24110         * modules/exp (configure.ac): Likewise.
24111         * modules/fmod (configure.ac): Likewise.
24112         * modules/hypot (configure.ac): Likewise.
24113         * modules/j0 (configure.ac): Likewise.
24114         * modules/j1 (configure.ac): Likewise.
24115         * modules/jn (configure.ac): Likewise.
24116         * modules/lgamma (configure.ac): Likewise.
24117         * modules/log (configure.ac): Likewise.
24118         * modules/log10 (configure.ac): Likewise.
24119         * modules/log1p (configure.ac): Likewise.
24120         * modules/pow (configure.ac): Likewise.
24121         * modules/remainder (configure.ac): Likewise.
24122         * modules/sin (configure.ac): Likewise.
24123         * modules/sinh (configure.ac): Likewise.
24124         * modules/tan (configure.ac): Likewise.
24125         * modules/tanh (configure.ac): Likewise.
24126         * modules/y0 (configure.ac): Likewise.
24127         * modules/y1 (configure.ac): Likewise.
24128         * modules/yn (configure.ac): Likewise.
24129         Suggested by Paolo Bonzini.
24130
24131 2010-01-31  Bruno Haible  <bruno@clisp.org>
24132
24133         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
24134
24135 2010-01-31  Bruno Haible  <bruno@clisp.org>
24136
24137         Work around getdelim() bug on FreeBSD 8.0.
24138         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
24139         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
24140         not work.
24141         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
24142         is 1.
24143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
24144         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
24145         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
24146         a non-zero size.
24147         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
24148
24149 2010-01-31  Bruno Haible  <bruno@clisp.org>
24150
24151         Work around getline() bug on FreeBSD 8.0.
24152         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
24153         and a non-zero size.
24154         * tests/test-getline.c (main): Likewise.
24155         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
24156         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
24157
24158 2010-01-28  Eric Blake  <ebb9@byu.net>
24159
24160         regex: fix build failure
24161         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
24162         platforms.
24163
24164 2010-01-28  Jim Meyering  <meyering@redhat.com>
24165
24166         regex: do not ignore memory allocation failure
24167         * lib/regex_internal.c (create_cd_newstate): Detect
24168         re_node_set_init_copy failure.   Extracted from glibc commit
24169         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24170
24171         regex: sync more white-space changes from libc
24172         * lib/regex_internal.c: White-space only changes.
24173         * lib/regexec.c: Likewise.
24174
24175         regex: add many uses of __attribute_warn_unused_result__
24176         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
24177         * lib/regexec.c: Likewise.
24178         Extracted from a messy glibc commit.
24179
24180         regcomp.c: spelling and merge-artifact from glibc
24181         * lib/regcomp.c: Merge remainder of glibc's
24182         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24183
24184         regcomp.c: sync white-space changes from glibc
24185         * lib/regcomp.c: Merge to accommodate white space
24186         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24187
24188         regcomp.c: do not ignore internal return values
24189         * lib/regcomp.c: Do not ignore internal return values.
24190         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
24191         but without its white-space changes and spelling fixes.
24192
24193         regex_internal.h: define __attribute_warn_unused_result__
24194         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
24195
24196         maint: add a syntax-check rule to check for vulnerable Makefile.in
24197         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
24198
24199 2010-01-27  Jim Meyering  <meyering@redhat.com>
24200
24201         ncftpput-ftp: clean up spaces
24202         * build-aux/ncftpput-ftp: Make Copyright line consistent.
24203         Remove trailing blanks.
24204
24205 2010-01-27  Simon Josefsson  <simon@josefsson.org>
24206
24207         * build-aux/git-version-gen: Fix copyright statement.
24208         * build-aux/gnupload: Likewise.
24209         * tests/test-arcfour.c: Likewise.
24210         * tests/test-arctwo.c: Likewise.
24211         * tests/test-count-one-bits.c: Likewise.
24212         * tests/test-crc.c: Likewise.
24213         * tests/test-des.c: Likewise.
24214         * tests/test-gc-arcfour.c: Likewise.
24215         * tests/test-gc-arctwo.c: Likewise.
24216         * tests/test-gc-des.c: Likewise.
24217         * tests/test-gc-hmac-md5.c: Likewise.
24218         * tests/test-gc-hmac-sha1.c: Likewise.
24219         * tests/test-gc-md2.c: Likewise.
24220         * tests/test-gc-md4.c: Likewise.
24221         * tests/test-gc-md5.c: Likewise.
24222         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24223         * tests/test-gc-rijndael.c: Likewise.
24224         * tests/test-gc-sha1.c: Likewise.
24225         * tests/test-gc.c: Likewise.
24226         * tests/test-gethostname.c: Likewise.
24227         * tests/test-gettimeofday.c: Likewise.
24228         * tests/test-hash.c: Likewise.
24229         * tests/test-hmac-md5.c: Likewise.
24230         * tests/test-hmac-sha1.c: Likewise.
24231         * tests/test-md2.c: Likewise.
24232         * tests/test-md4.c: Likewise.
24233         * tests/test-md5.c: Likewise.
24234         * tests/test-memchr.c: Likewise.
24235         * tests/test-memchr2.c: Likewise.
24236         * tests/test-memcmp.c: Likewise.
24237         * tests/test-memmem.c: Likewise.
24238         * tests/test-memrchr.c: Likewise.
24239         * tests/test-rawmemchr.c: Likewise.
24240         * tests/test-read-file.c: Likewise.
24241         * tests/test-rijndael.c: Likewise.
24242         * tests/test-sockets.c: Likewise.
24243         * tests/test-strchrnul.c: Likewise.
24244         * tests/test-strstr.c: Likewise.
24245         * tests/test-strtod.c: Likewise.
24246         * build-aux/ncftpput-ftp: Likewise.
24247
24248 2010-01-26  Eric Blake  <ebb9@byu.net>
24249
24250         ignore-value: update recommended header name
24251         * modules/ignore-value (Include): Only use <> for headers that
24252         exist in glibc.
24253
24254 2010-01-26  Jim Meyering  <meyering@redhat.com>
24255
24256         test-userspec.c: avoid compiler warnings
24257         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
24258         and "initialization discards qualifiers..." warnings.
24259         Put the first "uid" in its own scope, and make char* members "const".
24260
24261 2010-01-25  Bruno Haible  <bruno@clisp.org>
24262
24263         gnulib-tool: Make warning diagnostics consistent.
24264         * gnulib-tool (func_warning): New function.
24265         Use it everywhere where gnulib-tool produces output to stderr and it is
24266         not a fatal error.
24267
24268 2010-01-25  Bruno Haible  <bruno@clisp.org>
24269
24270         Fix test dependencies.
24271         * modules/xstrtol-tests (Depends-on): Add inttypes.
24272         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
24273
24274 2010-01-25 Pádraig Brady <P@draigBrady.com>
24275
24276         syntax-check: detect incorrect boolean macro values in config.h
24277         * modules/maintainer-makefile (configure.ac): Parameterize the location
24278         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
24279         The logic is from Eric Blake and the location indicated by Jim Meyering.
24280         Note the more natural CONFIG_HEADER name is prohibited by automake
24281         for backwards compatibility reasons.
24282         * top/maint.mk (sc_Wundef_boolean): New rule.
24283
24284 2010-01-25  Jim Meyering  <meyering@redhat.com>
24285
24286         bootstrap: detect MacOS 10.6's shasum, too
24287         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
24288         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
24289
24290 2010-01-23  Jim Meyering  <meyering@redhat.com>
24291
24292         xstrtoll: new module
24293         * modules/xstrtoll: New file.
24294         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
24295         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
24296         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
24297         ./configure fails if you use this module and lack "long long".
24298         * modules/xstrtoll-tests: New module.
24299         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
24300         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
24301         new init.sh-based test framework.
24302
24303 2010-01-24  Bruno Haible  <bruno@clisp.org>
24304
24305         Tests for module 'yn'.
24306         * modules/yn-tests: New file.
24307         * tests/test-yn.c: New file.
24308
24309         Tests for module 'y1'.
24310         * modules/y1-tests: New file.
24311         * tests/test-y1.c: New file.
24312
24313         Tests for module 'y0'.
24314         * modules/y0-tests: New file.
24315         * tests/test-y0.c: New file.
24316
24317         Tests for module 'tanh'.
24318         * modules/tanh-tests: New file.
24319         * tests/test-tanh.c: New file.
24320
24321         Tests for module 'tan'.
24322         * modules/tan-tests: New file.
24323         * tests/test-tan.c: New file.
24324
24325         Tests for module 'sqrt'.
24326         * modules/sqrt-tests: New file.
24327         * tests/test-sqrt.c: New file.
24328
24329         Tests for module 'sinh'.
24330         * modules/sinh-tests: New file.
24331         * tests/test-sinh.c: New file.
24332
24333         Tests for module 'sin'.
24334         * modules/sin-tests: New file.
24335         * tests/test-sin.c: New file.
24336
24337         Tests for module 'rint'.
24338         * modules/rint-tests: New file.
24339         * tests/test-rint.c: New file.
24340
24341         Tests for module 'remainder'.
24342         * modules/remainder-tests: New file.
24343         * tests/test-remainder.c: New file.
24344
24345         Tests for module 'pow'.
24346         * modules/pow-tests: New file.
24347         * tests/test-pow.c: New file.
24348
24349         Tests for module 'nextafter'.
24350         * modules/nextafter-tests: New file.
24351         * tests/test-nextafter.c: New file.
24352
24353         Tests for module 'modf'.
24354         * modules/modf-tests: New file.
24355         * tests/test-modf.c: New file.
24356
24357         Tests for module 'logb'.
24358         * modules/logb-tests: New file.
24359         * tests/test-logb.c: New file.
24360
24361         Tests for module 'log1p'.
24362         * modules/log1p-tests: New file.
24363         * tests/test-log1p.c: New file.
24364
24365         Tests for module 'log10'.
24366         * modules/log10-tests: New file.
24367         * tests/test-log10.c: New file.
24368
24369         Tests for module 'log'.
24370         * modules/log-tests: New file.
24371         * tests/test-log.c: New file.
24372
24373         Tests for module 'lgamma'.
24374         * modules/lgamma-tests: New file.
24375         * tests/test-lgamma.c: New file.
24376
24377         Tests for module 'ldexp'.
24378         * modules/ldexp-tests: New file.
24379         * tests/test-ldexp.c: New file.
24380
24381         Tests for module 'jn'.
24382         * modules/jn-tests: New file.
24383         * tests/test-jn.c: New file.
24384
24385         Tests for module 'j1'.
24386         * modules/j1-tests: New file.
24387         * tests/test-j1.c: New file.
24388
24389         Tests for module 'j0'.
24390         * modules/j0-tests: New file.
24391         * tests/test-j0.c: New file.
24392
24393         Tests for module 'hypot'.
24394         * modules/hypot-tests: New file.
24395         * tests/test-hypot.c: New file.
24396
24397         Tests for module 'fmod'.
24398         * modules/fmod-tests: New file.
24399         * tests/test-fmod.c: New file.
24400
24401         Tests for module 'fabs'.
24402         * modules/fabs-tests: New file.
24403         * tests/test-fabs.c: New file.
24404
24405         Tests for module 'exp'.
24406         * modules/exp-tests: New file.
24407         * tests/test-exp.c: New file.
24408
24409         Tests for module 'erfc'.
24410         * modules/erfc-tests: New file.
24411         * tests/test-erfc.c: New file.
24412
24413         Tests for module 'erf'.
24414         * modules/erf-tests: New file.
24415         * tests/test-erf.c: New file.
24416
24417         Tests for module 'cosh'.
24418         * modules/cosh-tests: New file.
24419         * tests/test-cosh.c: New file.
24420
24421         Tests for module 'cos'.
24422         * modules/cos-tests: New file.
24423         * tests/test-cos.c: New file.
24424
24425         Tests for module 'copysign'.
24426         * modules/copysign-tests: New file.
24427         * tests/test-copysign.c: New file.
24428
24429         Tests for module 'cbrt'.
24430         * modules/cbrt-tests: New file.
24431         * tests/test-cbrt.c: New file.
24432
24433         Tests for module 'atan2'.
24434         * modules/atan2-tests: New file.
24435         * tests/test-atan2.c: New file.
24436
24437         Tests for module 'atan'.
24438         * modules/atan-tests: New file.
24439         * tests/test-atan.c: New file.
24440
24441         Tests for module 'asin'.
24442         * modules/asin-tests: New file.
24443         * tests/test-asin.c: New file.
24444
24445         Tests for module 'acos'.
24446         * modules/acos-tests: New file.
24447         * tests/test-acos.c: New file.
24448
24449 2010-01-24  Bruno Haible  <bruno@clisp.org>
24450
24451         Fix tests for common <math.h> functions.
24452         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
24453         code snippet that references the function pointer, rather than merely
24454         calling the function. Substitute the FUNC_LIBM variable.
24455         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
24456         * modules/acos (configure.ac): Likewise.
24457         * modules/asin (configure.ac): Likewise.
24458         * modules/atan (configure.ac): Likewise.
24459         * modules/atan2 (configure.ac): Likewise.
24460         * modules/cbrt (configure.ac): Likewise.
24461         * modules/copysign (configure.ac): Likewise.
24462         * modules/cos (configure.ac): Likewise.
24463         * modules/cosh (configure.ac): Likewise.
24464         * modules/erf (configure.ac): Likewise.
24465         * modules/erfc (configure.ac): Likewise.
24466         * modules/exp (configure.ac): Likewise.
24467         * modules/fabs (configure.ac): Likewise.
24468         * modules/fmod (configure.ac): Likewise.
24469         * modules/hypot (configure.ac): Likewise.
24470         * modules/j0 (configure.ac): Likewise.
24471         * modules/j1 (configure.ac): Likewise.
24472         * modules/jn (configure.ac): Likewise.
24473         * modules/ldexp (configure.ac): Likewise.
24474         * modules/lgamma (configure.ac): Likewise.
24475         * modules/log (configure.ac): Likewise.
24476         * modules/log10 (configure.ac): Likewise.
24477         * modules/log1p (configure.ac): Likewise.
24478         * modules/logb (configure.ac): Likewise.
24479         * modules/modf (configure.ac): Likewise.
24480         * modules/nextafter (configure.ac): Likewise.
24481         * modules/pow (configure.ac): Likewise.
24482         * modules/remainder (configure.ac): Likewise.
24483         * modules/rint (configure.ac): Likewise.
24484         * modules/sin (configure.ac): Likewise.
24485         * modules/sinh (configure.ac): Likewise.
24486         * modules/tan (configure.ac): Likewise.
24487         * modules/tanh (configure.ac): Likewise.
24488         * modules/y0 (configure.ac): Likewise.
24489         * modules/y1 (configure.ac): Likewise.
24490         * modules/yn (configure.ac): Likewise.
24491
24492 2010-01-24  Bruno Haible  <bruno@clisp.org>
24493
24494         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
24495         * tests/test-acosl.c (x): New variable.
24496         (main): Store argument in x and fetch it from x.
24497         * tests/test-asinl.c (x): New variable.
24498         (main): Store argument in x and fetch it from x.
24499         * tests/test-atanl.c (x): New variable.
24500         (main): Store argument in x and fetch it from x.
24501         * tests/test-cosl.c (x): New variable.
24502         (main): Store argument in x and fetch it from x.
24503         * tests/test-expl.c (x): New variable.
24504         (main): Store argument in x and fetch it from x.
24505         * tests/test-logl.c (x): New variable.
24506         (main): Store argument in x and fetch it from x.
24507         * tests/test-sinl.c (x): New variable.
24508         (main): Store argument in x and fetch it from x.
24509         * tests/test-sqrtl.c (x): New variable.
24510         (main): Store argument in x and fetch it from x.
24511         * tests/test-tanl.c (x): New variable.
24512         (main): Store argument in x and fetch it from x.
24513
24514 2010-01-24  Bruno Haible  <bruno@clisp.org>
24515
24516         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
24517         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
24518         assignments to the initial TESTS_ENVIRONMENT.
24519         * doc/gnulib.texi (Unit test modules): Document it.
24520         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
24521         TESTS_ENVIRONMENT.
24522         * modules/btowc-tests (Makefile.am): Likewise.
24523         * modules/c-stack-tests (Makefile.am): Likewise.
24524         * modules/c-strcase-tests (Makefile.am): Likewise.
24525         * modules/copy-file-tests (Makefile.am): Likewise.
24526         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
24527         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
24528         * modules/mbrtowc-tests (Makefile.am): Likewise.
24529         * modules/mbscasecmp-tests (Makefile.am): Likewise.
24530         * modules/mbscasestr-tests (Makefile.am): Likewise.
24531         * modules/mbschr-tests (Makefile.am): Likewise.
24532         * modules/mbscspn-tests (Makefile.am): Likewise.
24533         * modules/mbsinit-tests (Makefile.am): Likewise.
24534         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
24535         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
24536         * modules/mbspbrk-tests (Makefile.am): Likewise.
24537         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
24538         * modules/mbsrchr-tests (Makefile.am): Likewise.
24539         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
24540         * modules/mbsspn-tests (Makefile.am): Likewise.
24541         * modules/mbsstr-tests (Makefile.am): Likewise.
24542         * modules/nl_langinfo-tests (Makefile.am): Likewise.
24543         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
24544         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
24545         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
24546         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
24547         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
24548         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
24549         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
24550         * modules/wcrtomb-tests (Makefile.am): Likewise.
24551         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
24552         * modules/wcsrtombs-tests (Makefile.am): Likewise.
24553         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
24554         assignments from TESTS_ENVIRONMENT.
24555         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
24556         augmentation.
24557         * modules/argp-version-etc-tests (Makefile.am): Likewise.
24558         * modules/atexit-tests (Makefile.am): Likewise.
24559         * modules/binary-io-tests (Makefile.am): Likewise.
24560         * modules/closein-tests (Makefile.am): Likewise.
24561         * modules/dprintf-posix-tests (Makefile.am): Likewise.
24562         * modules/exclude-tests (Makefile.am): Likewise.
24563         * modules/fflush-tests (Makefile.am): Likewise.
24564         * modules/fpending-tests (Makefile.am): Likewise.
24565         * modules/fprintf-posix-tests (Makefile.am): Likewise.
24566         * modules/freadahead-tests (Makefile.am): Likewise.
24567         * modules/freadptr-tests (Makefile.am): Likewise.
24568         * modules/freadseek-tests (Makefile.am): Likewise.
24569         * modules/fseek-tests (Makefile.am): Likewise.
24570         * modules/fseeko-tests (Makefile.am): Likewise.
24571         * modules/ftell-tests (Makefile.am): Likewise.
24572         * modules/ftello-tests (Makefile.am): Likewise.
24573         * modules/idpriv-drop-tests (Makefile.am): Likewise.
24574         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
24575         * modules/lseek-tests (Makefile.am): Likewise.
24576         * modules/parse-duration-tests (Makefile.am): Likewise.
24577         * modules/perror-tests (Makefile.am): Likewise.
24578         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
24579         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
24580         * modules/pipe-tests (Makefile.am): Likewise.
24581         * modules/pread-tests (Makefile.am): Likewise.
24582         * modules/printf-posix-tests (Makefile.am): Likewise.
24583         * modules/select-tests (Makefile.am): Likewise.
24584         * modules/sigpipe-tests (Makefile.am): Likewise.
24585         * modules/tsearch-tests (Makefile.am): Likewise.
24586         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
24587         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
24588         * modules/uniname/uniname-tests (Makefile.am): Likewise.
24589         * modules/uniwidth/width-tests (Makefile.am): Likewise.
24590         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
24591         * modules/version-etc-tests (Makefile.am): Likewise.
24592         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
24593         * modules/vprintf-posix-tests (Makefile.am): Likewise.
24594         * modules/xalloc-die-tests (Makefile.am): Likewise.
24595         * modules/xprintf-posix-tests (Makefile.am): Likewise.
24596         * modules/xstrtoimax-tests (Makefile.am): Likewise.
24597         * modules/xstrtol-tests (Makefile.am): Likewise.
24598         * modules/xstrtoumax-tests (Makefile.am): Likewise.
24599         * modules/yesno-tests (Makefile.am): Likewise.
24600         Suggested by Jim Meyering.
24601
24602 2010-01-24  Bruno Haible  <bruno@clisp.org>
24603
24604         More documentation.
24605         * doc/gnulib.texi (Writing modules): New chapter.
24606         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
24607         the new chapter.
24608
24609 2010-01-24  Jim Meyering  <meyering@redhat.com>
24610
24611         maint.mk: do not prepend "./" after filtering
24612         * top/maint.mk (_prepend_srcdir_prefix): New variable
24613         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
24614         "./" when $(srcdir) is ".".
24615
24616         define STREQ(a,b) consistently, removing useless parentheses
24617         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
24618         since the only risk is that "a" or "b" contains an unparenthesized
24619         comma, but if either did that, STREQ would have 3 or more arguments.
24620         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
24621         * lib/fts.c (STREQ): Remove unnecessary parentheses.
24622         * lib/hash-triple.c (STREQ): Likewise.
24623         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
24624         * lib/getugroups.c (STREQ): Likewise.
24625
24626 2010-01-23  Jim Meyering  <meyering@redhat.com>
24627
24628         maint.mk: fix syntax-check in a non-srcdir build directory
24629         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
24630         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
24631
24632 2010-01-22  Jim Meyering  <meyering@redhat.com>
24633
24634         userspec: add unit tests
24635         * tests/test-userspec.c: New file.
24636         * modules/userspec-tests: Likewise.
24637
24638 2010-01-21  Jim Meyering  <meyering@redhat.com>
24639
24640         maint.mk: handle source file names containing "." robustly
24641         * top/maint.mk (_dot_escaped_srcdir): Define.
24642         (VC_LIST): Use it in LHS of sed substitution.
24643
24644 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
24645
24646         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
24647         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
24648         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
24649         from a non-srcdir build.
24650
24651 2010-01-20  Eric Blake  <ebb9@byu.net>
24652
24653         warn-on-use: use instead of link-warning
24654         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
24655         * modules/unistd (Depends-on, Makefile.am): Likewise.
24656         * modules/arpa_inet (Depends-on): Replace link-warning with
24657         warn-on-use.
24658         (Makefile.am): Update rules accordingly.
24659         * modules/ctype (Depends-on, Makefile.am): Likewise.
24660         * modules/dirent (Depends-on, Makefile.am): Likewise.
24661         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
24662         * modules/inttypes (Depends-on, Makefile.am): Likewise.
24663         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24664         * modules/locale (Depends-on, Makefile.am): Likewise.
24665         * modules/math (Depends-on, Makefile.am): Likewise.
24666         * modules/search (Depends-on, Makefile.am): Likewise.
24667         * modules/signal (Depends-on, Makefile.am): Likewise.
24668         * modules/spawn (Depends-on, Makefile.am): Likewise.
24669         * modules/stdlib (Depends-on, Makefile.am): Likewise.
24670         * modules/string (Depends-on, Makefile.am): Likewise.
24671         * modules/strings (Depends-on, Makefile.am): Likewise.
24672         * modules/sys_file (Depends-on, Makefile.am): Likewise.
24673         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
24674         * modules/sys_select (Depends-on, Makefile.am): Likewise.
24675         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
24676         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
24677         * modules/sys_times (Depends-on, Makefile.am): Likewise.
24678         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24679         * modules/wchar (Depends-on, Makefile.am): Likewise.
24680         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
24681         should be poisoned.
24682         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
24683         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
24684         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
24685         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24686         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24687         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24688         * m4/math_h.m4 (gl_MATH_H): Likewise.
24689         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24690         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24691         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24692         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24693         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
24694         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
24695         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
24696         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
24697         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24698         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24699         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24700         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24701         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24702         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24703         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24704         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24705         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
24706         GL_LINK_WARNING.
24707         * lib/ctype.in.h: Likewise.
24708         * lib/dirent.in.h: Likewise.
24709         * lib/fcntl.in.h: Likewise.
24710         * lib/inttypes.in.h: Likewise.
24711         * lib/langinfo.in.h: Likewise.
24712         * lib/locale.in.h: Likewise.
24713         * lib/math.in.h: Likewise.
24714         * lib/search.in.h: Likewise.
24715         * lib/signal.in.h: Likewise.
24716         * lib/spawn.in.h: Likewise.
24717         * lib/stdio.in.h: Likewise.
24718         * lib/stdlib.in.h: Likewise.
24719         * lib/string.in.h: Likewise.
24720         * lib/strings.in.h: Likewise.
24721         * lib/sys_file.in.h: Likewise.
24722         * lib/sys_ioctl.in.h: Likewise.
24723         * lib/sys_select.in.h: Likewise.
24724         * lib/sys_socket.in.h: Likewise.
24725         * lib/sys_stat.in.h: Likewise.
24726         * lib/sys_times.in.h: Likewise.
24727         * lib/sys_utsname.in.h: Likewise.
24728         * lib/unistd.in.h: Likewise.
24729         * lib/wchar.in.h: Likewise.
24730
24731 2010-01-20  Bruno Haible  <bruno@clisp.org>
24732
24733         Avoid duplicate -lm.
24734         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
24735         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
24736         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
24737         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
24738         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
24739         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
24740         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
24741         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
24742         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
24743         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
24744         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
24745         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24746         Reported by Paolo Bonzini.
24747
24748 2010-01-19  Bruno Haible  <bruno@clisp.org>
24749
24750         langinfo, nl_langinfo: Relicense under LGPLv2+.
24751         * modules/langinfo (License): Change to LGPLv2+.
24752         * modules/nl_langinfo (License): Likewise.
24753         Patch by David Lutterkort <lutter@redhat.com>.
24754
24755 2010-01-19  Bruno Haible  <bruno@clisp.org>
24756
24757         Avoid compilation error with cc on OSF/1 5.1.
24758         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
24759         statement, not before.
24760         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24761
24762 2010-01-18  Bruno Haible  <bruno@clisp.org>
24763
24764         Avoid a link error due to the __printf__ symbol.
24765         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
24766         and 2.6.x.
24767         (__format__, __printf__): Remove definitions.
24768         * lib/argp-fmtstream.h: Likewise.
24769         * lib/argp.h: Likewise.
24770         * lib/error.h: Likewise.
24771         * lib/vasnprintf.h: Likewise.
24772         * lib/xprintf.h: Likewise.
24773         * lib/xvasprintf.h: Likewise.
24774         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24775
24776 2010-01-18  Bruno Haible  <bruno@clisp.org>
24777
24778         Tests for module 'tanl'.
24779         * modules/tanl-tests: New file.
24780         * tests/test-tanl.c: New file.
24781
24782         Tests for module 'sqrtl'.
24783         * modules/sqrtl-tests: New file.
24784         * tests/test-sqrtl.c: New file.
24785
24786         Tests for module 'sinl'.
24787         * modules/sinl-tests: New file.
24788         * tests/test-sinl.c: New file.
24789
24790         Tests for module 'logl'.
24791         * modules/logl-tests: New file.
24792         * tests/test-logl.c: New file.
24793
24794         Tests for module 'expl'.
24795         * modules/expl-tests: New file.
24796         * tests/test-expl.c: New file.
24797
24798         Tests for module 'cosl'.
24799         * modules/cosl-tests: New file.
24800         * tests/test-cosl.c: New file.
24801
24802         Tests for module 'atanl'.
24803         * modules/atanl-tests: New file.
24804         * tests/test-atanl.c: New file.
24805
24806         Tests for module 'asinl'.
24807         * modules/asinl-tests: New file.
24808         * tests/test-asinl.c: New file.
24809
24810         Tests for module 'acosl'.
24811         * modules/acosl-tests: New file.
24812         * tests/test-acosl.c: New file.
24813
24814         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24815         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
24816         tanl): Use the standard gnulib idiom.
24817         * lib/cosl.c: Don't include trigl.c and sincosl.c.
24818         * lib/sinl.c: Likewise.
24819         * lib/tanl.c: Don't include trigl.c.
24820         (kernel_tanl): Make static.
24821         * lib/sincosl.c: Include trigl.h first.
24822         * lib/trigl.c: Likewise.
24823         * m4/acosl.m4: New file.
24824         * m4/asinl.m4: New file.
24825         * m4/atanl.m4: New file.
24826         * m4/cosl.m4: New file.
24827         * m4/expl.m4: New file.
24828         * m4/logl.m4: New file.
24829         * m4/sinl.m4: New file.
24830         * m4/sqrtl.m4: New file.
24831         * m4/tanl.m4: New file.
24832         * m4/mathl.m4: Remove file.
24833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
24834         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24835         Don't initialize GNULIB_MATHL.
24836         * modules/acosl: New file.
24837         * modules/asinl: New file.
24838         * modules/atanl: New file.
24839         * modules/cosl: New file.
24840         * modules/expl: New file.
24841         * modules/logl: New file.
24842         * modules/sinl: New file.
24843         * modules/sqrtl: New file.
24844         * modules/tanl: New file.
24845         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
24846         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
24847         substitute GNULIB_MATHL.
24848         * modules/mathl: Rewritten.
24849         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
24850         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
24851         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
24852         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
24853         * doc/posix-functions/expl.texi: Mention the 'expl' module.
24854         * doc/posix-functions/logl.texi: Mention the 'logl' module.
24855         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
24856         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
24857         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
24858
24859 2010-01-18  Bruno Haible  <bruno@clisp.org>
24860
24861         sqrt: Make gl_FUNC_SQRT requirable.
24862         * m4/sqrt.m4: New file.
24863         * modules/sqrt (Files): Add it.
24864         (configure.ac): Invoke gl_FUNC_SQRT.
24865
24866 2010-01-18  Bruno Haible  <bruno@clisp.org>
24867
24868         New modules for common <math.h> functions.
24869         * m4/mathfunc.m4: New file.
24870         * modules/acos: New file.
24871         * modules/asin: New file.
24872         * modules/atan: New file.
24873         * modules/atan2: New file.
24874         * modules/cbrt: New file.
24875         * modules/copysign: New file.
24876         * modules/cos: New file.
24877         * modules/cosh: New file.
24878         * modules/erf: New file.
24879         * modules/erfc: New file.
24880         * modules/exp: New file.
24881         * modules/fabs: New file.
24882         * modules/fmod: New file.
24883         * modules/hypot: New file.
24884         * modules/j0: New file.
24885         * modules/j1: New file.
24886         * modules/jn: New file.
24887         * modules/ldexp: New file.
24888         * modules/lgamma: New file.
24889         * modules/log: New file.
24890         * modules/log10: New file.
24891         * modules/log1p: New file.
24892         * modules/logb: New file.
24893         * modules/modf: New file.
24894         * modules/nextafter: New file.
24895         * modules/pow: New file.
24896         * modules/remainder: New file.
24897         * modules/rint: New file.
24898         * modules/sin: New file.
24899         * modules/sinh: New file.
24900         * modules/sqrt: New file.
24901         * modules/tan: New file.
24902         * modules/tanh: New file.
24903         * modules/y0: New file.
24904         * modules/y1: New file.
24905         * modules/yn: New file.
24906         * doc/posix-functions/acos.texi: Mention the 'acos' module.
24907         * doc/posix-functions/asin.texi: Mention the 'asin' module.
24908         * doc/posix-functions/atan.texi: Mention the 'atan' module.
24909         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
24910         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
24911         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
24912         * doc/posix-functions/cos.texi: Mention the 'cos' module.
24913         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
24914         * doc/posix-functions/erf.texi: Mention the 'erf' module.
24915         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
24916         * doc/posix-functions/exp.texi: Mention the 'exp' module.
24917         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
24918         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
24919         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
24920         * doc/posix-functions/j0.texi: Mention the 'j0' module.
24921         * doc/posix-functions/j1.texi: Mention the 'j1' module.
24922         * doc/posix-functions/jn.texi: Mention the 'jn' module.
24923         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
24924         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
24925         * doc/posix-functions/log.texi: Mention the 'log' module.
24926         * doc/posix-functions/log10.texi: Mention the 'log10' module.
24927         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
24928         * doc/posix-functions/logb.texi: Mention the 'logb' module.
24929         * doc/posix-functions/modf.texi: Mention the 'modf' module.
24930         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
24931         * doc/posix-functions/pow.texi: Mention the 'pow' module.
24932         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
24933         * doc/posix-functions/rint.texi: Mention the 'rint' module.
24934         * doc/posix-functions/sin.texi: Mention the 'sin' module.
24935         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
24936         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
24937         * doc/posix-functions/tan.texi: Mention the 'tan' module.
24938         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
24939         * doc/posix-functions/y0.texi: Mention the 'y0' module.
24940         * doc/posix-functions/y1.texi: Mention the 'y1' module.
24941         * doc/posix-functions/yn.texi: Mention the 'yn' module.
24942
24943 2010-01-18  Jim Meyering  <meyering@redhat.com>
24944
24945         ignore-value: relax license to LGPLv2+
24946         * modules/ignore-value (License): Relax to LGPLv2+.
24947
24948         getdate: don't leak when TZ contains two or more '"'s
24949         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
24950         double quote in TZ after the first one.
24951
24952         readtokens: do not leak internal token_lengths buffer
24953         * lib/readtokens.c (readtokens): Free the local, lengths,
24954         when the supplied "token_lengths" parameter is NULL.
24955
24956 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24957
24958         Fix a couple of missing LIBTHREAD link failures on AIX.
24959         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
24960         $(LIBTHREAD).
24961         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
24962
24963         Link test-poll against INET_PTON_LIB.
24964         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
24965         for inet_pton on Solaris 10.
24966
24967 2010-01-17  Bruno Haible  <bruno@clisp.org>
24968
24969         unistdio/*-sprintf: Fix typo in module description.
24970         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
24971         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
24972         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
24973         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24974         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24975         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24976         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24977         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24978
24979 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24980
24981         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24982         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24983         variables in shell case patterns, for AIX and HP-UX ksh.
24984
24985         Split large sed scripts, for HP-UX sed.
24986         * modules/stdio: Split sed scripts around 50 sed commands,
24987         to avoid HP-UX limit of 99 commands, in the near future.
24988         * modules/string: Likewise.
24989         * modules/unistd: Likewise.
24990
24991         gnulib-tool: avoid writing in the current directory.
24992         * gnulib-tool (func_emit_lib_Makefile_am)
24993         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24994         not in the current directory, so concurrent gnulib-tool
24995         instances do not interfere.
24996
24997 2010-01-16  Jim Meyering  <meyering@redhat.com>
24998
24999         doc: update users.txt
25000         * users.txt: Add grep.
25001         (diffutils, gzip): Update URLs.
25002
25003 2010-01-12  Bruno Haible  <bruno@clisp.org>
25004
25005         posix_spawn: Avoid test failure on Cygwin.
25006         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
25007         characters.
25008         Reported by Simon Josefsson.
25009
25010 2010-01-12  Bruno Haible  <bruno@clisp.org>
25011
25012         * tests/test-cond.c (main): When skipping the test, show the reason.
25013
25014 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25015
25016         * lib/striconv.c (str_cd_iconv): Avoid if before free.
25017
25018 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25019
25020         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
25021         VC_LIST_ALWAYS_EXCLUDE_REGEX.
25022
25023 2010-01-12  Eric Blake  <ebb9@byu.net>
25024
25025         build: guarantee AS_VAR_IF
25026         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
25027         (gl_AS_VAR_IF): Move...
25028         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
25029         Reported by Simon Josefsson.
25030
25031 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25032
25033         * lib/stdio.in.h: Fix typo.
25034
25035 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25036
25037         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
25038         libgpg-error.
25039
25040 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25041
25042         * tests/test-xalloc-die.sh: Use $EXEEXT.
25043
25044 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25045             Bruno Haible  <bruno@clisp.org>
25046
25047         getlogin, getlogin_r: Avoid test failure.
25048         * tests/test-getlogin.c: Include <stdio.h>.
25049         (main): Skip the test when the function fails because stdin is not a
25050         tty.
25051         * tests/test-getlogin_r.c: Include <stdio.h>.
25052         (main): Skip the test when the function fails because stdin is not a
25053         tty.
25054
25055 2010-01-11  Eric Blake  <ebb9@byu.net>
25056
25057         tests: avoid more large file warnings
25058         * tests/test-fflush.c: Avoid warning about ftell use.
25059         * tests/test-fseek.c: Avoid warning about fseek use.
25060
25061 2010-01-10  Bruno Haible  <bruno@clisp.org>
25062
25063         nproc: Work better on Linux when /proc and /sys are not mounted.
25064         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
25065         as lower bound when, on glibc/Linux systems,
25066         sysconf (_SC_NPROCESSORS_CONF) returns 1.
25067         Suggested by Pádraig Brady <P@draigbrady.com>.
25068         Reported by Dmitry V. Levin <ldv@altlinux.org>.
25069
25070         nproc: Refactor.
25071         * lib/nproc.c (num_processors_via_affinity_mask): New function,
25072         extracted from num_processors.
25073         (num_processors): Call it.
25074
25075 2010-01-11  Jim Meyering  <meyering@redhat.com>
25076
25077         utimecmp: avoid new warning from upcoming gcc-4.5.0
25078         * lib/utimecmp.c (BILLION): Define using #define rather than an
25079         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
25080
25081 2010-01-11  Eric Blake  <ebb9@byu.net>
25082
25083         math: add portability warnings for classification macros
25084         * modules/math (Depends-on): Add warn-on-use.
25085         (Makefile.am): Provide new substitutions.
25086         * m4/math_h.m4 (gl_MATH_H): Require inline.
25087         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
25088         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
25089         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
25090         implement warnings.
25091
25092         unistd: warn on use of environ without module
25093         * modules/unistd (Depends-on): Add warn-on-use.
25094         (Makefile.am): Provide new substitutions.
25095         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
25096         * lib/unistd.in.h (environ): Wrap with a warning helper function.
25097
25098         stdio: warn on suspicious uses
25099         * modules/stdio (Depends-on): Add warn-on-use.
25100         (Makefile.am): Provide new substitutions.
25101         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
25102         fseeko.
25103         * lib/stdio.in.h (gets): Always warn on use.
25104         (fseek, ftell): Adjust when warnings are issued, and honor
25105         _GL_NO_LARGE_FILES as a way to silence the warning.
25106         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
25107         any warning about large file offsets.
25108         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
25109         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
25110         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
25111         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
25112         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
25113         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
25114         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
25115         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
25116
25117         warn-on-use: new module
25118         * modules/warn-on-use: New file.
25119         * build-aux/warn-on-use.h: Likewise.
25120         * m4/warn-on-use.m4: Likewise.
25121         * MODULES.html.sh (Support for building): Mention it.
25122
25123 2010-01-10  Bruno Haible  <bruno@clisp.org>
25124
25125         Tests for module 'unistr/u32-strdup'.
25126         * modules/unistr/u32-strdup-tests: New file.
25127         * tests/unistr/test-u32-strdup.c: New file.
25128
25129         Tests for module 'unistr/u16-strdup'.
25130         * modules/unistr/u16-strdup-tests: New file.
25131         * tests/unistr/test-u16-strdup.c: New file.
25132
25133         Tests for module 'unistr/u8-strdup'.
25134         * modules/unistr/u8-strdup-tests: New file.
25135         * tests/unistr/test-u8-strdup.c: New file.
25136         * tests/unistr/test-strdup.h: New file.
25137
25138         Tests for module 'unistr/u32-strncmp'.
25139         * modules/unistr/u32-strncmp-tests: New file.
25140         * tests/unistr/test-u32-strncmp.c: New file.
25141
25142         Tests for module 'unistr/u16-strncmp'.
25143         * modules/unistr/u16-strncmp-tests: New file.
25144         * tests/unistr/test-u16-strncmp.c: New file.
25145
25146         Tests for module 'unistr/u8-strncmp'.
25147         * modules/unistr/u8-strncmp-tests: New file.
25148         * tests/unistr/test-u8-strncmp.c: New file.
25149         * tests/unistr/test-strncmp.h: New file.
25150
25151         Tests for module 'unistr/u32-strcoll'.
25152         * modules/unistr/u32-strcoll-tests: New file.
25153         * tests/unistr/test-u32-strcoll.c: New file.
25154
25155         Tests for module 'unistr/u16-strcoll'.
25156         * modules/unistr/u16-strcoll-tests: New file.
25157         * tests/unistr/test-u16-strcoll.c: New file.
25158
25159         Tests for module 'unistr/u8-strcoll'.
25160         * modules/unistr/u8-strcoll-tests: New file.
25161         * tests/unistr/test-u8-strcoll.c: New file.
25162
25163         Tests for module 'unistr/u32-strcmp'.
25164         * modules/unistr/u32-strcmp-tests: New file.
25165         * tests/unistr/test-u32-strcmp.c: New file.
25166         * tests/unistr/test-u32-strcmp.h: New file.
25167
25168         Tests for module 'unistr/u16-strcmp'.
25169         * modules/unistr/u16-strcmp-tests: New file.
25170         * tests/unistr/test-u16-strcmp.c: New file.
25171         * tests/unistr/test-u16-strcmp.h: New file.
25172
25173         Tests for module 'unistr/u8-strcmp'.
25174         * modules/unistr/u8-strcmp-tests: New file.
25175         * tests/unistr/test-u8-strcmp.c: New file.
25176         * tests/unistr/test-u8-strcmp.h: New file.
25177         * tests/unistr/test-strcmp.h: New file.
25178
25179         Tests for module 'unistr/u32-strncat'.
25180         * modules/unistr/u32-strncat-tests: New file.
25181         * tests/unistr/test-u32-strncat.c: New file.
25182
25183         Tests for module 'unistr/u16-strncat'.
25184         * modules/unistr/u16-strncat-tests: New file.
25185         * tests/unistr/test-u16-strncat.c: New file.
25186
25187         Tests for module 'unistr/u8-strncat'.
25188         * modules/unistr/u8-strncat-tests: New file.
25189         * tests/unistr/test-u8-strncat.c: New file.
25190         * tests/unistr/test-strncat.h: New file.
25191
25192         Tests for module 'unistr/u32-strcat'.
25193         * modules/unistr/u32-strcat-tests: New file.
25194         * tests/unistr/test-u32-strcat.c: New file.
25195
25196         Tests for module 'unistr/u16-strcat'.
25197         * modules/unistr/u16-strcat-tests: New file.
25198         * tests/unistr/test-u16-strcat.c: New file.
25199
25200         Tests for module 'unistr/u8-strcat'.
25201         * modules/unistr/u8-strcat-tests: New file.
25202         * tests/unistr/test-u8-strcat.c: New file.
25203         * tests/unistr/test-strcat.h: New file.
25204
25205         Tests for module 'unistr/u32-stpncpy'.
25206         * modules/unistr/u32-stpncpy-tests: New file.
25207         * tests/unistr/test-u32-stpncpy.c: New file.
25208
25209         Tests for module 'unistr/u16-stpncpy'.
25210         * modules/unistr/u16-stpncpy-tests: New file.
25211         * tests/unistr/test-u16-stpncpy.c: New file.
25212
25213         Tests for module 'unistr/u8-stpncpy'.
25214         * modules/unistr/u8-stpncpy-tests: New file.
25215         * tests/unistr/test-u8-stpncpy.c: New file.
25216         * tests/unistr/test-stpncpy.h: New file.
25217
25218         Tests for module 'unistr/u32-strncpy'.
25219         * modules/unistr/u32-strncpy-tests: New file.
25220         * tests/unistr/test-u32-strncpy.c: New file.
25221
25222         Tests for module 'unistr/u16-strncpy'.
25223         * modules/unistr/u16-strncpy-tests: New file.
25224         * tests/unistr/test-u16-strncpy.c: New file.
25225
25226         Tests for module 'unistr/u8-strncpy'.
25227         * modules/unistr/u8-strncpy-tests: New file.
25228         * tests/unistr/test-u8-strncpy.c: New file.
25229         * tests/unistr/test-strncpy.h: New file.
25230
25231         Tests for module 'unistr/u32-stpcpy'.
25232         * modules/unistr/u32-stpcpy-tests: New file.
25233         * tests/unistr/test-u32-stpcpy.c: New file.
25234
25235         Tests for module 'unistr/u16-stpcpy'.
25236         * modules/unistr/u16-stpcpy-tests: New file.
25237         * tests/unistr/test-u16-stpcpy.c: New file.
25238
25239         Tests for module 'unistr/u8-stpcpy'.
25240         * modules/unistr/u8-stpcpy-tests: New file.
25241         * tests/unistr/test-u8-stpcpy.c: New file.
25242         * tests/unistr/test-stpcpy.h: New file.
25243
25244         Tests for module 'unistr/u32-strcpy'.
25245         * modules/unistr/u32-strcpy-tests: New file.
25246         * tests/unistr/test-u32-strcpy.c: New file.
25247
25248         Tests for module 'unistr/u16-strcpy'.
25249         * modules/unistr/u16-strcpy-tests: New file.
25250         * tests/unistr/test-u16-strcpy.c: New file.
25251
25252         Tests for module 'unistr/u8-strcpy'.
25253         * modules/unistr/u8-strcpy-tests: New file.
25254         * tests/unistr/test-u8-strcpy.c: New file.
25255         * tests/unistr/test-strcpy.h: New file.
25256
25257         Tests for module 'unistr/u32-strnlen'.
25258         * modules/unistr/u32-strnlen-tests: New file.
25259         * tests/unistr/test-u32-strnlen.c: New file.
25260
25261         Tests for module 'unistr/u16-strnlen'.
25262         * modules/unistr/u16-strnlen-tests: New file.
25263         * tests/unistr/test-u16-strnlen.c: New file.
25264
25265         Tests for module 'unistr/u8-strnlen'.
25266         * modules/unistr/u8-strnlen-tests: New file.
25267         * tests/unistr/test-u8-strnlen.c: New file.
25268         * tests/unistr/test-strnlen.h: New file.
25269
25270         Tests for module 'unistr/u32-strlen'.
25271         * modules/unistr/u32-strlen-tests: New file.
25272         * tests/unistr/test-u32-strlen.c: New file.
25273
25274         Tests for module 'unistr/u16-strlen'.
25275         * modules/unistr/u16-strlen-tests: New file.
25276         * tests/unistr/test-u16-strlen.c: New file.
25277
25278         Tests for module 'unistr/u8-strlen'.
25279         * modules/unistr/u8-strlen-tests: New file.
25280         * tests/unistr/test-u8-strlen.c: New file.
25281
25282         Tests for module 'unistr/u32-prev'.
25283         * modules/unistr/u32-prev-tests: New file.
25284         * tests/unistr/test-u32-prev.c: New file.
25285
25286         Tests for module 'unistr/u16-prev'.
25287         * modules/unistr/u16-prev-tests: New file.
25288         * tests/unistr/test-u16-prev.c: New file.
25289
25290         Tests for module 'unistr/u8-prev'.
25291         * modules/unistr/u8-prev-tests: New file.
25292         * tests/unistr/test-u8-prev.c: New file.
25293
25294         Tests for module 'unistr/u32-next'.
25295         * modules/unistr/u32-next-tests: New file.
25296         * tests/unistr/test-u32-next.c: New file.
25297
25298         Tests for module 'unistr/u16-next'.
25299         * modules/unistr/u16-next-tests: New file.
25300         * tests/unistr/test-u16-next.c: New file.
25301
25302         Tests for module 'unistr/u8-next'.
25303         * modules/unistr/u8-next-tests: New file.
25304         * tests/unistr/test-u8-next.c: New file.
25305
25306         Tests for module 'unistr/u32-strmbtouc'.
25307         * modules/unistr/u32-strmbtouc-tests: New file.
25308         * tests/unistr/test-u32-strmbtouc.c: New file.
25309
25310         Tests for module 'unistr/u16-strmbtouc'.
25311         * modules/unistr/u16-strmbtouc-tests: New file.
25312         * tests/unistr/test-u16-strmbtouc.c: New file.
25313
25314         Tests for module 'unistr/u8-strmbtouc'.
25315         * modules/unistr/u8-strmbtouc-tests: New file.
25316         * tests/unistr/test-u8-strmbtouc.c: New file.
25317
25318         Tests for module 'unistr/u32-strmblen'.
25319         * modules/unistr/u32-strmblen-tests: New file.
25320         * tests/unistr/test-u32-strmblen.c: New file.
25321
25322         Tests for module 'unistr/u16-strmblen'.
25323         * modules/unistr/u16-strmblen-tests: New file.
25324         * tests/unistr/test-u16-strmblen.c: New file.
25325
25326         Tests for module 'unistr/u8-strmblen'.
25327         * modules/unistr/u8-strmblen-tests: New file.
25328         * tests/unistr/test-u8-strmblen.c: New file.
25329
25330         Tests for module 'unistr/u32-cpy-alloc'.
25331         * modules/unistr/u32-cpy-alloc-tests: New file.
25332         * tests/unistr/test-u32-cpy-alloc.c: New file.
25333
25334         Tests for module 'unistr/u16-cpy-alloc'.
25335         * modules/unistr/u16-cpy-alloc-tests: New file.
25336         * tests/unistr/test-u16-cpy-alloc.c: New file.
25337
25338         Tests for module 'unistr/u8-cpy-alloc'.
25339         * modules/unistr/u8-cpy-alloc-tests: New file.
25340         * tests/unistr/test-u8-cpy-alloc.c: New file.
25341         * tests/unistr/test-cpy-alloc.h: New file.
25342
25343         Tests for module 'unistr/u32-mbsnlen'.
25344         * modules/unistr/u32-mbsnlen-tests: New file.
25345         * tests/unistr/test-u32-mbsnlen.c: New file.
25346
25347         Tests for module 'unistr/u16-mbsnlen'.
25348         * modules/unistr/u16-mbsnlen-tests: New file.
25349         * tests/unistr/test-u16-mbsnlen.c: New file.
25350
25351         Tests for module 'unistr/u8-mbsnlen'.
25352         * modules/unistr/u8-mbsnlen-tests: New file.
25353         * tests/unistr/test-u8-mbsnlen.c: New file.
25354
25355         Tests for module 'unistr/u32-chr'.
25356         * modules/unistr/u32-chr-tests: New file.
25357         * tests/unistr/test-u32-chr.c: New file.
25358
25359         Tests for module 'unistr/u16-chr'.
25360         * modules/unistr/u16-chr-tests: New file.
25361         * tests/unistr/test-u16-chr.c: New file.
25362
25363         Tests for module 'unistr/u8-chr'.
25364         * modules/unistr/u8-chr-tests: New file.
25365         * tests/unistr/test-u8-chr.c: New file.
25366         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
25367
25368         Tests for module 'unistr/u32-cmp2'.
25369         * modules/unistr/u32-cmp2-tests: New file.
25370         * tests/unistr/test-u32-cmp2.c: New file.
25371
25372         Tests for module 'unistr/u16-cmp2'.
25373         * modules/unistr/u16-cmp2-tests: New file.
25374         * tests/unistr/test-u16-cmp2.c: New file.
25375
25376         Tests for module 'unistr/u8-cmp2'.
25377         * modules/unistr/u8-cmp2-tests: New file.
25378         * tests/unistr/test-u8-cmp2.c: New file.
25379         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
25380
25381         Tests for module 'unistr/u32-cmp'.
25382         * modules/unistr/u32-cmp-tests: New file.
25383         * tests/unistr/test-u32-cmp.c: New file.
25384
25385         Tests for module 'unistr/u16-cmp'.
25386         * modules/unistr/u16-cmp-tests: New file.
25387         * tests/unistr/test-u16-cmp.c: New file.
25388
25389         Tests for module 'unistr/u8-cmp'.
25390         * modules/unistr/u8-cmp-tests: New file.
25391         * tests/unistr/test-u8-cmp.c: New file.
25392         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
25393
25394         Tests for module 'unistr/u32-set'.
25395         * modules/unistr/u32-set-tests: New file.
25396         * tests/unistr/test-u32-set.c: New file.
25397
25398         Tests for module 'unistr/u16-set'.
25399         * modules/unistr/u16-set-tests: New file.
25400         * tests/unistr/test-u16-set.c: New file.
25401
25402         Tests for module 'unistr/u8-set'.
25403         * modules/unistr/u8-set-tests: New file.
25404         * tests/unistr/test-u8-set.c: New file.
25405         * tests/unistr/test-set.h: New file.
25406
25407         Tests for module 'unistr/u32-move'.
25408         * modules/unistr/u32-move-tests: New file.
25409         * tests/unistr/test-u32-move.c: New file.
25410
25411         Tests for module 'unistr/u16-move'.
25412         * modules/unistr/u16-move-tests: New file.
25413         * tests/unistr/test-u16-move.c: New file.
25414
25415         Tests for module 'unistr/u8-move'.
25416         * modules/unistr/u8-move-tests: New file.
25417         * tests/unistr/test-u8-move.c: New file.
25418         * tests/unistr/test-move.h: New file.
25419
25420         Tests for module 'unistr/u32-cpy'.
25421         * modules/unistr/u32-cpy-tests: New file.
25422         * tests/unistr/test-u32-cpy.c: New file.
25423
25424         Tests for module 'unistr/u16-cpy'.
25425         * modules/unistr/u16-cpy-tests: New file.
25426         * tests/unistr/test-u16-cpy.c: New file.
25427
25428         Tests for module 'unistr/u8-cpy'.
25429         * modules/unistr/u8-cpy-tests: New file.
25430         * tests/unistr/test-u8-cpy.c: New file.
25431         * tests/unistr/test-cpy.h: New file.
25432
25433 2010-01-09  Bruno Haible  <bruno@clisp.org>
25434
25435         Tests for module 'unistr/u32-uctomb'.
25436         * modules/unistr/u32-uctomb-tests: New file.
25437         * tests/unistr/test-u32-uctomb.c: New file.
25438
25439         Tests for module 'unistr/u16-uctomb'.
25440         * modules/unistr/u16-uctomb-tests: New file.
25441         * tests/unistr/test-u16-uctomb.c: New file.
25442
25443         Tests for module 'unistr/u8-uctomb'.
25444         * modules/unistr/u8-uctomb-tests: New file.
25445         * tests/unistr/test-u8-uctomb.c: New file.
25446
25447         Tests for module 'unistr/u32-mbtoucr'.
25448         * modules/unistr/u32-mbtoucr-tests: New file.
25449         * tests/unistr/test-u32-mbtoucr.c: New file.
25450
25451         Tests for module 'unistr/u16-mbtoucr'.
25452         * modules/unistr/u16-mbtoucr-tests: New file.
25453         * tests/unistr/test-u16-mbtoucr.c: New file.
25454
25455         Tests for module 'unistr/u8-mbtoucr'.
25456         * modules/unistr/u8-mbtoucr-tests: New file.
25457         * tests/unistr/test-u8-mbtoucr.c: New file.
25458
25459         Tests for module 'unistr/u32-mbtouc'.
25460         * modules/unistr/u32-mbtouc-tests: New file.
25461         * tests/unistr/test-u32-mbtouc.c: New file.
25462
25463         Tests for module 'unistr/u16-mbtouc'.
25464         * modules/unistr/u16-mbtouc-tests: New file.
25465         * tests/unistr/test-u16-mbtouc.c: New file.
25466
25467         Tests for module 'unistr/u8-mbtouc'.
25468         * modules/unistr/u8-mbtouc-tests: New file.
25469         * tests/unistr/test-u8-mbtouc.c: New file.
25470
25471         Tests for module 'unistr/u32-mbtouc-unsafe'.
25472         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
25473         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
25474         * tests/unistr/test-u32-mbtouc.h: New file.
25475
25476         Tests for module 'unistr/u16-mbtouc-unsafe'.
25477         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
25478         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
25479         * tests/unistr/test-u16-mbtouc.h: New file.
25480
25481         Tests for module 'unistr/u8-mbtouc-unsafe'.
25482         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
25483         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
25484         * tests/unistr/test-u8-mbtouc.h: New file.
25485
25486         Tests for module 'unistr/u32-mblen'.
25487         * modules/unistr/u32-mblen-tests: New file.
25488         * tests/unistr/test-u32-mblen.c: New file.
25489
25490         Tests for module 'unistr/u16-mblen'.
25491         * modules/unistr/u16-mblen-tests: New file.
25492         * tests/unistr/test-u16-mblen.c: New file.
25493
25494         Tests for module 'unistr/u8-mblen'.
25495         * modules/unistr/u8-mblen-tests: New file.
25496         * tests/unistr/test-u8-mblen.c: New file.
25497
25498         Tests for module 'unistr/u32-to-u16'.
25499         * modules/unistr/u32-to-u16-tests: New file.
25500         * tests/unistr/test-u32-to-u16.c: New file.
25501
25502         Tests for module 'unistr/u32-to-u8'.
25503         * modules/unistr/u32-to-u8-tests: New file.
25504         * tests/unistr/test-u32-to-u8.c: New file.
25505
25506         Tests for module 'unistr/u16-to-u32'.
25507         * modules/unistr/u16-to-u32-tests: New file.
25508         * tests/unistr/test-u16-to-u32.c: New file.
25509
25510         Tests for module 'unistr/u16-to-u8'.
25511         * modules/unistr/u16-to-u8-tests: New file.
25512         * tests/unistr/test-u16-to-u8.c: New file.
25513
25514         Tests for module 'unistr/u8-to-u32'.
25515         * modules/unistr/u8-to-u32-tests: New file.
25516         * tests/unistr/test-u8-to-u32.c: New file.
25517
25518         Tests for module 'unistr/u8-to-u16'.
25519         * modules/unistr/u8-to-u16-tests: New file.
25520         * tests/unistr/test-u8-to-u16.c: New file.
25521
25522         Tests for module 'unistr/u32-check'.
25523         * modules/unistr/u32-check-tests: New file.
25524         * tests/unistr/test-u32-check.c: New file.
25525
25526         Tests for module 'unistr/u16-check'.
25527         * modules/unistr/u16-check-tests: New file.
25528         * tests/unistr/test-u16-check.c: New file.
25529
25530         Tests for module 'unistr/u8-check'.
25531         * modules/unistr/u8-check-tests: New file.
25532         * tests/unistr/test-u8-check.c: New file.
25533
25534         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
25535         (category_equals): New function.
25536         (main): Add more tests.
25537         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
25538
25539         * tests/unictype/test-bidi_byname.c (main): Add more tests.
25540
25541 2010-01-10  Bruno Haible  <bruno@clisp.org>
25542
25543         unistr/u*-strcoll: Try harder to distinguish different strings.
25544         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
25545         compare s1 and s2 to see if they are different.
25546
25547 2010-01-10  Bruno Haible  <bruno@clisp.org>
25548
25549         unistr/u*-stpncpy: Fix the return value.
25550         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
25551         description of the return value consistent with stpncpy in glibc.
25552         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
25553         written non-NUL unit.
25554
25555 2010-01-10  Bruno Haible  <bruno@clisp.org>
25556
25557         unistr/u*-next: Add missing dependencies.
25558         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
25559         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
25560         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
25561
25562 2010-01-10  Bruno Haible  <bruno@clisp.org>
25563
25564         unistr/u8-mbsnlen: Fix return value for incomplete character.
25565         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
25566         u8_mblen.
25567         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
25568         Remove unistr/u8-mblen.
25569         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
25570         u16_mblen.
25571         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
25572         Remove unistr/u16-mblen.
25573
25574 2010-01-10  Bruno Haible  <bruno@clisp.org>
25575
25576         wchar: Fix compilation error when <wchar.h> is used from coreutils.
25577         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
25578         Reported by Brian Gough <bjg@gnu.org> and
25579         Chris Clayton <chris2553@googlemail.com> via
25580         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
25581
25582 2010-01-09  Bruno Haible  <bruno@clisp.org>
25583
25584         unistr/u16-to-u32: Reject invalid input.
25585         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
25586         u16_mbtouc.
25587         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
25588         Remove unistr/u16-mbtouc.
25589
25590         unistr/u16-to-u8: Reject invalid input.
25591         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
25592         u16_mbtouc.
25593         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
25594         Remove unistr/u16-mbtouc.
25595
25596         unistr/u8-to-u32: Reject invalid input.
25597         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
25598         u8_mbtouc.
25599         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
25600         Remove unistr/u8-mbtouc.
25601
25602         unistr/u8-to-u16: Reject invalid input.
25603         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
25604         u8_mbtouc.
25605         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
25606         Remove unistr/u8-mbtouc.
25607
25608 2010-01-09  Bruno Haible  <bruno@clisp.org>
25609
25610         Tests for module 'getlogin'.
25611         * modules/getlogin-tests: New file.
25612         * tests/test-getlogin.c: New file.
25613
25614         New module 'getlogin'.
25615         * lib/unistd.in.h (getlogin): New declaration.
25616         * lib/getlogin.c: New file.
25617         * m4/getlogin.m4: New file.
25618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
25619         HAVE_GETLOGIN.
25620         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
25621         HAVE_GETLOGIN.
25622         * modules/getlogin: New file.
25623         * doc/posix-functions/getlogin.texi: Mention the new module.
25624         Reported by John W. Eaton <jwe@gnu.org>.
25625
25626 2010-01-09  Bruno Haible  <bruno@clisp.org>
25627
25628         getlogin_r: Support for native Windows.
25629         * lib/getlogin_r.c: Include <windows.h>
25630         (getlogin_r): Implement for native Windows.
25631         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
25632         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
25633         via John W. Eaton <jwe@gnu.org>.
25634
25635 2010-01-09  Bruno Haible  <bruno@clisp.org>
25636
25637         getlogin_r: Small fixes.
25638         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
25639         succeeds.
25640         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
25641         before testing whether getlogin_r is declared. No need to set
25642         HAVE_DECL_GETLOGIN_R to 1.
25643         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
25644
25645 2010-01-09  Bruno Haible  <bruno@clisp.org>
25646
25647         * lib/unistd.in.h (getlogin_r): Add comment.
25648
25649 2010-01-09  Bruno Haible  <bruno@clisp.org>
25650
25651         Tests for module 'getlogin_r'.
25652         * modules/getlogin_r-tests: New file.
25653         * tests/test-getlogin_r.c: New file.
25654
25655 2010-01-09  Jim Meyering  <meyering@redhat.com>
25656
25657         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
25658         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
25659         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
25660
25661 2010-01-08  Simon Josefsson  <simon@josefsson.org>
25662
25663         * lib/dup2.c (rpl_dup2): Improve comment.
25664
25665 2010-01-08  Eric Blake  <ebb9@byu.net>
25666
25667         maint.mk: allow packages to add makefile @@ exceptions
25668         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
25669         (sc_makefile_check): Rename...
25670         (sc_makefile_at_at_check): ...to this, and use hook.
25671
25672         dup2: work around mingw bug
25673         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
25674         Reported by Simon Josefsson.
25675
25676 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
25677
25678         glob: Fix C++ compilation.
25679         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
25680         C++.
25681
25682 2010-01-07  Bruno Haible  <bruno@clisp.org>
25683
25684         Fix indentation of wctype.in.h, broken since 2007-01-06.
25685         * lib/wctype.in.h: Fix indentation of preprocessor directives.
25686
25687 2010-01-07  Bruno Haible  <bruno@clisp.org>
25688
25689         mbslen: Avoid collision with system function.
25690         * lib/string.in.h [MirBSD]: Include <wchar.h>.
25691         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
25692         * m4/mbslen.m4: New file.
25693         * modules/mbslen (Files): Add it.
25694         (configure.ac): Invoke gl_MBSLEN.
25695         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
25696         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
25697         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
25698         via Ian Beckwith <ianb@erislabs.net>.
25699
25700 2010-01-07  Bruno Haible  <bruno@clisp.org>
25701
25702         dirent: Document the last fix.
25703         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
25704
25705 2010-01-07  Bruno Haible  <bruno@clisp.org>
25706
25707         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
25708         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
25709         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
25710         va_list are defined.
25711         * doc/posix-headers/stdio.texi: Document the bug of missing types.
25712         Reported by Eric Blake.
25713
25714 2010-01-07  Bruno Haible  <bruno@clisp.org>
25715
25716         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
25717         * modules/xlist (Depends-on): Add 'list',
25718         * modules/xoset (Depends-on): Add 'oset'.
25719         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25720
25721 2010-01-07  Bruno Haible  <bruno@clisp.org>
25722
25723         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
25724         * doc/posix-functions/strncasecmp.texi: Likewise.
25725
25726 2010-01-07  Bruno Haible  <bruno@clisp.org>
25727
25728         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
25729
25730 2010-01-07  John W. Eaton  <jwe@octave.org>
25731
25732         wctype: allow C++ use
25733         * lib/wctype.in.h: Add extern "C" block for C++.
25734
25735 2010-01-06  Eric Blake  <ebb9@byu.net>
25736
25737         maint.mk: detect incorrect GFDL usage
25738         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
25739
25740 2010-01-06  Jim Meyering  <meyering@redhat.com>
25741         and Eric Blake  <ebb9@byu.net>
25742
25743         maint.mk: ignore multi-line copyright in NEWS
25744         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
25745
25746 2010-01-06  Eric Blake  <ebb9@byu.net>
25747
25748         select: add missing dependency
25749         * modules/select-tests (Depends-on): Move sockets dependency...
25750         * modules/select (Depends-on): ...here.
25751         Reported by Ian Beckwith.
25752
25753         doc: regenerate INSTALL
25754         * doc/INSTALL: Reflect recent autoconf update.
25755         * doc/INSTALL.ISO: Likewise.
25756         * doc/INSTALL.UTF-8: Likewise.
25757
25758         pread: fix compilation on glibc
25759         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
25760         Reported by Ralf Wildenhues.
25761
25762         dirent: fix test failure
25763         * lib/dirent.in.h (includes): Guarantee ino_t.
25764         Reported by Ralf Wildenhues.
25765
25766 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
25767
25768         linkat, renameat: avoid bad free
25769         * lib/at-func2.c (at_func2): Fix typo.
25770         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
25771
25772 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25773
25774         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
25775         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
25776         to avoid failure of symlink test later.
25777
25778 2010-01-06  Eric Blake  <ebb9@byu.net>
25779
25780         stdio, unistd: guarantee ssize_t
25781         * lib/unistd.in.h (includes): Ensure that types required by POSIX
25782         2008 are exposed when needed.
25783         * lib/stdio.in.h (includes): Likewise.
25784         Reported by Ralf Wildenhues.
25785
25786 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
25787
25788         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
25789         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
25790         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
25791
25792 2010-01-06  Jim Meyering  <meyering@redhat.com>
25793
25794         readtokens: this module *does* require xalloc.h
25795         It uses only functions that were omitted by the old syntax-check rule.
25796         * lib/readtokens.c: Include "xalloc.h" once again.
25797         * modules/readtokens (Depends-on): Add xalloc.
25798         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
25799
25800 2010-01-05  Eric Blake  <ebb9@byu.net>
25801
25802         maint: support 'make announcement' from a VPATH build
25803         * top/maint.mk (announcement): Look for correct NEWS file.
25804
25805 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
25806
25807         utimens (fdutimens): ignore a negative FD, per contract
25808         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
25809         when we have a valid file descriptor.  Otherwise, using a brand
25810         new glibc (with just-patched futimens that now fails with EBADF)
25811         would cause this function to fail with ENOSYS.
25812         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
25813         See also http://bugzilla.redhat.com/552320.
25814
25815 2010-01-05  Eric Blake  <ebb9@byu.net>
25816
25817         strcase: document what it provides
25818         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
25819         gnulib module.
25820         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
25821         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
25822
25823 2010-01-05  Jim Meyering  <meyering@redhat.com>
25824
25825         maint: remove useless inclusions of "xalloc.h"
25826         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
25827         * lib/readtokens.c: Likewise.
25828         * lib/same.c: Likewise.
25829         * modules/getloadavg (Depends-on): Remove xalloc.
25830         * modules/readtokens: Likewise.
25831         * modules/same: Likewise.
25832
25833         maint.mk: include 4 more function names in alloca.h-checking regexp
25834         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
25835         regexp.  Before, we would give a false-positive (saying alloca.h
25836         is included unnecessarily) when the only uses involved omitted symbols.
25837
25838         xalloc.h: use consistent formatting
25839         * lib/xalloc.h: Move declarations to start in the first column.
25840
25841 2010-01-05  Eric Blake  <ebb9@byu.net>
25842
25843         mkdir: avoid xalloc
25844         * lib/mkdir.c (includes): Drop unused header.
25845         Reported by John W. Eaton.
25846
25847 2010-01-04  Jim Meyering  <meyering@redhat.com>
25848
25849         nl_langinfo: avoid configure-time syntax error
25850         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
25851         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
25852         the empty string.  Don't let that provoke a shell syntax error.
25853
25854         regcomp, regexec, fnmatch: avoid array bounds read error
25855         * lib/regcomp.c (build_equiv_class): From glibc:
25856         Use only the low 24 bits of a findidx return value as an index
25857         into the weights array.  Patch by Ulrich Drepper:
25858         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
25859         * lib/regexec.c (check_node_accept_bytes): Likewise.
25860         * lib/fnmatch_loop.c (FCT): Likewise.
25861
25862         regcomp: skip collseq lookup when there are no rules
25863         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
25864         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
25865
25866         regcomp: recognize ill-formed { } expressions
25867         * lib/regcomp.c (parse_dup_op): From glibc:
25868         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
25869
25870         regcomp: fix typo in comment
25871         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
25872         s/satisfy/satisfies/.
25873
25874         regcomp: sync from glibc: remove dead store
25875         * lib/regcomp.c (duplicate_node_closure): Remove useless
25876         search_duplicated_node call and dead store.
25877
25878         regcomp: sync from glibc; always use nl_langinfo
25879         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
25880         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
25881         * modules/regex (Depends-on): Add nl_langinfo.
25882
25883 2010-01-04  Eric Blake  <ebb9@byu.net>
25884
25885         fdopendir: fix configure test
25886         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
25887
25888 2010-01-01  Bruno Haible  <bruno@clisp.org>
25889
25890         wchar: Remove unused configure check.
25891         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
25892
25893 2010-01-01  Eric Blake  <ebb9@byu.net>
25894
25895         headers: make check of system header explicit
25896         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
25897         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
25898         ourselves.
25899         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25900         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25901         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
25902         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
25903         internals.
25904         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
25905         missing.
25906         Suggested by Bruno Haible.
25907
25908 2010-01-01  Jim Meyering  <meyering@redhat.com>
25909
25910         ChangeLog: tweak to eliminate unnecessary copyright line
25911         * ChangeLog: Remove a copyright line that was mistakenly updated
25912         by today's update-copyright run.  Reported by Eric Blake.
25913
25914         test-update-copyright: don't let envvar setting cause test failure
25915         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25916
25917 2010-01-01  Bruno Haible  <bruno@clisp.org>
25918
25919         localename: Avoid gcc warning.
25920         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
25921         function if it is not used.
25922
25923 2010-01-01  Jim Meyering  <meyering@redhat.com>
25924
25925         update nearly all FSF copyright year lists to include 2010
25926         Use the same procedure as for 2009, outlined in
25927         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
25928
25929         version-etc: set COPYRIGHT_YEAR to 2010
25930         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
25931
25932 2009-12-31  Eric Blake  <ebb9@byu.net>
25933
25934         doc: correct availability of cygwin 1.5.x getopt
25935         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
25936         variables.
25937         * doc/posix-functions/opterr.texi (opterr): Likewise.
25938         * doc/posix-functions/optind.texi (optind): Likewise.
25939         * doc/posix-functions/optopt.texi (optopt): Likewise.
25940         * doc/posix-functions/tzname.texi (tzname): Likewise.
25941
25942         openat: update maintainer
25943         * modules/openat (Maintainer): Add myself.
25944
25945         utimens: avoid shadowing warning
25946         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
25947         buffers into one, to avoid shadowing, as well as avoiding a
25948         redundant stat.
25949         Reported by Jim Meyering.
25950
25951         test-dup2: avoid compiler warning
25952         * tests/test-dup2.c (is_inheritable): Only define if used.
25953
25954 2010-01-01  Bruno Haible  <bruno@clisp.org>
25955
25956         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
25957         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
25958         defined, use wctomb instead of wcrtomb.
25959
25960 2010-01-01  Bruno Haible  <bruno@clisp.org>
25961
25962         iconv: Reject native Solaris iconv.
25963         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
25964         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
25965
25966 2009-12-31  Bruno Haible  <bruno@clisp.org>
25967
25968         * tests/test-signal.c (main): Remove test of 'SIG'.
25969
25970 2009-12-31  Bruno Haible  <bruno@clisp.org>
25971
25972         spawn: Fix incomplete fix.
25973         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25974         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25975         warnings for GNULIB_POSIXCHECK again.
25976         Reported by Eric Blake.
25977
25978 2009-12-31  Bruno Haible  <bruno@clisp.org>
25979
25980         Avoid namespace pollution on glibc systems.
25981         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25982         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25983         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25984         glibc systems.
25985
25986 2009-12-31  Bruno Haible  <bruno@clisp.org>
25987
25988         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25989         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25990         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25991         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25992         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25993         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25994         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25995
25996 2009-12-31  Bruno Haible  <bruno@clisp.org>
25997
25998         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25999         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
26000         afterwards.
26001
26002 2009-12-31  Bruno Haible  <bruno@clisp.org>
26003
26004         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
26005         SYS_UTSNAME_H.
26006
26007 2009-12-31  Bruno Haible  <bruno@clisp.org>
26008
26009         spawn: Fix misapplied patch.
26010         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
26011         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
26012         warnings for GNULIB_POSIXCHECK.
26013
26014 2009-12-31  Bruno Haible  <bruno@clisp.org>
26015
26016         times: Update after sys_times changed.
26017         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
26018         * modules/times (Files): Add it.
26019         (configure.ac): Invoke gl_FUNC_TIMES.
26020
26021 2009-12-31  Bruno Haible  <bruno@clisp.org>
26022
26023         Use AC_C_INLINE where necessary.
26024         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
26025         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
26026         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
26027         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
26028         * m4/mbfile.m4 (gl_MBFILE): Likewise.
26029         * m4/mbiter.m4 (gl_MBITER): Likewise.
26030         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26031         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26032         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
26033         * modules/u64 (configure.ac): Likewise.
26034
26035 2009-12-31  Bruno Haible  <bruno@clisp.org>
26036
26037         Use AC_C_INLINE instead of module 'inline' where possible.
26038         * modules/inline (Description): Clarify purpose.
26039         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
26040         * modules/count-one-bits (Depends-on): Remove inline.
26041         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
26042         * modules/openat (Depends-on): Remove inline.
26043         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
26044         instead of depending on module 'inline'.
26045         * modules/filevercmp (Depends-on, configure.ac): Likewise.
26046         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
26047         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
26048         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
26049         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
26050         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
26051         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
26052         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
26053         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
26054         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
26055         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
26056         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
26057         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
26058         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
26059         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
26060         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
26061         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
26062         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
26063         Likewise.
26064         * modules/unictype/property-ascii-hex-digit (Depends-on,
26065         configure.ac): Likewise.
26066         * modules/unictype/property-bidi-arabic-digit (Depends-on,
26067         configure.ac): Likewise.
26068         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
26069         configure.ac): Likewise.
26070         * modules/unictype/property-bidi-block-separator (Depends-on,
26071         configure.ac): Likewise.
26072         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
26073         configure.ac): Likewise.
26074         * modules/unictype/property-bidi-common-separator (Depends-on,
26075         configure.ac): Likewise.
26076         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
26077         Likewise.
26078         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
26079         configure.ac): Likewise.
26080         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
26081         configure.ac): Likewise.
26082         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
26083         configure.ac): Likewise.
26084         * modules/unictype/property-bidi-european-digit (Depends-on,
26085         configure.ac): Likewise.
26086         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
26087         configure.ac): Likewise.
26088         * modules/unictype/property-bidi-left-to-right (Depends-on,
26089         configure.ac): Likewise.
26090         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
26091         configure.ac): Likewise.
26092         * modules/unictype/property-bidi-other-neutral (Depends-on,
26093         configure.ac): Likewise.
26094         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
26095         Likewise.
26096         * modules/unictype/property-bidi-segment-separator (Depends-on,
26097         configure.ac): Likewise.
26098         * modules/unictype/property-bidi-whitespace (Depends-on,
26099         configure.ac): Likewise.
26100         * modules/unictype/property-combining (Depends-on, configure.ac):
26101         Likewise.
26102         * modules/unictype/property-composite (Depends-on, configure.ac):
26103         Likewise.
26104         * modules/unictype/property-currency-symbol (Depends-on,
26105         configure.ac): Likewise.
26106         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
26107         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
26108         Likewise.
26109         * modules/unictype/property-default-ignorable-code-point (Depends-on,
26110         configure.ac): Likewise.
26111         * modules/unictype/property-deprecated (Depends-on, configure.ac):
26112         Likewise.
26113         * modules/unictype/property-diacritic (Depends-on, configure.ac):
26114         Likewise.
26115         * modules/unictype/property-extender (Depends-on, configure.ac):
26116         Likewise.
26117         * modules/unictype/property-format-control (Depends-on, configure.ac):
26118         Likewise.
26119         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
26120         Likewise.
26121         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
26122         Likewise.
26123         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
26124         Likewise.
26125         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
26126         Likewise.
26127         * modules/unictype/property-hyphen (Depends-on, configure.ac):
26128         Likewise.
26129         * modules/unictype/property-id-continue (Depends-on, configure.ac):
26130         Likewise.
26131         * modules/unictype/property-id-start (Depends-on, configure.ac):
26132         Likewise.
26133         * modules/unictype/property-ideographic (Depends-on, configure.ac):
26134         Likewise.
26135         * modules/unictype/property-ids-binary-operator (Depends-on,
26136         configure.ac): Likewise.
26137         * modules/unictype/property-ids-trinary-operator (Depends-on,
26138         configure.ac): Likewise.
26139         * modules/unictype/property-ignorable-control (Depends-on,
26140         configure.ac): Likewise.
26141         * modules/unictype/property-iso-control (Depends-on, configure.ac):
26142         Likewise.
26143         * modules/unictype/property-join-control (Depends-on, configure.ac):
26144         Likewise.
26145         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
26146         Likewise.
26147         * modules/unictype/property-line-separator (Depends-on, configure.ac):
26148         Likewise.
26149         * modules/unictype/property-logical-order-exception (Depends-on,
26150         configure.ac): Likewise.
26151         * modules/unictype/property-lowercase (Depends-on, configure.ac):
26152         Likewise.
26153         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
26154         * modules/unictype/property-non-break (Depends-on, configure.ac):
26155         Likewise.
26156         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
26157         Likewise.
26158         * modules/unictype/property-numeric (Depends-on, configure.ac):
26159         Likewise.
26160         * modules/unictype/property-other-alphabetic (Depends-on,
26161         configure.ac): Likewise.
26162         * modules/unictype/property-other-default-ignorable-code-point
26163         (Depends-on, configure.ac): Likewise.
26164         * modules/unictype/property-other-grapheme-extend (Depends-on,
26165         configure.ac): Likewise.
26166         * modules/unictype/property-other-id-continue (Depends-on,
26167         configure.ac): Likewise.
26168         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
26169         Likewise.
26170         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
26171         Likewise.
26172         * modules/unictype/property-other-math (Depends-on, configure.ac):
26173         Likewise.
26174         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
26175         Likewise.
26176         * modules/unictype/property-paired-punctuation (Depends-on,
26177         configure.ac): Likewise.
26178         * modules/unictype/property-paragraph-separator (Depends-on,
26179         configure.ac): Likewise.
26180         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
26181         Likewise.
26182         * modules/unictype/property-pattern-white-space (Depends-on,
26183         configure.ac): Likewise.
26184         * modules/unictype/property-private-use (Depends-on, configure.ac):
26185         Likewise.
26186         * modules/unictype/property-punctuation (Depends-on, configure.ac):
26187         Likewise.
26188         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
26189         Likewise.
26190         * modules/unictype/property-radical (Depends-on, configure.ac):
26191         Likewise.
26192         * modules/unictype/property-sentence-terminal (Depends-on,
26193         configure.ac): Likewise.
26194         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
26195         Likewise.
26196         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
26197         * modules/unictype/property-terminal-punctuation (Depends-on,
26198         configure.ac): Likewise.
26199         * modules/unictype/property-titlecase (Depends-on, configure.ac):
26200         Likewise.
26201         * modules/unictype/property-unassigned-code-value (Depends-on,
26202         configure.ac): Likewise.
26203         * modules/unictype/property-unified-ideograph (Depends-on,
26204         configure.ac): Likewise.
26205         * modules/unictype/property-uppercase (Depends-on, configure.ac):
26206         Likewise.
26207         * modules/unictype/property-variation-selector (Depends-on,
26208         configure.ac): Likewise.
26209         * modules/unictype/property-white-space (Depends-on, configure.ac):
26210         Likewise.
26211         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
26212         Likewise.
26213         * modules/unictype/property-xid-start (Depends-on, configure.ac):
26214         Likewise.
26215         * modules/unictype/property-zero-width (Depends-on, configure.ac):
26216         Likewise.
26217         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
26218         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
26219         Likewise.
26220
26221 2009-12-31  Bruno Haible  <bruno@clisp.org>
26222
26223         Remove unnecessary AC_C_INLINE invocation.
26224         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
26225         since 2009-08-21.
26226
26227 2009-12-31  Jim Meyering  <meyering@redhat.com>
26228
26229         maint.mk: don't require explicit gpg_key_ID in cfg.mk
26230         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
26231         With this change, we can all remove the gpg_key_ID = ... definition
26232         from our respective cfg.mk files.
26233
26234         maint.mk: create announcement template in ~/, not in /tmp
26235         * top/maint.mk (emit_upload_commands): Adjust.
26236         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
26237         Remove temporary file, .ci-msg.
26238
26239 2009-12-31  Eric Blake  <ebb9@byu.net>
26240
26241         link-warning: always build headers with link warnings
26242         * modules/arpa_inet (Makefile.am): Always build replacement
26243         header.
26244         * modules/ctype (Makefile.am): Likewise.
26245         * modules/dirent (Makefile.am): Likewise.
26246         * modules/inttypes (Makefile.am): Likewise.
26247         * modules/langinfo (Makefile.am): Likewise.
26248         * modules/locale (Makefile.am): Likewise.
26249         * modules/spawn (Makefile.am): Likewise.
26250         * modules/sys_file (Makefile.am): Likewise.
26251         * modules/sys_ioctl (Makefile.am): Likewise.
26252         * modules/sys_select (Makefile.am): Likewise.
26253         * modules/sys_socket (Makefile.am): Likewise.
26254         * modules/sys_times (Makefile.am): Likewise.
26255         * modules/sys_utsname (Makefile.am): Likewise.
26256         * modules/sys_wait (Makefile.am): Likewise.
26257         * modules/wchar (Makefile.am): Likewise.
26258         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
26259         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
26260         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
26261         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
26262         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
26263         Likewise.
26264         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26265         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26266         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
26267         Likewise.
26268         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
26269         Likewise.
26270         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26271         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
26272         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
26273         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26274         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26275         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26276         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26277         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
26278         (gl_WCHAR_H_DEFAULTS): Likewise.
26279
26280 2009-12-31  Eric Blake  <ebb9@byu.net>
26281
26282         signal, spawn: use link warnings
26283         * lib/signal.in.h (sigset_t): Make unconditional.
26284         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
26285         (sigpending, sigprocmask, sigaction): Add link warnings.
26286         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
26287         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
26288         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
26289         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
26290         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
26291         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
26292         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
26293         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
26294         (posix_spawn_file_actions_destroy)
26295         (posix_spawn_file_actions_addopen)
26296         (posix_spawn_file_actions_addclose)
26297         (posix_spawn_file_actions_adddup2): Likewise.
26298         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
26299         * tests/test-signal.c (main): Enhance test.
26300
26301         spawn: improve wrapper support
26302         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
26303         (gl_SPAWN_H_DEFAULTS): New defaults.
26304         * modules/spawn (Makefile.am): Substitute them.
26305         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
26306         Only declare if missing or broken.
26307
26308         sys_times, sys_utsname: use include_next
26309         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
26310         header.
26311         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
26312         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26313         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26314         * modules/sys_times (Depends-on): Add include_next.
26315         (Makefile.am): Substitute additional values.
26316         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26317         * lib/sys_times.in.h (includes): Include native header, if
26318         available.
26319         * lib/sys_utsname.in.h (includes): Likewise.
26320         * tests/test-sys_times.c (main): Enhance test.
26321
26322         fdutimensat: revert prior patch
26323         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
26324         utimens.h.
26325         Reported by Bruno Haible.
26326
26327 2009-12-30  Eric Blake  <ebb9@byu.net>
26328
26329         sys_wait: drop link-warning dependency
26330         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
26331         link-warning efforts.
26332         * lib/sys_wait.in.h: Likewise.
26333
26334         fdutimensat: remove bogus dependency
26335         * modules/fdutimensat (Depends-on): Drop inline.
26336
26337         unistd: fix typo
26338         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
26339
26340 2009-12-30  Bruno Haible  <bruno@clisp.org>
26341
26342         Fix compilation error with Solaris cc.
26343         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
26344         * lib/unicase/u16-is-invariant.c: Likewise.
26345         * lib/unicase/u32-is-invariant.c: Likewise.
26346         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26347
26348 2009-12-30  Bruno Haible  <bruno@clisp.org>
26349
26350         Fix test crash.
26351         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
26352         locales.
26353         Reported by Simon Josefsson <simon@josefsson.org>.
26354
26355 2009-12-30  Bruno Haible  <bruno@clisp.org>
26356
26357         Fix compilation error on most platforms.
26358         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
26359         Reported by Simon Josefsson <simon@josefsson.org>
26360         and Nelson H. F. Beebe <beebe@math.utah.edu>.
26361
26362 2009-12-30  Eric Blake  <ebb9@byu.net>
26363
26364         futimens, utimensat: work around ntfs-3g bug
26365         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
26366         a ctime bug is present, and expand workaround to cover ntfs-3g.
26367         * lib/utimens.c (fdutimens, lutimens): Likewise.
26368         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
26369         (validate_timespec): Adjust return value.
26370         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
26371         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26372         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
26373
26374 2009-12-29  Eric Blake  <ebb9@byu.net>
26375
26376         link-warning: make usage consistent
26377         * modules/ctype (Depends-on): Add link-warning.
26378         (Makefile.am): Update rules accordingly.
26379         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26380         * modules/locale (Depends-on, Makefile.am): Likewise.
26381         * modules/sys_file (Makefile.am): Likewise.
26382         * modules/getopt-posix (Makefile.am): Delete unused link warning
26383         efforts.
26384         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
26385         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
26386         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
26387         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
26388
26389         stdio: remove unused variables
26390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
26391         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
26392         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26393
26394         tests: test more substitute headers
26395         * modules/ctype-tests: New file.
26396         * modules/dirent-tests: Likewise.
26397         * modules/spawn-tests: Likewise.
26398         * modules/sys_file-tests: Likewise.
26399         * modules/sys_ioctl-tests: Likewise.
26400         * modules/sys_wait-tests: Likewise.
26401         * tests/test-ctype.c: Likewise.
26402         * tests/test-dirent.c: Likewise.
26403         * tests/test-spawn.c: Likewise.
26404         * tests/test-sys_file.c: Likewise.
26405         * tests/test-sys_ioctl.c: Likewise.
26406         * tests/test-sys_wait.c: Likewise.
26407         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
26408         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
26409         whether or not flock is in use.
26410
26411         tests: remove License section from module
26412         * modules/arpa_inet-tests: Remove unneeded section.
26413         * modules/byteswap-tests: Likewise.
26414         * modules/ceilf-tests: Likewise.
26415         * modules/ceill-tests: Likewise.
26416         * modules/crypto/des-tests: Likewise.
26417         * modules/crypto/gc-arcfour-tests: Likewise.
26418         * modules/crypto/gc-arctwo-tests: Likewise.
26419         * modules/crypto/gc-des-tests: Likewise.
26420         * modules/crypto/gc-hmac-md5-tests: Likewise.
26421         * modules/crypto/gc-hmac-sha1-tests: Likewise.
26422         * modules/crypto/gc-md2-tests: Likewise.
26423         * modules/crypto/gc-md4-tests: Likewise.
26424         * modules/crypto/gc-md5-tests: Likewise.
26425         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
26426         * modules/crypto/gc-rijndael-tests: Likewise.
26427         * modules/crypto/gc-sha1-tests: Likewise.
26428         * modules/crypto/gc-tests: Likewise.
26429         * modules/crypto/md2-tests: Likewise.
26430         * modules/crypto/md4-tests: Likewise.
26431         * modules/fcntl-h-tests: Likewise.
26432         * modules/floorf-tests: Likewise.
26433         * modules/floorl-tests: Likewise.
26434         * modules/frexp-nolibm-tests: Likewise.
26435         * modules/frexp-tests: Likewise.
26436         * modules/frexpl-nolibm-tests: Likewise.
26437         * modules/frexpl-tests: Likewise.
26438         * modules/getaddrinfo-tests: Likewise.
26439         * modules/inttypes-tests: Likewise.
26440         * modules/isfinite-tests: Likewise.
26441         * modules/isinf-tests: Likewise.
26442         * modules/ldexpl-tests: Likewise.
26443         * modules/locale-tests: Likewise.
26444         * modules/math-tests: Likewise.
26445         * modules/netdb-tests: Likewise.
26446         * modules/netinet_in-tests: Likewise.
26447         * modules/printf-frexp-tests: Likewise.
26448         * modules/printf-frexpl-tests: Likewise.
26449         * modules/priv-set-tests: Likewise.
26450         * modules/random_r-tests: Likewise.
26451         * modules/round-tests: Likewise.
26452         * modules/roundf-tests: Likewise.
26453         * modules/roundl-tests: Likewise.
26454         * modules/search-tests: Likewise.
26455         * modules/select-tests: Likewise.
26456         * modules/signal-tests: Likewise.
26457         * modules/stdbool-tests: Likewise.
26458         * modules/stddef-tests: Likewise.
26459         * modules/stdint-tests: Likewise.
26460         * modules/stdio-tests: Likewise.
26461         * modules/stdlib-tests: Likewise.
26462         * modules/string-tests: Likewise.
26463         * modules/strings-tests: Likewise.
26464         * modules/sys_select-tests: Likewise.
26465         * modules/sys_socket-tests: Likewise.
26466         * modules/sys_stat-tests: Likewise.
26467         * modules/sys_time-tests: Likewise.
26468         * modules/sys_utsname-tests: Likewise.
26469         * modules/sysexits-tests: Likewise.
26470         * modules/time-tests: Likewise.
26471         * modules/trunc-tests: Likewise.
26472         * modules/truncf-tests: Likewise.
26473         * modules/truncl-tests: Likewise.
26474         * modules/tsearch-tests: Likewise.
26475         * modules/unistd-tests: Likewise.
26476         * modules/wchar-tests: Likewise.
26477         * modules/wctype-tests: Likewise.
26478
26479         tests: fix license on several tests
26480         * tests/test-des.c: Update to GPLv3+.
26481         * tests/test-flock.c: Likewise.
26482         * tests/test-fsync.c: Likewise.
26483         * tests/test-futimens.h: Likewise.
26484         * tests/test-gc-arcfour.c: Likewise.
26485         * tests/test-gc-arctwo.c: Likewise.
26486         * tests/test-gc-des.c: Likewise.
26487         * tests/test-gc-hmac-md5.c: Likewise.
26488         * tests/test-gc-hmac-sha1.c: Likewise.
26489         * tests/test-gc-md2.c: Likewise.
26490         * tests/test-gc-md4.c: Likewise.
26491         * tests/test-gc-md5.c: Likewise.
26492         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26493         * tests/test-gc-rijndael.c: Likewise.
26494         * tests/test-gc-sha1.c: Likewise.
26495         * tests/test-gc.c: Likewise.
26496         * tests/test-getcwd.c: Likewise.
26497         * tests/test-link.c: Likewise.
26498         * tests/test-link.h: Likewise.
26499         * tests/test-lutimens.h: Likewise.
26500         * tests/test-md2.c: Likewise.
26501         * tests/test-md4.c: Likewise.
26502         * tests/test-mkdir.h: Likewise.
26503         * tests/test-rename.c: Likewise.
26504         * tests/test-rename.h: Likewise.
26505         * tests/test-safe-alloc.c: Likewise.
26506         * tests/test-utimens-common.h: Likewise.
26507         * tests/test-utimens.h: Likewise.
26508
26509         maint: sync license texts
26510         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
26511         * doc/gpl-3.0.texi: Revert copyright year update.
26512         * doc/lgpl-3.0.texi: Likewise.
26513
26514 2009-12-29  Jim Meyering  <meyering@redhat.com>
26515
26516         update nearly all FSF copyright year lists to include 2009
26517         The files named by the following are exempted:
26518             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
26519               test -f "$dst" && { echo "$dst"; continue; }
26520               test -d "$dst" || continue
26521               echo "$dst"/$(basename "$src")
26522             done > exempt
26523             git ls-files tests/unictype >> exempt
26524         In the remaining files, convert to all-interval notation if
26525         - there is already at least one year interval like 2000-2003
26526         - the file is maintained by me
26527         - the file is in lib/uni*/, where that style already prevails
26528         Otherwise, use update-copyright's default.
26529
26530 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26531         and Eric Blake  <ebb9@byu.net>
26532
26533         tests: don't require debug system() to pass
26534         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
26535         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26536         * tests/test-unlink.h (test_unlink_func): Likewise.
26537         * tests/test-fstatat.c (main): ...into callers.
26538         * tests/test-lstat.c (main): Likewise.
26539         * tests/test-rmdir.c (main): Likewise.
26540         * tests/test-unlink.c (main): Likewise.
26541         * tests/test-unlinkat.c (main): Likewise.
26542         * tests/test-areadlink-with-size.c (main): Don't require a
26543         debug-only system call to pass, aiding cross-testing to mingw.
26544         * tests/test-areadlink.c (main): Likewise.
26545         * tests/test-areadlinkat-with-size.c (main): Likewise.
26546         * tests/test-areadlinkat.c (main): Likewise.
26547         * tests/test-canonicalize-lgpl.c (main): Likewise.
26548         * tests/test-canonicalize.c (main): Likewise.
26549         * tests/test-chown.c (main): Likewise.
26550         * tests/test-fchownat.c (main): Likewise.
26551         * tests/test-lchown.c (main): Likewise.
26552         * tests/test-fdutimensat.c (main): Likewise.
26553         * tests/test-futimens.c (main): Likewise.
26554         * tests/test-link.c (main): Likewise.
26555         * tests/test-linkat.c (main): Likewise.
26556         * tests/test-mkdir.c (main): Likewise.
26557         * tests/test-mkdirat.c (main): Likewise.
26558         * tests/test-mkfifo.c (main): Likewise.
26559         * tests/test-mkfifoat.c (main): Likewise.
26560         * tests/test-mknod.c (main): Likewise.
26561         * tests/test-readlink.c (main): Likewise.
26562         * tests/test-remove.c (main): Likewise.
26563         * tests/test-rename.c (main): Likewise.
26564         * tests/test-renameat.c (main): Likewise.
26565         * tests/test-symlink.c (main): Likewise.
26566         * tests/test-symlinkat.c (main): Likewise.
26567         * tests/test-utimens.c (main): Likewise.
26568         * tests/test-utimensat.c (main): Likewise.
26569
26570 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26571
26572         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
26573         on $(UNUSED_PARAMETER_H) to avoid build failure.
26574
26575 2009-12-28  Jim Meyering  <meyering@redhat.com>
26576
26577         update-copyright: you may specify a max. line length other than 72
26578         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26579
26580         maint: use consistent FSF copyright line syntax
26581         * lib/posixtm.c: Add missing comma in FSF copyright line.
26582         * lib/posixtm.h: Likewise.
26583         * lib/getugroups.c: Add missing ", Inc.".
26584
26585         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
26586         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
26587         FSF copyright line.  Remove trailing blanks.
26588
26589 2009-12-28  Eric Blake  <ebb9@byu.net>
26590
26591         test-dup2: reduce dependencies
26592         * modules/cloexec (Configure.ac): Set witness.
26593         * modules/dup2-tests (Depends-on): Drop cloexec.
26594         * tests/test-dup2.c (main): Skip portion of test if cloexec module
26595         not present.
26596         Suggested by Bruno Haible.
26597
26598 2009-12-26  Bruno Haible  <bruno@clisp.org>
26599
26600         Remove an unneeded dependency.
26601         * modules/fseterr (Depends-on): Remove dup2.
26602
26603 2009-12-26  Eric Blake  <ebb9@byu.net>
26604
26605         tests: use macros.h in more places
26606         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
26607         (ASSERT_STREAM): Provide default of stderr.
26608         * tests/test-dirent-safer.c: Include macros.h, using alternate
26609         stream for assertions.
26610         * tests/test-dup-safer.c: Likewise.
26611         * tests/test-freopen-safer.c: Likewise.
26612         * tests/test-getopt.c: Likewise.
26613         * tests/test-openat-safer.c: Likewise.
26614         * tests/test-pipe.c: Likewise.
26615         * tests/test-popen-safer.c: Likewise.
26616         * modules/dirent-safer-tests (Files): Include macros.h.
26617         * modules/unistd-safer-tests (Files): Likewise.
26618         * modules/freopen-safer-tests (Files): Likewise.
26619         * modules/getopt-posix-tests (Files): Likewise.
26620         * modules/openat-safer-tests (Files): Likewise.
26621         * modules/pipe-tests (Files): Likewise.
26622
26623 2009-12-26  Bruno Haible  <bruno@clisp.org>
26624
26625         javacomp: Portability fix.
26626         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
26627         that it also works on Solaris.
26628
26629 2009-12-26  Bruno Haible  <bruno@clisp.org>
26630
26631         localename: Fix storage allocation of gl_locale_name_thread's result.
26632         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
26633         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
26634         all platforms that have 'uselocale'.
26635         (gl_locale_name_thread_unsafe): New function, extracted from
26636         gl_locale_name_thread.
26637         (gl_locale_name_thread): Call struniq on all platforms that have
26638         'uselocale'.
26639         * tests/test-localename.c (test_locale_name_thread): Check that the
26640         resulting strings are permanently allocated.
26641         * modules/localename-tests (Depends-on): Add strdup.
26642
26643 2009-12-26  Bruno Haible  <bruno@clisp.org>
26644
26645         * tests/test-localename.c (categories): Fill in the strings.
26646
26647 2009-12-26  Jim Meyering  <meyering@redhat.com>
26648
26649         isdir: complete the removal of m4/isdir.m4
26650         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
26651
26652         isdir: clean up, since at least grep still uses it
26653         * lib/isdir.c: Include "isdir.h".
26654         (S_ISDIR): Remove now-unneeded definition.
26655         * modules/isdir (Files): Add lib/isdir.h.
26656         * lib/isdir.h: New file, with declaration.
26657         * m4/isdir.m4: Remove file -- unneeded.
26658
26659 2009-12-25  Bruno Haible  <bruno@clisp.org>
26660
26661         selinux-h: Make generated .h files standalone.
26662         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
26663         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
26664         * lib/se-selinux.in.h: Likewise.
26665         * modules/selinux-h (Depends-on): Add unused-parameter.
26666         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
26667         selinux/selinux.h and selinux/context.h.
26668         Suggested by Eric Blake.
26669
26670 2009-12-25  Bruno Haible  <bruno@clisp.org>
26671
26672         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
26673         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
26674         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
26675         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
26676         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
26677
26678 2009-12-24  Bruno Haible  <bruno@clisp.org>
26679
26680         openat: Fix warning.
26681         * lib/openat-proc.c: Include <unistd.h>.
26682
26683 2009-12-24  Bruno Haible  <bruno@clisp.org>
26684
26685         New module 'unused-parameter'.
26686         * build-aux/unused-parameter.h: New file, extracted from earlier
26687         gnulib-common.m4.
26688         * modules/unused-parameter: New file.
26689         * lib/unistr.h: Include unused-parameter.h.
26690         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
26691         _GL_UNUSED.
26692         * modules/unistr/base (Depends-on): Add unused-parameter.
26693
26694 2009-12-24  Bruno Haible  <bruno@clisp.org>
26695
26696         Add missing dependencies to 'extensions' module.
26697         * m4/extensions.m4: Add comment.
26698         * modules/accept4 (Depends-on): Add extensions.
26699         * modules/dup3 (Depends-on): Likewise.
26700         * modules/fcntl (Depends-on): Likewise.
26701         * modules/futimens (Depends-on): Likewise.
26702         * modules/mknod (Depends-on): Likewise.
26703         * modules/pipe2 (Depends-on): Likewise.
26704         * modules/stat-time (Depends-on): Likewise.
26705         * modules/strcasestr-simple (Depends-on): Likewise.
26706         * modules/strsignal (Depends-on): Likewise.
26707         * modules/utimensat (Depends-on): Likewise.
26708         * modules/localcharset (Depends-on): Likewise. Needed because of
26709         gl_FCNTL_O_FLAGS.
26710         * modules/wcrtomb (Depends-on): Likewise. Needed because of
26711         AC_TYPE_MBSTATE_T.
26712         * modules/wcsnrtombs (Depends-on): Likewise.
26713         * modules/wcsrtombs (Depends-on): Likewise.
26714
26715 2009-12-24  Bruno Haible  <bruno@clisp.org>
26716
26717         binary-io: Avoid gcc warning due to SET_BINARY.
26718         * lib/binary-io.h (SET_BINARY): Cast the result to void.
26719         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
26720
26721 2009-12-24  Bruno Haible  <bruno@clisp.org>
26722
26723         Avoid future namespace pollution on glibc systems.
26724         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
26725         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
26726         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
26727         glibc systems.
26728
26729 2009-12-24  Bruno Haible  <bruno@clisp.org>
26730
26731         Refactor common macros used in tests.
26732         * tests/macros.h: New file.
26733         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
26734         and/or <stdlib.h>, if appropriate.
26735         (ASSERT, SIZEOF): Remove macros.
26736         * tests/test-areadlink-with-size.c: Likewise.
26737         * tests/test-areadlinkat.c: Likewise.
26738         * tests/test-areadlinkat-with-size.c: Likewise.
26739         * tests/test-argmatch.c: Likewise.
26740         * tests/test-argv-iter.c: Likewise.
26741         * tests/test-array-mergesort.c: Likewise.
26742         * tests/test-array_list.c: Likewise.
26743         * tests/test-array_oset.c: Likewise.
26744         * tests/test-avltree_list.c: Likewise.
26745         * tests/test-avltree_oset.c: Likewise.
26746         * tests/test-avltreehash_list.c: Likewise.
26747         * tests/test-base64.c: Likewise.
26748         * tests/test-binary-io.c: Likewise.
26749         * tests/test-bitrotate.c: Likewise.
26750         * tests/test-btowc.c: Likewise.
26751         * tests/test-byteswap.c: Likewise.
26752         * tests/test-c-ctype.c: Likewise.
26753         * tests/test-c-stack.c: Likewise.
26754         * tests/test-c-strcasecmp.c: Likewise.
26755         * tests/test-c-strcasestr.c: Likewise.
26756         * tests/test-c-strncasecmp.c: Likewise.
26757         * tests/test-c-strstr.c: Likewise.
26758         * tests/test-canonicalize-lgpl.c: Likewise.
26759         * tests/test-canonicalize.c: Likewise.
26760         * tests/test-carray_list.c: Likewise.
26761         * tests/test-ceilf1.c: Likewise.
26762         * tests/test-ceilf2.c: Likewise.
26763         * tests/test-ceill.c: Likewise.
26764         * tests/test-chown.c: Likewise.
26765         * tests/test-cloexec.c: Likewise.
26766         * tests/test-copy-acl.c: Likewise.
26767         * tests/test-copy-file.c: Likewise.
26768         * tests/test-count-one-bits.c: Likewise.
26769         * tests/test-dprintf-posix.c: Likewise.
26770         * tests/test-dup2.c: Likewise.
26771         * tests/test-dup3.c: Likewise.
26772         * tests/test-duplocale.c: Likewise.
26773         * tests/test-fbufmode.c: Likewise.
26774         * tests/test-fchdir.c: Likewise.
26775         * tests/test-fchownat.c: Likewise.
26776         * tests/test-fcntl-safer.c: Likewise.
26777         * tests/test-fcntl.c: Likewise.
26778         * tests/test-fdopendir.c: Likewise.
26779         * tests/test-fdutimensat.c: Likewise.
26780         * tests/test-fflush2.c: Likewise.
26781         * tests/test-file-has-acl.c: Likewise.
26782         * tests/test-filevercmp.c: Likewise.
26783         * tests/test-flock.c: Likewise.
26784         * tests/test-floorf1.c: Likewise.
26785         * tests/test-floorf2.c: Likewise.
26786         * tests/test-floorl.c: Likewise.
26787         * tests/test-fnmatch.c: Likewise.
26788         * tests/test-fopen.h: Likewise.
26789         * tests/test-fpending.c: Likewise.
26790         * tests/test-fprintf-posix.c: Likewise.
26791         * tests/test-fpurge.c: Likewise.
26792         * tests/test-freadable.c: Likewise.
26793         * tests/test-freadahead.c: Likewise.
26794         * tests/test-freading.c: Likewise.
26795         * tests/test-freadptr.c: Likewise.
26796         * tests/test-freadptr2.c: Likewise.
26797         * tests/test-freadseek.c: Likewise.
26798         * tests/test-freopen.c: Likewise.
26799         * tests/test-frexp.c: Likewise.
26800         * tests/test-frexpl.c: Likewise.
26801         * tests/test-fseek.c: Likewise.
26802         * tests/test-fseeko.c: Likewise.
26803         * tests/test-fstatat.c: Likewise.
26804         * tests/test-fstrcmp.c: Likewise.
26805         * tests/test-fsync.c: Likewise.
26806         * tests/test-ftell.c: Likewise.
26807         * tests/test-ftello.c: Likewise.
26808         * tests/test-func.c: Likewise.
26809         * tests/test-futimens.c: Likewise.
26810         * tests/test-fwritable.c: Likewise.
26811         * tests/test-fwriting.c: Likewise.
26812         * tests/test-getcwd.c: Likewise.
26813         * tests/test-getdate.c: Likewise.
26814         * tests/test-getdelim.c: Likewise.
26815         * tests/test-getdtablesize.c: Likewise.
26816         * tests/test-getgroups.c: Likewise.
26817         * tests/test-getline.c: Likewise.
26818         * tests/test-getndelim2.c: Likewise.
26819         * tests/test-glob.c: Likewise.
26820         * tests/test-hash.c: Likewise.
26821         * tests/test-i-ring.c: Likewise.
26822         * tests/test-iconv-utf.c: Likewise.
26823         * tests/test-iconv.c: Likewise.
26824         * tests/test-idpriv-drop.c: Likewise.
26825         * tests/test-idpriv-droptemp.c: Likewise.
26826         * tests/test-inet_ntop.c: Likewise.
26827         * tests/test-inet_pton.c: Likewise.
26828         * tests/test-isblank.c: Likewise.
26829         * tests/test-isfinite.c: Likewise.
26830         * tests/test-isinf.c: Likewise.
26831         * tests/test-isnan.c: Likewise.
26832         * tests/test-isnand.h: Likewise.
26833         * tests/test-isnanf.h: Likewise.
26834         * tests/test-isnanl.h: Likewise.
26835         * tests/test-lchown.c: Likewise.
26836         * tests/test-ldexpl.c: Likewise.
26837         * tests/test-link.c: Likewise.
26838         * tests/test-linkat.c: Likewise.
26839         * tests/test-linked_list.c: Likewise.
26840         * tests/test-linkedhash_list.c: Likewise.
26841         * tests/test-localename.c: Likewise.
26842         * tests/test-lseek.c: Likewise.
26843         * tests/test-lstat.c: Likewise.
26844         * tests/test-mbmemcasecmp.c: Likewise.
26845         * tests/test-mbmemcasecoll.c: Likewise.
26846         * tests/test-mbrtowc.c: Likewise.
26847         * tests/test-mbscasecmp.c: Likewise.
26848         * tests/test-mbscasestr1.c: Likewise.
26849         * tests/test-mbscasestr2.c: Likewise.
26850         * tests/test-mbscasestr3.c: Likewise.
26851         * tests/test-mbscasestr4.c: Likewise.
26852         * tests/test-mbschr.c: Likewise.
26853         * tests/test-mbscspn.c: Likewise.
26854         * tests/test-mbsinit.c: Likewise.
26855         * tests/test-mbsncasecmp.c: Likewise.
26856         * tests/test-mbsnrtowcs.c: Likewise.
26857         * tests/test-mbspbrk.c: Likewise.
26858         * tests/test-mbspcasecmp.c: Likewise.
26859         * tests/test-mbsrchr.c: Likewise.
26860         * tests/test-mbsrtowcs.c: Likewise.
26861         * tests/test-mbsspn.c: Likewise.
26862         * tests/test-mbsstr1.c: Likewise.
26863         * tests/test-mbsstr2.c: Likewise.
26864         * tests/test-mbsstr3.c: Likewise.
26865         * tests/test-memchr.c: Likewise.
26866         * tests/test-memchr2.c: Likewise.
26867         * tests/test-memcmp.c: Likewise.
26868         * tests/test-memmem.c: Likewise.
26869         * tests/test-memrchr.c: Likewise.
26870         * tests/test-mkdir.c: Likewise.
26871         * tests/test-mkdirat.c: Likewise.
26872         * tests/test-mkfifo.c: Likewise.
26873         * tests/test-mkfifoat.c: Likewise.
26874         * tests/test-mknod.c: Likewise.
26875         * tests/test-nanosleep.c: Likewise.
26876         * tests/test-nl_langinfo.c: Likewise.
26877         * tests/test-obstack-printf.c: Likewise.
26878         * tests/test-open.c: Likewise.
26879         * tests/test-openat.c: Likewise.
26880         * tests/test-pipe-filter-gi1.c: Likewise.
26881         * tests/test-pipe-filter-gi2-main.c: Likewise.
26882         * tests/test-pipe-filter-ii1.c: Likewise.
26883         * tests/test-pipe-filter-ii2-main.c: Likewise.
26884         * tests/test-pipe2.c: Likewise.
26885         * tests/test-popen.h: Likewise.
26886         * tests/test-posixtm.c: Likewise.
26887         * tests/test-pread.c: Likewise.
26888         * tests/test-printf-frexp.c: Likewise.
26889         * tests/test-printf-frexpl.c: Likewise.
26890         * tests/test-printf-posix.c: Likewise.
26891         * tests/test-priv-set.c: Likewise.
26892         * tests/test-quotearg.c: Likewise.
26893         * tests/test-random_r.c: Likewise.
26894         * tests/test-rawmemchr.c: Likewise.
26895         * tests/test-rbtree_list.c: Likewise.
26896         * tests/test-rbtree_oset.c: Likewise.
26897         * tests/test-rbtreehash_list.c: Likewise.
26898         * tests/test-readlink.c: Likewise.
26899         * tests/test-remove.c: Likewise.
26900         * tests/test-rename.c: Likewise.
26901         * tests/test-renameat.c: Likewise.
26902         * tests/test-rmdir.c: Likewise.
26903         * tests/test-round1.c: Likewise.
26904         * tests/test-roundf1.c: Likewise.
26905         * tests/test-roundl.c: Likewise.
26906         * tests/test-safe-alloc.c: Likewise.
26907         * tests/test-sameacls.c: Likewise.
26908         * tests/test-set-mode-acl.c: Likewise.
26909         * tests/test-setenv.c: Likewise.
26910         * tests/test-sigaction.c: Likewise.
26911         * tests/test-signbit.c: Likewise.
26912         * tests/test-sleep.c: Likewise.
26913         * tests/test-snprintf-posix.c: Likewise.
26914         * tests/test-snprintf.c: Likewise.
26915         * tests/test-sprintf-posix.c: Likewise.
26916         * tests/test-stat-time.c: Likewise.
26917         * tests/test-stat.c: Likewise.
26918         * tests/test-strcasestr.c: Likewise.
26919         * tests/test-strchrnul.c: Likewise.
26920         * tests/test-strerror.c: Likewise.
26921         * tests/test-striconv.c: Likewise.
26922         * tests/test-striconveh.c: Likewise.
26923         * tests/test-striconveha.c: Likewise.
26924         * tests/test-strsignal.c: Likewise.
26925         * tests/test-strstr.c: Likewise.
26926         * tests/test-strtod.c: Likewise.
26927         * tests/test-strverscmp.c: Likewise.
26928         * tests/test-symlink.c: Likewise.
26929         * tests/test-symlinkat.c: Likewise.
26930         * tests/test-trunc1.c: Likewise.
26931         * tests/test-trunc2.c: Likewise.
26932         * tests/test-truncf1.c: Likewise.
26933         * tests/test-truncf2.c: Likewise.
26934         * tests/test-truncl.c: Likewise.
26935         * tests/test-uname.c: Likewise.
26936         * tests/test-unlink.c: Likewise.
26937         * tests/test-unlinkat.c: Likewise.
26938         * tests/test-unsetenv.c: Likewise.
26939         * tests/test-usleep.c: Likewise.
26940         * tests/test-utimens.c: Likewise.
26941         * tests/test-utimensat.c: Likewise.
26942         * tests/test-vasnprintf-posix.c: Likewise.
26943         * tests/test-vasnprintf-posix2.c: Likewise.
26944         * tests/test-vasnprintf.c: Likewise.
26945         * tests/test-vasprintf-posix.c: Likewise.
26946         * tests/test-vasprintf.c: Likewise.
26947         * tests/test-vdprintf-posix.c: Likewise.
26948         * tests/test-vfprintf-posix.c: Likewise.
26949         * tests/test-vprintf-posix.c: Likewise.
26950         * tests/test-vsnprintf-posix.c: Likewise.
26951         * tests/test-vsnprintf.c: Likewise.
26952         * tests/test-vsprintf-posix.c: Likewise.
26953         * tests/test-wcrtomb.c: Likewise.
26954         * tests/test-wcsnrtombs.c: Likewise.
26955         * tests/test-wcsrtombs.c: Likewise.
26956         * tests/test-wctype.c: Likewise.
26957         * tests/test-wcwidth.c: Likewise.
26958         * tests/test-xfprintf-posix.c: Likewise.
26959         * tests/test-xmemdup0.c: Likewise.
26960         * tests/test-xprintf-posix.c: Likewise.
26961         * tests/test-xvasprintf.c: Likewise.
26962         * tests/unicase/test-locale-language.c: Likewise.
26963         * tests/unicase/test-mapping-part1.h: Likewise.
26964         * tests/unicase/test-predicate-part1.h: Likewise.
26965         * tests/unicase/test-u8-casecmp.c: Likewise.
26966         * tests/unicase/test-u8-casecoll.c: Likewise.
26967         * tests/unicase/test-u8-casefold.c: Likewise.
26968         * tests/unicase/test-u8-is-cased.c: Likewise.
26969         * tests/unicase/test-u8-is-casefolded.c: Likewise.
26970         * tests/unicase/test-u8-is-lowercase.c: Likewise.
26971         * tests/unicase/test-u8-is-titlecase.c: Likewise.
26972         * tests/unicase/test-u8-is-uppercase.c: Likewise.
26973         * tests/unicase/test-u8-tolower.c: Likewise.
26974         * tests/unicase/test-u8-totitle.c: Likewise.
26975         * tests/unicase/test-u8-toupper.c: Likewise.
26976         * tests/unicase/test-u16-casecmp.c: Likewise.
26977         * tests/unicase/test-u16-casecoll.c: Likewise.
26978         * tests/unicase/test-u16-casefold.c: Likewise.
26979         * tests/unicase/test-u16-is-cased.c: Likewise.
26980         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26981         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26982         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26983         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26984         * tests/unicase/test-u16-tolower.c: Likewise.
26985         * tests/unicase/test-u16-totitle.c: Likewise.
26986         * tests/unicase/test-u16-toupper.c: Likewise.
26987         * tests/unicase/test-u32-casecmp.c: Likewise.
26988         * tests/unicase/test-u32-casecoll.c: Likewise.
26989         * tests/unicase/test-u32-casefold.c: Likewise.
26990         * tests/unicase/test-u32-is-cased.c: Likewise.
26991         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26992         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26993         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26994         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26995         * tests/unicase/test-u32-tolower.c: Likewise.
26996         * tests/unicase/test-u32-totitle.c: Likewise.
26997         * tests/unicase/test-u32-toupper.c: Likewise.
26998         * tests/unicase/test-ulc-casecmp.c: Likewise.
26999         * tests/unicase/test-ulc-casecoll.c: Likewise.
27000         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
27001         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
27002         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
27003         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
27004         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
27005         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
27006         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
27007         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
27008         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
27009         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
27010         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
27011         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
27012         * tests/unictype/test-bidi_byname.c: Likewise.
27013         * tests/unictype/test-bidi_name.c: Likewise.
27014         * tests/unictype/test-bidi_of.c: Likewise.
27015         * tests/unictype/test-bidi_test.c: Likewise.
27016         * tests/unictype/test-block_list.c: Likewise.
27017         * tests/unictype/test-block_of.c: Likewise.
27018         * tests/unictype/test-block_test.c: Likewise.
27019         * tests/unictype/test-categ_and.c: Likewise.
27020         * tests/unictype/test-categ_and_not.c: Likewise.
27021         * tests/unictype/test-categ_byname.c: Likewise.
27022         * tests/unictype/test-categ_name.c: Likewise.
27023         * tests/unictype/test-categ_none.c: Likewise.
27024         * tests/unictype/test-categ_of.c: Likewise.
27025         * tests/unictype/test-categ_or.c: Likewise.
27026         * tests/unictype/test-categ_test_withtable.c: Likewise.
27027         * tests/unictype/test-combining.c: Likewise.
27028         * tests/unictype/test-decdigit.c: Likewise.
27029         * tests/unictype/test-digit.c: Likewise.
27030         * tests/unictype/test-mirror.c: Likewise.
27031         * tests/unictype/test-numeric.c: Likewise.
27032         * tests/unictype/test-pr_byname.c: Likewise.
27033         * tests/unictype/test-pr_test.c: Likewise.
27034         * tests/unictype/test-predicate-part1.h: Likewise.
27035         * tests/unictype/test-scripts.c: Likewise.
27036         * tests/unictype/test-sy_c_ident.c: Likewise.
27037         * tests/unictype/test-sy_java_ident.c: Likewise.
27038         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
27039         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
27040         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
27041         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
27042         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
27043         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
27044         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
27045         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
27046         * tests/uninorm/test-canonical-decomposition.c: Likewise.
27047         * tests/uninorm/test-compat-decomposition.c: Likewise.
27048         * tests/uninorm/test-composition.c: Likewise.
27049         * tests/uninorm/test-decomposing-form.c: Likewise.
27050         * tests/uninorm/test-decomposition.c: Likewise.
27051         * tests/uninorm/test-u8-nfc.c: Likewise.
27052         * tests/uninorm/test-u8-nfd.c: Likewise.
27053         * tests/uninorm/test-u8-nfkc.c: Likewise.
27054         * tests/uninorm/test-u8-nfkd.c: Likewise.
27055         * tests/uninorm/test-u8-normcmp.c: Likewise.
27056         * tests/uninorm/test-u8-normcoll.c: Likewise.
27057         * tests/uninorm/test-u16-nfc.c: Likewise.
27058         * tests/uninorm/test-u16-nfd.c: Likewise.
27059         * tests/uninorm/test-u16-nfkc.c: Likewise.
27060         * tests/uninorm/test-u16-nfkd.c: Likewise.
27061         * tests/uninorm/test-u16-normcmp.c: Likewise.
27062         * tests/uninorm/test-u16-normcoll.c: Likewise.
27063         * tests/uninorm/test-u32-nfc.c: Likewise.
27064         * tests/uninorm/test-u32-nfd.c: Likewise.
27065         * tests/uninorm/test-u32-nfkc.c: Likewise.
27066         * tests/uninorm/test-u32-nfkd.c: Likewise.
27067         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27068         * tests/uninorm/test-u32-normcmp.c: Likewise.
27069         * tests/uninorm/test-u32-normcoll.c: Likewise.
27070         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
27071         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
27072         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
27073         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
27074         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
27075         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
27076         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27077         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27078         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
27079         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
27080         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
27081         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
27082         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
27083         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27084         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27085         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
27086         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
27087         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
27088         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
27089         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
27090         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27091         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27092         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
27093         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
27094         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
27095         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
27096         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27097         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27098         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27099         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
27100         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
27101         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
27102         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
27103         * tests/uniwidth/test-u8-strwidth.c: Likewise.
27104         * tests/uniwidth/test-u8-width.c: Likewise.
27105         * tests/uniwidth/test-u16-strwidth.c: Likewise.
27106         * tests/uniwidth/test-u16-width.c: Likewise.
27107         * tests/uniwidth/test-u32-strwidth.c: Likewise.
27108         * tests/uniwidth/test-u32-width.c: Likewise.
27109         * tests/uniwidth/test-uc_width.c: Likewise.
27110         * tests/uniwidth/test-uc_width2.c: Likewise.
27111         * modules/acl-tests (Files): Add tests/macros.h.
27112         * modules/areadlink-tests (Files): Likewise.
27113         * modules/areadlink-with-size-tests (Files): Likewise.
27114         * modules/areadlinkat-tests (Files): Likewise.
27115         * modules/areadlinkat-with-size-tests (Files): Likewise.
27116         * modules/argmatch-tests (Files): Likewise.
27117         * modules/argv-iter-tests (Files): Likewise.
27118         * modules/array-list-tests (Files): Likewise.
27119         * modules/array-mergesort-tests (Files): Likewise.
27120         * modules/array-oset-tests (Files): Likewise.
27121         * modules/avltree-list-tests (Files): Likewise.
27122         * modules/avltree-oset-tests (Files): Likewise.
27123         * modules/avltreehash-list-tests (Files): Likewise.
27124         * modules/base64-tests (Files): Likewise.
27125         * modules/binary-io-tests (Files): Likewise.
27126         * modules/bitrotate-tests (Files): Likewise.
27127         * modules/btowc-tests (Files): Likewise.
27128         * modules/byteswap-tests (Files): Likewise.
27129         * modules/c-ctype-tests (Files): Likewise.
27130         * modules/c-stack-tests (Files): Likewise.
27131         * modules/c-strcase-tests (Files): Likewise.
27132         * modules/c-strcasestr-tests (Files): Likewise.
27133         * modules/c-strstr-tests (Files): Likewise.
27134         * modules/canonicalize-lgpl-tests (Files): Likewise.
27135         * modules/canonicalize-tests (Files): Likewise.
27136         * modules/carray-list-tests (Files): Likewise.
27137         * modules/ceilf-tests (Files): Likewise.
27138         * modules/ceill-tests (Files): Likewise.
27139         * modules/chown-tests (Files): Likewise.
27140         * modules/cloexec-tests (Files): Likewise.
27141         * modules/copy-file-tests (Files): Likewise.
27142         * modules/count-one-bits-tests (Files): Likewise.
27143         * modules/dprintf-posix-tests (Files): Likewise.
27144         * modules/dup2-tests (Files): Likewise.
27145         * modules/dup3-tests (Files): Likewise.
27146         * modules/duplocale-tests (Files): Likewise.
27147         * modules/fbufmode-tests (Files): Likewise.
27148         * modules/fchdir-tests (Files): Likewise.
27149         * modules/fcntl-safer-tests (Files): Likewise.
27150         * modules/fcntl-tests (Files): Likewise.
27151         * modules/fdopendir-tests (Files): Likewise.
27152         * modules/fdutimensat-tests (Files): Likewise.
27153         * modules/fflush-tests (Files): Likewise.
27154         * modules/filevercmp-tests (Files): Likewise.
27155         * modules/flock-tests (Files): Likewise.
27156         * modules/floorf-tests (Files): Likewise.
27157         * modules/floorl-tests (Files): Likewise.
27158         * modules/fnmatch-tests (Files): Likewise.
27159         * modules/fopen-safer-tests (Files): Likewise.
27160         * modules/fopen-tests (Files): Likewise.
27161         * modules/fpending-tests (Files): Likewise.
27162         * modules/fprintf-posix-tests (Files): Likewise.
27163         * modules/fpurge-tests (Files): Likewise.
27164         * modules/freadable-tests (Files): Likewise.
27165         * modules/freadahead-tests (Files): Likewise.
27166         * modules/freading-tests (Files): Likewise.
27167         * modules/freadptr-tests (Files): Likewise.
27168         * modules/freadseek-tests (Files): Likewise.
27169         * modules/freopen-tests (Files): Likewise.
27170         * modules/frexp-nolibm-tests (Files): Likewise.
27171         * modules/frexp-tests (Files): Likewise.
27172         * modules/frexpl-nolibm-tests (Files): Likewise.
27173         * modules/frexpl-tests (Files): Likewise.
27174         * modules/fseek-tests (Files): Likewise.
27175         * modules/fseeko-tests (Files): Likewise.
27176         * modules/fstrcmp-tests (Files): Likewise.
27177         * modules/fsync-tests (Files): Likewise.
27178         * modules/ftell-tests (Files): Likewise.
27179         * modules/ftello-tests (Files): Likewise.
27180         * modules/func-tests (Files): Likewise.
27181         * modules/futimens-tests (Files): Likewise.
27182         * modules/fwritable-tests (Files): Likewise.
27183         * modules/fwriting-tests (Files): Likewise.
27184         * modules/getcwd-tests (Files): Likewise.
27185         * modules/getdate-tests (Files): Likewise.
27186         * modules/getdelim-tests (Files): Likewise.
27187         * modules/getdtablesize-tests (Files): Likewise.
27188         * modules/getgroups-tests (Files): Likewise.
27189         * modules/getline-tests (Files): Likewise.
27190         * modules/getndelim2-tests (Files): Likewise.
27191         * modules/glob-tests (Files): Likewise.
27192         * modules/hash-tests (Files): Likewise.
27193         * modules/i-ring-tests (Files): Likewise.
27194         * modules/iconv-tests (Files): Likewise.
27195         * modules/iconv_open-utf-tests (Files): Likewise.
27196         * modules/idpriv-drop-tests (Files): Likewise.
27197         * modules/idpriv-droptemp-tests (Files): Likewise.
27198         * modules/inet_ntop-tests (Files): Likewise.
27199         * modules/inet_pton-tests (Files): Likewise.
27200         * modules/isblank-tests (Files): Likewise.
27201         * modules/isfinite-tests (Files): Likewise.
27202         * modules/isinf-tests (Files): Likewise.
27203         * modules/isnan-tests (Files): Likewise.
27204         * modules/isnand-nolibm-tests (Files): Likewise.
27205         * modules/isnand-tests (Files): Likewise.
27206         * modules/isnanf-nolibm-tests (Files): Likewise.
27207         * modules/isnanf-tests (Files): Likewise.
27208         * modules/isnanl-nolibm-tests (Files): Likewise.
27209         * modules/isnanl-tests (Files): Likewise.
27210         * modules/lchown-tests (Files): Likewise.
27211         * modules/ldexpl-tests (Files): Likewise.
27212         * modules/link-tests (Files): Likewise.
27213         * modules/linkat-tests (Files): Likewise.
27214         * modules/linked-list-tests (Files): Likewise.
27215         * modules/linkedhash-list-tests (Files): Likewise.
27216         * modules/localename-tests (Files): Likewise.
27217         * modules/lseek-tests (Files): Likewise.
27218         * modules/lstat-tests (Files): Likewise.
27219         * modules/mbmemcasecmp-tests (Files): Likewise.
27220         * modules/mbmemcasecoll-tests (Files): Likewise.
27221         * modules/mbrtowc-tests (Files): Likewise.
27222         * modules/mbscasecmp-tests (Files): Likewise.
27223         * modules/mbscasestr-tests (Files): Likewise.
27224         * modules/mbschr-tests (Files): Likewise.
27225         * modules/mbscspn-tests (Files): Likewise.
27226         * modules/mbsinit-tests (Files): Likewise.
27227         * modules/mbsncasecmp-tests (Files): Likewise.
27228         * modules/mbsnrtowcs-tests (Files): Likewise.
27229         * modules/mbspbrk-tests (Files): Likewise.
27230         * modules/mbspcasecmp-tests (Files): Likewise.
27231         * modules/mbsrchr-tests (Files): Likewise.
27232         * modules/mbsrtowcs-tests (Files): Likewise.
27233         * modules/mbsspn-tests (Files): Likewise.
27234         * modules/mbsstr-tests (Files): Likewise.
27235         * modules/memchr-tests (Files): Likewise.
27236         * modules/memchr2-tests (Files): Likewise.
27237         * modules/memcmp-tests (Files): Likewise.
27238         * modules/memmem-tests (Files): Likewise.
27239         * modules/memrchr-tests (Files): Likewise.
27240         * modules/mkdir-tests (Files): Likewise.
27241         * modules/mkfifo-tests (Files): Likewise.
27242         * modules/mkfifoat-tests (Files): Likewise.
27243         * modules/mknod-tests (Files): Likewise.
27244         * modules/nanosleep-tests (Files): Likewise.
27245         * modules/nl_langinfo-tests (Files): Likewise.
27246         * modules/obstack-printf-tests (Files): Likewise.
27247         * modules/open-tests (Files): Likewise.
27248         * modules/openat-tests (Files): Likewise.
27249         * modules/pipe-filter-gi-tests (Files): Likewise.
27250         * modules/pipe-filter-ii-tests (Files): Likewise.
27251         * modules/pipe2-tests (Files): Likewise.
27252         * modules/popen-safer-tests (Files): Likewise.
27253         * modules/popen-tests (Files): Likewise.
27254         * modules/posixtm-tests (Files): Likewise.
27255         * modules/pread-tests (Files): Likewise.
27256         * modules/printf-frexp-tests (Files): Likewise.
27257         * modules/printf-frexpl-tests (Files): Likewise.
27258         * modules/printf-posix-tests (Files): Likewise.
27259         * modules/priv-set-tests (Files): Likewise.
27260         * modules/quotearg-tests (Files): Likewise.
27261         * modules/random_r-tests (Files): Likewise.
27262         * modules/rawmemchr-tests (Files): Likewise.
27263         * modules/rbtree-list-tests (Files): Likewise.
27264         * modules/rbtree-oset-tests (Files): Likewise.
27265         * modules/rbtreehash-list-tests (Files): Likewise.
27266         * modules/readlink-tests (Files): Likewise.
27267         * modules/remove-tests (Files): Likewise.
27268         * modules/rename-tests (Files): Likewise.
27269         * modules/renameat-tests (Files): Likewise.
27270         * modules/rmdir-tests (Files): Likewise.
27271         * modules/round-tests (Files): Likewise.
27272         * modules/roundf-tests (Files): Likewise.
27273         * modules/roundl-tests (Files): Likewise.
27274         * modules/safe-alloc-tests (Files): Likewise.
27275         * modules/setenv-tests (Files): Likewise.
27276         * modules/sigaction-tests (Files): Likewise.
27277         * modules/signbit-tests (Files): Likewise.
27278         * modules/sleep-tests (Files): Likewise.
27279         * modules/snprintf-posix-tests (Files): Likewise.
27280         * modules/snprintf-tests (Files): Likewise.
27281         * modules/sprintf-posix-tests (Files): Likewise.
27282         * modules/stat-tests (Files): Likewise.
27283         * modules/stat-time-tests (Files): Likewise.
27284         * modules/strcasestr-tests (Files): Likewise.
27285         * modules/strchrnul-tests (Files): Likewise.
27286         * modules/strerror-tests (Files): Likewise.
27287         * modules/striconv-tests (Files): Likewise.
27288         * modules/striconveh-tests (Files): Likewise.
27289         * modules/striconveha-tests (Files): Likewise.
27290         * modules/strsignal-tests (Files): Likewise.
27291         * modules/strstr-tests (Files): Likewise.
27292         * modules/strtod-tests (Files): Likewise.
27293         * modules/strverscmp-tests (Files): Likewise.
27294         * modules/symlink-tests (Files): Likewise.
27295         * modules/symlinkat-tests (Files): Likewise.
27296         * modules/trunc-tests (Files): Likewise.
27297         * modules/truncf-tests (Files): Likewise.
27298         * modules/truncl-tests (Files): Likewise.
27299         * modules/uname-tests (Files): Likewise.
27300         * modules/unicase/cased-tests (Files): Likewise.
27301         * modules/unicase/ignorable-tests (Files): Likewise.
27302         * modules/unicase/locale-language-tests (Files): Likewise.
27303         * modules/unicase/tolower-tests (Files): Likewise.
27304         * modules/unicase/totitle-tests (Files): Likewise.
27305         * modules/unicase/toupper-tests (Files): Likewise.
27306         * modules/unicase/u8-casecmp-tests (Files): Likewise.
27307         * modules/unicase/u8-casecoll-tests (Files): Likewise.
27308         * modules/unicase/u8-casefold-tests (Files): Likewise.
27309         * modules/unicase/u8-is-cased-tests (Files): Likewise.
27310         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
27311         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
27312         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
27313         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
27314         * modules/unicase/u8-tolower-tests (Files): Likewise.
27315         * modules/unicase/u8-totitle-tests (Files): Likewise.
27316         * modules/unicase/u8-toupper-tests (Files): Likewise.
27317         * modules/unicase/u16-casecmp-tests (Files): Likewise.
27318         * modules/unicase/u16-casecoll-tests (Files): Likewise.
27319         * modules/unicase/u16-casefold-tests (Files): Likewise.
27320         * modules/unicase/u16-is-cased-tests (Files): Likewise.
27321         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
27322         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
27323         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
27324         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
27325         * modules/unicase/u16-tolower-tests (Files): Likewise.
27326         * modules/unicase/u16-totitle-tests (Files): Likewise.
27327         * modules/unicase/u16-toupper-tests (Files): Likewise.
27328         * modules/unicase/u32-casecmp-tests (Files): Likewise.
27329         * modules/unicase/u32-casecoll-tests (Files): Likewise.
27330         * modules/unicase/u32-casefold-tests (Files): Likewise.
27331         * modules/unicase/u32-is-cased-tests (Files): Likewise.
27332         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
27333         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
27334         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
27335         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
27336         * modules/unicase/u32-tolower-tests (Files): Likewise.
27337         * modules/unicase/u32-totitle-tests (Files): Likewise.
27338         * modules/unicase/u32-toupper-tests (Files): Likewise.
27339         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
27340         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
27341         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
27342         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
27343         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
27344         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
27345         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
27346         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
27347         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
27348         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
27349         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
27350         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
27351         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
27352         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
27353         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
27354         * modules/unictype/bidicategory-name-tests (Files): Likewise.
27355         * modules/unictype/bidicategory-of-tests (Files): Likewise.
27356         * modules/unictype/bidicategory-test-tests (Files): Likewise.
27357         * modules/unictype/block-list-tests (Files): Likewise.
27358         * modules/unictype/block-of-tests (Files): Likewise.
27359         * modules/unictype/block-test-tests (Files): Likewise.
27360         * modules/unictype/category-C-tests (Files): Likewise.
27361         * modules/unictype/category-Cc-tests (Files): Likewise.
27362         * modules/unictype/category-Cf-tests (Files): Likewise.
27363         * modules/unictype/category-Cn-tests (Files): Likewise.
27364         * modules/unictype/category-Co-tests (Files): Likewise.
27365         * modules/unictype/category-Cs-tests (Files): Likewise.
27366         * modules/unictype/category-L-tests (Files): Likewise.
27367         * modules/unictype/category-Ll-tests (Files): Likewise.
27368         * modules/unictype/category-Lm-tests (Files): Likewise.
27369         * modules/unictype/category-Lo-tests (Files): Likewise.
27370         * modules/unictype/category-Lt-tests (Files): Likewise.
27371         * modules/unictype/category-Lu-tests (Files): Likewise.
27372         * modules/unictype/category-M-tests (Files): Likewise.
27373         * modules/unictype/category-Mc-tests (Files): Likewise.
27374         * modules/unictype/category-Me-tests (Files): Likewise.
27375         * modules/unictype/category-Mn-tests (Files): Likewise.
27376         * modules/unictype/category-N-tests (Files): Likewise.
27377         * modules/unictype/category-Nd-tests (Files): Likewise.
27378         * modules/unictype/category-Nl-tests (Files): Likewise.
27379         * modules/unictype/category-No-tests (Files): Likewise.
27380         * modules/unictype/category-P-tests (Files): Likewise.
27381         * modules/unictype/category-Pc-tests (Files): Likewise.
27382         * modules/unictype/category-Pd-tests (Files): Likewise.
27383         * modules/unictype/category-Pe-tests (Files): Likewise.
27384         * modules/unictype/category-Pf-tests (Files): Likewise.
27385         * modules/unictype/category-Pi-tests (Files): Likewise.
27386         * modules/unictype/category-Po-tests (Files): Likewise.
27387         * modules/unictype/category-Ps-tests (Files): Likewise.
27388         * modules/unictype/category-S-tests (Files): Likewise.
27389         * modules/unictype/category-Sc-tests (Files): Likewise.
27390         * modules/unictype/category-Sk-tests (Files): Likewise.
27391         * modules/unictype/category-Sm-tests (Files): Likewise.
27392         * modules/unictype/category-So-tests (Files): Likewise.
27393         * modules/unictype/category-Z-tests (Files): Likewise.
27394         * modules/unictype/category-Zl-tests (Files): Likewise.
27395         * modules/unictype/category-Zp-tests (Files): Likewise.
27396         * modules/unictype/category-Zs-tests (Files): Likewise.
27397         * modules/unictype/category-and-not-tests (Files): Likewise.
27398         * modules/unictype/category-and-tests (Files): Likewise.
27399         * modules/unictype/category-byname-tests (Files): Likewise.
27400         * modules/unictype/category-name-tests (Files): Likewise.
27401         * modules/unictype/category-none-tests (Files): Likewise.
27402         * modules/unictype/category-of-tests (Files): Likewise.
27403         * modules/unictype/category-or-tests (Files): Likewise.
27404         * modules/unictype/category-test-withtable-tests (Files): Likewise.
27405         * modules/unictype/combining-class-tests (Files): Likewise.
27406         * modules/unictype/ctype-alnum-tests (Files): Likewise.
27407         * modules/unictype/ctype-alpha-tests (Files): Likewise.
27408         * modules/unictype/ctype-blank-tests (Files): Likewise.
27409         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
27410         * modules/unictype/ctype-digit-tests (Files): Likewise.
27411         * modules/unictype/ctype-graph-tests (Files): Likewise.
27412         * modules/unictype/ctype-lower-tests (Files): Likewise.
27413         * modules/unictype/ctype-print-tests (Files): Likewise.
27414         * modules/unictype/ctype-punct-tests (Files): Likewise.
27415         * modules/unictype/ctype-space-tests (Files): Likewise.
27416         * modules/unictype/ctype-upper-tests (Files): Likewise.
27417         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
27418         * modules/unictype/decimal-digit-tests (Files): Likewise.
27419         * modules/unictype/digit-tests (Files): Likewise.
27420         * modules/unictype/mirror-tests (Files): Likewise.
27421         * modules/unictype/numeric-tests (Files): Likewise.
27422         * modules/unictype/property-alphabetic-tests (Files): Likewise.
27423         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
27424         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
27425         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
27426         Likewise.
27427         * modules/unictype/property-bidi-block-separator-tests (Files):
27428         Likewise.
27429         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
27430         Likewise.
27431         * modules/unictype/property-bidi-common-separator-tests (Files):
27432         Likewise.
27433         * modules/unictype/property-bidi-control-tests (Files): Likewise.
27434         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
27435         Likewise.
27436         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
27437         Likewise.
27438         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
27439         Likewise.
27440         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
27441         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
27442         Likewise.
27443         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
27444         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
27445         Likewise.
27446         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
27447         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
27448         * modules/unictype/property-bidi-segment-separator-tests (Files):
27449         Likewise.
27450         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
27451         * modules/unictype/property-byname-tests (Files): Likewise.
27452         * modules/unictype/property-combining-tests (Files): Likewise.
27453         * modules/unictype/property-composite-tests (Files): Likewise.
27454         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
27455         * modules/unictype/property-dash-tests (Files): Likewise.
27456         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
27457         * modules/unictype/property-default-ignorable-code-point-tests (Files):
27458         Likewise.
27459         * modules/unictype/property-deprecated-tests (Files): Likewise.
27460         * modules/unictype/property-diacritic-tests (Files): Likewise.
27461         * modules/unictype/property-extender-tests (Files): Likewise.
27462         * modules/unictype/property-format-control-tests (Files): Likewise.
27463         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
27464         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
27465         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
27466         * modules/unictype/property-hex-digit-tests (Files): Likewise.
27467         * modules/unictype/property-hyphen-tests (Files): Likewise.
27468         * modules/unictype/property-id-continue-tests (Files): Likewise.
27469         * modules/unictype/property-id-start-tests (Files): Likewise.
27470         * modules/unictype/property-ideographic-tests (Files): Likewise.
27471         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
27472         * modules/unictype/property-ids-trinary-operator-tests (Files):
27473         Likewise.
27474         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
27475         * modules/unictype/property-iso-control-tests (Files): Likewise.
27476         * modules/unictype/property-join-control-tests (Files): Likewise.
27477         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
27478         * modules/unictype/property-line-separator-tests (Files): Likewise.
27479         * modules/unictype/property-logical-order-exception-tests (Files):
27480         Likewise.
27481         * modules/unictype/property-lowercase-tests (Files): Likewise.
27482         * modules/unictype/property-math-tests (Files): Likewise.
27483         * modules/unictype/property-non-break-tests (Files): Likewise.
27484         * modules/unictype/property-not-a-character-tests (Files): Likewise.
27485         * modules/unictype/property-numeric-tests (Files): Likewise.
27486         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
27487         * modules/unictype/property-other-default-ignorable-code-point-tests
27488         (Files): Likewise.
27489         * modules/unictype/property-other-grapheme-extend-tests (Files):
27490         Likewise.
27491         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
27492         * modules/unictype/property-other-id-start-tests (Files): Likewise.
27493         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
27494         * modules/unictype/property-other-math-tests (Files): Likewise.
27495         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
27496         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
27497         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
27498         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
27499         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
27500         * modules/unictype/property-private-use-tests (Files): Likewise.
27501         * modules/unictype/property-punctuation-tests (Files): Likewise.
27502         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
27503         * modules/unictype/property-radical-tests (Files): Likewise.
27504         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
27505         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
27506         * modules/unictype/property-space-tests (Files): Likewise.
27507         * modules/unictype/property-terminal-punctuation-tests (Files):
27508         Likewise.
27509         * modules/unictype/property-test-tests (Files): Likewise.
27510         * modules/unictype/property-titlecase-tests (Files): Likewise.
27511         * modules/unictype/property-unassigned-code-value-tests (Files):
27512         Likewise.
27513         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
27514         * modules/unictype/property-uppercase-tests (Files): Likewise.
27515         * modules/unictype/property-variation-selector-tests (Files): Likewise.
27516         * modules/unictype/property-white-space-tests (Files): Likewise.
27517         * modules/unictype/property-xid-continue-tests (Files): Likewise.
27518         * modules/unictype/property-xid-start-tests (Files): Likewise.
27519         * modules/unictype/property-zero-width-tests (Files): Likewise.
27520         * modules/unictype/scripts-tests (Files): Likewise.
27521         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
27522         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
27523         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
27524         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
27525         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
27526         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
27527         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
27528         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
27529         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
27530         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
27531         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
27532         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
27533         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
27534         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
27535         * modules/uninorm/composition-tests (Files): Likewise.
27536         * modules/uninorm/decomposing-form-tests (Files): Likewise.
27537         * modules/uninorm/decomposition-tests (Files): Likewise.
27538         * modules/uninorm/filter-tests (Files): Likewise.
27539         * modules/uninorm/nfc-tests (Files): Likewise.
27540         * modules/uninorm/nfd-tests (Files): Likewise.
27541         * modules/uninorm/nfkc-tests (Files): Likewise.
27542         * modules/uninorm/nfkd-tests (Files): Likewise.
27543         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
27544         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
27545         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
27546         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
27547         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
27548         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
27549         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
27550         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27551         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
27552         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
27553         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
27554         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
27555         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27556         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
27557         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
27558         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
27559         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
27560         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27561         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
27562         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
27563         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
27564         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
27565         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27566         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
27567         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
27568         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
27569         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
27570         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
27571         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
27572         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
27573         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
27574         * modules/uniwidth/u8-width-tests (Files): Likewise.
27575         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
27576         * modules/uniwidth/u16-width-tests (Files): Likewise.
27577         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
27578         * modules/uniwidth/u32-width-tests (Files): Likewise.
27579         * modules/uniwidth/width-tests (Files): Likewise.
27580         * modules/unlink-tests (Files): Likewise.
27581         * modules/unsetenv-tests (Files): Likewise.
27582         * modules/usleep-tests (Files): Likewise.
27583         * modules/utimens-tests (Files): Likewise.
27584         * modules/utimensat-tests (Files): Likewise.
27585         * modules/vasnprintf-posix-tests (Files): Likewise.
27586         * modules/vasnprintf-tests (Files): Likewise.
27587         * modules/vasprintf-posix-tests (Files): Likewise.
27588         * modules/vasprintf-tests (Files): Likewise.
27589         * modules/vdprintf-posix-tests (Files): Likewise.
27590         * modules/vfprintf-posix-tests (Files): Likewise.
27591         * modules/vprintf-posix-tests (Files): Likewise.
27592         * modules/vsnprintf-posix-tests (Files): Likewise.
27593         * modules/vsnprintf-tests (Files): Likewise.
27594         * modules/vsprintf-posix-tests (Files): Likewise.
27595         * modules/wcrtomb-tests (Files): Likewise.
27596         * modules/wcsnrtombs-tests (Files): Likewise.
27597         * modules/wcsrtombs-tests (Files): Likewise.
27598         * modules/wctype-tests (Files): Likewise.
27599         * modules/wcwidth-tests (Files): Likewise.
27600         * modules/xmemdup0-tests (Files): Likewise.
27601         * modules/xprintf-posix-tests (Files): Likewise.
27602         * modules/xvasprintf-tests (Files): Likewise.
27603
27604 2009-12-24  Eric Blake  <ebb9@byu.net>
27605
27606         test-nanosleep: fix typo
27607         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
27608         patch.
27609         Reported by Bruno Haible.
27610
27611 2009-12-24  Bruno Haible  <bruno@clisp.org>
27612
27613         Reduce namespace pollution on glibc systems.
27614         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
27615         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
27616         systems.
27617         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
27618         <getopt.h> on glibc systems.
27619         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
27620         systems.
27621         * lib/fcntl.c: Include <unistd.h> here instead.
27622
27623 2009-12-24  Bruno Haible  <bruno@clisp.org>
27624
27625         * lib/stdlib.in.h (includes): Fix typo in today's commit.
27626
27627 2009-12-24  Eric Blake  <ebb9@byu.net>
27628
27629         tests: add signature checks
27630         * tests/signature.h (SIGNATURE_CHECK): New file.
27631         * modules/atexit-tests (Files): Use it.
27632         * modules/btowc-tests (Files): Likewise.
27633         * modules/canonicalize-lgpl-tests (Files): Likewise.
27634         * modules/ceilf-tests (Files): Likewise.
27635         * modules/ceill-tests (Files): Likewise.
27636         * modules/chown-tests (Files): Likewise.
27637         * modules/dprintf-posix-tests (Files): Likewise.
27638         * modules/dup2-tests (Files): Likewise.
27639         * modules/dup3-tests (Files): Likewise.
27640         * modules/duplocale-tests (Files): Likewise.
27641         * modules/fchdir-tests (Files): Likewise.
27642         * modules/fcntl-tests (Files): Likewise.
27643         * modules/fdopendir-tests (Files): Likewise.
27644         * modules/fflush-tests (Files): Likewise.
27645         * modules/flock-tests (Files): Likewise.
27646         * modules/floorf-tests (Files): Likewise.
27647         * modules/floorl-tests (Files): Likewise.
27648         * modules/fnmatch-tests (Files): Likewise.
27649         * modules/fopen-tests (Files): Likewise.
27650         * modules/fprintf-posix-tests (Files): Likewise.
27651         * modules/freopen-tests (Files): Likewise.
27652         * modules/frexp-nolibm-tests (Files): Likewise.
27653         * modules/frexp-tests (Files): Likewise.
27654         * modules/frexpl-nolibm-tests (Files): Likewise.
27655         * modules/frexpl-tests (Files): Likewise.
27656         * modules/fseek-tests (Files): Likewise.
27657         * modules/fseeko-tests (Files): Likewise.
27658         * modules/fsync-tests (Files): Likewise.
27659         * modules/ftell-tests (Files): Likewise.
27660         * modules/ftello-tests (Files): Likewise.
27661         * modules/futimens-tests (Files): Likewise.
27662         * modules/getaddrinfo-tests (Files): Likewise.
27663         * modules/getcwd-tests (Files): Likewise.
27664         * modules/getdelim-tests (Files): Likewise.
27665         * modules/getdtablesize-tests (Files): Likewise.
27666         * modules/getgroups-tests (Files): Likewise.
27667         * modules/gethostname-tests (Files): Likewise.
27668         * modules/getline-tests (Files): Likewise.
27669         * modules/getopt-posix-tests (Files): Likewise.
27670         * modules/gettimeofday-tests (Files): Likewise.
27671         * modules/glob-tests (Files): Likewise.
27672         * modules/iconv-tests (Files): Likewise.
27673         * modules/inet_ntop-tests (Files): Likewise.
27674         * modules/inet_pton-tests (Files): Likewise.
27675         * modules/isblank-tests (Files): Likewise.
27676         * modules/lchown-tests (Files): Likewise.
27677         * modules/ldexpl-tests (Files): Likewise.
27678         * modules/link-tests (Files): Likewise.
27679         * modules/linkat-tests (Files): Likewise.
27680         * modules/lseek-tests (Files): Likewise.
27681         * modules/lstat-tests (Files): Likewise.
27682         * modules/mbrtowc-tests (Files): Likewise.
27683         * modules/mbsinit-tests (Files): Likewise.
27684         * modules/mbsnrtowcs-tests (Files): Likewise.
27685         * modules/mbsrtowcs-tests (Files): Likewise.
27686         * modules/memchr-tests (Files): Likewise.
27687         * modules/memcmp-tests (Files): Likewise.
27688         * modules/memmem-tests (Files): Likewise.
27689         * modules/memrchr-tests (Files): Likewise.
27690         * modules/mkdir-tests (Files): Likewise.
27691         * modules/mkfifo-tests (Files): Likewise.
27692         * modules/mkfifoat-tests (Files): Likewise.
27693         * modules/mknod-tests (Files): Likewise.
27694         * modules/nanosleep-tests (Files): Likewise.
27695         * modules/nl_langinfo-tests (Files): Likewise.
27696         * modules/obstack-printf-tests (Files): Likewise.
27697         * modules/open-tests (Files): Likewise.
27698         * modules/openat-tests (Files): Likewise.
27699         * modules/perror-tests (Files): Likewise.
27700         * modules/pipe2-tests (Files): Likewise.
27701         * modules/poll-tests (Files): Likewise.
27702         * modules/popen-tests (Files): Likewise.
27703         * modules/posix_spawn-tests (Files): Likewise.
27704         * modules/posix_spawnp-tests (Files): Likewise.
27705         * modules/pread-tests (Files): Likewise.
27706         * modules/printf-posix-tests (Files): Likewise.
27707         * modules/pty-tests (Files): Likewise.
27708         * modules/random_r-tests (Files): Likewise.
27709         * modules/rawmemchr-tests (Files): Likewise.
27710         * modules/readlink-tests (Files): Likewise.
27711         * modules/remove-tests (Files): Likewise.
27712         * modules/rename-tests (Files): Likewise.
27713         * modules/renameat-tests (Files): Likewise.
27714         * modules/rmdir-tests (Files): Likewise.
27715         * modules/round-tests (Files): Likewise.
27716         * modules/roundf-tests (Files): Likewise.
27717         * modules/roundl-tests (Files): Likewise.
27718         * modules/select-tests (Files): Likewise.
27719         * modules/setenv-tests (Files): Likewise.
27720         * modules/sigaction-tests (Files): Likewise.
27721         * modules/sleep-tests (Files): Likewise.
27722         * modules/snprintf-posix-tests (Files): Likewise.
27723         * modules/snprintf-tests (Files): Likewise.
27724         * modules/sprintf-posix-tests (Files): Likewise.
27725         * modules/stat-tests (Files): Likewise.
27726         * modules/strcasestr-tests (Files): Likewise.
27727         * modules/strchrnul-tests (Files): Likewise.
27728         * modules/strerror-tests (Files): Likewise.
27729         * modules/strsignal-tests (Files): Likewise.
27730         * modules/strstr-tests (Files): Likewise.
27731         * modules/strtod-tests (Files): Likewise.
27732         * modules/strverscmp-tests (Files): Likewise.
27733         * modules/symlink-tests (Files): Likewise.
27734         * modules/symlinkat-tests (Files): Likewise.
27735         * modules/times-tests (Files): Likewise.
27736         * modules/trunc-tests (Files): Likewise.
27737         * modules/truncf-tests (Files): Likewise.
27738         * modules/truncl-tests (Files): Likewise.
27739         * modules/tsearch-tests (Files): Likewise.
27740         * modules/uname-tests (Files): Likewise.
27741         * modules/unlink-tests (Files): Likewise.
27742         * modules/unsetenv-tests (Files): Likewise.
27743         * modules/usleep-tests (Files): Likewise.
27744         * modules/utimensat-tests (Files): Likewise.
27745         * modules/vasprintf-tests (Files): Likewise.
27746         * modules/vdprintf-posix-tests (Files): Likewise.
27747         * modules/vfprintf-posix-tests (Files): Likewise.
27748         * modules/vprintf-posix-tests (Files): Likewise.
27749         * modules/vsnprintf-posix-tests (Files): Likewise.
27750         * modules/vsnprintf-tests (Files): Likewise.
27751         * modules/vsprintf-posix-tests (Files): Likewise.
27752         * modules/wcrtomb-tests (Files): Likewise.
27753         * modules/wcsnrtombs-tests (Files): Likewise.
27754         * modules/wcsrtombs-tests (Files): Likewise.
27755         * modules/wcwidth-tests (Files): Likewise.
27756         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
27757         * tests/test-isinf.c (isinf): Likewise.
27758         * tests/test-isnan.c (isnan): Likewise.
27759         * tests/test-signbit.c (signbit): Likewise.
27760         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
27761         declaration, either as macro or with correct signature.
27762         (select): Ensure function under test is declared with correct
27763         signature in correct header.
27764         * tests/test-atexit.c (atexit): Likewise.
27765         * tests/test-btowc.c (btowc): Likewise.
27766         * tests/test-canonicalize-lgpl.c (realpath)
27767         (canonicalize_file_name): Likewise.
27768         * tests/test-ceilf1.c (ceilf): Likewise.
27769         * tests/test-ceill.c (ceill): Likewise.
27770         * tests/test-chown.c (chown): Likewise.
27771         * tests/test-dprintf-posix.c (dprintf): Likewise.
27772         * tests/test-dup2.c (dup2): Likewise.
27773         * tests/test-dup3.c (dup3): Likewise.
27774         * tests/test-duplocale.c (duplocale): Likewise.
27775         * tests/test-fchdir.c (fchdir): Likewise.
27776         * tests/test-fchownat.c (fchownat): Likewise.
27777         * tests/test-fcntl.c (fcntl): Likewise.
27778         * tests/test-fdopendir.c (fdopendir): Likewise.
27779         * tests/test-fflush.c (fflush): Likewise.
27780         * tests/test-flock.c (flock): Likewise.
27781         * tests/test-floorf1.c (floorf): Likewise.
27782         * tests/test-floorl.c (floorl): Likewise.
27783         * tests/test-fnmatch.c (fnmatch): Likewise.
27784         * tests/test-fopen.c (fopen): Likewise.
27785         * tests/test-fprintf-posix.c (fprintf): Likewise.
27786         * tests/test-freopen.c (freopen): Likewise.
27787         * tests/test-frexp.c (frexp): Likewise.
27788         * tests/test-frexpl.c (frexpl): Likewise.
27789         * tests/test-fseek.c (fseek): Likewise.
27790         * tests/test-fseeko.c (fseeko): Likewise.
27791         * tests/test-fstatat.c (fstatat): Likewise.
27792         * tests/test-fsync.c (fsync): Likewise.
27793         * tests/test-ftell.c (ftell): Likewise.
27794         * tests/test-ftello.c (ftello): Likewise.
27795         * tests/test-futimens.c (futimens): Likewise.
27796         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
27797         (gai_strerror): Likewise.
27798         * tests/test-getcwd.c (getcwd): Likewise.
27799         * tests/test-getdelim.c (getdelim): Likewise.
27800         * tests/test-getdtablesize.c (getdtablesize): Likewise.
27801         * tests/test-getgroups.c (getgroups): Likewise.
27802         * tests/test-gethostname.c (gethostname): Likewise.
27803         * tests/test-getline.c (getline): Likewise.
27804         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
27805         Likewise.
27806         * tests/test-gettimeofday.c (gettimeofday): Likewise.
27807         * tests/test-glob.c (glob, globfree): Likewise.
27808         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
27809         * tests/test-inet_ntop.c (inet_ntop): Likewise.
27810         * tests/test-inet_pton.c (inet_pton): Likewise.
27811         * tests/test-isblank.c (isblank): Likewise.
27812         * tests/test-lchown.c (lchown): Likewise.
27813         * tests/test-ldexpl.c (ldexpl): Likewise.
27814         * tests/test-link.c (link): Likewise.
27815         * tests/test-linkat.c (linkat): Likewise.
27816         * tests/test-lseek.c (lseek): Likewise.
27817         * tests/test-lstat.c (lstat): Likewise.
27818         * tests/test-mbrtowc.c (mbrtowc): Likewise.
27819         * tests/test-mbsinit.c (mbsinit): Likewise.
27820         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
27821         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
27822         * tests/test-memchr.c (memchr): Likewise.
27823         * tests/test-memcmp.c (memcmp): Likewise.
27824         * tests/test-memmem.c (memmem): Likewise.
27825         * tests/test-memrchr.c (memrchr): Likewise.
27826         * tests/test-mkdir.c (mkdir): Likewise.
27827         * tests/test-mkdirat.c (mkdirat): Likewise.
27828         * tests/test-mkfifo.c (mkfifo): Likewise.
27829         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
27830         * tests/test-mknod.c (mknod): Likewise.
27831         * tests/test-nanosleep.c (nanosleep): Likewise.
27832         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
27833         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
27834         Likewise.
27835         * tests/test-open.c (open): Likewise.
27836         * tests/test-openat.c (openat): Likewise.
27837         * tests/test-perror.c (perror): Likewise.
27838         * tests/test-pipe2.c (pipe2): Likewise.
27839         * tests/test-poll.c (poll): Likewise.
27840         * tests/test-popen.c (popen, pclose): Likewise.
27841         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
27842         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
27843         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
27844         (posix_spawn_file_actions_destroy)
27845         (posix_spawn_file_actions_addclose)
27846         (posix_spawn_file_actions_addopen)
27847         (posix_spawn_file_actions_adddup2): Likewise.
27848         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
27849         * tests/test-pread.c (pread): Likewise.
27850         * tests/test-printf-posix.c (printf): Likewise.
27851         * tests/test-pty.c (openpty, forkpty): Likewise.
27852         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
27853         (random_r): Likewise.
27854         * tests/test-rawmemchr.c (rawmemchr): Likewise.
27855         * tests/test-readlink.c (readlink): Likewise.
27856         * tests/test-remove.c (remove): Likewise.
27857         * tests/test-rename.c (rename): Likewise.
27858         * tests/test-renameat.c (renameat): Likewise.
27859         * tests/test-rmdir.c (rmdir): Likewise.
27860         * tests/test-round1.c (round): Likewise.
27861         * tests/test-roundf1.c (roundf): Likewise.
27862         * tests/test-roundl.c (roundl): Likewise.
27863         * tests/test-setenv.c (setenv): Likewise.
27864         * tests/test-sigaction.c (sigaction): Likewise.
27865         * tests/test-sleep.c (sleep): Likewise.
27866         * tests/test-snprintf.c (snprintf): Likewise.
27867         * tests/test-sprintf-posix.c (sprintf): Likewise.
27868         * tests/test-stat.c (stat): Likewise.
27869         * tests/test-stpncpy.c (stpncpy): Likewise.
27870         * tests/test-strcasestr.c (strcasestr): Likewise.
27871         * tests/test-strchrnul.c (strchrnul): Likewise.
27872         * tests/test-strerror.c (strerror): Likewise.
27873         * tests/test-strsignal.c (strsignal): Likewise.
27874         * tests/test-strstr.c (strstr): Likewise.
27875         * tests/test-strtod.c (strtod): Likewise.
27876         * tests/test-strverscmp.c (strverscmp): Likewise.
27877         * tests/test-symlink.c (symlink): Likewise.
27878         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
27879         * tests/test-times.c (times): Likewise.
27880         * tests/test-trunc1.c (trunc): Likewise.
27881         * tests/test-truncf1.c (truncf): Likewise.
27882         * tests/test-truncl.c (truncl): Likewise.
27883         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
27884         Likewise.
27885         * tests/test-uname.c (uname): Likewise.
27886         * tests/test-unlink.c (unlink): Likewise.
27887         * tests/test-unlinkat.c (unlinkat): Likewise.
27888         * tests/test-unsetenv.c (unsetenv): Likewise.
27889         * tests/test-usleep.c (usleep): Likewise.
27890         * tests/test-utimensat.c (utimensat): Likewise.
27891         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
27892         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
27893         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
27894         * tests/test-vprintf-posix.c (vprintf): Likewise.
27895         * tests/test-vsnprintf.c (vsnprintf): Likewise.
27896         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
27897         * tests/test-wcrtomb.c (wcrtomb): Likewise.
27898         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
27899         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
27900         * tests/test-wcwidth.c (wcwidth): Likewise.
27901
27902         build: pull in conditional headers during GNULIB_POSIXCHECK
27903         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
27904         definitions from any conditionally-included headers.
27905         * lib/stdlib.in.h (includes): Likewise.
27906         * lib/unistd.in.h (includes): Likewise.
27907
27908 2009-12-24  Bruno Haible  <bruno@clisp.org>
27909
27910         * tests/test-argv-iter.c: Include header file being tested immediately
27911         after config.h.
27912         * tests/test-base64.c: Likewise.
27913         * tests/test-flock.c: Likewise.
27914         * tests/test-fsync.c: Likewise.
27915         * tests/test-getdate.c: Likewise.
27916         * tests/test-getndelim2.c: Likewise.
27917         * tests/test-isfinite.c: Likewise.
27918         * tests/test-isinf.c: Likewise.
27919         * tests/test-strerror.c: Likewise.
27920         * tests/test-strsignal.c: Likewise.
27921
27922 2009-12-23  Eric Blake  <ebb9@byu.net>
27923
27924         unistd: work around cygwin bug
27925         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
27926         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
27927         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27928
27929 2009-12-23  Bruno Haible  <bruno@clisp.org>
27930
27931         localename: More tests.
27932         * tests/test-localename.c (SIZEOF): New macro.
27933         (categories): New variable.
27934         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
27935         test_locale_name_default): Add test w.r.t. thread locale.
27936         (test_locale_name_thread): New function.
27937         (main): Invoke it.
27938
27939         localename: Make aware of thread locale.
27940         * lib/localename.h (gl_locale_name_thread): New declaration.
27941         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
27942         behaviour with respect to thread locale.
27943         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
27944         <langinfo.h>, glthread/lock.h.
27945         (SIZE_BITS): New macro.
27946         (string_hash): New function.
27947         (struct hash_node): New type.
27948         (HASH_TABLE_SIZE): New macro.
27949         (struniq_hash_table, struniq_lock): New variables.
27950         (struniq): New function.
27951         (gl_locale_name_thread): New function.
27952         (gl_locale_name): Invoke it.
27953         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
27954         * modules/localename (Depends-on): Add lock.
27955         Reported by Mike Gran <spk121@yahoo.com>.
27956
27957 2009-12-23  Eric Blake  <ebb9@byu.net>
27958
27959         va-args: new module
27960         * modules/va-args: New file.
27961         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
27962         * MODULES.html.sh (Core language properties): Mention it.
27963
27964         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
27965         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
27966         named alias for __attribute__((__unused__)).
27967         * lib/chown.c: Update client.
27968         * lib/fchmodat.c: Likewise.
27969         * lib/fts.c: Likewise.
27970         * lib/getdate.y: Likewise.
27971         * lib/getgroups.c: Likewise.
27972         * lib/getopt.c: Likewise.
27973         * lib/getugroups.c: Likewise.
27974         * lib/mkdir.c: Likewise.
27975         * lib/mkfifo.c: Likewise.
27976         * lib/mkfifoat.c: Likewise.
27977         * lib/mknod.c: Likewise.
27978         * lib/mknodat.c: Likewise.
27979         * lib/readlink.c: Likewise.
27980         * lib/se-context.in.h: Likewise.
27981         * lib/se-selinux.in.h: Likewise.
27982         * lib/sockets.c: Likewise.
27983         * lib/symlink.c: Likewise.
27984         * lib/symlinkat.c: Likewise.
27985         * lib/unicodeio.c: Likewise.
27986         * lib/unistr.h: Likewise.
27987         * tests/test-areadlink.c: Likewise.
27988         * tests/test-areadlinkat.c: Likewise.
27989         * tests/test-filenamecat.c: Likewise.
27990         * tests/test-fseeko.c: Likewise.
27991         * tests/test-ftello.c: Likewise.
27992         * tests/test-getdate.c: Likewise.
27993         * tests/test-getgroups.c: Likewise.
27994         * tests/test-gethostname.c: Likewise.
27995         * tests/test-quotearg.c: Likewise.
27996         * tests/test-version-etc.c: Likewise.
27997         * tests/test-xalloc-die.c: Likewise.
27998         * tests/test-xfprintf-posix.c: Likewise.
27999         * tests/test-xprintf-posix.c: Likewise.
28000         * tests/test-xvasprintf.c: Likewise.
28001
28002         tests: avoid compiler warnings
28003         * tests/test-fcntl.c (main): Delete unused parameters.
28004         * tests/test-freopen-safer.c (main): Likewise.
28005         * tests/test-xalloc-die.c (main): Mark unused parameters.
28006         * tests/test-fseeko.c (main): Likewise.
28007         * tests/test-ftello.c (main): Likewise.
28008         * tests/test-nanosleep.c (main): Avoid declaration warning.
28009         * tests/test-sleep.c (main): Likewise.
28010         * tests/test-unsetenv.c (main): Silence warning about string
28011         literal.
28012         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
28013
28014 2009-12-23  Bruno Haible  <bruno@clisp.org>
28015
28016         * tests/test-localename.c (test_locale_name): New function, extracted
28017         from main. Also test mixed situations.
28018         (test_locale_name_posix, test_locale_name_environ,
28019         test_locale_name_default): New functions.
28020         (main): Invoke them all.
28021         * modules/localename-tests (configure.ac): Test for newlocale.
28022
28023 2009-12-23  Bruno Haible  <bruno@clisp.org>
28024
28025         unistd: Ensure getcwd gets declared before being overridden.
28026         * lib/unistd.in.h: Conditionally include <io.h>.
28027
28028 2009-12-22  Bruno Haible  <bruno@clisp.org>
28029
28030         wchar: Diagnose broken combination of glibc and gcc versions and flags.
28031         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
28032         (gl_WCHAR_H): Invoke it.
28033         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
28034         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
28035         Reported by Karl Berry <karl@freefriends.org>.
28036
28037 2009-12-22  Eric Blake  <ebb9@byu.net>
28038
28039         math, unistd: avoid redundant includes
28040         * lib/math.in.h (isnan): No need to re-include <math.h>.
28041         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
28042
28043         getsubopt: work around cygwin bug
28044         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
28045         avoid conflicting with system getsubopt.
28046         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
28047         bug.
28048
28049         getopt: synchronize from glibc
28050         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
28051         parameter order.  Adjust all callers.
28052         (_getopt_internal_r, main): Adjust quoting in error messages.
28053         Drop considerations for outdated POSIX 1003.2 error message.
28054         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
28055         callers.
28056         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
28057
28058         test-getopt: test stderr behavior
28059         * modules/getopt-posix-tests (Depends-on): Add dup2.
28060         * tests/test-getopt.c (ASSERT): Avoid stderr.
28061         (main): Move stderr to a temporary file.
28062         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
28063         Instead, add parameter to inform caller if output occurred.
28064         (test_getopt): Adjust all existing tests to expect silence, and
28065         add new tests of leading ":".
28066         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28067         glibc shortcomings with leading "-:" or "+:" in optstring.
28068         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28069         Likewise.
28070         * doc/posix-functions/getopt.texi (getopt): Likewise.
28071
28072         test-getopt: enhance test
28073         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
28074         supports optind=0.
28075         * tests/test-getopt.c (OPTIND_MIN): Move...
28076         * tests/test-getopt.h (OPTIND_MIN): ...here.
28077         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
28078         Require that optind=0 works, since modern BSD supports it in
28079         addition to optreset, and since coreutils expects it.
28080         (test_getopt_long_only): New test.
28081         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28082         glibc shortcomings with 'W;', and enforcement of optind=0.
28083         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28084         Likewise.
28085
28086 2009-12-21  Bruno Haible  <bruno@clisp.org>
28087
28088         localename: Improvements for MacOS X and Cygwin.
28089         * lib/localename.h (gl_locale_name_environ): New declaration.
28090         * lib/localename.c (gl_locale_name_environ): New function, extracted from
28091         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
28092         (gl_locale_name_posix): Invoke it.
28093         (gl_locale_name_default): Add comments. Use Windows native API also on
28094         Cygwin.
28095
28096 2009-12-21  Bruno Haible  <bruno@clisp.org>
28097
28098         Update list of Win32 locale ids.
28099         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
28100         (LANG_SAMI): Renamed from LANG_SAAMI.
28101         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
28102         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
28103         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
28104         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
28105         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
28106         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
28107         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
28108         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
28109         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
28110         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
28111         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
28112         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
28113         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
28114         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
28115         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
28116         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
28117         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
28118         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
28119         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
28120         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
28121         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
28122         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
28123         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
28124         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
28125         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
28126         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
28127         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
28128         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
28129         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
28130         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
28131         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
28132         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
28133         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
28134         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
28135         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
28136         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
28137         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
28138         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
28139         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
28140         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
28141         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
28142         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
28143         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
28144         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
28145         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
28146         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
28147         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
28148         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
28149         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
28150         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
28151         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
28152         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
28153         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
28154         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
28155         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
28156         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
28157         Add more languages and countries for Sami, Sorbian. Add more countries
28158         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
28159         for Pashto. Change country for Syriac, Tswana.
28160
28161 2009-12-21  Eric Blake  <ebb9@byu.net>
28162
28163         test-utimens: avoid spurious failure
28164         * tests/test-chown.h (nap): Factor...
28165         * tests/nap.h: ...into new file.
28166         * tests/test-lchown.h (nap): Avoid duplication.
28167         * tests/test-utimens-common.h (nap): Use shared implementation,
28168         necessary on file systems with 1-second resolution.
28169         * modules/chown-tests (Files): Include new file.
28170         * modules/fdutimensat-tests (Files): Likewise.
28171         * modules/futimens-tests (Files): Likewise.
28172         * modules/lchown-tests (Files): Likewise.
28173         * modules/openat-tests (Files): Likewise.
28174         * modules/utimens-tests (Files): Likewise.
28175         * modules/utimensat-tests (Files): Likewise.
28176
28177 2009-12-19  Eric Blake  <ebb9@byu.net>
28178
28179         futimens, utimensat: work around Linux bug
28180         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
28181         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28182         * lib/utimensat.c (rpl_utimensat): Work around it.
28183         * lib/futimens.c (rpl_futimens): Adjust comment.
28184
28185         utimens: work around Linux ctime bug
28186         * lib/utimens.c (detect_ctime_bug): New helper function.
28187         (update_timespec): Differentiate between workaround needed for
28188         this bug vs. what is needed for systems that lack utimensat.
28189         (fdutimens, lutimens): Work around bug.
28190
28191         utimens: check for ctime update
28192         * tests/test-utimens-common.h (check_ctime): Define.
28193         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
28194         * tests/test-futimens.h (test_futimens): Likewise.
28195         * tests/test-lutimens.h (test_lutimens): Likewise.
28196         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28197         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28198
28199 2009-12-19  Bruno Haible  <bruno@clisp.org>
28200
28201         dprintf-posix: Check against memory leak fixed on 2009-12-15.
28202         * tests/test-dprintf-posix2.sh: New file.
28203         * tests/test-dprintf-posix2.c: New file.
28204         * modules/dprintf-posix-tests (Files): Add them.
28205         (configure.ac): Check for getrlimit and setrlimit.
28206         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28207
28208 2009-12-19  Bruno Haible  <bruno@clisp.org>
28209
28210         fprintf-posix: Check against memory leak fixed on 2009-12-15.
28211         * tests/test-fprintf-posix3.sh: New file.
28212         * tests/test-fprintf-posix3.c: New file.
28213         * modules/fprintf-posix-tests (Files): Add them.
28214         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28215
28216 2009-12-19  Eric Blake  <ebb9@byu.net>
28217
28218         dirfd: fix prototype
28219         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
28220         * lib/dirfd.c (dirfd): Likewise.
28221
28222         canonicalize: reduce memory usage
28223         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
28224         allocation to size.
28225         Reported by Solar Designer <solar@openwall.com>.
28226
28227 2009-12-19  Bruno Haible  <bruno@clisp.org>
28228
28229         New module attribute 'Applicability'.
28230         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
28231         * gnulib-tool: New option --extract-applicability.
28232         (func_usage): Document it.
28233         (sed_extract_prog): Recognize it.
28234         (func_get_applicability): New function.
28235         (func_import): Generalize handling of 'link-warning' module.
28236         * modules/link-warning (Applicability): New section.
28237         * modules/arg-nonnull (Applicability): New section.
28238         Repoted by Simon Josefsson <simon@josefsson.org>.
28239
28240 2009-12-19  Bruno Haible  <bruno@clisp.org>
28241
28242         fflush: tweak
28243         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
28244         * lib/fseeko.c (rpl_fseeko): Likewise.
28245
28246 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
28247
28248         * lib/gl_list.h: Fix typo in comment.
28249
28250 2009-12-16  Eric Blake  <ebb9@byu.net>
28251
28252         fcntl: use to simplify other modules
28253         * modules/cloexec (Depends-on): Add fcntl.
28254         * modules/fchdir (Depends-on): Likewise.
28255         * modules/fd-safer-flag (Depends-on): Likewise.
28256         * modules/unistd-safer (Depends-on): Likewise.
28257         * modules/dup3 (configure.ac): Set module indicator.
28258         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
28259         missing.
28260         * lib/fchdir.c (_gl_register_dup): Fix comment.
28261         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
28262         * lib/dup-safer.c (dup_safer): Likewise.
28263         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
28264         * lib/dup3.c (dup3): Likewise.
28265         * tests/test-fchdir.c (main): Enhance test.
28266         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
28267
28268         fcntl: port portions of fcntl to mingw
28269         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
28270         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
28271         replacement for mingw.
28272         * modules/fcntl (Description): Update.
28273         (Depends-on): Add dup2.
28274         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
28275         * modules/fcntl-h (Makefile.am): Substitute it.
28276         * lib/fcntl.in.h (fcntl): Update declaration.
28277         (F_DUPFD, F_GETFD): New macros, when needed.
28278         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28279         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
28280         * tests/test-fcntl.c (check_flags, main): Enhance test for items
28281         we now guarantee.
28282
28283         fcntl: work around cygwin bug in F_DUPFD
28284         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
28285         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
28286         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
28287         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
28288         * doc/posix-functions/fcntl.texi (fcntl): Document it.
28289
28290         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
28291         * modules/fcntl (Files): List new files.
28292         (configure.ac): Run a test.
28293         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
28294         * lib/fcntl.c (rpl_fcntl): Likewise.
28295         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
28296         (gl_FCNTL_H): Always replace fcntl.h.
28297         * modules/fcntl-h (Makefile.am): Substitute witnesses.
28298         * lib/fcntl.in.h (fcntl): Declare replacement.
28299         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
28300         needed, plus a witness.
28301         * doc/posix-functions/fcntl.texi (fcntl): Document this.
28302         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28303         * tests/test-fcntl.c: New file.
28304         * modules/fcntl-tests: Likewise.
28305
28306         binary-io: avoid potential compilation warning
28307         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
28308         directives.
28309
28310         fflush: avoid compilation error on NetBSD
28311         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
28312         between off_t and fpos_t, since the latter is sometimes a struct.
28313         * lib/fseeko.c (rpl_fseeko): Likewise.
28314         Reported by Alexander Nasonov <alnsn@yandex.ru>.
28315
28316 2009-12-15  Eric Blake  <ebb9@byu.net>
28317
28318         fcntl-h, stdio, sys_ioctl: fix declarations
28319         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
28320         function must not take arguments.
28321         * lib/sys_ioctl.in.h (ioctl): Likewise.
28322         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
28323         (open): Add a link warning.
28324
28325 2009-12-15  Jim Meyering  <meyering@redhat.com>
28326
28327         areadlink, areadlink-with-size: relax license to LGPLv2+
28328         * modules/areadlink (License): Relax to LGPLv2+.
28329         * modules/areadlink-with-size (License): Likewise.
28330
28331 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
28332             Bruno Haible  <bruno@clisp.org>
28333
28334         *printf: Fix memory leak.
28335         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
28336         * lib/vfprintf.c (vfprintf): Likewise.
28337         * lib/dprintf.c (dprintf): Likewise.
28338         * lib/vdprintf.c (vdprintf): Likewise.
28339
28340 2009-12-14  Eric Blake  <ebb9@byu.net>
28341
28342         accept4: adjust module dependencies
28343         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
28344
28345         utimens: one more try at avoiding compiler warning
28346         * lib/utimens.c (lutimens): Lower scope of result.
28347
28348 2009-12-13  Bruno Haible  <bruno@clisp.org>
28349
28350         Move the malloc checking from module 'list' to new module 'xlist'.
28351         * modules/xlist: New file.
28352         * lib/gl_xlist.h: New file.
28353         * lib/gl_xlist.c: New file.
28354         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
28355         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
28356         gl_list_add_last, gl_list_add_before, gl_list_add_after,
28357         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
28358         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
28359         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
28360         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
28361         gl_sortedlist_nx_add): New declarations.
28362         (struct gl_list_implementation): Rename and change methods accordingly.
28363         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
28364         (gl_list_nx_create): Renamed from gl_list_create.
28365         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28366         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28367         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28368         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28369         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28370         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28371         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28372         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28373         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
28374         gl_list_create_empty.
28375         (gl_list_nx_create): Renamed from gl_list_create.
28376         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28377         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28378         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28379         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28380         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28381         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28382         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28383         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28384         * lib/gl_array_list.c: Don't include xalloc.h.
28385         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
28386         NULL upon out-of-memory.
28387         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
28388         out-of-memory.
28389         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
28390         Change return type to 'int'.
28391         (gl_array_nx_set_at): Renamed from gl_array_set_at.
28392         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28393         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
28394         upon out-of-memory.
28395         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
28396         upon out-of-memory.
28397         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
28398         upon out-of-memory.
28399         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
28400         upon out-of-memory.
28401         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
28402         out-of-memory.
28403         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
28404         Update.
28405         (gl_array_list_implementation): Update.
28406         * lib/gl_carray_list.c: Don't include xalloc.h.
28407         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
28408         Return NULL upon out-of-memory.
28409         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
28410         out-of-memory.
28411         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
28412         Change return type to 'int'.
28413         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
28414         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28415         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
28416         upon out-of-memory.
28417         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
28418         upon out-of-memory.
28419         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
28420         out-of-memory.
28421         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
28422         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
28423         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
28424         Update.
28425         (gl_carray_list_implementation): Update.
28426         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
28427         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
28428         gl_linked_create_empty. Return NULL upon out-of-memory.
28429         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
28430         out-of-memory.
28431         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
28432         Change return type to 'int'. Return -1 upon out-of-memory.
28433         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
28434         out-of-memory.
28435         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
28436         upon out-of-memory.
28437         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
28438         upon out-of-memory.
28439         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
28440         NULL upon out-of-memory.
28441         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
28442         upon out-of-memory.
28443         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
28444         out-of-memory.
28445         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
28446         Update.
28447         * lib/gl_linked_list.c: Don't include xalloc.h.
28448         (gl_linked_list_implementation): Update.
28449         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
28450         (add_to_bucket): Change return type to 'int'.
28451         (gl_linkedhash_list_implementation): Update.
28452         * lib/gl_anytree_list1.h (free_subtree): New function.
28453         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
28454         gl_tree_create_empty. Return NULL upon out-of-memory.
28455         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
28456         Change return type to 'int'. Return -1 upon out-of-memory.
28457         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
28458         out-of-memory.
28459         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
28460         (gl_tree_remove_node): New function, moved here from
28461         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
28462         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
28463         Update.
28464         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
28465         malloc, not xmalloc. Return NULL upon out-of-memory.
28466         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28467         out-of-memory.
28468         (gl_tree_remove_node_from_tree): New function, extracted from
28469         gl_tree_remove_node.
28470         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28471         upon out-of-memory.
28472         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28473         out-of-memory.
28474         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28475         upon out-of-memory.
28476         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28477         upon out-of-memory.
28478         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28479         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
28480         not xmalloc. Return NULL upon out-of-memory.
28481         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28482         out-of-memory.
28483         (gl_tree_remove_node_from_tree): New function, extracted from
28484         gl_tree_remove_node.
28485         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28486         upon out-of-memory.
28487         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28488         out-of-memory.
28489         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28490         upon out-of-memory.
28491         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28492         upon out-of-memory.
28493         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28494         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
28495         gl_anytree_list1.h before gl_anyavltree_list2.h.
28496         (gl_avltree_list_implementation): Update.
28497         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
28498         gl_anytree_list1.h before gl_anyavltree_list2.h.
28499         (gl_rbtree_list_implementation): Update.
28500         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
28501         Change return type to 'int'. Return -1 upon out-of-memory. Use
28502         __builtin_expect.
28503         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
28504         (gl_avltreehash_list_implementation): Update.
28505         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
28506         (gl_rbtreehash_list_implementation): Update.
28507         * modules/array-list (Depends-on): Remove xalloc.
28508         * modules/carray-list (Depends-on): Likewise.
28509         * modules/linked-list (Depends-on): Likewise.
28510         * modules/linkedhash-list (Depends-on): Likewise.
28511         * modules/avltree-list (Depends-on): Likewise.
28512         * modules/rbtree-list (Depends-on): Likewise.
28513         * modules/avltreehash-list (Depends-on): Likewise.
28514         * modules/rbtreehash-list (Depends-on): Likewise.
28515
28516         * modules/xsublist: New file.
28517         * lib/gl_xsublist.h: New file.
28518         * lib/gl_xsublist.c: New file.
28519         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
28520         (gl_sublist_nx_create): New declaration.
28521         * lib/gl_sublist.c: Don't include xalloc.h.
28522         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
28523         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
28524         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
28525         Change return type to 'int'. Return -1 upon out-of-memory.
28526         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
28527         upon out-of-memory.
28528         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
28529         NULL upon out-of-memory.
28530         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
28531         upon out-of-memory.
28532         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
28533         NULL upon out-of-memory.
28534         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
28535         NULL upon out-of-memory.
28536         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
28537         upon out-of-memory.
28538         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
28539         (gl_sublist_list_implementation): Update.
28540         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
28541         upon out-of-memory.
28542         * modules/sublist (Depends-on): Remove xalloc.
28543
28544         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
28545         * tests/test-carray_list.c: Likewise.
28546         * tests/test-linked_list.c: Likewise.
28547         * tests/test-linkedhash_list.c: Likewise.
28548         * tests/test-avltree_list.c: Likewise.
28549         * tests/test-rbtree_list.c: Likewise.
28550         * tests/test-avltreehash_list.c: Likewise.
28551         * tests/test-rbtreehash_list.c: Likewise.
28552         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
28553         * modules/carray-list-tests (Makefile.am): Likewise.
28554         * modules/linked-list-tests (Makefile.am): Likewise.
28555         * modules/linkedhash-list-tests (Makefile.am): Likewise.
28556         * modules/avltree-list-tests (Makefile.am): Likewise.
28557         * modules/rbtree-list-tests (Makefile.am): Likewise.
28558         * modules/avltreehash-list-tests (Makefile.am): Likewise.
28559         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
28560
28561         * NEWS: Mention the changes.
28562
28563         * lib/clean-temp.c: Include gl_xlist.h.
28564         * modules/clean-temp (Depends-on): Add xlist.
28565
28566         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
28567         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
28568
28569         * tests/test-array_oset.c: Include gl_xlist.h.
28570         * modules/array-oset-tests (Depends-on): Add xlist.
28571
28572         Reported by José E. Marchesi <jemarch@gnu.org>.
28573
28574 2009-12-13  Bruno Haible  <bruno@clisp.org>
28575
28576         Move the malloc checking from module 'oset' to new module 'xoset'.
28577         * modules/xoset: New file.
28578         * lib/gl_xoset.h: New file.
28579         * lib/gl_xoset.c: New file.
28580         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
28581         declarations.
28582         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
28583         (struct gl_oset_implementation): Rename and change methods accordingly.
28584         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
28585         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28586         'int'. Mark as __warn_unused_result__.
28587         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
28588         gl_oset_create_empty.
28589         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28590         'int'.
28591         * lib/gl_array_oset.c: Don't include xalloc.h.
28592         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
28593         malloc, not xmalloc.
28594         (grow): Change return type to 'int'. Don't call xalloc_die.
28595         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
28596         to 'int'.
28597         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
28598         'int'.
28599         (gl_array_oset_implementation): Update.
28600         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
28601         gl_tree_create_empty.
28602         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
28603         'int'.
28604         * lib/gl_avltree_oset.c: Don't include xalloc.h.
28605         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28606         xmalloc.
28607         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28608         not xmalloc.
28609         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28610         xmalloc.
28611         (gl_avltree_oset_implementation): Update.
28612         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
28613         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28614         xmalloc.
28615         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28616         not xmalloc.
28617         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28618         xmalloc.
28619         (gl_rbtree_oset_implementation): Update.
28620         * modules/array-oset (Depends-on): Remove xalloc.
28621         * modules/avltree-oset (Depends-on): Likewise.
28622         * modules/rbtree-oset (Depends-on): Likewise.
28623         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
28624         * tests/test-avltree_oset.c: Likewise.
28625         * tests/test-rbtree_oset.c: Likewise.
28626         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
28627         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
28628         * modules/rbtree-oset-tests (Makefile.am): Likewise.
28629         * NEWS: Mention the change.
28630
28631 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
28632
28633         maint.mk: allow a project to override release-prep commands
28634         * top/maint.mk (alpha, beta, stable): Move release-preparatory
28635         commands into a new rule.
28636         (release-prep): New rule.
28637         (release-prep-hook): New overridable variable.
28638
28639 2009-12-13  Bruno Haible  <bruno@clisp.org>
28640
28641         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
28642
28643 2009-12-13  Jim Meyering  <meyering@redhat.com>
28644
28645         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
28646         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
28647
28648 2009-12-12  Bruno Haible  <bruno@clisp.org>
28649
28650         duplocale: Tweak.
28651         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
28652
28653 2009-12-12  Karl Berry  <karl@gnu.org>
28654
28655         * config/srclist.txt (strtoll.c): tab changes, no more sync.
28656
28657 2009-12-12  Bruno Haible  <bruno@clisp.org>
28658
28659         * m4/po.m4: Undo incorrect untabification.
28660
28661 2009-12-12  Bruno Haible  <bruno@clisp.org>
28662
28663         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
28664         * modules/c-strtod (Depends-on): Add locale.
28665         * modules/c-strtold (Depends-on): Likewise.
28666
28667 2009-12-12  Bruno Haible  <bruno@clisp.org>
28668
28669         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
28670
28671 2009-12-11  Eric Blake  <ebb9@byu.net>
28672
28673         setenv: relax requirement in light of POSIX ruling
28674         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
28675         not NULL.
28676         * tests/test-setenv.c (main): Relax test.
28677         * tests/test-unsetenv.c (main): Likewise.
28678         * doc/posix-functions/setenv.texi (setenv): Document this.
28679         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28680
28681 2009-12-11  Bruno Haible  <bruno@clisp.org>
28682
28683         New module 'fd-safer-flag'.
28684         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
28685         * lib/dup-safer.c (dup_safer_flag): Remove function.
28686         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
28687         * lib/fd-safer.c (fd_safer_flag): Remove function.
28688         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
28689         * modules/cloexec (configure.ac): Drop indicator macro.
28690         * modules/fd-safer-flag: New file.
28691         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
28692         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
28693         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
28694
28695 2009-12-11  Bruno Haible  <bruno@clisp.org>
28696
28697         Tests for module 'nl_langinfo'.
28698         * modules/nl_langinfo-tests: New file.
28699         * tests/test-nl_langinfo.sh: New file.
28700         * tests/test-nl_langinfo.c: New file.
28701
28702         New module 'nl_langinfo'.
28703         * lib/nl_langinfo.c: New file.
28704         * m4/nl_langinfo.m4: New file.
28705         * modules/nl_langinfo: New file.
28706         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
28707
28708 2009-12-11  Bruno Haible  <bruno@clisp.org>
28709
28710         Tests for module 'langinfo'.
28711         * modules/langinfo-tests: New file.
28712         * tests/test-langinfo.c: New file.
28713
28714         New module 'langinfo'.
28715         * lib/langinfo.in.h: New file.
28716         * m4/langinfo_h.m4: New file.
28717         * modules/langinfo: New file.
28718         * doc/posix-headers/langinfo.texi: Mention the new module.
28719
28720 2009-12-11  Bruno Haible  <bruno@clisp.org>
28721
28722         * lib/config.charset: Untabify.
28723
28724 2009-12-11  Bruno Haible  <bruno@clisp.org>
28725
28726         * modules/unistd-safer (configure.ac): Drop indicator macro.
28727
28728 2009-12-11  Bruno Haible  <bruno@clisp.org>
28729
28730         Move pipe2-safer code to its own file.
28731         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
28732         * lib/pipe-safer.c (pipe2_safer): Remove function.
28733         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
28734         (Makefile.am): Add it to lib_SOURCES.
28735
28736 2009-12-10  Bruno Haible  <bruno@clisp.org>
28737
28738         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
28739
28740 2009-12-10  Bruno Haible  <bruno@clisp.org>
28741
28742         Declare which arguments expect non-NULL values, for GCC and clang.
28743         * build-aux/arg-nonnull.h: New file.
28744         * modules/arg-nonnull: New file.
28745         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
28746         (inet_ntop, inet_pton): Use it.
28747         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
28748         (closedir, dirfd, opendir, scandir, alphasort): Use it.
28749         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
28750         (open, openat): Use it.
28751         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
28752         (fnmatch): Use it.
28753         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
28754         (getopt, getopt_long, getopt_long_only): Use it.
28755         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
28756         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
28757         Use it.
28758         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
28759         (iconv_open): Use it.
28760         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
28761         (strtoimax, strtoumax): Use it.
28762         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
28763         (duplocale): Use it.
28764         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
28765         (frexp, frexpl): Use it.
28766         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
28767         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
28768         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
28769         (tsearch, tfind, tdelete, twalk): Use it.
28770         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
28771         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28772         sigpending): Use it.
28773         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
28774         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28775         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28776         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28777         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28778         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28779         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28780         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28781         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28782         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28783         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28784         Use it.
28785         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
28786         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
28787         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
28788         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
28789         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
28790         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
28791         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
28792         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
28793         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
28794         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
28795         strtoull, unsetenv): Use it.
28796         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
28797         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28798         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28799         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
28800         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
28801         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
28802         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
28803         (strcasecmp, strncasecmp): Use it.
28804         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
28805         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
28806         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
28807         rpl_setsockopt): Use it.
28808         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
28809         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
28810         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
28811         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
28812         (gettimeofday): Use it.
28813         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
28814         (times): Use it.
28815         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
28816         (uname): Use it.
28817         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
28818         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
28819         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
28820         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
28821         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
28822         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
28823         unlinkat, write): Use it.
28824         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
28825         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
28826         * lib/argv-iter.h: Include arg-nonnull.h.
28827         (_ATTRIBUTE_NONNULL_): Remove macro.
28828         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
28829         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
28830         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
28831         optimization.
28832         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
28833         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
28834         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
28835         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
28836         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
28837         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
28838         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
28839         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
28840         * modules/arpa_inet (Depends-on): Add arg-nonnull.
28841         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
28842         * modules/dirent (Depends-on): Add arg-nonnull.
28843         (Makefile.am): Insert arg-nonnull.h into dirent.h.
28844         * modules/fcntl-h (Depends-on): Add arg-nonnull.
28845         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
28846         * modules/fnmatch (Depends-on): Add arg-nonnull.
28847         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
28848         * modules/getopt-posix (Depends-on): Add arg-nonnull.
28849         (Makefile.am): Insert arg-nonnull.h into getopt.h.
28850         * modules/glob (Depends-on): Add arg-nonnull.
28851         (Makefile.am): Insert arg-nonnull.h into glob.h.
28852         * modules/iconv_open (Depends-on): Add arg-nonnull.
28853         (Makefile.am): Insert arg-nonnull.h into iconv.h.
28854         * modules/inttypes (Depends-on): Add arg-nonnull.
28855         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
28856         * modules/locale (Depends-on): Add arg-nonnull.
28857         (Makefile.am): Insert arg-nonnull.h into locale.h.
28858         * modules/math (Depends-on): Add arg-nonnull.
28859         (Makefile.am): Insert arg-nonnull.h into math.h.
28860         * modules/netdb (Depends-on): Add arg-nonnull.
28861         (Makefile.am): Insert arg-nonnull.h into netdb.h.
28862         * modules/search (Depends-on): Add arg-nonnull.
28863         (Makefile.am): Insert arg-nonnull.h into search.h.
28864         * modules/signal (Depends-on): Add arg-nonnull.
28865         (Makefile.am): Insert arg-nonnull.h into signal.h.
28866         * modules/spawn (Depends-on): Add arg-nonnull.
28867         (Makefile.am): Insert arg-nonnull.h into spawn.h.
28868         * modules/stdio (Depends-on): Add arg-nonnull.
28869         (Makefile.am): Insert arg-nonnull.h into stdio.h.
28870         * modules/stdlib (Depends-on): Add arg-nonnull.
28871         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
28872         * modules/string (Depends-on): Add arg-nonnull.
28873         (Makefile.am): Insert arg-nonnull.h into string.h.
28874         * modules/strings (Depends-on): Add arg-nonnull.
28875         (Makefile.am): Insert arg-nonnull.h into strings.h.
28876         * modules/sys_socket (Depends-on): Add arg-nonnull.
28877         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
28878         * modules/sys_stat (Depends-on): Add arg-nonnull.
28879         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
28880         * modules/sys_time (Depends-on): Add arg-nonnull.
28881         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
28882         * modules/sys_times (Depends-on): Add arg-nonnull.
28883         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
28884         * modules/sys_utsname (Depends-on): Add arg-nonnull.
28885         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
28886         * modules/time (Depends-on): Add arg-nonnull.
28887         (Makefile.am): Insert arg-nonnull.h into time.h.
28888         * modules/unistd (Depends-on): Add arg-nonnull.
28889         (Makefile.am): Insert arg-nonnull.h into unistd.h.
28890         * modules/wchar (Depends-on): Add arg-nonnull.
28891         (Makefile.am): Insert arg-nonnull.h into wchar.h.
28892         * modules/argv-iter (Depends-on): Add arg-nonnull.
28893         * tests/test-canonicalize.c (null_ptr): New function.
28894         (main): Use it.
28895         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
28896         (main): Use it.
28897         * tests/test-memmem.c (null_ptr): New function.
28898         (main): Use it.
28899         Reported by Jim Meyering.
28900
28901 2009-12-10  Bruno Haible  <bruno@clisp.org>
28902
28903         Use spaces for indentation, not tabs.
28904         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28905         * m4/*.m4: Untabify.
28906         * build-aux/*.h: Untabify.
28907         * tests/**/*.[hc]: Untabify.
28908         * README: New section "Indent with spaces, not TABs", based on
28909         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
28910         * NEWS: Mention the change.
28911
28912 2009-12-10  Bruno Haible  <bruno@clisp.org>
28913
28914         pty test: Fix link error.
28915         * modules/pty-tests (Makefile.am): Add the default LDADD value to
28916         test_pty_LDADD.
28917
28918 2009-12-07  Simon Josefsson  <simon@josefsson.org>
28919
28920         * modules/pty: New file.
28921         * modules/pty-tests: New file.
28922         * m4/pty.m4: New file.
28923         * tests/test-pty.c: New file.
28924         * doc/glibc-headers/pty.texi: Modified.
28925         * doc/glibc-functions/forkpty.texi: Modified.
28926         * doc/glibc-functions/openpty.texi: Modified.
28927
28928 2009-12-10  Bruno Haible  <bruno@clisp.org>
28929
28930         Avoid syntax error in C++ mode.
28931         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
28932
28933 2009-12-10  Bruno Haible  <bruno@clisp.org>
28934
28935         Use sed with option -e.
28936         * gnulib-tool (func_version, func_emit_copyright_notice,
28937         func_emit_initmacro_end, func_import, func_create_testdir): Pass
28938         option -e to sed.
28939         * modules/link-warning (Makefile.am): Likewise.
28940
28941 2009-12-10  Jim Meyering  <meyering@redhat.com>
28942
28943         mgetgroups: do not write bytes beyond end of malloc'd buffer
28944         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
28945         username, we call getgroups with a one-element-shorter buffer,
28946         but still told it the length was original, max_n_groups.
28947
28948 2009-12-09  Eric Blake  <ebb9@byu.net>
28949
28950         cloexec: relax license
28951         * modules/cloexec (Maintainer): Add myself.
28952         (License): Use LGPL, not GPL.
28953
28954         link-warning: optimize generation
28955         * modules/link-warning (Makefile.am): Reduce process usage.
28956
28957 2009-12-09  Bruno Haible  <bruno@clisp.org>
28958
28959         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
28960         workaround was added on 2009-11-17.
28961
28962 2009-12-09  Jim Meyering  <meyering@redhat.com>
28963             Bruno Haible  <bruno@clisp.org>
28964
28965         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
28966         * modules/link-warning (Makefile.am): Make the comment-removing sed
28967         command more robust in the face of bootstrap-prepended comment lines.
28968
28969 2009-12-09  Bruno Haible  <bruno@clisp.org>
28970
28971         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
28972         most one group.
28973
28974 2009-12-09  Simon Josefsson <simon@josefsson.org>
28975             Bruno Haible  <bruno@clisp.org>
28976
28977         * build-aux/link-warning.h: Add copyright notice.
28978         * modules/link-warning (Makefile.am): Generate link-warning.h from
28979         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28980         * NEWS: Mention change in link-warning module.
28981         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28982         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28983         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28984         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28985         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28986         * modules/math (Makefile.am): Add dependency to math.h.
28987         * modules/search (Makefile.am): Add dependency to search.h.
28988         * modules/signal (Makefile.am): Add dependency to signal.h.
28989         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28990         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28991         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28992         * modules/string (Makefile.am): Add dependency to string.h.
28993         * modules/strings (Makefile.am): Add dependency to strings.h.
28994         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28995         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28996         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28997         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28998         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28999         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
29000         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
29001         * modules/unistd (Makefile.am): Add dependency to unistd.h.
29002         * modules/wchar (Makefile.am): Add dependency to wchar.h.
29003
29004 2009-12-09  Bruno Haible  <bruno@clisp.org>
29005
29006         fchdir: Optimize away rpl_fstat when possible.
29007         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
29008         REPLACE_OPEN_DIRECTORY.
29009         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
29010
29011 2009-12-09  Bruno Haible  <bruno@clisp.org>
29012
29013         * lib/fchdir.c: Update comment.
29014
29015 2009-12-09  Bruno Haible  <bruno@clisp.org>
29016
29017         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
29018
29019 2009-12-08  Eric Blake  <ebb9@byu.net>
29020
29021         fchdir: avoid memory leak on re-registration.
29022         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
29023
29024 2009-12-08  Jim Meyering  <meyering@redhat.com>
29025
29026         init.sh: avoid Solaris 10 /bin/sh portability problem
29027         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
29028         sourced script:
29029           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
29030           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
29031           bar
29032         tests/init.sh relied on that, accepting a --set-path=DIR argument,
29033         and two tests used that idiom.
29034         * tests/init.sh: Update suggested usage comments.
29035         (path_prepend_): New function, to be used in place
29036         of the --src-path=DIR option.
29037         (setup_): Move PATH-prepending code into path_prepend_.
29038         * tests/test-pread.sh: Adapt to new usage.
29039         * tests/test-xalloc-die.sh: Likewise.
29040
29041 2009-12-08  Simon Josefsson  <simon@josefsson.org>
29042
29043         * doc/gnulib.texi (Glibc pty.h): Add.
29044         * doc/glibc-functions/forkpty.texi: Add.
29045         * doc/glibc-functions/openpty.texi: Add.
29046         Suggested by Bruno Haible.
29047
29048 2009-12-08  Eric Blake  <ebb9@byu.net>
29049
29050         fchdir: fix logic bugs
29051         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
29052         * tests/test-fchdir.c (main): Enhance test.
29053         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
29054         is in use.
29055
29056         dup2: fix logic bugs
29057         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
29058         REPLACE_DUP2 to decide when rpl_dup2 is needed.
29059         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
29060         exists.
29061         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
29062
29063 2009-12-07  Eric Blake  <ebb9@byu.net>
29064
29065         unlink: fix m4 detection
29066         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
29067
29068         unistd-safer: add unit test
29069         * modules/unistd-safer-tests: New file.
29070         * tests/test-dup-safer.c: Likewise.
29071         * tests/test-cloexec.c (setmode): Avoid compiler warning.
29072         * tests/test-dup2.c (setmode): Likewise.
29073         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
29074
29075         cloexec: preserve text vs. binary across dup_cloexec
29076         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
29077         mode.
29078         * modules/dup2-tests (Depends-on): Add binary-io.
29079         * modules/cloexec-tests (Depends-on): Likewise.
29080         * tests/test-dup2.c (setmode, is_mode): New helpers.
29081         (main): Add tests that translation mode is preserved.
29082         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
29083         Reported by Bruno Haible.
29084
29085         mgetgroups: reduce duplicate listings
29086         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
29087         resulting array.
29088         * tests/test-chown.h (test_chown): Simplify client.
29089         * tests/test-lchown.h (test_lchown): Likewise.
29090
29091 2009-12-06  Bruno Haible  <bruno@clisp.org>
29092
29093         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
29094         value.
29095
29096 2009-12-06  Bruno Haible  <bruno@clisp.org>
29097
29098         * lib/progname.c: Include stdio.h, stdlib.h.
29099         (set_program_name): Reject a NULL argument.
29100
29101 2009-12-05  Eric Blake  <ebb9@byu.net>
29102
29103         pipe2-safer: new module
29104         * modules/pipe2-safer: New file.
29105         * lib/unistd-safer.h (pipe2_safer): New prototype.
29106         * lib/unistd--.h (pipe2): New wrapper.
29107         * lib/pipe-safer.c (pipe2_safer): New function.
29108         * modules/pipe (Depends-on): Add pipe2-safer.
29109         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
29110
29111         stdlib-safer: preserve cloexec flag for mkostemp[s]
29112         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
29113         fd_safer_flag.
29114
29115         unistd-safer: allow preservation of cloexec status via flag
29116         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
29117         prototypes.
29118         * lib/dup-safer.c (dup_safer_flag): New function.
29119         * lib/fd-safer.c (fd_safer_flag): Likewise.
29120         * modules/cloexec (configure.ac): Set witness.
29121
29122         test-dup2: enhance test
29123         * modules/dup2-tests (Depends-on): Add cloexec.
29124         * tests/test-dup2.c (main): Enhance test.
29125
29126         cloexec: add dup_cloexec
29127         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
29128         header and comments.
29129         * lib/cloexec.c (set_cloexec_flag): Add comments.
29130         (dup_cloexec): New function, with mingw implementation borrowed
29131         from...
29132         * lib/w32spawn.h (dup_noinherit): ...here.
29133         * modules/execute (Depends-on): Add cloexec.
29134         * modules/pipe (Depends-on): Likewise.
29135         * modules/cloexec (Depends-on): Add dup2.
29136         * modules/cloexec-tests (Files): New file.
29137         * tests/test-cloexec.c: Likewise.
29138
29139         test-xalloc-die: fix test for mingw
29140         * modules/xalloc-die-tests (Files): Add tests/init.sh.
29141         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
29142         directory and .exe suffix off argv[0] output.
29143
29144         test-fseeko: fix test for mingw
29145         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
29146         than undefining fseek, so test will pass on mingw.
29147
29148 2009-12-05  Bruno Haible  <bruno@clisp.org>
29149
29150         * lib/progname.h (set_program_name): Clarify specification.
29151         * lib/progname.c (set_program_name): Likewise.
29152         Reported by Jim Meyering.
29153
29154 2009-12-05  Jim Meyering  <meyering@redhat.com>
29155
29156         maint.mk: backslash-escape parens in default regexp
29157         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
29158         backslash-escape the literal parentheses.
29159
29160         maint.mk: news-date-check: use grep -E
29161         * top/maint.mk (today): Define a Make variable, not a...
29162         (news-date-check): ...shell variable.
29163         (news-date-regexp): Use the Make variable.
29164         Use grep's -E option.  Change the failing diagnostic to mention
29165         the variable, $(news-date-regexp).
29166
29167 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
29168
29169         maintainer-makefile: allow customization of NEWS entry format
29170         * top/maint.mk (news-date-regexp): New overridable variable.
29171         (news-date-check): Use it.
29172
29173 2009-12-04  Eric Blake  <ebb9@byu.net>
29174
29175         mgetgroups: add xgetgroups, and avoid ENOSYS failures
29176         * lib/mgetgroups.h (xgetgroups): New prototype.
29177         * lib/mgetgroups.c (xgetgroups): New wrapper.
29178         (mgetgroups): Handle ENOSYS.
29179         * modules/mgetgroups (Depends-on): Add realloc.
29180         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
29181
29182         mgetgroups: avoid argument promotion issues with -1
29183         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
29184         for invalid gid_t.
29185         * tests/test-chown.h (getegid, test_chown): Likewise.
29186         * tests/test-lchown.h (getegid, test_lchown): Likewise.
29187
29188 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
29189
29190         exclude: Fix header file problems.
29191         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
29192
29193 2009-12-01  Jim Meyering  <meyering@redhat.com>
29194
29195         fts: fts_open: do not let an empty string cause immediate failure
29196         This is required in support of GNU rm, for which the command
29197         "rm A '' B" must process and remove both A and B, in spite of
29198         the empty string argument.
29199         * lib/fts.c (fts_open): Do not let the presence of an empty string
29200         cause fts_open to fail immediately.  Most fts-using tools must be
29201         able to process all arguments, in order, and can be expected to
29202         diagnose such arguments themselves.
29203
29204 2009-11-30  Eric Blake  <ebb9@byu.net>
29205
29206         utimens: fix compilation error
29207         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
29208         Declare variable at right scope.
29209
29210 2009-11-29  Jim Meyering  <meyering@redhat.com>
29211
29212         bootstrap: handle perl-5.11's changed --version output
29213         * build-aux/bootstrap (get_version): Handle perl separately,
29214         since perl-5.11's --version output is different.
29215
29216 2009-11-28  Jim Meyering  <meyering@redhat.com>
29217
29218         userspec: depend on the inttostr module, too
29219         * modules/userspec (Depends-on): Add inttostr.
29220
29221         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
29222         * lib/userspec.c (parse_with_separator): Do not accept a user ID
29223         number of MAXUID when it evaluates to (uid_t) -1.
29224         Likewise for group ID.  Reported by Matt McCutchen in
29225         <http://savannah.gnu.org/bugs/?28113>
29226
29227         userspec: reformat to use spaces, not TABs
29228         * lib/userspec.c: Expand TABs to spaces.
29229         Add Emacs' "indent-tabs-mode: nil" hint.
29230
29231 2009-11-27  Eric Blake  <ebb9@byu.net>
29232
29233         getopt-gnu: flush out another BSD bug
29234         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
29235         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
29236         flush out BSD bug.
29237         * tests/test-getopt.h (test_getopt): End lists with NULL.
29238         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29239         (test_getopt_long_posix): Enhance test.
29240         * modules/getopt-posix-tests (Depends-on): Add stdbool.
29241         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
29242         getopt-gnu.
29243         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29244         Likewise.
29245
29246 2009-11-27  Simon Josefsson  <simon@josefsson.org>
29247
29248         * modules/idpriv-droptemp-tests (Notice): Fix text.
29249
29250 2009-11-27  Jim Meyering  <meyering@redhat.com>
29251
29252         test-xalloc-die: avoid spurious failure due to libtool argv difference
29253         In a libtool-enabled project, this test would fail due to a difference
29254         in the emitted program name, e.g.,
29255         -test-xalloc-die: memory exhausted
29256         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
29257         Use program to avoid that.
29258         * modules/xalloc-die-tests (Depends-on): Add progname.
29259         * tests/test-xalloc-die.c: Include progname.h".
29260         (program_name): Remove decl.
29261         (main): Call set_program_name.
29262         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
29263
29264 2009-11-26  Richard Jones  <rjones@redhat.com>
29265
29266         w32sock: leave win32 error in place.
29267         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
29268
29269 2009-11-26  Eric Blake  <ebb9@byu.net>
29270
29271         init.sh: suggest to use skip_ and fail_ functions in comments
29272         * tests/init.sh: Add a sentence.
29273
29274 2009-11-25  Bruno Haible  <bruno@clisp.org>
29275
29276         init.sh: add documentation in comments
29277         * tests/init.sh: Add some developer and user documentation.
29278
29279 2009-11-26  Jim Meyering  <meyering@redhat.com>
29280
29281         init.sh: accommodate even those who specify bogus srcdir manually
29282         * tests/init.sh: Normally, srcdir is guaranteed by automake and
29283         configure-time tests to be sanitized, so that there is no need to
29284         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
29285         (with no double quotes) suffices.  However, since tests may be
29286         invoked manually, and since you may explicitly set srcdir to the
29287         name of a directory containing spaces, do quote its uses here.
29288         * tests/test-pread.sh: Likewise.
29289         Suggested by Bruno Haible.
29290
29291         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
29292         * tests/test-pread.sh: Write no data into the pipe, because
29293         test-pread actually reads none.  This avoids a diagnostic,
29294         "bash: echo: write error: Broken pipe", that arises in the unusual
29295         event something is ignoring SIGPIPE, and might be interpreted
29296         as some sort of failure.  Reported by Bruno Haible.
29297
29298 2009-11-25  Jim Meyering  <meyering@redhat.com>
29299
29300         test-pread: cover failure with ESPIPE and EINVAL
29301         * tests/test-pread.c (main): Test for failure, too.
29302         * tests/test-pread.sh: Invoke with stdin on a pipe.
29303         Suggested by Eric Blake.
29304
29305         pread: improvement and fix
29306         * modules/pread (Depends-on): Depend on lseek, for portability to
29307         e.g., mingw.  Suggested by Eric Blake.
29308         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
29309
29310         unistd.in.h: correct declaration of pread
29311         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
29312         Reported by Richard W.M. Jones.
29313
29314         test-pread.sh: distribute the test script
29315         * modules/pread-tests (Files): Include test-pread.sh.
29316
29317         test-pread.sh: clean up
29318         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
29319         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
29320         That is unnecessary, since it's always ".".
29321         Suggestion from Eric Blake.
29322
29323         test-pread.sh: make executable
29324         * tests/test-pread.sh: Set executable bit.
29325         Reported by Eric Blake.
29326
29327         correct typo in test-pread.sh
29328         * tests/test-pread.sh: Add #! line.
29329
29330         test pread
29331         * tests/test-pread.c: New file.
29332         * tests/test-pread.sh: Likewise.
29333         * modules/pread-tests: Likewise.
29334
29335         pread: new module
29336         * modules/pread: New file.
29337         * lib/unistd.in.h (pread): Define/declare.
29338         * lib/pread.c (pread): New file.
29339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
29340         * modules/unistd (Makefile.am): Substitute witnesses.
29341         * doc/posix-functions/pread.texi (pread): Update.
29342         * MODULES.html.sh: Add pread.
29343
29344 2009-11-25  Jim Meyering  <meyering@redhat.com>
29345
29346         tests/init.sh: new file to be used via most *.sh tests
29347         * tests/init.sh: New file.
29348
29349 2009-11-25  Eric Blake  <ebb9@byu.net>
29350
29351         utimens: work around older Linux failure with symlinks
29352         * lib/utimens.c (lutimensat_works_really): New variable.
29353         (fdutimens, lutimens): Use it to manage kernels that support
29354         nanosecond times on files, but not on symlinks.
29355         Reported by OndÅ™ej Vašík.
29356
29357         utimes: fix configure grammar
29358         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
29359
29360 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
29361
29362         regex: Fix fastmap for multibyte character ranges.
29363         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
29364         characters when a multibyte character range is included.
29365
29366 2009-11-22  Andy Wingo  <wingo@pobox.com>
29367
29368         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
29369         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
29370
29371 2009-11-24  Bruno Haible  <bruno@clisp.org>
29372
29373         doc: Most *_l functions exist in MacOS X 10.5.
29374         * doc/posix-functions/duplocale.texi: Update platforms list.
29375         * doc/posix-functions/freelocale.texi: Likewise.
29376         * doc/posix-functions/newlocale.texi: Likewise.
29377         * doc/posix-functions/uselocale.texi: Likewise.
29378         * doc/posix-functions/isalnum_l.texi: Likewise.
29379         * doc/posix-functions/isalpha_l.texi: Likewise.
29380         * doc/posix-functions/isblank_l.texi: Likewise.
29381         * doc/posix-functions/iscntrl_l.texi: Likewise.
29382         * doc/posix-functions/isdigit_l.texi: Likewise.
29383         * doc/posix-functions/isgraph_l.texi: Likewise.
29384         * doc/posix-functions/islower_l.texi: Likewise.
29385         * doc/posix-functions/isprint_l.texi: Likewise.
29386         * doc/posix-functions/ispunct_l.texi: Likewise.
29387         * doc/posix-functions/isspace_l.texi: Likewise.
29388         * doc/posix-functions/isupper_l.texi: Likewise.
29389         * doc/posix-functions/iswalnum_l.texi: Likewise.
29390         * doc/posix-functions/iswalpha_l.texi: Likewise.
29391         * doc/posix-functions/iswblank_l.texi: Likewise.
29392         * doc/posix-functions/iswcntrl_l.texi: Likewise.
29393         * doc/posix-functions/iswctype_l.texi: Likewise.
29394         * doc/posix-functions/iswdigit_l.texi: Likewise.
29395         * doc/posix-functions/iswgraph_l.texi: Likewise.
29396         * doc/posix-functions/iswlower_l.texi: Likewise.
29397         * doc/posix-functions/iswprint_l.texi: Likewise.
29398         * doc/posix-functions/iswpunct_l.texi: Likewise.
29399         * doc/posix-functions/iswspace_l.texi: Likewise.
29400         * doc/posix-functions/iswupper_l.texi: Likewise.
29401         * doc/posix-functions/iswxdigit_l.texi: Likewise.
29402         * doc/posix-functions/isxdigit_l.texi: Likewise.
29403         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
29404         * doc/posix-functions/strcasecmp_l.texi: Likewise.
29405         * doc/posix-functions/strcoll_l.texi: Likewise.
29406         * doc/posix-functions/strfmon_l.texi: Likewise.
29407         * doc/posix-functions/strftime_l.texi: Likewise.
29408         * doc/posix-functions/strncasecmp_l.texi: Likewise.
29409         * doc/posix-functions/strxfrm_l.texi: Likewise.
29410         * doc/posix-functions/tolower_l.texi: Likewise.
29411         * doc/posix-functions/toupper_l.texi: Likewise.
29412         * doc/posix-functions/towctrans_l.texi: Likewise.
29413         * doc/posix-functions/towlower_l.texi: Likewise.
29414         * doc/posix-functions/towupper_l.texi: Likewise.
29415         * doc/posix-functions/wcscoll_l.texi: Likewise.
29416         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
29417         * doc/posix-functions/wctrans_l.texi: Likewise.
29418         * doc/posix-functions/wctype_l.texi: Likewise.
29419         * doc/glibc-functions/strptime_l.texi: Likewise.
29420         * doc/glibc-functions/strtod_l.texi: Likewise.
29421         * doc/glibc-functions/strtof_l.texi: Likewise.
29422         * doc/glibc-functions/strtol_l.texi: Likewise.
29423         * doc/glibc-functions/strtold_l.texi: Likewise.
29424         * doc/glibc-functions/strtoll_l.texi: Likewise.
29425         * doc/glibc-functions/strtoul_l.texi: Likewise.
29426         * doc/glibc-functions/strtoull_l.texi: Likewise.
29427         * doc/glibc-functions/wcsftime_l.texi: Likewise.
29428         * doc/glibc-functions/wcstod_l.texi: Likewise.
29429         * doc/glibc-functions/wcstof_l.texi: Likewise.
29430         * doc/glibc-functions/wcstol_l.texi: Likewise.
29431         * doc/glibc-functions/wcstold_l.texi: Likewise.
29432         * doc/glibc-functions/wcstoll_l.texi: Likewise.
29433         * doc/glibc-functions/wcstoul_l.texi: Likewise.
29434         * doc/glibc-functions/wcstoull_l.texi: Likewise.
29435
29436 2009-11-24  Bruno Haible  <bruno@clisp.org>
29437
29438         duplocale: Fix logic bug.
29439         * lib/duplocale.c: Don't include <langinfo.h>.
29440         (_NL_LOCALE_NAME): Remove macro.
29441         (rpl_duplocale): Use setlocale instead of nl_langinfo.
29442         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
29443
29444 2009-11-23  Jim Meyering  <meyering@redhat.com>
29445
29446         test-update-copyright: don't hard-code /usr/bin/perl
29447         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
29448         perl to print the current year.  Gilles Espinasse reported that
29449         the replaced use of perl was hard-coded as /usr/bin/perl.
29450
29451 2009-11-23  Bruno Haible  <bruno@clisp.org>
29452
29453         duplocale: Add support for glibc 2.3.x.
29454         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
29455
29456 2009-11-22  Bruno Haible  <bruno@clisp.org>
29457
29458         vasnprintf: Tiny optimization.
29459         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
29460         MacOS X.
29461
29462 2009-11-22  Bruno Haible  <bruno@clisp.org>
29463
29464         Tests for module 'duplocale'.
29465         * modules/duplocale-tests: New file.
29466         * tests/test-duplocale.c: New file.
29467
29468         New module 'duplocale'.
29469         * m4/duplocale.m4: New file.
29470         * lib/locale.in.h (duplocale): New declaration.
29471         * lib/duplocale.c: New file.
29472         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
29473         gl_LOCALE_H_DEFAULTS): New macros.
29474         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
29475         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
29476         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
29477         REPLACE_DUPLOCALE.
29478         * modules/duplocale: New file.
29479         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
29480
29481 2009-11-22  Bruno Haible  <bruno@clisp.org>
29482
29483         * modules/locale-tests (configure.ac): Test for newlocale function.
29484         * tests/test-locale.c: When the system has extended locale functions,
29485         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
29486
29487         locale: Make locale_t available when possible.
29488         * lib/locale.in.h: Include <xlocale.h> when it exists.
29489         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
29490         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
29491         * modules/locale (Depends-on): Add extensions.
29492         (Makefile.am): Also substitute HAVE_XLOCALE_H.
29493         * doc/posix-headers/locale.texi: Document the problem with locale_t.
29494
29495 2009-11-22  Bruno Haible  <bruno@clisp.org>
29496
29497         Add comments.
29498         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
29499         invocation.
29500         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
29501         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29502         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29503
29504 2009-11-22  Bruno Haible  <bruno@clisp.org>
29505
29506         error: account for the possibility of freopen (stdout).
29507         * lib/error.c: Include <unistd.h>.
29508         (flush_stdout): New function, extracted from error and error_at_line.
29509         Determine stdout's fd dynamically.
29510         (error, error_at_line): Invoke flush_stdout.
29511         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
29512         * modules/error (Depends-on): Add unistd.
29513
29514 2009-11-22  Bruno Haible  <bruno@clisp.org>
29515
29516         diffseq: Add comment.
29517         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
29518
29519 2009-11-22  Jim Meyering  <meyering@redhat.com>
29520
29521         c-stack: avoid defining an unused static function
29522         * lib/c-stack.c (find_stack_direction): Do not define this function
29523         when it will not be used.
29524
29525         diffseq: avoid spurious gcc warnings
29526         * lib/diffseq.h (IF_LINT2): Define.
29527         (compareseq): Use it to initialize two members of "part".
29528         This avoids two used-uninitialized warnings.
29529
29530 2009-11-21  Jim Meyering  <meyering@redhat.com>
29531
29532         c-stack: avoid "ignoring return value of `write'" warning
29533         * lib/c-stack.c: Include "ignore-value.h".
29534         (die): Explicitly ignore each write return value.
29535         * modules/c-stack (Depends-on): Add ignore-value.
29536
29537 2009-11-21  Bruno Haible  <bruno@clisp.org>
29538
29539         diffseq: reduce scope of variable 'best'.
29540         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
29541         variable, earlier used for two different purposes.
29542
29543 2009-11-21  Jim Meyering  <meyering@redhat.com>
29544
29545         diffseq: remove useless assignment to "best"
29546         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
29547         assignment.  At that point "best" is already guaranteed to be zero.
29548
29549 2009-11-20  Eric Blake  <ebb9@byu.net>
29550
29551         build: mention ftp redirector in release announcements
29552         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
29553         values that used to come from cfg.mk; mention FTP redirect URL.
29554         * build-aux/announce-gen: Mention the mirror list.
29555         Suggested by Karl Berry.
29556
29557         nanosleep: improve port to mingw
29558         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
29559         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
29560         LIB_NANOSLEEP, but only when needed.
29561         * modules/select (Link): Document LIBSOCKET.
29562         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
29563         enough.
29564
29565         nanosleep: work around cygwin bug
29566         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
29567         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
29568         bug.
29569         (getnow): Delete, not needed.
29570         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
29571         LIB_CLOCK_GETTIME.
29572         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
29573         clock-time, gettime.
29574         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
29575         bug.
29576         * modules/nanosleep-tests: New test.
29577         * tests/test-nanosleep.c: New file.
29578
29579         sleep: work around cygwin bug
29580         * lib/sleep.c (rpl_sleep): Work around the bug.
29581         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
29582         (gl_PREREQ_SLEEP): Delete unused macro.
29583         * modules/sleep (Depends-on): Add verify.
29584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29585         * modules/unistd (Makefile.am): Substitute witness.
29586         * lib/unistd.in.h (sleep): Update prototype.
29587         * doc/posix-functions/sleep.texi (sleep): Document the bug.
29588         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
29589         * modules/sleep-tests (Depends-on): Check for alarm.
29590
29591 2009-11-20  Jim Meyering  <meyering@redhat.com>
29592
29593         maint.mk: improve sc_prohibit_magic_number_exit
29594         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
29595         so it does not match uses like System.exit(1).
29596         Add comments showing how to correct all offenders.
29597
29598 2009-11-19  Eric Blake  <ebb9@byu.net>
29599
29600         xalloc-die-tests: add missing library
29601         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
29602
29603         test-xvasprintf: silence compiler warnings
29604         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
29605         empty string from gcc.
29606
29607 2009-11-19  Jim Meyering  <meyering@redhat.com>
29608
29609         xfreopen: new module, from coreutils
29610         * modules/xfreopen: New module.
29611         * lib/xfreopen.c: New file.
29612         * lib/xfreopen.h: New file.
29613         * MODULES.html.sh (File stream based Input/Output"): Add it.
29614
29615 2009-11-19  Eric Blake  <ebb9@byu.net>
29616
29617         manywarnings: depend on warnings
29618         * modules/manywarnings (Depends-on): Add warnings.
29619
29620         build: avoid compiler warnings
29621         * lib/select.c (rpl_select): Delete unused variable.
29622         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
29623
29624 2009-11-18  Eric Blake  <ebb9@byu.net>
29625
29626         tests: avoid false negative with --with-packager
29627         * tests/test-version-etc.sh: Discard packager information.
29628         * tests/test-argp-version-etc-1.sh: Likewise.
29629         Reported by Mike Frysinger.
29630
29631         utimens: fix regression on Solaris
29632         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
29633         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
29634         can only change fd timestamps via futimesat.  Instead, use an
29635         additional witness macro to avoid BSD bug.
29636         Reported by Jim Meyering.
29637
29638 2009-11-17  Eric Blake  <ebb9@byu.net>
29639
29640         usleep: use it to simplify tests
29641         * modules/stat-time-tests (Depends-on): Add usleep.
29642         (configure.ac): Drop usleep check.
29643         * modules/chown-tests (Depends-on, configure.ac): Likewise.
29644         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
29645         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
29646         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
29647         * modules/openat-tests (Depends-on, configure.ac): Likewise.
29648         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
29649         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
29650         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
29651         Likewise.
29652         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
29653         * tests/test-lchown.h (nap): Likewise.
29654         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
29655         * tests/test-stat-time.c (nap): Likewise.
29656         * tests/test-utimens-common.h (nap): Update comments.
29657
29658         usleep: new module
29659         * modules/usleep: New file.
29660         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
29661         * lib/usleep.c (usleep): Likewise.
29662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29663         * modules/unistd (Makefile.am): Substitute witnesses.
29664         * lib/unistd.in.h (usleep): Add declaration.
29665         * doc/pastposix-functions/usleep.texi (usleep): Document this.
29666         * MODULES.html.sh (Date and time): Likewise.
29667         * modules/usleep-tests (Depends-on): New test.
29668         * tests/test-usleep.c: New file.
29669
29670         chown: work around OpenBSD bug
29671         * lib/chown.c (rpl_chown): Work around the bug.
29672         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
29673         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
29674         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
29675         * modules/chown (Depends-on): Add stdbool.
29676         * modules/lchown (Depends-on): Likewise.
29677         * doc/posix-functions/chown.texi (chown): Document the bug.
29678         * doc/posix-functions/lchown.texi (lchown): Likewise.
29679         * tests/test-lchown.h (test_chown): Relax test.
29680
29681         mkstemp: avoid conflict with C++ keyword template
29682         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
29683         * lib/mkostemp.c (mkostemp): Likewise.
29684         * lib/mkostemps.c (mkostemps): Likewise.
29685         * lib/mkstemp.c (mkstemp): Likewise.
29686         * lib/mkstemps.c (mkstemps): Likewise.
29687
29688         xalloc-die-tests: optimize
29689         * tests/test-xalloc-die.sh: Reduce number of processes.
29690
29691 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29692
29693         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
29694         patch from ludo@gnu.org (Ludovic Courtès).
29695
29696 2009-11-17  Jim Meyering  <meyering@redhat.com>
29697
29698         version-etc: use proper license string
29699         * modules/version-etc (License): Use LGPL, not LGPLv3+.
29700         * modules/version-etc-fsf: Likewise.
29701
29702 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29703
29704         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
29705         printed to stdout.  Deal with EOL differences.
29706
29707 2009-11-17  Eric Blake  <ebb9@byu.net>
29708
29709         unsetenv: work around Solaris bug
29710         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
29711         * lib/unsetenv.c (rpl_unsetenv): Work around it.
29712         Reported by Jim Meyering.
29713
29714         vasnprintf: avoid compiler warnings
29715         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
29716         variables.
29717         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
29718
29719 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29720
29721         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
29722         settings since xalloc-die is no longer the self test,
29723         xalloc-die.sh is.
29724
29725 2009-11-17  Jim Meyering  <meyering@redhat.com>
29726
29727         test-xalloc-die.sh: make the code agree with the commit log
29728         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
29729         at the end, just in case you happen to have a test-xalloc-die
29730         program in some other PATH directory.
29731
29732         test-xalloc-die.sh: fix a portability bug
29733         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
29734         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
29735         Otherwise, argv[0] (as often seen in diagnostics) would be too
29736         system-dependent, sometimes with, and sometimes without the leading "./".
29737
29738         version-etc-fsf: relax license to LGPLv3+
29739         * modules/version-etc-fsf (License): Relax license.
29740
29741 2009-11-16  Eric Blake  <ebb9@byu.net>
29742
29743         xalloc-die-tests: avoid printing null pointer
29744         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
29745         shell script.
29746         * tests/test-xalloc-die.c (program_name): Declare.
29747         * tests/test-xalloc-die.sh (tmpfiles): New file.
29748
29749         setenv, unsetenv: work around various bugs
29750         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
29751         (setenv) [HAVE_SETENV]: Work around bugs.
29752         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
29753         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
29754         for bugs.
29755         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
29756         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
29757         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
29758         * modules/stdlib (Makefile.am): Update substitutions.
29759         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
29760         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
29761         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29762         * modules/setenv-tests: New test.
29763         * modules/unsetenv-tests: Likewise.
29764         * tests/test-setenv.c: New file.
29765         * tests/test-unsetenv.c: Likewise.
29766
29767 2009-11-16  Jim Meyering  <meyering@redhat.com>
29768
29769         version-etc: relax license to LGPLv3+
29770         * modules/version-etc (License): Relax license.
29771
29772         better AC_REQUIRE expanded-before-required-warning avoidance
29773         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
29774         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
29775         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
29776         which is no longer needed.
29777
29778 2009-11-16  Eric Blake  <ebb9@byu.net>
29779
29780         test-freading: clean up temporary file
29781         * tests/test-freading.c (main): Remove file on success, and use
29782         ASSERT more liberally.
29783         Reported by Jim Meyering.
29784
29785 2009-11-16  Jim Meyering  <meyering@redhat.com>
29786
29787         avoid new AC_REQUIRE expanded-before-required warnings
29788         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
29789         merely using it.
29790         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
29791         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
29792
29793 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29794
29795         * tests/test-xalloc-die.c: New file.
29796         * modules/xalloc-die-tests: New file.
29797         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
29798         XFAIL_TESTS so it can be appended by modules.
29799
29800 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29801
29802         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
29803         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
29804
29805 2009-11-14  Eric Blake  <ebb9@byu.net>
29806
29807         fnmatch: avoid compiler warning
29808         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
29809         to silence compiler warning about mismatch signedness in ?:.
29810         Reported by Robert Millan.
29811
29812         intprops: add double-inclusion guard
29813         * lib/intprops.h: Allow idempotent includes.
29814         Suggested by Bruce Korb.
29815
29816         openat: detect Solaris fchownat bug
29817         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
29818         penalizing glibc chownat when only lchownat is broken.
29819         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
29820         trailing slash bugs.
29821         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
29822         * modules/openat-tests (Files): Include more files.
29823         (Depends-on): Add mgetgroups, sleep, stat-time.
29824         (configure.ac): Add additional checks.
29825         (Makefile.am): Build new test.
29826         * tests/test-fchownat.c: New file.
29827
29828         lchown: detect Solaris and FreeBSD bug
29829         * lib/lchown.c (rpl_lchown): Work around bug.
29830         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
29831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29832         * modules/unistd (Makefile.am): Populate it.
29833         * lib/unistd.in.h (lchown): Update declaration.
29834         * doc/posix-functions/lchown.texi (lchown): Document the bug.
29835         * modules/lchown-tests: New file.
29836         * tests/test-lchown.h (test_lchown): Likewise.
29837         * tests/test-lchown.c (main): Likewise.
29838
29839         chown: detect Solaris and FreeBSD bug
29840         * lib/chown.c (rpl_chown): Work around bug.
29841         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
29842         (gl_PREREQ_CHOWN): Delete.
29843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29844         * modules/unistd (Makefile.am): Populate it.
29845         * lib/unistd.in.h (chown): Update declaration.
29846         * lib/lchown.c (chown): Update client.
29847         * modules/lchown (Depends-on): Add lstat.
29848         * doc/posix-functions/chown.texi (chown): Document the bug.
29849         * doc/posix-functions/getgroups.texi (getgroups): Document
29850         getgroups pitfall.
29851         * modules/chown-tests: New file.
29852         * tests/test-chown.h (test_chown): Likewise.
29853         * tests/test-chown.c (main): Likewise.
29854
29855 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
29856
29857         gnulib-tool: correctly detect absence of m4 directories
29858         * gnulib-tool: Avoid extra newline on data passed to wc -l.
29859
29860 2009-11-14  Jim Meyering  <meyering@redhat.com>
29861
29862         maint.mk: Prohibit inclusion of "xalloc.h" without use.
29863         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29864
29865 2009-11-14  John W. Eaton  <jwe@gnu.org>
29866
29867         strftime.h: wrap funtion declaration in extern "C" block
29868         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
29869
29870 2009-11-13  Eric Blake  <ebb9@byu.net>
29871
29872         getgroups: avoid compiler warning
29873         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
29874
29875         getgroups: work around FreeBSD bug
29876         * lib/getgroups.c (rpl_getgroups): Work around the bug.
29877         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
29878         * doc/posix-functions/getgroups.texi (getgroups): Document it.
29879         * tests/test-getgroups.c (main): Fix buffer overrun.
29880
29881         getgroups: avoid compilation failure
29882         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
29883         * modules/getgroups (Depends-on): Add stdint.
29884
29885 2009-11-13  Jim Meyering  <meyering@redhat.com>
29886
29887         test-getgroups: avoid compilation failure
29888         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
29889
29890 2009-11-13  Eric Blake  <ebb9@byu.net>
29891
29892         mgetgroups: new module, taken from coreutils
29893         * modules/mgetgroups: New file.
29894         * lib/mgetgroups.h: Likewise.
29895         * lib/mgetgroups.c (mgetgroups): Likewise.
29896         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
29897         * MODULES.html.sh (Users and groups): Mention it.
29898
29899         getgroups: don't expose GETGROUPS_T to user
29900         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
29901         an element at a time if GETGROUPS_T is wrong size.
29902         * lib/getugroups.h (getugroups): Change signature.
29903         * lib/unistd.in.h (getgroups): Likewise.
29904         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
29905         signature needs fixing.
29906         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
29907         AC_TYPE_GETGROUPS.
29908         * modules/group-member (Depends-on): Add getgroups.
29909         * lib/group-member.c (group_info, get_group_info): Use gid_t.
29910         (group_member): Rely on getgroups replacement.
29911         * lib/getugroups.c (getugroups): Use gid_t.
29912         * tests/test-getgroups.c (main): Likewise.
29913         * NEWS: Mention the signature change.
29914         * doc/posix-functions/getgroups.texi (getgroups): Mention the
29915         problem with signature.
29916         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
29917         GETGROUPS_T is still useful for setgroups.
29918
29919         getgroups, getugroups: provide stubs for mingw
29920         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
29921         * lib/getugroups.c (getugroups): Likewise.
29922         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
29923         function.  Modernize replacement scheme.
29924         (gl_PREREQ_GETGROUPS): Delete.
29925         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
29926         * modules/getgroups (configure.ac): Declare witness.
29927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29928         * modules/unistd (Depends-on): Substitute witness.
29929         * lib/unistd.in.h (getgroups): Declare replacement.
29930
29931         getgroups: avoid calling exit
29932         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
29933         drop xalloc.
29934         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
29935         dependencies.
29936         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
29937         exiting, in the rare case of malloc failure.
29938
29939         getgroups: fix logic error
29940         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
29941         has more than 20 groups.
29942         * modules/getgroups-tests: New test.
29943         * tests/test-getgroups.c: New file.
29944
29945 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29946
29947         * tests/test-base64.c: Improve.
29948
29949 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29950
29951         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
29952         Blake <ebb9@byu.net>.
29953
29954 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29955
29956         * tests/test-xvasprintf.c: Add %s%s related checks.
29957
29958 2009-11-12  Eric Blake  <ebb9@byu.net>
29959
29960         version-etc: match standards.texi style
29961         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
29962         and use <> only for URLs.
29963
29964 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
29965
29966         fts: do not fail on a submount during traversal
29967         * lib/fts.c (fts_build): Read the stat info again after opening
29968         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
29969         Original report at http://bugzilla.redhat.com/501848.
29970
29971 2009-11-12  Jim Meyering  <meyering@redhat.com>
29972
29973         bootstrap: sync from coreutils
29974         * build-aux/bootstrap (bootstrap_epilogue): New function.
29975         Use git_modules_config in one more place.  This make bootstrap's
29976         --gnulib-srcdir option more useful for testing.
29977
29978         bootstrap: generalize autoheader check
29979         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29980         AC_CONFIG_HEADERS.
29981
29982 2009-11-11  Eric Blake  <ebb9@byu.net>
29983
29984         mkfifoat: use new modules for Solaris and BSD bugs
29985         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29986         * lib/mkfifoat.c (mknodat): Split...
29987         * lib/mknodat.c (mknodat): ...into new file.
29988         * modules/mkfifoat (Files): Ship new file.
29989         (Depends-on): Add mkfifo, mknod.
29990         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29991         (Depends-on): Add symlink.
29992         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29993         redundant with test_mkfifo.h.
29994         (do_mkfifoat, do_mknodat): New helpers.
29995
29996         mknod: new module
29997         * modules/mknod: New file.
29998         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29999         * lib/mknod.c (mknod): Likewise.
30000         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
30001         defaults.
30002         * modules/sys_stat (Makefile.am): Substitute them.
30003         * lib/sys_stat.in.h (mknod): Declare replacement.
30004         * MODULES.html.sh (Support for systems lacking POSIX:2008):
30005         Document it.
30006         * doc/posix-functions/mknod.texi (mknod): Likewise.
30007         * modules/mknod-tests: New test.
30008         * tests/test-mknod.c: Likewise.
30009
30010         mkfifo: new module
30011         * modules/mkfifo: New file.
30012         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
30013         * lib/mkfifo.c (mkfifo): Likewise.
30014         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
30015         defaults.
30016         * modules/sys_stat (Makefile.am): Substitute them.
30017         * lib/sys_stat.in.h (mkfifo): Declare replacement.
30018         * MODULES.html.sh (Support for systems lacking POSIX:2008):
30019         Document it.
30020         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
30021         * modules/mkfifo-tests: New test.
30022         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
30023         from test-mkfifoat.c.
30024         * tests/test-mkfifo.c: New file.
30025
30026         readlink: detect FreeBSD bug
30027         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
30028         slash on symlink.
30029         * doc/posix-functions/readlink.texi (readlink): Document the bug.
30030         * tests/test-readlink.h (test_readlink): Enhance test.
30031
30032         symlink: detect FreeBSD bug
30033         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
30034         slash on symlink.
30035         * doc/posix-functions/symlink.texi (symlink): Document the bug.
30036         * tests/test-symlink.h (test_symlink): Enhance test.
30037
30038 2009-11-10  Eric Blake  <ebb9@byu.net>
30039
30040         link: detect FreeBSD bug
30041         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
30042         symlink.
30043         * doc/posix-functions/link.texi (link): Document the bug.
30044         * tests/test-link.h (test_link): Enhance test.
30045         * tests/test-linkat.c (main): Update caller.
30046
30047         unlink, remove: detect FreeBSD bug
30048         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
30049         slash on symlink.
30050         * doc/posix-functions/unlink.texi (unlink): Document the bug.
30051         * doc/posix-functions/remove.texi (remove): Likewise.
30052         * tests/test-unlink.h (test_unlink): Enhance test.
30053         * tests/test-remove.c (main): Likewise.
30054
30055 2009-11-09  Eric Blake  <ebb9@byu.net>
30056
30057         rename: detect FreeBSD bug
30058         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
30059         slash on symlink.
30060         * modules/renameat-tests (Depends-on): Add filenamecat.
30061         * tests/test-rename.h (test_rename): Allow one more errno.
30062         * tests/test-renameat.c (main): Likewise.
30063         * doc/posix-functions/rename.texi (rename): Document the bug.
30064
30065         open: detect FreeBSD bug
30066         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
30067         symlink.
30068         * doc/posix-functions/open.texi (open): Document the bug.
30069         * doc/posix-functions/utimes.texi (utimes): Likewise.
30070         * tests/test-open.h (test_open): Add parameters, and test symlink
30071         handling.
30072         * tests/test-open.c (main): Adjust caller.
30073         * tests/test-fcntl-safer.c (main): Likewise.
30074         * modules/open-tests (Depends-on): Add stdbool, symlink.
30075         * modules/fcntl-safer-tests (Depends-on): Likewise.
30076         * tests/test-openat.c (main): Add test-open tests.
30077
30078         stat: detect FreeBSD bug
30079         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
30080         symlink.
30081         * doc/posix-functions/stat.texi (stat): Document the bug.
30082         * tests/test-stat.h (test_stat_func): Add argument.
30083         * tests/test-stat.c (main): Adjust caller.
30084         * tests/test-fstatat.c (main): Likewise.
30085         * modules/stat-tests (Depends-on): Add stdbool, symlink.
30086         Reported by Jim Meyering.
30087
30088 2009-11-09  James Youngman  <jay@gnu.org>
30089
30090         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
30091         * lib/strftime.c: Correct placement of #include "ignore-value.h".
30092
30093 2009-11-08  Jim Meyering  <meyering@redhat.com>
30094
30095         utimens: remove invalid futimesat call
30096         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
30097         It used the file descriptor of the target file as the DIR_FD
30098         parameter and NULL as the file name.  That caused failure with
30099         errno == EFAULT on FreeBSD-8.0-rc2
30100
30101 2009-11-07  Eric Blake  <ebb9@byu.net>
30102
30103         fflush, freadseek: use fseeko, not fseek
30104         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
30105         (clear_ungetc_buffer): Avoid potential problems on large files.
30106         * lib/freadseek.c (freadseek): Likewise.
30107         * modules/freadseek (Depends-on): Add fseeko.
30108         * modules/fseek (configure.ac): Set a witness.
30109         * tests/test-fflush.c (main): Use fseeko.
30110         * tests/test-fpurge.c (fseek): Disable link warning.
30111         * tests/test-freadable.c (fseek): Likewise.
30112         * tests/test-freading.c (fseek): Likewise.
30113         * tests/test-fseeko.c (fseek): Likewise.
30114         * tests/test-ftell.c (fseek): Likewise.
30115         * tests/test-ftello.c (fseek): Likewise.
30116         * tests/test-fwritable.c (fseek): Likewise.
30117         * tests/test-fwriting.c (fseek): Likewise.
30118
30119 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30120
30121         * modules/memchr (Depends-on): Drop getpagesize dependency.
30122
30123 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30124
30125         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
30126         Reported by Ludovic Courtès.
30127         * build-aux/pmccabe2html: Improve example usage.
30128         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
30129
30130 2009-11-06  Jim Meyering  <meyering@redhat.com>
30131
30132         do-release-commit-and-tag: New module.
30133         Automate the release-commit and tag process.
30134         * build-aux/do-release-commit-and-tag: New script, from coreutils.
30135         * modules/do-release-commit-and-tag: New file.
30136         * MODULES.html.sh (Support for maintaining and releasing): Add it.
30137
30138 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30139
30140         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
30141         because test-select.c uses inet_pton.
30142
30143 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30144
30145         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
30146         GETADDRINFO_LIB.  Bump serial number.
30147         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
30148         Suggested by Eric Blake <ebb9@byu.net>.
30149
30150 2009-11-05  Eric Blake  <ebb9@byu.net>
30151
30152         strtod: detect darwin bug
30153         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
30154         Reported by Leo Davis.
30155
30156         freopen-safer: new module
30157         * modules/freopen-safer: New module.
30158         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
30159         * lib/freopen-safer.c (freopen_safer): New file.
30160         * lib/stdio-safer.h (freopen_safer): New declaration.
30161         * lib/stdio--.h (freopen): New override.
30162         * MODULES.html.sh (File stream based Input/Output): Mention it.
30163         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
30164         freopen-safer module.
30165         * doc/posix-functions/stderr.texi (stderr): Likewise.
30166         * doc/posix-functions/stdin.texi (stdin): Likewise.
30167         * doc/posix-functions/stdout.texi (stdout): Likewise.
30168         * modules/freopen-safer-tests: New test.
30169         * tests/test-reopen-safer.c: New file.
30170
30171 2009-11-05  Jim Meyering  <meyering@redhat.com>
30172
30173         maint.mk: Prohibit inclusion of "close-stream.h" without use.
30174         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
30175
30176 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30177
30178         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
30179
30180 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30181
30182         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
30183
30184 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30185
30186         Fix link error.
30187         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30188         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30189
30190 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30191
30192         * tests/test-func.c: Also test value of __func__.
30193
30194 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30195
30196         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
30197         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
30198
30199 2009-11-05  Bruno Haible  <bruno@clisp.org>
30200
30201         Fix link error.
30202         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30203         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30204         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
30205
30206 2009-11-05  Bruno Haible  <bruno@clisp.org>
30207
30208         Tests for module 'inet_pton'.
30209         * modules/inet_pton-tests: New file.
30210         * tests/test-inet_pton.c: New file.
30211
30212 2009-11-05  Bruno Haible  <bruno@clisp.org>
30213
30214         Tests for module 'inet_ntop'.
30215         * modules/inet_ntop-tests: New file.
30216         * tests/test-inet_ntop.c: New file.
30217
30218 2009-11-04  Eric Blake  <ebb9@byu.net>
30219
30220         stdlib-safer: wrap all mkstemp variants
30221         * modules/mkostemp (configure.ac): Set witness.
30222         * modules/mkostemps (configure.ac): Likewise.
30223         * modules/mkstemps (configure.ac): Likewise.
30224         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
30225         (mkstemps_safer): Wrap more functions.
30226         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
30227         wrapping.
30228         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
30229         (mkstemps_safer): Implement the wrappers.
30230
30231         mkstemps, mkostemps: new modules
30232         * modules/mkostemps: New module.
30233         * modules/mkstemps: Likewise.
30234         * lib/mkostemps.c (mkostemps): New file.
30235         * lib/mkstemps.c (mkstemps): Likewise.
30236         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
30237         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
30238         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
30239         * modules/stdlib (Makefile.am): Substitute them.
30240         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
30241         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
30242         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30243         * doc/gnulib.texi (Glibc stdlib.h): Include them.
30244         * MODULES.html.sh (File system functions): Mention them.
30245
30246         tempname: resync from glibc
30247         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
30248         same values for __GT_FILE as glibc.  Abort even when assertions
30249         are disabled.
30250         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
30251         match its value otherwise.  Allow idempotent inclusion.
30252         * lib/mkdtemp.c (mkdtemp): Adjust caller.
30253         * lib/mkostemp.c (mkostemp): Likewise.
30254         * lib/mkstemp.c (mkstemp): Likewise.
30255         * lib/tmpfile.c (tmpfile): Likewise.
30256         * NEWS: Document this.
30257
30258         utimens: fix use of futimens on older Linux
30259         * lib/utimens.c (fdutimens): Use updated, rather than original,
30260         timespec to avoid bug in older Linux kernel.
30261         Reported by Simon Josefsson.
30262
30263 2009-11-04  Bruno Haible  <bruno@clisp.org>
30264
30265         Make num_processors more flexible and consistent.
30266         * lib/nproc.h (enum nproc_query): New type.
30267         (num_processors): Add a 'query' argument.
30268         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
30269         (num_processors): Add a 'query' argument. Test the value of the
30270         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
30271         mingw, count the number of CPUs available for the current process.
30272         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
30273         Check for sched_getaffinity and sched_getaffinity_np.
30274         * modules/nproc (Depends-on): Add c-ctype, extensions.
30275         * NEWS: Mention the change.
30276
30277 2009-11-03  Bruno Haible  <bruno@clisp.org>
30278
30279         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
30280
30281 2009-11-03  Jim Meyering  <meyering@redhat.com>
30282
30283         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
30284         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
30285         if it is defined.
30286
30287 2009-11-02  Eric Blake  <ebb9@byu.net>
30288
30289         mktime, timegm: share common declaration
30290         * lib/mktime-internal.h: New file.
30291         * lib/mktime.c: Use it rather than open-coding a declaration.
30292         * lib/timegm.c: Likewise.
30293         * modules/mktime (Files): Ship it.
30294         * modules/timegm (Files): Likewise.
30295         Suggested by Bruno Haible.
30296
30297         test-update-copyright: update test to match script changes
30298         * tests/test-update-copyright.sh: Avoid hard-coding perl
30299         location.  Don't update *.bak created by earlier runs.
30300
30301 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30302             Simon Josefsson  <simon@josefsson.org>
30303             Bruno Haible  <bruno@clisp.org>
30304
30305         Fix link error on Solaris 8.
30306         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
30307         also in libnsl. Define also INET_PTON_LIB.
30308         * modules/inet_pton (Link): New section.
30309
30310 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30311             Bruno Haible  <bruno@clisp.org>
30312
30313         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
30314         * modules/inet_ntop (Link): New section.
30315         Reported by Boyan Kasarov <bkasarov@gmail.com>.
30316
30317 2009-11-02  Eric Blake  <ebb9@byu.net>
30318
30319         maint: avoid compiler warnings in m4 macros
30320         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
30321         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
30322
30323 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30324
30325         * m4/pmccabe2html.m4: Remove file.
30326         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
30327         function.  Change maintainer.
30328         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
30329         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
30330         Courtès).
30331
30332 2009-10-31  Eric Blake  <ebb9@byu.net>
30333
30334         fseeko: fix m4 regression
30335         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
30336         regression from 2009-10-27.
30337         Reported by Ralf Wildenhues.
30338
30339 2009-10-31  Jim Meyering  <meyering@redhat.com>
30340
30341         inttostr: aesthetics and improved (compile-time) safety
30342         Define inttype_is_signed rather than inttype_is_unsigned,
30343         since the sole use is via "#if inttype_is_signed".
30344         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
30345         inttype_is_unsigned.
30346         * lib/offtostr.c (inttype_is_signed): Likewise.
30347         * lib/uinttostr.c (inttype_is_signed): Likewise.
30348         * lib/umaxtostr.c (inttype_is_signed): Likewise.
30349         * lib/inttostr.c (inttostr): Use verify to cross-check the
30350         inttype_is_signed value and the signedness of the actual type.
30351         * modules/inttostr (Depends-on): Add verify.
30352
30353 2009-10-30  Eric Blake  <ebb9@byu.net>
30354
30355         build: avoid compiler warnings
30356         * lib/fchmodat.c (lchmod): Mark unused variables.
30357         * lib/getopt.c (_getopt_initialize): Likewise.
30358         * lib/mktime.c (__mktime_internal): Provide prototype.
30359         * lib/inttostr.c (inttostr): Avoid compiler warning even with
30360         older gcc that do not understand #pragma GCC diagnostic.
30361         * lib/uinttostr.c (inttype_is_unsigned): Define.
30362         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
30363
30364 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30365
30366         stat: fix compilation on AIX
30367         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
30368         only see struct stat64.
30369
30370 2009-10-30  Eric Blake  <ebb9@byu.net>
30371
30372         exclude: make more robust
30373         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
30374         rather than masking a coding bug.
30375         Suggested by Bruno Haible.
30376
30377 2009-10-30  Jim Meyering  <meyering@redhat.com>
30378
30379         perl scripts: remove #!/usr/bin/perl in favor of more portable...
30380         Rather than putting #!/usr/bin/perl on the first line,
30381         start with a variant of what's recommended by "man perlrun" that
30382         invokes the first "perl" program from your shell's search path.
30383         * build-aux/gitlog-to-changelog: Replace #!... as above.
30384         Add a "Local Variables" perl mode setting.
30385         Prompted by a patch from Ludovic Courtès.
30386         Improved by Eric Blake.
30387         * build-aux/useless-if-before-free: Likewise.
30388         * build-aux/announce-gen: Likewise.
30389         * build-aux/update-copyright: Likewise.
30390
30391 2009-10-29  Eric Blake  <ebb9@byu.net>
30392
30393         filenamecat-lgpl: adjust clients
30394         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
30395         filenamecat.
30396         * modules/renameat (Depends-on): Likewise.
30397
30398         filenamecat: split into filenamecat-lgpl
30399         * modules/filenamecat-lgpl: New module.
30400         * modules/filenamecat (Files): Move library-safe files into
30401         filenamecat-lgpl.
30402         (Depends-on): Add filenamecat-lgpl.
30403         (configure.ac): Declare witness.
30404         * lib/filenamecat.h (file_name_concat): Only declare when using
30405         GPL module.
30406         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
30407         Move...
30408         * lib/filenamecat-lgpl.c: ...into new file.
30409         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
30410         (gl_FILE_NAME_CONCAT): Use it.
30411         * MODULES.html.sh (File system functions): Mention new module.
30412
30413         argp: avoid memory leak
30414         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
30415         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
30416         base_name, since the latter malloc()s and can call exit().
30417         Leak introduced 2006-07-03.
30418
30419         dirname-lgpl: adjust clients that don't need full dirname
30420         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
30421         * modules/filenamecat (Depends-on): Likewise.
30422         * modules/linkat (Depends-on): Likewise.
30423         * modules/mkancesdirs (Depends-on): Likewise.
30424         * modules/mkdir (Depends-on): Likewise.
30425         * modules/openat (Depends-on): Likewise.
30426         * modules/savewd (Depends-on): Likewise.
30427         * modules/rename (Depends-on): Likewise.
30428         (License): Relax license.
30429         * modules/mkdir-tests (Depends-on): Drop progname.
30430         (Makefile.am): Delete unneeded LDADD.
30431         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
30432
30433         dirname: split into dirname-lgpl
30434         * modules/dirname-lgpl: New module.
30435         * modules/dirname (Files): Move library-safe files into
30436         dirname-lgpl.
30437         (Depends-on): Add dirname-lgpl.
30438         (configure.ac): Declare witness.
30439         * modules/double-slash-root (License): Relax license.
30440         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
30441         module.
30442         * lib/dirname.c (dir_len, mdir_name): Move...
30443         * lib/dirname-lgpl.c: ...into new file.
30444         * lib/basename.c (last_component, base_len): Move...
30445         * lib/basename-lgpl.c: ...into new file.
30446         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
30447         (gl_DIRNAME): Use it.
30448         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
30449         Mention new module.
30450         * modules/dirname-tests (Depends-on): Add progname.
30451         * tests/test-dirname.c (program_name): Delete.
30452
30453         mkdir: make safe for libraries
30454         * modules/mkdir (Depends-on): Drop xalloc.
30455         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
30456         exit.
30457
30458         tests: avoid some compiler warnings
30459         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
30460         literals.
30461         * tests/test-memchr.c (main): Avoid type mismatch.
30462         * tests/test-arpa_inet.c (main): Avoid unused parameters.
30463         * tests/test-base64.c (main): Likewise.
30464         * tests/test-getdelim.c (main): Likewise.
30465         * tests/test-gethostname.c (main): Likewise.
30466         * tests/test-getline.c (main): Likewise.
30467         * tests/test-netinet_in.c (main): Likewise.
30468         * tests/test-select.c (open_server_socket, main): Likewise.
30469         * tests/test-select-stdin.c (main): Likewise.
30470         * tests/test-sockets.c (main): Likewise.
30471         * tests/test-strsignal.c (main): Likewise.
30472         * tests/test-sys_select.c (main): Likewise.
30473         * tests/test-sys_socket.c (main): Likewise.
30474         * tests/test-u64.c (main): Likewise.
30475         * tests/test-xfprintf-posix.c (main): Likewise.
30476         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
30477
30478         sockets: avoid compiler warning
30479         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
30480
30481         maint: detect usage(1) and other suspicious exits
30482         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
30483
30484 2009-10-29  Jim Meyering  <meyering@redhat.com>
30485
30486         timespec: long-to-int truncation could make timespec_cmp malfunction
30487         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
30488         a multiple of 2^32 nanoseconds as no difference.
30489
30490 2009-10-28  Jim Meyering  <meyering@redhat.com>
30491
30492         fprintftime: wrap macro code argument in "do {...} while(0)"
30493         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
30494         cpy macro must be a statement that can be followed by a semicolon.
30495         Now that the else clause contains a comment and is hence longer
30496         than one line, I require curly braces.  That in turn requires
30497         that we wrap this code block in the standard do...while(0).
30498
30499         fprintftime: remove stray semicolon from previous change
30500         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
30501
30502         fprintftime: avoid a warning about ignored fwrite return value
30503         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
30504         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
30505         that is unsafe.
30506         * modules/fprintftime (Depends-on): Add ignore-value.
30507
30508         exclude: avoid an unwarranted warning
30509         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
30510
30511 2009-10-27  Eric Blake  <ebb9@byu.net>
30512
30513         fseek: avoid compilation failure when fflush is replaced
30514         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
30515         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
30516         module is in use.
30517         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
30518         module is not in use; since REPLACE_FSEEK worked otherwise.
30519         (GNULIB_FTELLO): Likewise for ftell.
30520         Reported by Ian Beckwith and others.
30521
30522 2009-10-27  Bruno Haible  <bruno@clisp.org>
30523
30524         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
30525         Reported by Jim Meyering.
30526
30527 2009-10-27  Jim Meyering  <jim@meyering.net>
30528             Bruno Haible  <bruno@clisp.org>
30529
30530         Avoid warning despite dropping the return value of fwrite.
30531         * lib/unicodeio.c: Include ignore-value.h.
30532         (fwrite_success_callback): Explicitly ignore fwrite's return value.
30533         * modules/unicodeio (Depends-on): Add ignore-value.
30534
30535 2009-10-26  Eric Blake  <ebb9@byu.net>
30536
30537         areadlinkat: fix fallback path
30538         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
30539         pointer and zero.
30540
30541 2009-10-22  Pádraig Brady  <P@draigBrady.com>
30542
30543         Use a better IO block size for modern systems
30544         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
30545         * lib/md2.c: Likewise.
30546         * lib/md4.c: Likewise.
30547         * lib/md5.c: Likewise.
30548         * lib/sha1.c: Likewise.
30549         * lib/sha256.c: Likewise.
30550         * lib/sha512.c: Likewise.
30551
30552 2009-10-22  Eric Blake  <ebb9@byu.net>
30553
30554         tests: avoid several compiler warnings
30555         * tests/test-getcwd.c (main): Avoid buffer underflow.
30556         * tests/test-getdate.c (main): String literals are not safe with
30557         putenv, so use setenv.  Declare unused argument.
30558         * modules/getdate-tests (Depends-on): Add setenv.
30559         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
30560         problems with string literals in char *.
30561         * tests/test-hash.c (main): Avoid shadowing declaration.
30562         (insert_new): Treat string literals as char const *.
30563         * tests/test-getopt.h (test_getopt): Likewise.
30564         (getopt_loop): Alter types to minimize casting elsewhere.
30565         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
30566         (test_getopt_long_posix): Likewise.
30567         (do_getopt_long): Add wrapper to minimize casting.
30568         * tests/test-atexit.c (clear_temp_file): Use void.
30569         * tests/test-areadlink-with-size.c (main): Declare unused
30570         arguments.
30571         * tests/test-areadlink.c (main): Likewise.
30572         * tests/test-areadlinkat-with-size.c (main): Likewise.
30573         * tests/test-areadlinkat.c (main): Likewise.
30574         * tests/test-canonicalize-lgpl.c (main): Likewise.
30575         * tests/test-canonicalize.c (main): Likewise.
30576         * tests/test-dirent-safer.c (main): Likewise.
30577         * tests/test-dirname.c (main): Likewise.
30578         * tests/test-dup2.c (main): Likewise.
30579         * tests/test-fchdir.c (main): Likewise.
30580         * tests/test-fcntl-h.c (main): Likewise.
30581         * tests/test-fcntl-safer.c (main): Likewise.
30582         * tests/test-fdopendir.c (main): Likewise.
30583         * tests/test-fdutimensat.c (main): Likewise.
30584         * tests/test-fflush.c (main): Likewise.
30585         * tests/test-filenamecat.c (main): Likewise.
30586         * tests/test-filevercmp.c (main): Likewise.
30587         * tests/test-fopen-safer.c (main): Likewise.
30588         * tests/test-fopen.c (main): Likewise.
30589         * tests/test-fpending.c (main): Likewise.
30590         * tests/test-fpurge.c (main): Likewise.
30591         * tests/test-freading.c (main): Likewise.
30592         * tests/test-fstatat.c (main): Likewise.
30593         * tests/test-fsync.c (main): Likewise.
30594         * tests/test-futimens.c (main): Likewise.
30595         * tests/test-getndelim2.c (main): Likewise.
30596         * tests/test-gettimeofday.c (main): Likewise.
30597         * tests/test-getopt.c (main): Likewise.
30598         * tests/test-i-ring.c (main): Likewise.
30599         * tests/test-inttypes.c (main): Likewise.
30600         * tests/test-link.c (main): Likewise.
30601         * tests/test-lstat.c (main): Likewise.
30602         * tests/test-math.c (main): Likewise.
30603         * tests/test-md5.c (main): Likewise.
30604         * tests/test-memchr2.c (main): Likewise.
30605         * tests/test-memrchr.c (main): Likewise.
30606         * tests/test-mkdir.c (main): Likewise.
30607         * tests/test-mkdirat.c (main): Likewise.
30608         * tests/test-mkfifoat.c (main): Likewise.
30609         * tests/test-open.c (main): Likewise.
30610         * tests/test-openat-safer.c (main): Likewise.
30611         * tests/test-openat.c (main): Likewise.
30612         * tests/test-quotearg.c (main): Likewise.
30613         * tests/test-rawmemchr.c (main): Likewise.
30614         * tests/test-readlink.c (main): Likewise.
30615         * tests/test-remove.c (main): Likewise.
30616         * tests/test-rename.c (main): Likewise.
30617         * tests/test-renameat.c (main): Likewise.
30618         * tests/test-rmdir.c (main): Likewise.
30619         * tests/test-sha1.c (main): Likewise.
30620         * tests/test-signal.c (main): Likewise.
30621         * tests/test-sigaction.c (main): Likewise.
30622         * tests/test-stat.c (main): Likewise.
30623         * tests/test-stat-time.c (main): Likewise.
30624         * tests/test-stddef.c (main): Likewise.
30625         * tests/test-stdint.c (main): Likewise.
30626         * tests/test-stdio.c (main): Likewise.
30627         * tests/test-stdlib.c (main): Likewise.
30628         * tests/test-strchrnul.c (main): Likewise.
30629         * tests/test-strerror.c (main): Likewise.
30630         * tests/test-string.c (main): Likewise.
30631         * tests/test-strtod.c (main): Likewise.
30632         * tests/test-strverscmp.c (main): Likewise.
30633         * tests/test-symlink.c (main): Likewise.
30634         * tests/test-symlinkat.c (main): Likewise.
30635         * tests/test-sys_stat.c (main): Likewise.
30636         * tests/test-sys_time.c (main): Likewise.
30637         * tests/test-time.c (main): Likewise.
30638         * tests/test-unistd.c (main): Likewise.
30639         * tests/test-unlink.c (main): Likewise.
30640         * tests/test-unlinkat.c (main): Likewise.
30641         * tests/test-utimens.c (main): Likewise.
30642         * tests/test-utimensat.c (main): Likewise.
30643         * tests/test-version-etc.c (main): Likewise.
30644         * tests/test-wchar.c (main): Likewise.
30645         * tests/test-wctype.c (main): Likewise.
30646         * tests/test-xprintf-posix.c (main): Likewise.
30647         * tests/test-posixtm.c (main): Likewise.
30648         (STREQ): Delete unused macro.
30649         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
30650         shadowed variables.
30651         * tests/test-memchr.c (main): Likewise.
30652
30653 2009-10-21  Eric Blake  <ebb9@byu.net>
30654
30655         areadlinkat: avoid failure on older glibc
30656         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
30657         rather than mis-comparing 0 against FUNC_RESULT of char*.
30658
30659 2009-10-21  Bruno Haible  <bruno@clisp.org>
30660
30661         * modules/stpncpy (License): Relicense under LGPLv2+.
30662         Reported by David Lutterkort <lutter@redhat.com>.
30663
30664 2009-10-20  Eric Blake  <ebb9@byu.net>
30665
30666         utimensat: work around Solaris 9 bug
30667         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
30668         has trailing slash bugs.
30669         * tests/test-lutimens.h (test_lutimens): Enhance test.
30670         * tests/test-utimens.h (test_utimens): Likewise.
30671         * doc/posix-functions/utime.texi (utime): Enhance documentation.
30672         * doc/posix-functions/utimes.texi (utimes): Likewise.
30673         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30674         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
30675         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
30676         * doc/posix-functions/futimens.texi (futimens): Likewise.
30677
30678         fdutimensat: new module
30679         * modules/fdutimensat: New file.
30680         * lib/fdutimensat.c (fdutimensat): Likewise.
30681         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
30682         * MODULES.html.sh (File system functions): Mention module.
30683         * modules/fdutimensat-tests: New test.
30684         * tests/test-fdutimensat.c: Likewise.
30685
30686         doc: regenerate INSTALL
30687         * doc/INSTALL: Reflect recent autoconf update.
30688         * doc/INSTALL.ISO: Likewise.
30689         * doc/INSTALL.UTF-8: Likewise.
30690
30691 2009-10-20  Pádraig Brady  <P@draigBrady.com>
30692
30693         acl: warn if ACL support is not detected
30694         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
30695
30696 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
30697
30698         * lib/nproc.h: Add extern "C" block for C++.
30699
30700 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
30701             Bruno Haible  <bruno@clisp.org>
30702
30703         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
30704         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
30705         * doc/posix-functions/isalpha.texi: Likewise.
30706         * doc/posix-functions/isblank.texi: Likewise.
30707         * doc/posix-functions/iscntrl.texi: Likewise.
30708         * doc/posix-functions/isdigit.texi: Likewise.
30709         * doc/posix-functions/isgraph.texi: Likewise.
30710         * doc/posix-functions/islower.texi: Likewise.
30711         * doc/posix-functions/isprint.texi: Likewise.
30712         * doc/posix-functions/ispunct.texi: Likewise.
30713         * doc/posix-functions/isspace.texi: Likewise.
30714         * doc/posix-functions/isupper.texi: Likewise.
30715         * doc/posix-functions/isxdigit.texi: Likewise.
30716
30717 2009-10-18  Bruno Haible  <bruno@clisp.org>
30718
30719         Tests for module 'isblank'.
30720         * modules/isblank-tests: New file.
30721         * tests/test-isblank.c: New file.
30722
30723         New module 'isblank'.
30724         * lib/isblank.c: New file.
30725         * m4/isblank.m4: New file.
30726         * modules/isblank: New file.
30727         * doc/posix-functions/isblank.texi: Mention the new module.
30728
30729 2009-10-18  Bruno Haible  <bruno@clisp.org>
30730
30731         New module 'ctype'.
30732         * lib/ctype.in.h: New file.
30733         * m4/ctype.m4: New file.
30734         * modules/ctype: New file.
30735         * doc/posix-headers/ctype.texi: Mention the new module.
30736
30737 2009-10-18  Jim Meyering  <meyering@redhat.com>
30738
30739         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
30740         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
30741         right after its initialization, rather than farther down.
30742         Keeping these in close proximity makes it easier to ensure
30743         that each such variable is initialized.  E.g.,
30744
30745             LIB_CLOCK_GETTIME=
30746             AC_SUBST([LIB_CLOCK_GETTIME])
30747
30748         This change also increments these serial numbers.
30749         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
30750         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30751         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30752
30753 2009-10-18  Bruno Haible  <bruno@clisp.org>
30754
30755         Don't let environment variables perturb build.
30756         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
30757         (gl_PREREQ_GETHRXTIME): ... not here.
30758
30759 2009-10-18  Bruno Haible  <bruno@clisp.org>
30760
30761         Avoid symlink attack in localcharset module.
30762         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
30763         (O_NOFOLLOW): Define fallback.
30764         (get_charset_aliases): Don't open the file if it is a symbolic link.
30765         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
30766         gl_FCNTL_H.
30767         (gl_FCNTL_H): Require it.
30768         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
30769         * modules/localcharset (Files): Add m4/fcntl_h.m4.
30770         Reported by Fergal Glynn <fglynn@veracode.com>.
30771
30772 2009-10-18  Bruno Haible  <bruno@clisp.org>
30773
30774         Implement nproc for mingw.
30775         * lib/nproc.c: Include <windows.h>
30776         (num_processors): On native Windows platforms, try GetSystemInfo.
30777
30778 2009-10-18  Bruno Haible  <bruno@clisp.org>
30779
30780         Implement nproc for IRIX.
30781         * lib/nproc.c: Include <sys/sysmp.h>.
30782         (num_processors): On IRIX systems, try sysmp.
30783         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
30784
30785 2009-10-18  Bruno Haible  <bruno@clisp.org>
30786
30787         Implement nproc for HP-UX.
30788         * lib/nproc.c: Include <sys/pstat.h>
30789         (num_processors): On HP-UX systems, try pstat_getdynamic.
30790         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
30791         pstat_getdynamic.
30792
30793 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
30794             Bruno Haible  <bruno@clisp.org>
30795
30796         Implement nproc for NetBSD, OpenBSD.
30797         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
30798         (ARRAY_SIZE): New macro.
30799         (num_processors): On BSD systems, try sysctl of HW_NCPU.
30800         * m4/nproc.m4: New file.
30801         * modules/nproc (Files): Add m4/nproc.m4.
30802         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
30803         (Makefile.am): Instead, augment lib_SOURCES.
30804
30805 2009-10-18  Bruno Haible  <bruno@clisp.org>
30806
30807         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
30808         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
30809         sys/param.h.
30810
30811 2009-10-16  Eric Blake  <ebb9@byu.net>
30812
30813         utimensat: new module
30814         * modules/utimensat: New file.
30815         * lib/utimensat.c (utimensat): Likewise.
30816         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30817         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
30818         so we can work around Linux bugs.
30819         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30820         * modules/sys_stat (Makefile.am): Substitute them.
30821         * lib/sys_stat.in.h (utimensat): Declare it.
30822         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30823         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30824         * modules/utimensat-tests: New test.
30825         * tests/test-utimensat.c: Likewise.
30826
30827         utimens: let lutimens work on non-symlinks
30828         * lib/utimens.c (lutimens): Fall back to utimens rather than
30829         failing with ENOSYS, when file is not a symlink.
30830         (utimens): Reduce redirection.
30831         * tests/test-lutimens.h (test_lutimens): Update test to cover
30832         non-symlinks.
30833         * tests/test-utimens.h (test_utimens): Update test to cover
30834         symlinks.
30835         * tests/test-utimens.c (main): Update caller.
30836
30837         utimens: cache whether utimensat syscall works
30838         * lib/utimens.c (utimensat_works_really): New cache variable.
30839         (fdutimens, lutimens): Use it to avoid failing syscall.
30840
30841         test-stat-time, test-utimens: improve portability
30842         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
30843         ext4 on alpha, and for cygwin.
30844         * tests/test-utimens-common.h: New file.
30845         (nap): Factor delays into single function.
30846         * tests/test-lutimens.h (test_lutimens): Use new header.
30847         * tests/test-futimens.h (test_futimens): Likewise.
30848         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
30849         timestamps to occur from same machine, as was done previously for
30850         test_utimens.
30851         * modules/utimens-tests (Files): Ship new file.
30852         * modules/futimens-tests (Files): Likewise.
30853         Reported in part by Jim Meyering.
30854
30855         sys_stat: sort replacement declarations
30856         * lib/sys_stat.in.h: Sort declarations.
30857         * lib/futimens.c (futimens): Fix typo.
30858
30859 2009-10-15  Jim Meyering  <meyering@redhat.com>
30860
30861         don't let environment settings perturb build
30862         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
30863         could cause a configure-time and/or build-time malfunction.
30864         Typically, a configure-time function-in-library test is performed
30865         via code like this:
30866
30867           LIB_VAR=
30868           AC_SUBST([LIB_VAR])
30869           prefix_saved_LIBS=$LIBS
30870             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
30871                        [test "$ac_cv_search_FUNC" = "none required" ||
30872                         LIB_VAR=$ac_cv_search_FUNC])
30873           LIBS=$prefix_saved_LIBS
30874
30875         However, in each of the files affected by this change, the LIB_VAR=
30876         initialization was omitted.  Thus, when set in the environment, its
30877         value would propagate into generated Makefiles when FUNC is not found
30878         in LIB_NAME.
30879         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
30880         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30881         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30882
30883 2009-10-14  Eric Blake  <ebb9@byu.net>
30884
30885         fchdir: avoid infinite recursion in mingw
30886         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
30887         recursing.
30888
30889         test-stat-time: port to mingw
30890         * tests/test-stat-time.c (force_unlink): Return a value.
30891         (test_ctime) [W32]: Fix compilation error.
30892         (nap): Don't call usleep with too large an argument.  Use
30893         force_unlink.
30894         * doc/pastposix-functions/usleep.texi (usleep): Document the
30895         portability issue.
30896
30897 2009-10-13  Jim Meyering  <meyering@redhat.com>
30898
30899         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
30900         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
30901         * modules/pipe-filter-ii: Likewise.
30902         * modules/sys_socket-tests: Likewise.
30903         * modules/tsearch-tests: Likewise.
30904         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
30905         (check): Depend on it.
30906
30907 2009-10-12  Eric Blake  <ebb9@byu.net>
30908
30909         utimens-tests: port to NFS file systems
30910         * tests/test-utimens.h (test_utimens): Refactor utimecmp
30911         comparisons to avoid spurious failures from timestamp drift
30912         between NFS machines.
30913
30914 2009-10-12  Eric Blake  <ebb9@byu.net>
30915
30916         stat-time-tests: minor cleanups
30917         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
30918         * tests/test-stat-time.c (nap): Separate assignment from call.
30919         Suggested by Paolo Bonzini and Bruno Haible.
30920
30921         sys_stat: guarantee struct timespec
30922         * lib/sys_stat.in.h (includes): Always include <time.h>
30923         * modules/sys_stat (Depends-on): Add time.
30924         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
30925         mode_t permission values.
30926         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
30927         get at subsecond timestamps.
30928
30929 2009-10-10  Eric Blake  <ebb9@byu.net>
30930
30931         futimens: new module
30932         * modules/futimens: New file.
30933         * lib/futimens.c (futimens): Likewise.
30934         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
30935         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
30936         we can work around Linux bugs.
30937         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30938         * modules/sys_stat (Makefile.am): Substitute them.
30939         * lib/sys_stat.in.h (futimens): Declare it.
30940         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30941         * doc/posix-functions/futimens.texi (futimens): Likewise.
30942         * modules/futimens-tests: New test.
30943         * tests/test-futimens.c: Likewise.
30944
30945         utimens: introduce fdutimens
30946         * lib/utimens.h (fdutimens): New prototype.
30947         * lib/utimens.c (gl_futimens): Move guts...
30948         (fdutimens): ...to new interface.
30949         * tests/test-utimens.c (do_fdutimens): Use it.
30950
30951         utimens: add UTIME_NOW and UTIME_OMIT support
30952         * lib/utimens.c (validate_timespec, update_timespec): New helper
30953         functions.
30954         (gl_futimens, lutimens): Use them.
30955         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
30956         stdbool, sys_stat.
30957         (Link): Mention resulting library dependency.
30958         * modules/utimecmp (Link): Likewise.
30959         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
30960         (Makefile.am): Pick up library dependency.
30961         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
30962         definition.
30963         * tests/test-sys_stat.c: Test the definitions.
30964         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
30965         * NEWS: Document library dependency.
30966
30967         utimecmp: support symlink timestamps
30968         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
30969         hashing when possible.  Use pathconf when available.
30970         (SYSCALL_RESOLUTION): Recognize tighter resolution.
30971         * modules/utimecmp (Depends-on): Add lstat.
30972
30973         utimens: add lutimens interface
30974         * lib/utimens.c (lutimens): New function.
30975         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30976         * lib/utimens.h (lutimens): Declare new interface.
30977         * tests/test-utimens.c (main): Enhance test.
30978         * tests/test-lutimens.h (test_lutimens): New file.
30979         * modules/utimens-tests (Files): Distribute it.
30980         (Depends-on): Add symlink.
30981         (configure.ac): Check for usleep.
30982
30983         utimens: validate futimens usage
30984         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30985         fewer syscalls on failure later on.  Avoid compiler warning on
30986         mingw.
30987         * modules/utimens (Depends-on): Add dup2.
30988
30989         utimens: add test
30990         * modules/utimens-tests: New test.
30991         * tests/test-utimens.h: New file.
30992         * tests/test-futimens.h: Likewise.
30993         * tests/test-utimens.c: Likewise.
30994
30995         doc: mention timestamp portability issues
30996         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30997         instead.
30998         * doc/posix-functions/utime.texi (utime): Likewise.
30999         * doc/posix-functions/utimes.texi (utimes): Likewise.
31000         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
31001         instead.
31002         * doc/posix-functions/futimens.texi (futimens): Mention utimens
31003         module.
31004         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31005         Mention weakness with symlink timestamps.
31006         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
31007         to utimensat/futimens instead.
31008         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
31009
31010         test-dup2: enhance test
31011         * tests/test-dup2.c (main): Also check AT_FDCWD.
31012
31013         test-stat-time: avoid more spurious failures
31014         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
31015         xfs; and avoid race if the two timestamps cross quantization edge.
31016
31017         relocatable: prefer 'file system' over 'filesystem'
31018         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
31019         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
31020         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
31021         * doc/relocatable.texi (Enabling Relocatability): Likewise.
31022         * lib/relocatable.c (compute_curr_prefix): Likewise.
31023
31024 2009-10-10  Jim Meyering  <meyering@redhat.com>
31025
31026         stat-time-tests: check for the usleep function
31027         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
31028
31029 2009-10-10  Bruno Haible  <bruno@clisp.org>
31030
31031         * modules/xnanosleep: Put the Link section after the Include section.
31032
31033 2009-10-09  Eric Blake  <ebb9@byu.net>
31034
31035         dup2: work around FreeBSD 6.1 bug
31036         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
31037         * doc/posix-functions/dup2.texi (dup2): Document it.
31038         Reported by Nelson H. F. Beebe and Jim Meyering.
31039
31040         test-stat-time: port to buggy NFS clients
31041         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
31042         (test_ctime): Also skip test if mtime and ctime are skewed.
31043
31044         maint: prefer 'file system' over 'filesystem'
31045         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31046         * doc/posix-functions/lstat.texi (lstat): Likewise.
31047         * lib/file-has-acl.c (file_has_acl): Likewise.
31048         * lib/fwriteerror.c [TEST]: Likewise.
31049         * tests/test-areadlink.h (test_areadlink): Likewise.
31050         * tests/test-areadlinkat-with-size.c (main): Likewise.
31051         * tests/test-areadlinkat.c (main): Likewise.
31052         * tests/test-canonicalize-lgpl.c (main): Likewise.
31053         * tests/test-canonicalize.c (main): Likewise.
31054         * tests/test-fstatat.c (main): Likewise.
31055         * tests/test-linkat.c (main): Likewise.
31056         * tests/test-lstat.h (test_lstat_func): Likewise.
31057         * tests/test-mkdir.h (test_mkdir): Likewise.
31058         * tests/test-readlink.h (test_readlink): Likewise.
31059         * tests/test-remove.c (main): Likewise.
31060         * tests/test-rename.h (test_rename): Likewise.
31061         * tests/test-renameat.c (main): Likewise.
31062         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31063         * tests/test-symlink.h (test_symlink): Likewise.
31064         * tests/test-symlinkat.c (main): Likewise.
31065         * tests/test-unlink.h (test_unlink_func): Likewise.
31066         * tests/test-unlinkat.c (main): Likewise.
31067
31068         maint: make realtime library usage explicit
31069         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
31070         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
31071         * modules/settime (Link): Likewise.
31072         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
31073
31074         test-stat-time: speed up execution
31075         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
31076         warning on mingw.
31077         (nap): New helper function.
31078         (prepare_test): Use it to reduce sleep time.
31079         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
31080         execution.
31081         * modules/stat-time-tests (configure.ac): Check for usleep.
31082
31083 2009-10-09  Jim Meyering  <meyering@redhat.com>
31084
31085         selinux-h: always use getfilecon wrappers
31086         * lib/getfilecon.c: New file.
31087         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
31088         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
31089         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
31090         (fgetfilecon): Provide a stub.
31091         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
31092         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
31093         file unconditionally.
31094         When <selinux/selinux.h> is found, arrange to use wrappers.
31095         * modules/selinux-h (Files): Add getfilecon.c.
31096         (Makefile.am): Substitute include-next-related bits
31097         into the now-always-generated selinux/selinux.h file.
31098         * doc/glibc-functions/lgetfilecon.texi: New file.
31099         * doc/glibc-functions/fgetfilecon.texi: New file.
31100         * doc/glibc-functions/getfilecon.texi: New file.
31101         * doc/glibc-functions/getfilecon-desc.texi: New file.
31102         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
31103         which to pull in the new files.
31104         * MODULES.html.sh (Misc): Add selinux-h.
31105
31106 2009-10-08  Jim Meyering  <meyering@redhat.com>
31107
31108         unistd: fix comment typo
31109         * lib/unistd.in.h (euidaccess): Fix a comment typo.
31110
31111 2009-10-08  Eric Blake  <ebb9@byu.net>
31112
31113         areadlink: use SIZE_MAX consistently
31114         * modules/areadlink (Depends-on): Add stdint.
31115         * modules/areadlink-with-size (Depends-on): Likewise.
31116         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
31117         gives NULL; drop sys/types, since unistd gives size_t; and add
31118         stdint for SIZE_MAX.
31119         (SIZE_MAX): Rely on headers.
31120         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
31121         and add stdint.
31122         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
31123         (SIZE_MAX): Likewise.
31124         (INITIAL_BUF_SIZE): Turn into enum.
31125         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
31126
31127 2009-10-08  Jim Meyering  <meyering@redhat.com>
31128
31129         areadlinkat: avoid compilation failure
31130         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
31131         Fix typo in comment.
31132
31133 2009-10-07  Eric Blake  <ebb9@byu.net>
31134
31135         areadlinkat-with-size: new module
31136         * modules/areadlinkat-with-size: New module.
31137         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
31138         * lib/areadlink.h (areadlinkat): Declare it.
31139         * MODULES.html.sh (File system functions): Mention it.
31140         * modules/areadlinkat-with-size-tests: New test.
31141         * tests/test-areadlinkat-with-size.c: New file.
31142
31143         xreadlinkat: new module
31144         * modules/xreadlinkat: New module.
31145         * lib/xreadlinkat.c (xreadlinkat): New file.
31146         * lib/xreadlink.h (xreadlinkat): Declare it.
31147         * MODULES.html.sh (File system functions): Mention it.
31148
31149         areadlinkat: new module
31150         * lib/at-func.c (FUNC_FAIL): New define.
31151         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
31152         * modules/areadlinkat: New module.
31153         * lib/linkat.c (areadlinkat): Move...
31154         * lib/areadlinkat.c (areadlinkat): ...to new file.
31155         * lib/areadlink.h (areadlinkat): Declare it.
31156         * modules/linkat (Depends-on): Add areadlinkat.
31157         * MODULES.html.sh (File system functions): Mention it.
31158         * modules/areadlinkat-tests: New test.
31159         * tests/test-areadlinkat.c: New file.
31160
31161         areadlink, areadlink-with-size: add tests
31162         * modules/areadlink-tests: New test.
31163         * modules/areadlink-with-size-tests: Likewise.
31164         * tests/test-areadlink.h: New file.
31165         * tests/test-areadlink.c: Likewise.
31166         * tests/test-areadlink-with-size.c: Likewise.
31167
31168         maint: minor cleanups
31169         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
31170         _UNUSED_PARAMETER_ instead.
31171         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
31172         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
31173         * modules/linkat-tests (Files): Distribute test-link.h.
31174
31175         openat, utimens: whitespace cleanup
31176         * lib/openat.c: Prefer space throughout, rather than mix of 8
31177         spaces vs. tabs.
31178         * lib/at-func.c: Likewise.
31179         * lib/utimens.c: Likewise.
31180
31181         openat: avoid using wrong fd
31182         * lib/openat.c (openat_permissive): Reject user's fd if saving the
31183         working directory chooses same fd.
31184         * lib/at-func.c (AT_FUNC_NAME): Likewise.
31185
31186         mkdir, mkdirat: fix cygwin 1.5.x bug
31187         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
31188         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
31189         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
31190         bug.
31191         (gl_PREREQ_MKDIR): Delete unused macro.
31192         * modules/mkdir (Files): Track file rename.
31193         (configure.ac): Update macro name.
31194         * modules/openat (Depends-on): Add mkdir.
31195         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
31196
31197         mkdir, mkdirat: add tests
31198         * modules/mkdir-tests: New test.
31199         * tests/test-mkdir.h: New file.
31200         * tests/test-mkdir.c: Likewise.
31201         * tests/test-mkdirat.c: Likewise.
31202         * modules/openat-tests (Files): Add new files.
31203         (Makefile.am): Run new test.
31204
31205 2009-10-06  Eric Blake  <ebb9@byu.net>
31206
31207         doc: tweak *at function documentation
31208         * doc/posix-functions/faccessat.texi (faccessat): Mention
31209         known issue with replacement.
31210         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
31211         * doc/posix-functions/linkat.texi (linkat): Likewise.
31212         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31213         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31214         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31215         * doc/posix-functions/renameat.texi (renameat): Likewise.
31216         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31217
31218         openat: fix GNU/Hurd bug in unlinkat
31219         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
31220         broken.
31221         * doc/posix-functions/unlink.texi (unlink): Document this.
31222         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
31223
31224         fdopendir: fix GNU/Hurd bug
31225         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
31226         allowing non-directory fds.
31227         * lib/fdopendir.c (rpl_fdopendir): Work around it.
31228         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31229         * modules/dirent (Makefile.am): Substitute it.
31230         * lib/dirent.in.h (fdopendir): Declare replacement.
31231         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
31232         * tests/test-fdopendir.c (main): Test something other than
31233         /dev/null, since on Hurd that behaves like a directory.
31234
31235         test-symlink: port to GNU/Hurd
31236         * tests/test-symlink.h (test_symlink): Relax expected errno.
31237
31238         doc: tweak more cygwin information
31239         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
31240         now compatible with glibc.
31241         * doc/posix-functions/getopt.texi (getopt): Likewise.
31242
31243         getopt-gnu: add another test
31244         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
31245         guarantee behavior relied on by m4.
31246         * tests/test-getopt.c (main): Use it.
31247         * modules/getopt-posix-tests (Depends-on): Add setenv.
31248         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
31249
31250         getopt: fix compilation on darwin
31251         * lib/getopt.in.h (includes): Leave breadcrumbs during system
31252         include.
31253         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
31254         Reported by Ludovic Courtès.
31255
31256 2009-10-06  Bruno Haible  <bruno@clisp.org>
31257
31258         * modules/size_max (Description): Discourage its use.
31259         Reported by Simon Josefsson.
31260
31261 2009-10-06  Jim Meyering  <meyering@redhat.com>
31262
31263         linkat: avoid compilation failure
31264         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
31265
31266 2009-10-05  Eric Blake  <ebb9@byu.net>
31267
31268         linkat: support Linux 2.6.17
31269         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
31270         linkat on Linux, but allow cache variable override.
31271         * lib/linkat.c (rpl_linkat): Define override.
31272         * modules/linkat (Depends-on): Add symlinkat.
31273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
31274         * modules/unistd (Makefile.am): Substitute it.
31275         * lib/unistd.in.h (linkat): Declare replacement.
31276         Reported by Pádraig Brady.
31277
31278         quotearg: port test to systems with C.UTF-8 locale
31279         * tests/test-quotearg.c (struct result_strings): Add another
31280         member, differentiating between C.ASCII and C.UTF-8 handling.
31281         (compare_strings): Add parameter.
31282         (main): Adjust all callers.
31283
31284         getopt: avoid clash with FreeBSD _getopt_internal
31285         * lib/getopt.in.h (_getopt_internal): Override the name.
31286         * lib/getopt_int.h (includes): Pick up any overrides.
31287         Reported by Reuben Thomas.
31288
31289         hash: allow C89 compilation
31290         * lib/hash.c (check_tuning): Move declaration before statement.
31291         Reported by Reuben Thomas.
31292
31293 2009-10-05  Karl Berry  <karl@gnu.org>
31294
31295         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
31296
31297 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
31298             Bruno Haible  <bruno@clisp.org>
31299
31300         * lib/uname.c (uname): Use a table-driven algorithm to compute
31301         Windows NT versions.
31302
31303 2009-10-04  Bruno Haible  <bruno@clisp.org>
31304
31305         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
31306         program_invocation_short_name.
31307         * modules/progname (configure.ac): Test for presence of
31308         program_invocation_short_name.
31309         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31310
31311 2009-10-04  Bruno Haible  <bruno@clisp.org>
31312
31313         * lib/progname.c (set_program_name): Fix comment.
31314         Reported by Jim Meyering.
31315
31316 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31317             Bruno Haible  <bruno@clisp.org>
31318
31319         * lib/uname.c: Include <string.h>.
31320         (uname): Do only one call to GetVersionEx in the common case.
31321
31322 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31323             Bruno Haible  <bruno@clisp.org>
31324
31325         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
31326         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
31327         (uname): Add support for Windows CE and various non-x86 CPU types.
31328
31329 2009-10-03  Bruno Haible  <bruno@clisp.org>
31330
31331         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
31332         invocation to tests/configure.ac.
31333         Reported by Ian Beckwith <ianb@erislabs.net>.
31334
31335 2009-10-02  Eric Blake  <ebb9@byu.net>
31336
31337         fchdir: avoid compiler warning
31338         * lib/fchdir.c (canonicalize_file_name)
31339         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
31340
31341         test-open: support mingw errno values
31342         * tests/test-open.h (test_open): Relax test.
31343         * tests/test-fopen.h (test_fopen): Likewise.
31344         * tests/test-openat-safer.c (main): Likewise.
31345
31346         open: fix opening directory on mingw
31347         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
31348
31349         test-open: on GNU/Hurd, /dev/null is a directory
31350         * tests/test-fopen.h (main): Rename...
31351         (test_fopen): ...to this.  Use a guaranteed non-directory when
31352         confirming open behavior on trailing slash.
31353         * tests/test-openat-safer.c (main): Likewise.
31354         * tests/test-open.h (main): Likewise....
31355         (test_open): ...to this.
31356         * tests/test-fopen.c (main): Adjust caller.
31357         * tests/test-fopen-safer.c (main): Likewise.
31358         * tests/test-open.c (main): Likewise.
31359         * tests/test-fcntl-safer.c (main): Likewise.
31360         Reported by Samuel Thibault.
31361
31362         rename, fchdir: don't ignore chdir failure
31363         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
31364         * lib/rename.c (rpl_rename) [W32]: Likewise.
31365         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
31366         an empty destination directory if source cannot be renamed,
31367         although there is still possibility for failure.
31368         * doc/posix-functions/rename.texi (rename): Document the race.
31369         Reported by Jim Meyering.
31370
31371         maint: cleanup whitespace in recent commits
31372         * lib/rename.c (rpl_rename): Remove tabs.
31373         * tests/test-link.h (test_link): Likewise.
31374         * lib/fchdir.c (get_name): Likewise.
31375         Reported by Jim Meyering.
31376
31377 2009-10-02  Ben Pfaff  <blp@gnu.org>
31378
31379         relocatable-prog-wrapper: Add missing dependency on
31380         double-slash-root.
31381         * modules/relocatable-prog-wrapper: Add dependency.
31382         Reported by Ian Beckwith <ianb@erislabs.net>.
31383
31384 2009-10-02  Eric Blake  <ebb9@byu.net>
31385
31386         renameat: fix Solaris bugs
31387         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
31388         needed fixing.
31389         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
31390         * modules/stdio (Makefile.am): Substitute it.
31391         * lib/stdio.in.h (renameat): Declare replacement.
31392         * lib/renameat.c (rpl_renameat): Implement fix.
31393
31394         renameat: new module
31395         * modules/renameat: New file.
31396         * lib/renameat.c (renameat): Likewise.
31397         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
31398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31399         * modules/stdio (Makefile.am): Substitute them.
31400         * lib/stdio.in.h (renameat): Declare it.
31401         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31402         * doc/posix-functions/renameat.texi (renameat): Likewise.
31403         * modules/renameat-tests: New test.
31404         * tests/test-renameat.c: Likewise.
31405
31406         rename: fix mingw bugs
31407         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
31408         directory overwrite bugs.
31409
31410         rename: fix another cygwin 1.5 bug
31411         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
31412         checks.
31413         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
31414         unnecessary cygwin workarounds.  Also work around bug with moving
31415         full directory onto an empty one.
31416         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
31417
31418         rename-dest-slash: merge into rename module
31419         * modules/rename-dest-slash (Status): Mark obsolete.
31420         (Depends-on): Add rename.
31421         (Files): Let rename do it all.
31422         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
31423         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
31424         * m4/rename-dest-slash.m4: ...so this file can be deleted.
31425         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
31426         * lib/rename.c (rpl_rename): Update comments.
31427
31428         rename: fix cygwin 1.5.x bugs
31429         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
31430         * lib/rename.c (rpl_rename): Work around them.
31431         * modules/rename (Depends-on): Add same-inode.
31432
31433         rename: fix Solaris 10 bug
31434         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31435         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
31436         was the only bug.
31437
31438         rename: fix Solaris 9 bug
31439         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
31440         on non-directory.  Avoid calling exit.
31441         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
31442         strdup.
31443         * modules/rename-tests (Depends-on): Drop lstat.
31444         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31445         (gl_PREREQ_RENAME): Delete unused macro.
31446
31447         rename-dest-slash: fix NetBSD bug
31448         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
31449         links.
31450         * modules/rename-dest-slash (Depends-on): Add same-inode.
31451
31452         rename-tests: new test, exposes several platform bugs
31453         * modules/rename-tests: New file.
31454         * tests/test-rename.h: Likewise.
31455         * tests/test-rename.c: Likewise.
31456         * doc/posix-functions/rename.texi (rename): Improve documentation,
31457         including bugs that will eventually be fixed in gnulib.
31458
31459 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
31460
31461         * lib/uname.c: Include <stdlib.h>
31462         (uname): Assume version info is available.
31463
31464 2009-10-02  Jim Meyering  <meyering@redhat.com>
31465
31466         gnu-web-doc-update: correct --help output
31467         * build-aux/gnu-web-doc-update: Make --help output relevant.
31468
31469         gnu-web-doc-update: add standard options
31470         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
31471
31472         gnu-web-doc-update: New module.
31473         Use this script to automatically update the on-line web documentation
31474         for your GNU project at http://www.gnu.org/software/$pkg/manual/
31475         * modules/gnu-web-doc-update: New file, from coreutils.
31476         * build-aux/gnu-web-doc-update: New script.
31477
31478 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
31479
31480         link: LoadLibrary is not needed.
31481         * lib/link.c: Use GetModuleHandle.
31482
31483 2009-10-01  Eric Blake  <ebb9@byu.net>
31484
31485         getopt: bump serial number
31486         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
31487         change.
31488
31489         tests: tighten link, rmdir, and remove tests
31490         * tests/test-link.h (includes): No need to use <config.h> here.
31491         Clean up if directory hard link was created, otherwise test for
31492         trailing '.'.
31493         * tests/test-linkat.c (main): Simplify.
31494         * tests/test-remove.c (main): Enhance test for trailing '.'.
31495         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31496
31497 2009-10-01  Jim Meyering  <meyering@redhat.com>
31498
31499         maint.mk: requiring "make major" was annoying, for a "minor" release.
31500         What is intended is "stable", to contrast with alpha and beta,
31501         so require "make stable", not "make major".
31502         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
31503         (get_tool_versions): Likewise.
31504         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
31505
31506 2009-09-30  Ben Pfaff  <blp@gnu.org>
31507
31508         Fix broken build of replacement for Windows tmpfile().
31509         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
31510         flags argument added along with the 'mkostemp' module.
31511
31512 2009-09-28  Bruno Haible  <bruno@clisp.org>
31513
31514         Avoid identifier clash with POSIX function 'remove' defined as a macro.
31515         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
31516         to 'remove_elt'.
31517         (gl_list_remove): Update.
31518         * lib/gl_list.c (gl_list_remove): Update.
31519         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
31520         to 'remove_elt'.
31521         (gl_oset_remove): Update.
31522         * lib/gl_list.c (gl_oset_remove): Update.
31523         Reported by Eric Blake.
31524
31525 2009-09-28  Eric Blake  <ebb9@byu.net>
31526
31527         doc: mention yet more cygwin 1.7 status
31528         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
31529         cygwin.
31530         * doc/glibc-functions/execvpe.texi (execvpe): New file.
31531         * doc/gnulib.texi (Glibc unistd.h): Mention it.
31532
31533         argp: fix test failure
31534         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
31535         that are not upper-case.  Pass correct range to tolower.
31536
31537 2009-09-27  Jim Meyering  <meyering@redhat.com>
31538
31539         test-yesno: work around sparc-dash here-document infelicity
31540         Without this change, the literal \177 byte in a here document
31541         would make dash 0.5.5.1-3 access uninitialized memory.
31542         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
31543         Instead, use a marker, "@", and filter through tr to create the desired
31544         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
31545
31546 2009-09-27  Bruno Haible  <bruno@clisp.org>
31547
31548         Disable untested support for new flavours of ACLs on AIX.
31549         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
31550         progress.
31551         * lib/set-mode-acl.c (qset_acl): Likewise.
31552
31553 2008-12-07  Bruno Haible  <bruno@clisp.org>
31554
31555         Add support for new flavours of ACLs on AIX. (Untested.)
31556         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
31557         (file_has_acl): Add support for newer AIX.
31558         * lib/set-mode-acl.c (qset_acl): Likewise.
31559         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
31560         Rainer Tammer <tammer@tammer.net>.
31561
31562 2009-09-26  Eric Blake  <ebb9@byu.net>
31563
31564         argp: fix compilation of getopt
31565         * lib/getopt.in.h (includes): Use different guard than glibc.
31566         Reported by Sergey Poznyakoff.
31567
31568         doc: mention more cygwin 1.7 status
31569         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
31570         bug.
31571         * doc/posix-functions/execl.texi (execl): Likewise.
31572         * doc/posix-functions/execle.texi (execle): Likewise.
31573         * doc/posix-functions/execlp.texi (execlp): Likewise.
31574         * doc/posix-functions/execv.texi (execv): Likewise.
31575         * doc/posix-functions/execve.texi (execve): Likewise.
31576         * doc/posix-functions/execvp.texi (execvp): Likewise.
31577         * doc/glibc-functions/canonicalize_file_name.texi
31578         (canonicalize_file_name): Cygwin 1.7 now provides this.
31579         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
31580         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
31581         on AT_SYMLINK_NOFOLLOW.
31582
31583 2009-09-24  Eric Blake  <ebb9@byu.net>
31584
31585         test-linkat: make test more robust
31586         * tests/test-linkat.c (main): Avoid collision with EEXIST.
31587
31588         getopt: fix inclusion guards for cygwin
31589         * modules/getopt-posix (Depends-on): Add include-next.
31590         (Makefile.am): Substitute more items in replacement header.
31591         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
31592         <getopt.h>.
31593         * lib/getopt.in.h (includes): Use split inclusion guard, and
31594         prefer <getopt.h> over include <unistd.h> when one is present.
31595         (option): Also override name of 'struct option'.
31596
31597         same-inode: revert prior change; it is not yet ready
31598         * NEWS: Undo mention of this change.
31599         * lib/same-inode.h (same-inode.h): Undo tri-state change.
31600         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31601         * lib/cycle-check.c (cycle_check): Likewise.
31602         * lib/same.c (same_name): Likewise.
31603         * lib/at-func2.c (at_func2): Likewise.
31604
31605 2009-09-23  Eric Blake  <ebb9@byu.net>
31606
31607         linkat: new module
31608         * modules/linkat: New file.
31609         * lib/at-func2.c (at_func2): Likewise.
31610         * lib/linkat.c (linkat): Likewise.
31611         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
31612         * lib/openat-priv.h (at_func2): Add declaration.
31613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31614         * modules/unistd (Makefile.am): Substitute them.
31615         * lib/unistd.in.h (linkat): Declare it.
31616         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31617         * doc/posix-functions/linkat.texi (linkat): Likewise.
31618         * doc/posix-functions/link.texi (link): Tweak wording.
31619         * tests/test-link.c (main): Move guts...
31620         * tests/test-link.h (test_link): ...into new file.
31621         * modules/linkat-tests: New test.
31622         * tests/test-linkat.c: Likewise.
31623         * modules/link-tests (Files): Ship new file.
31624         (Depends-on): Add stdbool.
31625
31626         dirname: add library-safe mdir_name
31627         * lib/dirname.h (mdir_name): New prototype.
31628         * lib/dirname.c (dir_name): Move guts...
31629         (mdir_name): ...to new function that avoids xalloc_die.
31630
31631         fchdir: another mingw fix
31632         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
31633         * lib/fchdir.c (get_name): New helper method; skips canonicalize
31634         on mingw (where it has not yet been ported), and make it optional
31635         elsewhere.
31636         (_gl_register_fd): Use it.
31637
31638         same-inode: make SAME_INODE tri-state, to port to mingw
31639         * NEWS: Mention this change.
31640         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
31641         st_ino always being 0.
31642         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31643         * lib/cycle-check.c (cycle_check): Likewise.
31644         * lib/same.c (same_name): Likewise.
31645
31646         lstat: avoid mingw compilation error
31647         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
31648         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
31649         lstat ourselves.
31650         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
31651         was adequate.
31652         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
31653         the checks for lstat.
31654         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
31655
31656         link: fix test failure on Solaris 9
31657         * lib/link.c (rpl_link): Don't assume link will catch bogus
31658         trailing slash on source.
31659
31660         test-symlinkat: enhance test
31661         * tests/test-readlink.c (main): Move guts...
31662         * tests/test-readlink.h (test_readlink): ...into new file.
31663         * tests/test-symlink.c (main): Move guts...
31664         * tests/test-symlink.h (test_symlink): ...into new file.
31665         * tests/test-symlinkat.c (main): Use new files for further
31666         coverage.
31667         (do_symlink, do_readlink): New helper functions.
31668         * modules/symlink-tests (Files): Ship new file.
31669         (Depends-on): Add stdbool.
31670         * modules/readlink-tests (Files): Ship new file.
31671         (Depends-on): Add stdbool.
31672         * modules/symlinkat-tests (Files): Use new files.
31673
31674 2009-09-23  Eric Blake  <ebb9@byu.net>
31675
31676         readlink: document portability issue with symlink length
31677         * doc/posix-functions/lstat.texi (lstat): Mention that some file
31678         systems have bogus st_size on symlinks, and mention the
31679         areadlink-with-size module.
31680         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31681         * doc/posix-functions/readlink.texi (readlink): Mention the
31682         areadlink module, and ERANGE failure.
31683         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31684         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
31685
31686         readlink: fix Solaris 9 bug with trailing slash
31687         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
31688         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
31689         * doc/posix-functions/readlink.texi (readlink): Document this.
31690         * modules/readlink-tests: New test.
31691         * tests/test-readlink.c: Likewise.
31692
31693         readlink: fix cygwin 1.5.x bug with return type
31694         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
31695         * lib/unistd.in.h (readlink): Use ssize_t.
31696         * lib/readlink.c (readlink): Likewise.
31697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31698         * modules/unistd (Makefile.am): Substitute it.
31699         * lib/unistd.in.h (readlink): Declare replacement.
31700         * doc/posix-functions/readlink.texi (readlink): Document this.
31701
31702         symlink: use throughout gnulib
31703         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
31704         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
31705         symlink is not used.
31706         * modules/symlinkat (Depends-on): Add symlink.
31707         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31708         * modules/canonicalize-tests (Depends-on): Likewise.
31709         * modules/lstat-tests (Depends-on): Likewise.
31710         * modules/openat-tests (Depends-on): Likewise.
31711         * modules/remove-tests (Depends-on): Likewise.
31712         * modules/rmdir-tests (Depends-on): Likewise.
31713         * modules/unlink-tests (Depends-on): Likewise.
31714         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
31715         * tests/test-canonicalize.c (symlink): Likewise.
31716         * tests/test-fstatat.c (symlink): Likewise.
31717         * tests/test-lstat.c (symlink): Likewise.
31718         * tests/test-remove.c (symlink): Likewise.
31719         * tests/test-rmdir.c (symlink): Likewise.
31720         * tests/test-unlink.c (symlink): Likewise.
31721         * tests/test-unlinkat.c (symlink): Likewise.
31722
31723         symlink: new module, for Solaris 9 bug
31724         * modules/symlink: New file.
31725         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
31726         * lib/symlink.c: Likewise.
31727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31728         * modules/unistd (Makefile.am): Substitute them.
31729         * lib/unistd.in.h (symlink): Declare replacement.
31730         * MODULES.html.sh (File system functions): Mention it.
31731         * doc/posix-functions/symlink.texi (symlink): Likewise.
31732         * modules/symlink-tests: New test.
31733         * tests/test-symlink.c: Likewise.
31734
31735 2009-09-23  Bruno Haible  <bruno@clisp.org>
31736
31737         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
31738         when needed.
31739         Test case: gnulib-tool --import --with-tests atexit inttypes.
31740         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
31741
31742 2009-09-23  Bruno Haible  <bruno@clisp.org>
31743
31744         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
31745         subcommand, not in a subshell.
31746
31747 2009-09-22  Eric Blake  <ebb9@byu.net>
31748
31749         unistd: sort replacement declarations
31750         * lib/unistd.in.h: Sort declarations.
31751
31752         open, openat: minor optimization
31753         * lib/open.c (open): If open succeeded, len is non-zero.
31754         * lib/openat.c (rpl_openat): Likewise.
31755
31756         link-follow: ensure correct result
31757         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
31758         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
31759         distinguish between possible failures.
31760
31761 2009-09-21  Eric Blake  <ebb9@byu.net>
31762
31763         fts: avoid compiler warning
31764         * lib/fts.c (dirent_inode_sort_may_be_useful)
31765         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
31766
31767 2009-09-19  Bruno Haible  <bruno@clisp.org>
31768
31769         * lib/progreloc.c (canonicalize_file_name): New declaration.
31770
31771 2009-09-19  Eric Blake  <ebb9@byu.net>
31772
31773         link: fix quoting
31774         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
31775
31776         openat: fix openat bugs on Solaris 9
31777         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
31778         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
31779         * modules/openat (Depends-on): Add open.
31780         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
31781         * modules/fcntl-h (Makefile.am): Substitute it.
31782         * lib/fcntl.in.h (openat): Declare replacement.
31783         * doc/posix-functions/openat.texi (openat): Document this.
31784
31785         openat: move fstatat and unlinkat into correct files
31786         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
31787         compiled.
31788         * lib/openat.c (fstatat, unlinkat): Move...
31789         * lib/fstatat.c (fstatat): ...into correct files.
31790         * lib/unlinkat.c (unlinkat): Likewise.
31791
31792         openat: fix unlinkat bugs on Solaris 9
31793         * lib/unlinkat.c (unlinkat): New file.
31794         * modules/openat (Depends-on): Add unlink.
31795         (Files): Distribute it.
31796         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
31797         trailing slash behavior is broken.
31798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31799         * modules/unistd (Makefile.am): Substitute it.
31800         * lib/unistd.in.h (unlinkat): Declare replacement.
31801         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
31802
31803         openat: fix fstatat bugs on Solaris 9
31804         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
31805         stat.
31806         * doc/posix-functions/fstatat.texi (fstatat): Document this.
31807
31808         test-unlinkat: enhance test, to expose Solaris 9 bug
31809         * tests/test-unlink.c (main): Factor guts...
31810         * tests/test-unlink.h (test_rmdir_func): ...into new file.
31811         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
31812         * tests/test-rmdir.c (main): Adjust caller.
31813         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
31814         (unlinker): New helper function.
31815         (rmdirat): Enhance check.
31816         * modules/rmdir-tests (Depends-on): Add stdbool.
31817         * modules/unlink-tests (Depends-on): Likewise.
31818         (Files): Add test-unlink.h.
31819         * modules/openat-tests (Files): Likewise.
31820         (Depends-on): Add unlinkdir.
31821
31822         test-fstatat: new test, to expose Solaris 9 bugs
31823         * tests/test-stat.c (main): Factor guts...
31824         * tests/test-stat.h (test_stat_func): ...into new file.
31825         * tests/test-lstat.c (main): Factor guts...
31826         * tests/test-lstat.h (test_lstat_func): ...into new file.
31827         * tests/test-fstatat.c: New file.
31828         * modules/stat-tests (Files): Add test-stat.h.
31829         * modules/lstat-tests (Files): Add test-lstat.h.
31830         (Depends-on): Add stdbool.
31831         * modules/openat-tests (Depends-on): Add pathmax.
31832         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
31833         (Makefile.am): Run new test.
31834
31835         remove: new module, for mingw and Solaris 9 bugs
31836         * modules/remove: New file.
31837         * lib/remove.c: Likewise.
31838         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
31839         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31840         * modules/stdio (Makefile.am): Use them.
31841         * lib/stdio.in.h (remove): Declare replacement.
31842         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31843         * doc/posix-functions/remove.texi (remove): Likewise.
31844         * modules/remove-tests: New test.
31845         * tests/test-remove.c: Likewise.
31846
31847         unlink: new module, for Solaris 9 bug
31848         * modules/unlink: New file.
31849         * lib/unlink.c: Likewise.
31850         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
31851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31852         * modules/unistd (Makefile.am): Use them.
31853         * lib/unistd.in.h (stat): Declare replacement.
31854         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31855         * doc/posix-functions/unlink.texi (unlink): Likewise.
31856         * modules/unlink-tests: New test.
31857         * tests/test-unlink.c: Likewise.
31858
31859         lstat: fix Solaris 9 bug
31860         * lib/lstat.c (lstat): Also check for trailing slash on
31861         non-symlink, non-directories.  Use stat module to simplify logic.
31862         * doc/posix-functions/lstat.texi (lstat): Document it.
31863         * modules/lstat-tests (Depends-on): Add errno, same-inode.
31864         (configure.ac): Check for symlink.
31865         * tests/test-lstat.c (main): Add more tests.
31866
31867         stat: add as dependency to other modules
31868         * modules/chown (Depends-on): Add stat.
31869         * modules/euidaccess (Depends-on): Likewise.
31870         * modules/fchdir (Depends-on): Likewise.
31871         * modules/isdir (Depends-on): Likewise.
31872         * modules/link (Depends-on): Likewise.
31873         * modules/lstat (Depends-on): Likewise.
31874         * modules/mkdir-p (Depends-on): Likewise.
31875         * modules/modechange (Depends-on): Likewise.
31876         * modules/open (Depends-on): Likewise.
31877         * modules/readlink (Depends-on): Likewise.
31878         * modules/same (Depends-on): Likewise.
31879
31880         stat: fix Solaris 9 bug
31881         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
31882         slash.
31883         * lib/stat.c (rpl_stat): Work around it.
31884         * doc/posix-functions/stat.texi (stat): Update documentation.
31885
31886         stat: new module, for mingw bug
31887         * modules/stat: New file.
31888         * lib/stat.c: Likewise.
31889         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31890         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31891         * modules/sys_stat (Makefile.am): Use them.
31892         * lib/sys_stat.in.h (stat): Declare replacement.
31893         * lib/openat.c (fstatat): Deal with lstat and stat being function
31894         macros.
31895         * modules/openat (Depends-on): Add inline.
31896         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31897         * doc/posix-functions/stat.texi (stat): Likewise.
31898         * modules/stat-tests: New test.
31899         * tests/test-stat.c: Likewise.
31900
31901 2009-09-19  Jim Meyering  <meyering@redhat.com>
31902
31903         syntax-check: detect unnecessary inclusion of canonicalize.h
31904         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
31905
31906 2009-09-19  Eric Blake  <ebb9@byu.net>
31907
31908         canonicalize-lgpl: adjust clients to use correct header
31909         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31910         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
31911         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
31912         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
31913         * lib/progreloc.c (includes): Likewise.
31914
31915 2009-09-19  Jim Meyering  <meyering@redhat.com>
31916
31917         test-posixtm.c: correct a comment
31918         * tests/test-posixtm.c: Correct first-line comment.
31919         Spotted by Eric Blake.
31920
31921 2009-09-16  Jim Meyering  <meyering@redhat.com>
31922
31923         posixtm-tests: make T const-correct; add a test case
31924         * tests/test-posixtm.c (T): Declare const.
31925         Add a test for -(2^31+1).
31926         Remove useless can-succeed-only-in-2002 test.
31927
31928         posixtm-tests: adjust the sole failing test
31929         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
31930         expected output matches what mktime now produces.  Cross-checked via
31931         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
31932
31933         posixtm: move #ifdef'd tests into a new module
31934         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
31935         * tests/test-posixtm.c: ... this new file.
31936         * modules/posixtm-tests: New module.
31937
31938 2009-09-19  Eric Blake  <ebb9@byu.net>
31939
31940         openat: simplify use of at-func.c
31941         * lib/at-func.c (includes): Include prerequisites here, to
31942         simplify requirements on client files.
31943         * lib/openat-priv.h: Add double-inclusion guard.
31944         * lib/faccessat.c (includes): Simplify.
31945         * lib/fchmodat.c (includes): Likewise.
31946         * lib/fchownat.c (includes): Likewise.
31947         * lib/mkdirat.c (includes): Likewise.
31948         * lib/mkfifoat.c (includes): Likewise.
31949         * lib/symlinkat.c (includes): Likewise.
31950
31951         openat: allow return of fd 0
31952         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
31953         * modules/save-cwd (Depends-on): Replace fcntl-safer with
31954         unistd-safer.
31955         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
31956         <fcntl.h>; this module does not leak fds.
31957         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
31958         must be allowed to return 0, leaving openat_safer to add the
31959         safety.
31960         (openat_permissive): Avoid writing to just-opened fd 2 if
31961         restoring the current directory fails.
31962         * lib/openat-die.c (openat_restore_fail): Add comment.
31963         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
31964         (save_cwd): Guarantee safe fd, but without use of open_safer.
31965         * tests/test-openat.c: New test.
31966         * modules/openat-tests (Files, Makefile.am): Distribute and build
31967         new file.
31968
31969         relocatable-prog-wrapper: fix build
31970         * modules/relocatable-prog-wrapper (Files): Update name of
31971         canonicalize m4 file, broken on 2009-09-17.
31972         Reported by emad hajjar <aleppos@hotmail.com>.
31973
31974 2009-09-19  Bruno Haible  <bruno@clisp.org>
31975
31976         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31977         * lib/safe-alloc.c: Likewise.
31978         Reported by Ian Beckwith <ianb@erislabs.net>.
31979
31980 2009-09-18  Bruno Haible  <bruno@clisp.org>
31981
31982         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31983         Reported by <erobles@sensacd.com.mx>.
31984
31985 2009-09-17  Eric Blake  <ebb9@byu.net>
31986
31987         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31988         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31989         slashes when checking if last component is missing.
31990         * tests/test-canonicalize.c (main): Test this.
31991
31992         canonicalize, canonicalize-lgpl: honor // if distinct from /
31993         * modules/canonicalize (Files): Add double-slash-root.m4.
31994         * modules/canonicalize-lgpl (Files): Likewise.
31995         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31996         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31997         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31998         fallback definition.
31999         (canonicalize_filename_mode): Use it to protect //.
32000         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
32001         (__realpath): Likewise.
32002         * tests/test-canonicalize.c (main): Test this.
32003         * tests/test-canonicalize-lgpl.c (main): Likewise.
32004         * modules/canonicalize-tests (Depends-on): Add same-inode.
32005         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32006
32007         canonicalize-lgpl: fix glibc bug with trailing slash
32008         * m4/canonicalize-lgpl.m4: Move contents...
32009         * m4/canonicalize.m4: ...here.
32010         (gl_CANONICALIZE_LGPL): Factor realpath check...
32011         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
32012         glibc 2.3.5 bug, fixed 2005-04-27.
32013         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
32014         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
32015         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
32016         * modules/canonicalize-lgpl (Files): Manage file rename.
32017         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
32018         * modules/stdlib (Makefile.am): Substitute witness.
32019         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
32020         is needed.
32021         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
32022         replacement is required.
32023         * lib/canonicalize.c (canonicalize_file_name): Likewise.
32024         * doc/glibc-functions/canonicalize_file_name.texi
32025         (canonicalize_file_name): Document this.
32026         * doc/posix-functions/realpath.texi (realpath): Likewise.
32027
32028         canonicalize-lgpl: reject non-directory with trailing slash
32029         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
32030         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
32031         catches failures in glibc 2.3.5.
32032         * tests/test-canonicalize.c (main): Likewise.
32033
32034         canonicalize-lgpl: use native realpath if it works
32035         * lib/canonicalize-lgpl.c (realpath): Guard with
32036         FUNC_REALPATH_WORKS.
32037         * lib/stdlib.in.h (realpath): Make declaration optional based on
32038         HAVE_REALPATH.
32039         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
32040         native realpath works.
32041         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
32042         * modules/stdlib (Makefile.am): Substitute witness.
32043
32044         canonicalize, canonicalize-lgpl: use <stdlib.h>
32045         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
32046         (Include): Mention <stdlib.h>.
32047         (configure.ac): Mention functions we provide.
32048         * modules/canonicalize (configure.ac): Likewise.
32049         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
32050         realpath if canonicalize_file_name is missing.
32051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
32052         * modules/stdlib (Makefile.am): Substitute witnesses.
32053         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
32054         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
32055         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
32056         * NEWS: Document this.
32057         * doc/glibc-functions/canonicalize_file_name.texi
32058         (canonicalize_file_name): Likewise.
32059         * doc/posix-functions/realpath.texi (realpath): Likewise.
32060         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
32061
32062         test-canonicalize: consolidate into single C program
32063         * tests/test-canonicalize.sh: Delete; move setup into...
32064         * tests/test-canonicalize.c (main): ...the program, making it
32065         easier to run in debugger.  Add some tests.
32066         * modules/canonicalize-tests (Files): Remove unused file.
32067         (Depends-on): Add progname.
32068         (configure.ac, Makefile.am): Simplify.
32069
32070         test-canonicalize-lgpl: consolidate into single C program
32071         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
32072         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
32073         easier to run in debugger.  Add some tests.
32074         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
32075         (configure.ac, Makefile.am): Simplify.
32076
32077         canonicalize: avoid resolvepath
32078         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
32079         unnecessary checks.
32080         * lib/canonicalize.c (includes): Simplify.
32081         (canonicalize_file_name): Drop resolvepath implementation.
32082         * modules/canonicalize (Depends-on): Drop filenamecat.
32083
32084         canonicalize: don't lose errno
32085         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
32086         over calls to free.
32087
32088         canonicalize: simplify errno handling
32089         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
32090         assignment.
32091
32092         canonicalize, canonicalize-lgpl: update module dependencies
32093         * modules/canonicalize (Depends-on): Add extensions, lstat,
32094         pathmax, stdlib.
32095         (Files): Drop pathmax.h.
32096         (configure.ac): Adjust macro name.
32097         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
32098         lstat, stdlib, sys_stat.
32099         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
32100         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
32101         extensions.
32102         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
32103         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
32104         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
32105         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
32106         declaration, if available.
32107         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
32108         we can rely on the readlink module.
32109         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
32110         (includes): Use <unistd.h> unconditionally.
32111
32112 2009-09-17  Eric Blake  <ebb9@byu.net>
32113
32114         maint: make Include sections of modules consistent
32115         * modules/alloca: Use only header name; no need to list #include.
32116         * modules/alloca-opt: Likewise.
32117         * modules/arpa_inet: Likewise.
32118         * modules/canon-host: Likewise.
32119         * modules/configmake: Likewise.
32120         * modules/dirent: Likewise.
32121         * modules/eealloc: Likewise.
32122         * modules/environ: Likewise.
32123         * modules/fchdir: Likewise.
32124         * modules/fcntl: Likewise.
32125         * modules/fcntl-h: Likewise.
32126         * modules/gethrxtime: Likewise.
32127         * modules/gettime: Likewise.
32128         * modules/ignore-value: Likewise.
32129         * modules/inet_ntop: Likewise.
32130         * modules/inet_pton: Likewise.
32131         * modules/inttypes: Likewise.
32132         * modules/isnand-nolibm: Likewise.
32133         * modules/isnanf-nolibm: Likewise.
32134         * modules/mbchar: Likewise.
32135         * modules/mbfile: Likewise.
32136         * modules/mbiter: Likewise.
32137         * modules/mbuiter: Likewise.
32138         * modules/netdb: Likewise.
32139         * modules/netinet_in: Likewise.
32140         * modules/nproc: Likewise.
32141         * modules/pagealign_alloc: Likewise.
32142         * modules/poll: Likewise.
32143         * modules/printf-frexp: Likewise.
32144         * modules/pthread: Likewise.
32145         * modules/putenv: Likewise.
32146         * modules/random_r: Likewise.
32147         * modules/relocatable-prog: Likewise.
32148         * modules/search: Likewise.
32149         * modules/select: Likewise.
32150         * modules/selinux-h: Likewise.
32151         * modules/settime: Likewise.
32152         * modules/signal: Likewise.
32153         * modules/size_max: Likewise.
32154         * modules/socklen: Likewise.
32155         * modules/ssize_t: Likewise.
32156         * modules/stdarg: Likewise.
32157         * modules/stdbool: Likewise.
32158         * modules/stddef: Likewise.
32159         * modules/stdint: Likewise.
32160         * modules/stdio: Likewise.
32161         * modules/stdlib: Likewise.
32162         * modules/string: Likewise.
32163         * modules/strings: Likewise.
32164         * modules/sys_file: Likewise.
32165         * modules/sys_ioctl: Likewise.
32166         * modules/sys_select: Likewise.
32167         * modules/sys_socket: Likewise.
32168         * modules/sys_stat: Likewise.
32169         * modules/sys_time: Likewise.
32170         * modules/sys_times: Likewise.
32171         * modules/sys_utsname: Likewise.
32172         * modules/sys_wait: Likewise.
32173         * modules/sysexits: Likewise.
32174         * modules/time: Likewise.
32175         * modules/times: Likewise.
32176         * modules/tmpfile: Likewise.
32177         * modules/trim: Likewise.
32178         * modules/unistd: Likewise.
32179         * modules/wchar: Likewise.
32180         * modules/wctype: Likewise.
32181
32182 2009-09-17  Bruno Haible  <bruno@clisp.org>
32183
32184         Make getdate.y compile on QNX and NetBSD 5 / i386.
32185         * m4/getdate.m4 (gl_GETDATE): Conditionally define
32186         TIME_T_FITS_IN_LONG_INT.
32187         * lib/getdate.y (long_time_t): New type.
32188         (relative_time): Change type of 'seconds' field to long_time_t.
32189         (get_date): Update types of local variables. Check against overflow
32190         during conversion from long_time_t to time_t.
32191         Reported by Matt Kraai <kraai@ftbfs.org>
32192         and Hasso Tepper <hasso@netbsd.org>.
32193
32194 2009-09-17  Bruno Haible  <bruno@clisp.org>
32195
32196         * modules/COPYING: Update copyright years.
32197         * modules/README: Likeiwse.
32198         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
32199         Reported by Ian Beckwith <ianb@erislabs.net>.
32200
32201 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32202
32203         * users.txt: Update references for gnuit package.
32204
32205 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32206
32207         * m4/getdelim.m4: Fix typo in copyright line.
32208
32209 2009-09-17  Bruno Haible  <bruno@clisp.org>
32210
32211         * lib/atoll.c: Use the standard header with GPL copyright.
32212         * lib/argz.in.h: Likewise.
32213         * lib/glob.c: Likewise.
32214         * lib/glob-libc.h: Likewise.
32215         * lib/random_r.c: Likewise.
32216         * lib/siglist.h: Likewise.
32217         * lib/strsignal.c: Likewise.
32218         Reported by Ian Beckwith <ianb@erislabs.net>.
32219
32220 2009-09-17  Eric Blake  <ebb9@byu.net>
32221
32222         rmdir: ensure correct dependency order
32223         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
32224
32225 2009-09-17  Bruno Haible  <bruno@clisp.org>
32226
32227         Disable assertion that fails on NetBSD 5 / i386.
32228         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
32229         Reported by Sam Steingold <sds@gnu.org>
32230         and Hasso Tepper <hasso@netbsd.org>.
32231
32232 2009-09-16  Eric Blake  <ebb9@byu.net>
32233
32234         unlinkdir: port to mingw
32235         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
32236         on which no one can unlink a directory.
32237
32238         stdlib: sort witness names
32239         * modules/stdlib (Makefile.am): Sort replacements.
32240         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
32241         * lib/stdlib.in.h: Likewise.
32242
32243         parse-duration-tests: avoid link failure
32244         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
32245         LIBINTL.
32246         Reported by Tom G. Christensen.
32247
32248         openat-tests: ensure unlinkat behaves like rmdir
32249         * tests/test-rmdir.c (main): Factor guts...
32250         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
32251         * modules/rmdir-tests (Files): Ship new file.
32252         * modules/openat-tests: New test.
32253         * tests/test-unlinkat.c: Likewise.
32254
32255         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
32256         * modules/rmdir-errno (Status, Notice): Now obsolete.
32257
32258         rmdir: work around cygwin 1.5.x and mingw bugs
32259         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
32260         * lib/rmdir.c (rmdir): Work around it.
32261         * modules/rmdir (Status, Notice): No longer obsolete.
32262         (Files): Add dos.m4.
32263         (Depends-on): Add unistd.
32264         (configure.ac): Set witnesses.
32265         (License): Relax to LGPLv2+.
32266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
32267         * modules/unistd (Makefile.am): Substitute witnesses.
32268         * lib/unistd.in.h (rmdir): Declare replacement.
32269         * doc/posix-functions/rmdir.texi (rmdir): Document this.
32270         * modules/rmdir-tests: New tests.
32271         * tests/test-rmdir.c: Likewise.
32272
32273 2009-09-15  Eric Blake  <ebb9@byu.net>
32274
32275         fchdir: improve use of replacement functions
32276         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
32277         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
32278         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
32279         REPLACE_CLOSEDIR.
32280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
32281         * modules/sys_stat (Makefile.am): Substitute correct witness.
32282         * modules/dirent (Makefile.am): Likewise.
32283         * modules/unistd (Makefile.am): Likewise.
32284         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
32285         * lib/unistd.in.h (dup): Likewise.
32286         * lib/sys_stat.in.h (fstat): Likewise.
32287
32288         maint: ignore gnulib-tool temp files
32289         * .gitignore: Ignore files created during gnulib-tool --test.
32290
32291 2009-09-13  Jim Meyering  <meyering@redhat.com>
32292
32293         posixtm: don't reject a time that specify "60" as the number of seconds
32294         * lib/posixtm.c (posixtime): The code to reject invalid dates
32295         would also reject a time specified with the .60 suffix.
32296         But POSIX allows that, in order to accommodate leap seconds.
32297         So don't reject it.
32298         (main): Adjust tests accordingly.
32299         * modules/posixtm (Depends-on): Add stpcpy.
32300
32301 2009-09-11  Jim Meyering  <meyering@redhat.com>
32302
32303         announce-gen: include [$release_type] in emitted Subject:
32304         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
32305         e.g., [stable] in the emitted Subject: line.
32306
32307 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32308
32309         Remove obsolete macros from several modules.
32310         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
32311         obsolete Autoconf macros with their modern counterparts.
32312         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
32313         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
32314         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
32315         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
32316         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
32317         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32318         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32319         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32320         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
32321         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
32322         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32323         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32324         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
32325         * m4/sockets.m4 (gl_SOCKETS): Likewise.
32326         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
32327         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
32328         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32329         * m4/time_r.m4 (gl_TIME_R): Likewise.
32330         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
32331         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
32332         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32333
32334         Fix copyright header in build-aux scripts.
32335         * build-aux/git-version-gen: Fix copyright header to match GPLv3
32336         recommendation.
32337         * build-aux/ncftpput-ftp: Likewise.
32338         * build-aux/update-copyright: Likewise.
32339
32340 2009-09-09  Eric Blake  <ebb9@byu.net>
32341
32342         test-link: allow Linux choice of errno
32343         * tests/test-link.c (main): Relax test for alternate error.
32344
32345         strndup: fix improper m4 caching
32346         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
32347         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
32348         (gl_PREREQ_STRNDUP): Delete.
32349         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
32350         * modules/string (Makefile.am): Substitute it.
32351         * lib/string.in.h (strndup): Modernize prototype.
32352
32353         getcwd: port to mingw
32354         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
32355         different from the POSIX assumptions made throughout the getcwd
32356         module; fortunately, the mingw getcwd does not need replacement.
32357         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
32358         * modules/getcwd-tests: New test.
32359         * tests/test-getcwd.c: Likewise.
32360
32361         link: fix platform bugs
32362         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
32363         * lib/link.c (link): Work around them.  Fix related mingw bug.
32364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
32365         * modules/unistd (Makefile.am): Substitute it.
32366         * lib/unistd.in.h (link): Declare replacement.
32367         * doc/posix-functions/link.texi (link): Document this.
32368         * modules/link (Depends-on): Add strdup-posix, sys_stat.
32369
32370         test-link: consolidate into single C program, test more cases
32371         * tests/test-link.sh: Delete.
32372         * tests/test-link.c: Test more error conditions.  Exposes bugs on
32373         at least Cygwin and Solaris.
32374         * modules/link-tests (Files): Remove unused file.
32375         (Depends-on): Add errno, sys_stat.
32376         (Makefile.am): Simplify.
32377
32378 2009-09-08  Bruno Haible  <bruno@clisp.org>
32379
32380         Work around towlower, towupper bug on mingw.
32381         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
32382         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
32383         * doc/posix-functions/towlower.texi: Mention the mingw bug.
32384         * doc/posix-functions/towupper.texi: Likewise.
32385         Reported by Eric Blake.
32386
32387 2009-09-08  Jim Meyering  <meyering@redhat.com>
32388
32389         build: don't try to run autoheader if we don't use it
32390         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
32391         is not used in configure.ac.
32392
32393 2009-09-08  Eric Blake  <ebb9@byu.net>
32394
32395         euidaccess: fix compilation error
32396         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
32397
32398         rawmemchr: relax license
32399         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
32400         okay.
32401         Reported by Jim Meyering.
32402
32403         mkfifoat: new module
32404         * modules/mkfifoat: New file.
32405         * lib/mkfifoat.c: Likewise.
32406         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
32407         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32408         * modules/sys_stat (Makefile.am): Use them.
32409         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
32410         * MODULES.html.sh (File system functions): Mention module.
32411         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32412         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32413         * modules/mkfifoat-tests: New test.
32414         * tests/test-mkfifoat.c: Likewise.
32415
32416         strchrnul: relax license
32417         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
32418         okay.
32419         Reported by Jim Meyering.
32420
32421 2009-09-08  Eric Blake  <ebb9@byu.net>
32422
32423         fstatat: fix compilation on Solaris
32424         * lib/fstatat.c (includes): Add fcntl.h.
32425         Reported by Pádraig Brady.
32426
32427 2009-09-07  Eric Blake  <ebb9@byu.net>
32428
32429         rename: modernize replacement
32430         * modules/rename (Depends-on): Add stdio.
32431         (configure.ac): Declare witness.
32432         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
32433         stdio take care of replacement.
32434         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32435         * modules/stdio (Makefile.am): Substitute them.
32436         * lib/stdio.in.h (rename): Declare replacement.
32437         * lib/rename.c (includes): Allow cross-compilation to non-windows
32438         machines.
32439         * doc/posix-functions/rename.texi (rename): Improve
32440         documentation.
32441
32442         stdio: sort witness names
32443         * modules/stdio (Makefile.am): Sort replacements.
32444         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32445         * lib/stdio.in.h: Likewise.
32446
32447         getcwd: minor cleanups
32448         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
32449         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
32450
32451         openat: provide more convenience names
32452         * modules/faccessat (configure.ac): Add C witness.
32453         * lib/unistd.in.h (readlinkat): Fix typo.
32454         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
32455         convenience wrappers.
32456         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
32457         wrappers in syntax checks.
32458
32459 2009-09-06  Eric Blake  <ebb9@byu.net>
32460
32461         doc: fix comments in recent patches
32462         * lib/faccessat.c: Mention correct function.
32463         * lib/fchmodat.c: Likewise.
32464         * lib/fchownat.c: Likewise.
32465         * lib/symlinkat.c: Likewise.
32466         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
32467         constants.
32468
32469         faccessat, symlinkat: continue cleanup of previous patch
32470         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
32471         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32472         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
32473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
32474         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
32475         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
32476         set.
32477
32478 2009-09-06  Bruno Haible  <bruno@clisp.org>
32479
32480         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
32481         (fstatat): Declare if GNULIB_FSTATAT is set.
32482         (mkdirat): Declare if GNULIB_MKDIRAT is set.
32483         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
32484         (unlinkat): Declare if GNULIB_UNLINKAT is set.
32485         * modules/fcntl-h (Files): Remove m4/openat.m4.
32486         * modules/sys_stat (Files): Remove m4/openat.m4.
32487         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
32488         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
32489         * modules/unistd (Files): Remove m4/openat.m4.
32490         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
32491         GNULIB_OPENAT.
32492         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
32493         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
32494         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
32495         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
32496         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
32497         gl_OPENAT_DEFAULTS.
32498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
32499         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
32500         Don't require gl_OPENAT_DEFAULTS.
32501         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
32502         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
32503         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
32504         (gl_OPENAT_DEFAULTS): Remove macro.
32505
32506 2009-09-06  Bruno Haible  <bruno@clisp.org>
32507
32508         * modules/openat (configure.ac): Remove unneeded witness.
32509
32510 2009-09-06  Bruno Haible  <bruno@clisp.org>
32511
32512         Set errno to ENOSYS when a function is entirely unsupported.
32513         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
32514         EOPNOTSUPP.
32515         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32516         * modules/chown (Depends-on): Remove errno.
32517
32518 2009-09-06  Bruno Haible  <bruno@clisp.org>
32519
32520         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
32521
32522 2009-09-06  Bruno Haible  <bruno@clisp.org>
32523
32524         * lib/sys_stat.in.h: Fix preprocessor command indentation.
32525
32526 2009-09-06  Ben Pfaff  <blp@gnu.org>
32527             Bruno Haible  <bruno@clisp.org>
32528
32529         Work around a glibc bug in strtok_r.
32530         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
32531         Undefine if UNDEFINE_STRTOK_R is set.
32532         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
32533         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32534         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
32535         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
32536         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
32537         UNDEFINE_STRTOK_R.
32538         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
32539
32540 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32541
32542         exclude: minor fix
32543         * lib/exclude.c: Include wctype.h
32544
32545 2009-09-06  Akim Demaille  <demaille@gostai.com>
32546
32547         bootstrap: improve error message
32548         * build-aux/bootstrap (find_tool): Upon failure, report the list
32549         of candidates.
32550         Honor the initial value of the envvar.
32551
32552 2009-09-05  Eric Blake  <ebb9@byu.net>
32553
32554         symlinkat: new module
32555         * modules/symlinkat: New file.
32556         * lib/symlinkat.c: Likewise.
32557         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
32558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32559         * modules/unistd (Makefile.am): Use them.
32560         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
32561         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
32562         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
32563         * MODULES.html.sh (File system functions): Mention module.
32564         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32565         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32566         * modules/symlinkat-tests: New test.
32567         * tests/test-symlinkat.c: Likewise.
32568
32569         test-openat-safer: add more checks
32570         * tests/test-openat-safer.c (main): Check more code paths.
32571
32572 2009-09-05  Jim Meyering  <meyering@redhat.com>
32573
32574         syntax-check: detect unnecessary inclusion of openat.h
32575         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
32576
32577 2009-09-05  Bruno Haible  <bruno@clisp.org>
32578
32579         Support towlower, towupper.
32580         * doc/posix-functions/towlower.texi: Mention module wctype.
32581         * doc/posix-functions/towupper.texi: Likewise.
32582         * lib/wctype.in.h (towlower, towupper): New functions.
32583         * tests/test-wctype.c: Include stdio.h, stdlib.h.
32584         (ASSERT): New macro.
32585         (e): New variable.
32586         (main): Test also towlower, towupper. Test WEOF argument.
32587         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32588
32589 2009-09-05  Bruno Haible  <bruno@clisp.org>
32590
32591         Fix conversion behaviour when the input is invalid.
32592         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
32593         mark occurring in first pass of indirect conversion.
32594         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
32595         input.
32596         Found by clang's static analyzer.
32597
32598 2009-09-05  Bruno Haible  <bruno@clisp.org>
32599
32600         * tests/test-striconveh.c (main): Test indirect conversion on platforms
32601         where direct conversion is possible.
32602
32603 2009-09-04  Eric Blake  <ebb9@byu.net>
32604
32605         openat: fail with ENOENT on empty name
32606         * lib/openat-proc.c (openat_proc_name): Special-case the empty
32607         buffer.
32608
32609         link-follow: fix logic bug in prior patch
32610         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
32611         reversed sense of yes and no in prior patch.  Avoid confusing
32612         compilation failure with desired semantics.
32613
32614         link-follow: accomodate mingw and cross-compilation
32615         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
32616         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
32617         cross-compilation results to -1, to make linkat easier to
32618         implement when cross-compiling.  Trivially support mingw.
32619         * modules/link-follow (configure.ac): Call new name.
32620         * NEWS: Mention this.
32621
32622 2009-09-03  Eric Blake  <ebb9@byu.net>
32623
32624         faccessat: compile replacement
32625         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
32626         needed.
32627
32628         fts: fix compilation error
32629         * lib/fts.c (includes): Re-add "openat.h", for
32630         openat_needs_fchdir.
32631
32632         faccessat: new module
32633         * modules/faccessat: New file.
32634         * lib/faccessat.c: Likewise.
32635         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32637         * modules/unistd (Makefile.am): Use it.
32638         * lib/unistd.in.h (faccessat): Declare it.
32639         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
32640         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
32641         * MODULES.html.sh (File system functions): Mention it.
32642         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
32643         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32644
32645         euidaccess: prefer POSIX over non-standard implementation
32646         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
32647         * lib/euidaccess.c (euidaccess): Use it if available.
32648
32649         openat: make template easier to use
32650         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
32651         AT_FUNC_F2 to be undefined.
32652         (VALIDATE_FLAG): New macro; use it to reject bad flags.
32653         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
32654         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
32655         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
32656         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
32657         Likewise.
32658         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
32659         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
32660         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
32661         Likewise.
32662
32663         openat: declare in POSIX headers
32664         * NEWS: Mention this.
32665         * modules/openat (configure.ac): Declare witnesses.
32666         (Depends-on): Add fcntl-h, sys_stat, unistd.
32667         (Include): Mention correct headers.
32668         * modules/fcntl-h (Depends-on): Add link-warning.
32669         (Files): Add openat.m4.
32670         (Makefile.am): Substitute witnesses.
32671         * modules/sys_stat (Files, Makefile.am): Likewise.
32672         * modules/unistd (Files, Makefile.am): Likewise.
32673         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
32674         (gl_OPENAT_DEFAULTS): New macro.
32675         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
32676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
32677         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
32678         (SYS_STAT_H): Remove unused variable.
32679         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
32680         * lib/fcntl--.h (includes): Remove unneeded header.
32681         * lib/openat-safer.c (includes): Likewise.
32682         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
32683         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
32684         appropriate headers.
32685         (__OPENAT_PREFIX): Delete.
32686         * lib/fcntl.in.h (openat): Provide declaration.
32687         (AT_FDCWD): Fix Solaris bug.
32688         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
32689         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
32690         * lib/fchmodat.c (includes):  Adjust to find declaration.
32691         * lib/fchownat.c (includes): Likewise.
32692         * lib/mkdirat.c (includes): Likewise.
32693         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
32694         still visible.
32695
32696 2009-09-02  Eric Blake  <ebb9@byu.net>
32697
32698         errno: use consistently
32699         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
32700         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
32701         * lib/canonicalize.c (ELOOP): Likewise.
32702         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
32703         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
32704         * lib/lchown.c (EOPNOTSUPP): Likewise.
32705         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
32706         * lib/savewd.c (ESTALE): Likewise.
32707         * lib/settime.c (ENOSYS): Likewise.
32708         * lib/utimens.c (ENOSYS): Likewise.
32709         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
32710         * lib/chdir-safer.c (ELOOP): Likewise.
32711         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
32712         * modules/c-stack (Depends-on): Add errno.
32713         * modules/canonicalize (Depends-on): Likewise.
32714         * modules/chdir-safer (Depends-on): Likewise.
32715         * modules/fdopendir (Depends-on): Likewise.
32716         * modules/inet_ntop (Depends-on): Likewise.
32717         * modules/inet_pton (Depends-on): Likewise.
32718         * modules/lchown (Depends-on): Likewise.
32719         * modules/openat (Depends-on): Likewise.
32720         * modules/savewd (Depends-on): Likewise.
32721         * modules/settime (Depends-on): Likewise.
32722         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
32723
32724         fts: avoid leaking fds
32725         * modules/fts (Depends-on): Add cloexec.
32726         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
32727         flag.
32728
32729         fts: make directory fds more robust
32730         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
32731         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
32732
32733         backupfile, chdir-long, fts, savedir: make safer
32734         * lib/backupfile.c (includes): Use "dirent--.h", since
32735         numbered_backup can write to stderr during readdir.
32736         * lib/savedir.c (includes): Likewise.
32737         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
32738         emulation can write to stderr on failure.
32739         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
32740         * lib/getcwd.c: Document why opendir_safer is unused.
32741         * lib/glob.c: Likewise.
32742         * lib/scandir.c: Likewise.
32743         * lib/openat-proc.c: Likewise, for open_safer.
32744         * modules/backupfile (Depends-on): Add dirent-safer.
32745         * modules/savedir (Depends-on): Likewise.
32746         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
32747         * modules/chdir-long (Depends-on): Add openat-safer.
32748
32749         openat-safer: new module
32750         * modules/openat-safer: New file.
32751         * lib/openat-safer.c: Likewise.
32752         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
32753         * lib/fcntl-safer.h (openat_safer): Declare.
32754         * lib/fcntl--.h (openat): Override.
32755         * MODULES.html.sh (File descriptor based I/O): Mention it.
32756         * lib/openat.h: Add double-inclusion guards.
32757         * lib/openat.c (includes): Only include "fcntl-safer.h", not
32758         "fcntl--.h", so we can implement openat.
32759         * modules/openat-safer-tests: New test.
32760         * tests/test-openat-safer.c: New file.
32761
32762         dirent-safer: new module
32763         * modules/dirent-safer: New file.
32764         * lib/dirent--.h: Likewise.
32765         * lib/dirent-safer.h: Likewise.
32766         * lib/opendir-safer.c: Likewise.
32767         * m4/dirent-safer.m4: Likewise.
32768         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
32769         * modules/dirent-safer-tests: New test.
32770         * tests/test-dirent-safer.c: New file.
32771         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
32772
32773         fdopendir: optimize on mingw
32774         * lib/unistd.in.h (_gl_directory_name): New prototype.
32775         * lib/fchdir.c (_gl_directory_name): Implement it.
32776         (fchdir): Use it to simplify implementation.
32777         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
32778         fchdir, when available, to avoid calling [f]chdir().
32779
32780         fdopendir: split into its own module
32781         * lib/openat.c (fdopendir): Move...
32782         * lib/fdopendir.c: ...into new file.
32783         * modules/fdopendir: New module.
32784         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
32785         * modules/openat (Depends-on): Add fdopendir.
32786         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
32787         fdopendir here.
32788         * modules/savedir (Depends-on): Only need fdopendir, not full
32789         openat.
32790         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
32791         * lib/openat.h (fdopendir): Drop prototype.
32792         * lib/dirent.in.h (fdopendir): Provide prototype.
32793         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
32794         * modules/dirent (Makefile.am): Substitute them.
32795         * MODULES.html.sh (File system functions): Mention it.
32796         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
32797         * modules/fdopendir-tests: New file.
32798         * tests/test-fdopendir.c: Likewise.
32799
32800         fchdir: use more consistent macro convention
32801         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
32802         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
32803         REPLACE_FCHDIR, rather than relying on config.h macros.
32804         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
32805         inside a single make-time REPLACE_FCHDIR block, rather than using
32806         the config.h FCHDIR_REPLACEMENT.
32807         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
32808         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
32809         Manage fstat replacement.
32810         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
32811         REPLACE_FCHDIR.
32812         * modules/sys_stat (Files): Add m4/unistd_h.m4.
32813         (Makefile.am): Substitute REPLACE_FCHDIR.
32814         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
32815         FCHDIR_REPLACEMENT.
32816         * lib/dup-safer.c (dup_safer): Likewise.
32817         * lib/dup2.c (rpl_dup2): Likewise.
32818         * lib/dup3.c (rpl_dup3): Likewise.
32819         * lib/open.c (rpl_open): Likewise.
32820
32821         fchdir: simplify error handling, and support dup3
32822         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
32823         stdbool, malloc-posix, realloc-posix.
32824         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
32825         (ensure_dirs_slot): Return false on allocation failure.
32826         (rpl_dup2): Delete.
32827         (_gl_register_dup): New function.
32828         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
32829         (_gl_register_fd): Close fd on allocation failure.
32830         * lib/fcntl.in.h (_gl_register_fd): Update signature.
32831         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
32832         prototype.
32833         (rpl_dup2_fchdir): Delete prototype.
32834         * lib/open.c (open): Update caller.
32835         * lib/dup2.c (dup2): Track fchdir metadata.
32836         * lib/dup3.c (dup3): Likewise.
32837         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
32838         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
32839
32840 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32841
32842         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
32843         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
32844         don't pass arguments to AC_OUTPUT.
32845
32846 2009-09-02  Bruno Haible  <bruno@clisp.org>
32847
32848         * modules/mkdtemp (License): Relicense under LGPLv2+.
32849         Reported by Paolo Bonzini.
32850
32851 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32852
32853         Replace uses of obsolete autoconf macros in Jim's modules.
32854         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
32855         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
32856         can evoke a warning from autoconf when run with -Wobsolete
32857         enabled.  They were declared obsolete for good reasons (see
32858         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
32859         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
32860         should not continue using the deprecated macros.
32861         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
32862         obsolete Autoconf macros with modern counterparts.
32863         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32864         * m4/dos.m4 (gl_AC_DOS): Likewise.
32865         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
32866         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
32867         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
32868         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
32869         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
32870         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
32871         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
32872         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
32873         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
32874         Likewise.
32875         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
32876         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32877         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
32878         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
32879         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
32880         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32881
32882 2009-09-01  Eric Blake  <ebb9@byu.net>
32883
32884         fchdir: fix off-by-one bug in previous patch
32885         * lib/fchdir.c (rpl_fstat): Use correct bounds.
32886         (_gl_unregister_fd): Delete useless if.
32887
32888 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
32889
32890         maint.mk: sort the list of syntax-check rules
32891         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
32892         easier to get a sense of progress when the rules are run sequentially
32893         and take a long time.
32894
32895 2009-09-01  Simon Josefsson  <simon@josefsson.org>
32896
32897         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
32898         * modules/netinet_in: Likewise.
32899         * modules/sys_file: Likewise.
32900         * modules/sys_ioctl: Likewise.
32901         * modules/sys_select: Likewise.
32902         * modules/sys_socket: Likewise.
32903         * modules/sys_stat: Likewise.
32904         * modules/sys_time: Likewise.
32905         * modules/sys_times: Likewise.
32906         * modules/sys_utsname: Likewise.
32907         * modules/sys_wait: Likewise.
32908
32909 2009-09-01  Jim Meyering  <meyering@redhat.com>
32910
32911         fts: help ensure that return values are not ignored
32912         * lib/fts_.h (__GNUC_PREREQ): Define.
32913         (__attribute_warn_unused_result__): Define.
32914         (fts_children, fts_close, fts_open, fts_read): Declare with
32915         __attribute_warn_unused_result__.
32916
32917         fts: fts_close now fails also when closing a dir file descriptor fails
32918         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
32919         and propagate to caller, along with errno.
32920
32921         announce-gen: correct formatting in --help output
32922         * build-aux/announce-gen (usage): Move the one-line description in
32923         --help output "up", to where it belongs, just after Usage:.
32924
32925 2009-08-31  Eric Blake  <ebb9@byu.net>
32926
32927         fchdir: port to mingw
32928         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
32929         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
32930         opened, then use a substitute.
32931         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
32932         replacement.
32933         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
32934         (_gl_register_fd): No need to check stat if open already filters
32935         all directories.
32936         (fchdir): Fix error condition to match POSIX.
32937         * modules/fchdir (Depends-on): Add sys_stat.
32938         * doc/posix-functions/open.texi (open): Document the limitation.
32939         * modules/fchdir-tests: New file.
32940         * tests/test-fchdir.c: Likewise.
32941
32942         canonicalize: allow cross-testing from cygwin to mingw
32943         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
32944         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
32945         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
32946         Likewise.
32947         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
32948         target does not support symlinks.
32949         * tests/test-canonicalize-lgpl.sh: Likewise.
32950
32951         chown: avoid compilation warning on mingw
32952         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
32953         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
32954         mingw.
32955         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32956         * modules/chown (Depends-on): Add errno.
32957
32958 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
32959
32960         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
32961         command.
32962
32963 2009-08-31  Jim Meyering  <meyering@redhat.com>
32964
32965         canonicalize: remove useless initialization
32966         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
32967         initialization of local, "end".
32968
32969 2009-08-30  Bruno Haible  <bruno@clisp.org>
32970
32971         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
32972         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
32973         ENOSYS.
32974
32975 2009-08-30  Bruno Haible  <bruno@clisp.org>
32976
32977         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32978         /usr/xpg4/bin/tr when it exists.
32979         * tests/test-pipe-filter-gi1.sh: Likewise.
32980
32981 2009-08-30  Bruno Haible  <bruno@clisp.org>
32982
32983         Work around deficient /usr/bin/id program on Solaris.
32984         * tests/test-file-has-acl.sh (ID): New variable.
32985         * tests/test-set-mode-acl.sh (ID): Likewise.
32986         * tests/test-copy-acl.sh (ID): Likewise.
32987         * tests/test-copy-file.sh (ID): Likewise.
32988
32989 2009-08-30  Bruno Haible  <bruno@clisp.org>
32990
32991         New module 'xstriconveh'.
32992         * lib/xstriconveh.h: New file.
32993         * lib/xstriconveh.c: New file.
32994         * modules/xstriconveh: New file.
32995
32996 2009-08-30  Bruno Haible  <bruno@clisp.org>
32997
32998         Make it easier to use mem_cd_iconveh.
32999         * lib/striconveh.h (iconveh_t): New type.
33000         (iconveh_open, iconveh_close): New declarations.
33001         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
33002         with a single 'const iconveh_t *' argument.
33003         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
33004         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
33005         with a single 'const iconveh_t *' argument.
33006         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
33007         * tests/test-striconveh.c (main): Update.
33008         * NEWS: Mention the change.
33009
33010 2009-08-30  Bruno Haible  <bruno@clisp.org>
33011
33012         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
33013         problem.
33014
33015 2009-08-30  Bruno Haible  <bruno@clisp.org>
33016
33017         Work around iconv_open problem on Solaris.
33018         * lib/iconv_open-solaris.gperf: New file.
33019         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
33020         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
33021         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
33022         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
33023         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
33024         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
33025
33026 2009-08-29  Jim Meyering  <meyering@redhat.com>
33027
33028         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
33029         * top/maint.mk (cvs-check): Remove target; it was just an alias
33030         to the better-named vc-diff-check.
33031         (maintainer-distcheck): Remove rule.  It was used only from
33032         the (alpha/beta/major) target, and all of its commands but one
33033         were coreutils-specific.
33034         (vc-dist): Remove rule.
33035         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
33036         Run vc-diff-check, not vc-dist.
33037         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
33038
33039 2009-08-27  Bruno Haible  <bruno@clisp.org>
33040
33041         * tests/test-bitrotate.c (main): Remove test that uses a shift count
33042         of 0.
33043
33044 2009-08-27  Bruno Haible  <bruno@clisp.org>
33045
33046         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
33047         compilers.
33048         * doc/func.texi: Document the SunPRO C bug.
33049
33050 2009-08-27  Bruno Haible  <bruno@clisp.org>
33051
33052         Fix link error on Solaris.
33053         * tests/test-parse-duration.c (xstrdup): Remove function.
33054
33055 2009-08-26  Pádraig Brady  <P@draigbrady.com>
33056
33057         ignore-value: handle pointer types, too
33058         * lib/ignore-value.h (__attribute__): Remove definition.
33059         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
33060         of a more concise and more-often effective "(void) i" statement.
33061         (ignore_ptr): New function to suppress warnings from functions that
33062         return pointers, and to make it explicit that one function doesn't
33063         handle all cases.
33064
33065 2009-08-25  Bruno Haible  <bruno@clisp.org>
33066
33067         dup2: work around a Linux bug.
33068         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
33069         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
33070         * doc/posix-functions/dup2.texi: Mention the Linux bug.
33071         Reported by Simon Josefsson.
33072
33073 2009-08-25  Jim Meyering  <meyering@redhat.com>
33074
33075         libguestfs uses gnulib
33076         * users.txt: Add libguestfs.
33077
33078 2009-08-24  Eric Blake  <ebb9@byu.net>
33079
33080         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
33081         * lib/pipe2.c (includes): Add binary-io.h.
33082         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
33083
33084 2009-08-24  Bruno Haible  <bruno@clisp.org>
33085
33086         Tolerate declared but missing accept4 syscall.
33087         * lib/accept4.c (accept4): Invoke original accept4 function first, if
33088         available.
33089         * lib/sys_socket.in.h (accept4): If the function is already present,
33090         override it.
33091         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
33092         * modules/accept4 (Makefile.am): Compile accept4.c always.
33093         Reported by Paolo Bonzini and Eric Blake.
33094
33095 2009-08-23  Bruno Haible  <bruno@clisp.org>
33096
33097         New module 'accept4'.
33098         * lib/sys_socket.in.h (accept4): New declaration.
33099         * lib/accept4.c: New file.
33100         * m4/accept4.m4: New file.
33101         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
33102         GNULIB_ACCEPT4, HAVE_ACCEPT4.
33103         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
33104         HAVE_ACCEPT4.
33105         * modules/accept4: New file.
33106         * doc/glibc-functions/accept4.texi: Mention the new module.
33107
33108 2009-08-24  Jim Meyering  <meyering@redhat.com>
33109
33110         progname: also set global program_invocation_name, when possible
33111         Before this change, a libtool-enabled program that calls glibc's
33112         error function would report the program name as
33113         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
33114         * modules/progname (configure.ac): Check for a declaration of
33115         program_invocation_name.
33116         * lib/progname.c:  Include <errno.h>.
33117         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
33118         Set program_invocation_name.
33119
33120 2009-08-23  Bruno Haible  <bruno@clisp.org>
33121
33122         * lib/dup3.c: Include <string.h>.
33123
33124 2009-08-23  Bruno Haible  <bruno@clisp.org>
33125
33126         * lib/dup3.c (dup3): Test only once whether the system actually exists.
33127         * lib/pipe2.c (pipe2): Likewise.
33128         Suggested by Eric Blake.
33129
33130 2009-08-23  Bruno Haible  <bruno@clisp.org>
33131
33132         Tolerate declared but missing dup3 syscall.
33133         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
33134         * lib/unistd.in.h (dup3): If the function is already present,
33135         override it.
33136         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
33137         * modules/dup3 (Makefile.am): Compile dup3.c always.
33138         Reported by Paolo Bonzini.
33139
33140 2009-08-23  Bruno Haible  <bruno@clisp.org>
33141
33142         Tolerate declared but missing pipe2 syscall.
33143         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
33144         available.
33145         * lib/unistd.in.h (pipe2): If the function is already present,
33146         override it.
33147         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
33148         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
33149         Reported by Paolo Bonzini.
33150
33151 2009-08-23  Bruno Haible  <bruno@clisp.org>
33152
33153         * lib/pipe2.c (pipe2): Move #ifs inside function.
33154
33155 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33156
33157         quotearg: document limitations of quote_these_too
33158         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
33159         those limitations are created.
33160         * lib/quotearg.h (set_char_quoting): Document that digits and
33161         letters that are special after backslash are not permitted.
33162         (quotearg_char): Cross-reference set_char_quoting documentation.
33163
33164 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
33165
33166         quotearg: implement custom_quoting_style
33167         * lib/quotearg.c: (struct quoting_options): Add left_quote and
33168         right_quote fields.
33169         (set_custom_quoting): New public function.
33170         (quotearg_buffer_restyled): Add left_quote and right_quote
33171         arguments, handle them very much like locale quoting, and update
33172         all uses.
33173         (quotearg_n_custom): New public function.
33174         (quotearg_n_custom_mem): New public function.
33175         (quotearg_custom): New public function.
33176         (quotearg_custom_mem): New public function.
33177         * lib/quotearg.h: Prototype and document new public functions.
33178         (enum quoting_style): For escape_quoting_style and
33179         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
33180         ignored even though they're otherwise like c_quoting_style.
33181         Add custom_quoting_style member and document with comparison to
33182         clocale_quoting_style.
33183         * tests/test-quotearg.c (custom_quotes): New array.
33184         (custom_results): New array.
33185         (main): Extend to test custom quoting.
33186
33187 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33188
33189         quotearg: fix right quote escaping when it's in quote_these_too
33190         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
33191         quote, be sure to prepend only one backslash.
33192         * tests/test-quotearg.c (use_quote_double_quotes): New function.
33193         (main): Test it.
33194
33195 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33196
33197         quotearg-tests: test escaping of embedded locale quotes
33198         * tests/test-quotearg.c (struct result_strings): Add member for
33199         new input.
33200         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
33201         (inputs): Add new input.
33202         (results_g): Add expected results.
33203         (flag_results): Likewise.
33204         (locale_results): Likewise.
33205         (compare_strings): Check those.
33206
33207 2009-08-23  Bruno Haible  <bruno@clisp.org>
33208
33209         Tests for module 'dup3'.
33210         * modules/dup3-tests: New file.
33211         * tests/test-dup3.c: New file.
33212
33213         New module 'dup3'.
33214         * lib/unistd.in.h (dup3): New declaration.
33215         * lib/dup3.c: New file.
33216         * m4/dup3.m4: New file.
33217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
33218         HAVE_DUP3.
33219         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
33220         * modules/dup3: New file.
33221         * doc/glibc-functions/dup3.texi: Mention the new module.
33222
33223 2009-08-23  Bruno Haible  <bruno@clisp.org>
33224
33225         Tweak the dup2 test.
33226         * tests/test-dup2.c (main): Create the test file empty. Verify that an
33227         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
33228         the test file is still empty. Fix argument order of lseek.
33229
33230 2009-08-23  Bruno Haible  <bruno@clisp.org>
33231
33232         Avoid test link errors when the modules getopt-gnu, gettext are used.
33233         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
33234         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33235
33236 2009-08-23  Bruno Haible  <bruno@clisp.org>
33237
33238         Fix getdtablesize() on mingw.
33239         * lib/getdtablesize.c (getdtablesize): Implement differently.
33240         * lib/unistd.in.h (getdtablesize): Improve comment.
33241
33242 2009-08-23  Bruno Haible  <bruno@clisp.org>
33243
33244         New module 'mkostemp'.
33245         Based on Ulrich Drepper's 2007-08-10 change in glibc.
33246         * lib/stdlib.in.h (mksotemp): New declaration.
33247         * lib/mkostemp.c: New file, from glibc with modifications.
33248         * lib/tempname.h (GT_FILE): Remove outdated comment.
33249         (gen_tempname): Add flags argument.
33250         * lib/tempname.c (__GT_BIGFILE): Remove macro.
33251         (__GT_FILE): Map to 1.
33252         (small_open, large_open): Remove macros.
33253         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
33254         * lib/mkstemp.c (mkstemp): Update.
33255         * lib/mkdtemp.c (mkdtemp): Likewise.
33256         * m4/mkostemp.m4: New file.
33257         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
33258         HAVE_MKOSTEMP.
33259         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
33260         HAVE_MKOSTEMP.
33261         * modules/mkostemp: New file, based on modules/mkstemp.
33262         * doc/glibc-functions/mkostemp.texi: Mention the new module.
33263         * NEWS: Mention the change.
33264
33265 2009-08-23  Bruno Haible  <bruno@clisp.org>
33266
33267         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
33268         Reported by Eric Blake.
33269
33270 2009-08-23  Bruno Haible  <bruno@clisp.org>
33271
33272         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
33273         Reported by Eric Blake.
33274
33275 2009-08-23  Bruno Haible  <bruno@clisp.org>
33276
33277         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
33278         * modules/pipe2 (Depends-on): Likewise.
33279
33280 2009-08-23  Eric Blake  <ebb9@byu.net>
33281
33282         fcntl-h: add O_TTY_INIT support
33283         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
33284         * tests/test-fcntl-h.c (o): Test it.
33285         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33286
33287         fcntl-h: rename from fcntl, in preparation for fcntl(2)
33288         * modules/fcntl: Move <fcntl.h> header replacement...
33289         * modules/fcntl-h: ...to new name, so as not to collide with
33290         like-named function.
33291         * tests/test-fcntl.c: Rename...
33292         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
33293         * modules/fcntl-tests: Rename...
33294         * modules/fcntl-h-tests: ...to this.  Update test file name.
33295         * modules/chdir-long (Depends-on): Update clients.
33296         * modules/chdir-safer (Depends-on): Likewise.
33297         * modules/fcntl-safer (Depends-on): Likewise.
33298         * modules/fts (Depends-on): Likewise.
33299         * modules/mkancesdirs (Depends-on): Likewise.
33300         * modules/mkdir-p (Depends-on): Likewise.
33301         * modules/open (Depends-on): Likewise.
33302         * modules/savewd (Depends-on): Likewise.
33303         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
33304         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33305
33306 2009-08-22  Bruno Haible  <bruno@clisp.org>
33307
33308         * modules/binary-io (License): Relicense under LGPL.
33309         * modules/pipe2 (License): Likewise.
33310
33311 2009-08-22  Bruno Haible  <bruno@clisp.org>
33312
33313         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
33314         return value.
33315         * lib/pipe-filter-gi.c (filter_init): Likewise.
33316         Reported by Eric Blake.
33317
33318 2009-08-22  Bruno Haible  <bruno@clisp.org>
33319
33320         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
33321         * modules/pipe (Depends-on): Add pipe2.
33322
33323 2009-08-22  Bruno Haible  <bruno@clisp.org>
33324
33325         Tests for module 'pipe2'.
33326         * modules/pipe2-tests: New file.
33327         * tests/test-pipe2.c: New file.
33328
33329         New module 'pipe2'.
33330         * lib/unistd.in.h (pipe2): New declaration.
33331         * lib/pipe2.c: New file.
33332         * m4/pipe2.m4: New file.
33333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
33334         HAVE_PIPE2.
33335         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
33336         * modules/pipe2: New file.
33337         * doc/glibc-functions/pipe2.texi: Mention the new module.
33338
33339 2009-08-22  Bruno Haible  <bruno@clisp.org>
33340
33341         Reference some new glibc functions.
33342         * doc/glibc-functions/accept4.texi: New file.
33343         * doc/glibc-functions/dup3.texi: New file.
33344         * doc/glibc-functions/mkostemp.texi: New file.
33345         * doc/glibc-functions/pipe2.texi: New file.
33346         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
33347         (Glibc sys/socket.h): Refer to accept4.
33348         (Glibc unistd.h): Refer to dup3, pipe2.
33349         Reported by Eric Blake.
33350
33351 2009-08-22  Jim Meyering  <meyering@redhat.com>
33352             Bruno Haible  <bruno@clisp.org>
33353
33354         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
33355         This makes it so packages using automake-1.11's silent-rules option
33356         can print e.g., a single "GEN    configmake.h" line, rather than
33357         the 30+ statements that perform the job.  If you want to see the
33358         actual commands, you can still run "make V=1".
33359         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
33360         so that make output is abbreviated when those variables are defined
33361         appropriately.
33362         * modules/argz: Likewise.
33363         * modules/arpa_inet: Likewise.
33364         * modules/byteswap: Likewise.
33365         * modules/configmake: Likewise.
33366         * modules/dirent: Likewise.
33367         * modules/errno: Likewise.
33368         * modules/fcntl: Likewise.
33369         * modules/float: Likewise.
33370         * modules/fnmatch: Likewise.
33371         * modules/getopt-posix: Likewise.
33372         * modules/glob: Likewise.
33373         * modules/iconv_open: Likewise.
33374         * modules/inttypes: Likewise.
33375         * modules/localcharset: Likewise.
33376         * modules/locale: Likewise.
33377         * modules/math: Likewise.
33378         * modules/netdb: Likewise.
33379         * modules/netinet_in: Likewise.
33380         * modules/poll: Likewise.
33381         * modules/posix_spawnp-tests: Likewise.
33382         * modules/sched: Likewise.
33383         * modules/search: Likewise.
33384         * modules/selinux-h: Likewise.
33385         * modules/signal: Likewise.
33386         * modules/spawn: Likewise.
33387         * modules/stdarg: Likewise.
33388         * modules/stdbool: Likewise.
33389         * modules/stddef: Likewise.
33390         * modules/stdint: Likewise.
33391         * modules/stdio: Likewise.
33392         * modules/stdlib: Likewise.
33393         * modules/string: Likewise.
33394         * modules/strings: Likewise.
33395         * modules/sys_file: Likewise.
33396         * modules/sys_ioctl: Likewise.
33397         * modules/sys_select: Likewise.
33398         * modules/sys_socket: Likewise.
33399         * modules/sys_stat: Likewise.
33400         * modules/sys_time: Likewise.
33401         * modules/sys_times: Likewise.
33402         * modules/sys_utsname: Likewise.
33403         * modules/sys_wait: Likewise.
33404         * modules/sysexits: Likewise.
33405         * modules/time: Likewise.
33406         * modules/unistd: Likewise.
33407         * modules/wchar: Likewise.
33408         * modules/wctype: Likewise.
33409
33410 2009-08-22  Jim Meyering  <meyering@redhat.com>
33411
33412         announce-gen: detect write failure
33413         * build-aux/announce-gen: Add Coda at end.
33414         Remove equivalent-but-more-verbose block at top.
33415
33416 2009-08-19  Akim Demaille  <demaille@gostai.com>
33417
33418         bootstrap: --help to stdout.
33419         * bootstrap (usage): Don't send --help to stderr.
33420         Use a here doc instead of a long string.
33421
33422 2009-08-21  Eric Blake  <ebb9@byu.net>
33423
33424         test-popen-safer: split from test-popen
33425         * tests/test-popen.c (main): Move...
33426         * tests/test-popen.h: ...into new file.
33427         * tests/test-popen-safer2.c: New file.
33428         * modules/popen-tests (Files): Add test-popen.h.
33429         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
33430         Suggested by Bruno Haible.
33431
33432         test-fcntl-safer: split from test-open
33433         * tests/test-open.c (main): Move...
33434         * tests/test-open.h: ...into new file.
33435         * tests/test-fcntl-safer.c: New file.
33436         * modules/open-tests (Files): Add test-open.h.
33437         * modules/fcntl-safer-tests: New file.
33438         Suggested by Bruno Haible.
33439
33440         test-fopen-safer: split from test-fopen
33441         * tests/test-fopen.c (main): Move...
33442         * tests/test-fopen.h: ...into new file.
33443         * tests/test-fopen-safer.c: New file.
33444         * modules/fopen-tests (Files): Add test-fopen.h.
33445         * modules/fopen-safer-tests: New file.
33446         Suggested by Bruno Haible.
33447
33448 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33449
33450         popen-safer: test O_CLOEXEC at run-time.
33451         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
33452
33453 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33454
33455         fcntl: move more flags to the header
33456         * lib/cloexec.c: Do not define FD_CLOEXEC here.
33457         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
33458         * lib/fcntl.in.h: Do both things here.
33459
33460 2009-08-21  Jim Meyering  <meyering@redhat.com>
33461
33462         consistently remove $@-t before redirecting to it
33463         * modules/argz: Remove $@-t and $@ before redirecting to the former.
33464         * modules/alloca-opt: Likewise.
33465         * modules/byteswap: Likewise.
33466         * modules/fnmatch: Likewise.
33467         * modules/getopt-posix: Likewise.
33468         * modules/glob: Likewise.
33469         * modules/poll: Likewise.
33470         * modules/posix_spawnp-tests: Likewise.
33471         * modules/sys_socket: Likewise.
33472         * modules/sysexits: Likewise.
33473
33474 2009-08-21  Eric Blake  <ebb9@byu.net>
33475
33476         popen: simplify access to original popen
33477         * lib/popen.c (rpl_popen): No need to worry about popen being a
33478         macro.
33479         Reported by Bruno Haible.
33480
33481 2009-08-20  Eric Blake  <ebb9@byu.net>
33482
33483         build: avoid some compiler warnings
33484         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
33485         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
33486         type.
33487         (new_exclude_segment, excluded_file_pattern_p)
33488         (excluded_file_name_p): Reduce scope.
33489         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
33490         old-style declaration.
33491
33492 2009-08-20  Simon Josefsson  <simon@josefsson.org>
33493
33494         * tests/test-exclude1.sh: Handle Windows EOL.
33495         * tests/test-exclude2.sh: Likewise.
33496         * tests/test-exclude3.sh: Likewise.
33497         * tests/test-exclude4.sh: Likewise.
33498         * tests/test-exclude5.sh: Likewise.
33499         * tests/test-exclude6.sh: Likewise.
33500         * tests/test-exclude7.sh: Likewise.
33501
33502 2009-08-19  Akim Demaille  <demaille@gostai.com>
33503
33504         bootstrap: find sha1sum when named gsha1sum.
33505         * bootstrap (find_tool): New.
33506         ($SHA1SUM): New.
33507         Use it.
33508
33509 2009-08-20  Jim Meyering  <meyering@redhat.com>
33510
33511         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
33512         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
33513         expression that converts "." in a file name to "\." in the resulting
33514         regexp.  Start with a dummy statement, so that prior shell variable
33515         definitions are expanded portably.  Reported by Simon Josefsson.
33516
33517 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
33518
33519         Fix polling for writeability of a screen buffer.
33520         * lib/poll.c: Distinguish input and screen buffers for the
33521         Win32 implementation.
33522         * lib/select.c: Likewise.
33523
33524 2009-08-19  Eric Blake  <ebb9@byu.net>
33525
33526         popen-safer: prevent popen from clobbering std descriptors
33527         * modules/popen-safer: New file.
33528         * lib/popen-safer.c: Likewise.
33529         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
33530         * lib/stdio--.h (popen): Provide override.
33531         * lib/stdio-safer.h (popen_safer): Provide declaration.
33532         * tests/test-popen.c (includes): Partially test this.
33533         * modules/popen-safer-tests: New file, for more tests.
33534         * tests/test-popen-safer.c: Likewise.
33535         * MODULES.html.sh (file stream based Input/Output): Mention it.
33536
33537         tests: test some of the *-safer modules
33538         * modules/fopen-safer (Depends-on): Add fopen.
33539         * modules/fcntl-safer (Depends-on): Add fcntl.
33540         * modules/stdlib-safer (Depends-on): Add stdlib.
33541         (configure.ac): Set indicator.
33542         * modules/unistd-safer (configure.ac): Likewise.
33543         * modules/tmpfile-safer (configure.ac): Likewise.
33544         (Depends-on): Add tmpfile.
33545         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
33546         active.
33547         * tests/test-fopen.c (includes): Test safer versions when they are
33548         in use.
33549         * tests/test-open.c (includes): Likewise.
33550
33551         popen: fix cygwin 1.5 bug when stdin closed
33552         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
33553         * modules/popen: New file.
33554         * modules/popen-tests: Likewise.
33555         * tests/test-popen.c: Likewise.
33556         * m4/popen.m4: Likewise.
33557         * lib/popen.c: Likewise.
33558         * lib/stdio.in.h (popen): New declaration.
33559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
33560         * modules/stdio (Makefile.am): Likewise.
33561         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
33562
33563 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
33564
33565         maint.mk: give full control over update-copyright exclusions
33566         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
33567         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
33568         (update-copyright): Don't force inclusion of top-level
33569         ChangeLog.  Don't force exclusion of all COPYING files, but make
33570         them the default exclusion instead.
33571
33572 2009-08-16  Bruno Haible  <bruno@clisp.org>
33573
33574         Fix test failures on Solaris 10.
33575         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
33576         tests when Solaris iconv() is used.
33577         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
33578         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
33579         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
33580         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33581         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33582
33583 2009-08-16  Bruno Haible  <bruno@clisp.org>
33584
33585         Fix test failures on Solaris 10.
33586         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
33587         'tr' program and pass it as first argument.
33588         * tests/test-pipe-filter-gi1.sh: Likewise.
33589         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
33590         program as first argument.
33591         * tests/test-pipe-filter-gi1.c (main): Likewise.
33592
33593 2009-08-16  Eric Blake  <ebb9@byu.net>
33594
33595         fpurge: fix previous commits
33596         * modules/fpurge (Makefile.am): Make replacement conditional,
33597         partially reverting 2007-04-29 change; missed in previous
33598         attempt.
33599         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
33600         is missing.
33601
33602 2009-08-16  Bruno Haible  <bruno@clisp.org>
33603
33604         Clarify fpurge's effect on the file position.
33605         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
33606         * tests/test-fpurge.c (main): Make a second pass for checking the file
33607         position.
33608
33609 2009-08-16  Bruno Haible  <bruno@clisp.org>
33610
33611         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
33612         declaration of fpurge is missing.
33613         * tests/test-fpurge.c (main): Check that the file has not more contents
33614         than expected. Close the file before removing it.
33615
33616 2009-08-15  Eric Blake  <ebb9@byu.net>
33617
33618         fpurge: don't wrap working cygwin implementation
33619         * lib/fpurge.c (fpurge): Fix comment typo.
33620         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
33621         1.7 to avoid replacement.
33622         * tests/test-fpurge.c (main): Enhance test.
33623
33624 2009-08-15  Eric Blake  <ebb9@byu.net>
33625         and Jim Meyering  <meyering@redhat.com>
33626
33627         test-update-copyright: skip if perl is insufficient
33628         * tests/test-update-copyright.sh: Failure to run maintainer tool
33629         should not cause testsuite failure on cygwin 1.5.
33630
33631 2009-08-14  Eric Blake  <ebb9@byu.net>
33632
33633         doc: mention more functions added in cygwin 1.7.0
33634         * doc/posix-headers/limits.texi (limits.h): Update for recent
33635         cygwin additions.
33636         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
33637         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
33638         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
33639         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
33640         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
33641
33642 2009-08-14  Eric Blake  <ebb9@byu.net>
33643
33644         maint.mk: simplify update-copyright rule
33645         * top/maint.mk (update-copyright-local): Delete, and document how
33646         to do it in cfg.mk instead.
33647         (update-copyright-exclude-regexp): Delete, and document how to do
33648         it in .x-update-copyright instead.
33649         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
33650         exclude ChangeLog.
33651
33652 2009-08-14  Bruno Haible  <bruno@clisp.org>
33653
33654         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
33655
33656 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33657
33658         maint.mk: support update-copyright-env
33659         * top/maint.mk (update-copyright-env): Define place-holder.
33660         (update-copyright): Expand $(update-copyright-env) before
33661         invoking update-copyright.
33662
33663 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33664
33665         update-copyright: implement forced reformatting
33666         * build-aux/update-copyright: Implement and document
33667         UPDATE_COPYRIGHT_FORCE.
33668         * tests/test-update-copyright.sh: Test it.
33669
33670 2009-08-14  Eric Blake  <ebb9@byu.net>
33671         and Bruno Haible  <bruno@clisp.org>
33672
33673         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
33674         * tests/test-locale.c: Revert previous patch related to NULL.
33675         * tests/test-stdio.c: Likewise.
33676         * tests/test-stdlib.c: Likewise.
33677         * tests/test-string.c: Likewise.
33678         * tests/test-unistd.c: Likewise.
33679         * modules/time-tests (Depends-on): Add verify.
33680         * modules/wchar-tests (Depends-on): Likewise.
33681         * tests/test-time.c: Test for NULL compliance.
33682         * tests/test-wchar.c: Likewise.
33683         * modules/locale (Depends-on): Add stddef.
33684         * modules/stdio (Depends-on): Likewise.
33685         * modules/stdlib (Depends-on): Likewise.
33686         * modules/string (Depends-on): Likewise.
33687         * modules/time (Depends-on): Likewise.
33688         * modules/unistd (Depends-on): Likewise.
33689         * modules/wchar (Depends-on): Likewise.
33690         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
33691         * lib/stdlib.in.h (includes): Likewise.
33692         * lib/string.in.h (includes): Likewise.
33693         * lib/time.in.h (includes): Likewise.
33694         * lib/unistd.in.h (includes): Likewise.
33695         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
33696         replaced.
33697         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33698         * m4/stddef_h.m4: New file.
33699         * modules/stddef: Likewise.
33700         * lib/stddef.in.h: Likewise.
33701         * modules/stddef-tests: Likewise.
33702         * tests/test-stddef.c: Likewise.
33703         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
33704         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
33705         * doc/posix-headers/locale.texi (locale.h): Likewise.
33706         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
33707         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
33708         * doc/posix-headers/string.texi (string.h): Likewise.
33709         * doc/posix-headers/time.texi (time.h): Likewise.
33710         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
33711         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
33712
33713 2009-08-14  Eric Blake  <ebb9@byu.net>
33714
33715         doc: improve git diff of texinfo files
33716         * .gitattributes: Add rule for *.texi files, with hint on how to
33717         use it.
33718         Copied from m4, and based on a report by Bruno Haible.
33719
33720 2009-08-14  Bruno Haible  <bruno@clisp.org>
33721
33722         Disable multithread support by default on Cygwin 1.5.x for real.
33723         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
33724
33725 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33726
33727         update-copyright: much ado about intervals
33728         * build-aux/update-copyright: Implement and document
33729         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
33730         of copyright year intervals.
33731         Also, document UPDATE_COPYRIGHT_YEAR.
33732         * tests/test-update-copyright.sh: Test it.
33733
33734         update-copyright: convert 2-digit to 4-digit years
33735         * build-aux/update-copyright: Implement and document.
33736         * tests/test-update-copyright.sh: Update.
33737
33738 2009-08-14  Jim Meyering  <meyering@redhat.com>
33739
33740         test-exclude: avoid coreutils "make check" failure
33741         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
33742         just as in test-argmatch.c.
33743
33744 2009-08-13  Eric Blake  <ebb9@byu.net>
33745
33746         test-dup2: fix bad assumption
33747         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
33748         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
33749
33750         test-version-etc: fix CRLF portability issue
33751         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
33752         recognize \r.
33753         * tests/test-argp-version-etc-1.sh: Likewise.
33754
33755         getopt: update client modules
33756         * modules/argp (Depends-on): Use getopt-gnu.
33757         * modules/git-merge-changelog (Depends-on): Likewise.
33758         * modules/long-options (Depends-on): Likewise.
33759         * modules/xstrtol (Depends-on): Likewise.
33760
33761 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33762
33763         * tests/test-version-etc.sh: Don't fail on different
33764         project/version.  Don't fail on CRLF differences.  Rewrite to use
33765         multiple -e instead of multiple sed forks, suggested by Eric Blake
33766         <ebb9@byu.net>.
33767         * tests/test-argp-version-etc-1.sh: Likewise.
33768
33769 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33770
33771         * tests/test-version-etc.sh: Don't fail on different
33772         project/version.
33773
33774 2009-08-12  Bruno Haible  <bruno@clisp.org>
33775
33776         Tests for modules 'getopt-posix', 'getopt-gnu'.
33777         * modules/getopt-posix-tests: New file.
33778         * tests/test-getopt.c: New file.
33779         * tests/test-getopt.h: New file.
33780         * tests/test-getopt_long.h: New file.
33781
33782         New modules 'getopt-posix', 'getopt-gnu'.
33783         * modules/getopt-gnu: New file, renamed from modules/getopt.
33784         * modules/getopt-posix: New file.
33785         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
33786         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
33787         (gl_GETOPT): Remove macro.
33788         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
33789         Disable the test against BSD systems that declare optreset. Test
33790         against mingw bug. Test against lack of support of optional arguments
33791         on many platforms.
33792         * doc/glibc-headers/getopt.texi: Update module name and list of
33793         relevant platforms.
33794         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
33795         'getopt-gnu' and more portability problems.
33796         * NEWS: Mention the changes.
33797
33798 2009-08-12  Bruno Haible  <bruno@clisp.org>
33799
33800         Ensure that optarg etc. get declared by <unistd.h>.
33801         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
33802         AC_USE_SYSTEM_EXTENSIONS.
33803         * modules/getopt (Depends-on): Add 'extensions'.
33804
33805 2009-08-12  Bruno Haible  <bruno@clisp.org>
33806
33807         Avoid test link errors.
33808         * modules/pipe-filter-ii-tests (Makefile.am): Define
33809         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
33810         * modules/pipe-filter-gi-tests (Makefile.am): Define
33811         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
33812         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33813
33814 2009-08-12  Bruno Haible  <bruno@clisp.org>
33815
33816         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
33817         gl_GETOPT_SUBSTITUTE before.
33818         (gl_GETOPT): Use it.
33819         * m4/argp.m4 (gl_ARGP): Update.
33820         Reported by Sergey Poznyakoff.
33821
33822         * m4/getopt.m4: Reorder macros.
33823         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
33824         (gl_GETOPT_SUBSTITUTE): Remove macro.
33825
33826 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33827
33828         Minor improvement in gitlog-to-changelog
33829
33830         * build-aux/gitlog-to-changelog: New option `--format' makes
33831         output format string configurable.
33832
33833 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33834
33835         Optimize exclude: use hash tables for non-wildcard patterns.
33836
33837         * lib/exclude.c: Include hash.h and mbuiter.h
33838         (struct exclude_pattern, exclude_segment): New data types.
33839         (struct exclude): Rewrite.
33840         (fnmatch_pattern_has_wildcards): New function.
33841         (new_exclude_segment, free_exclude_segment): New functions.
33842         (excluded_file_pattern_p, excluded_file_name_p): New functions.
33843         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
33844         * lib/exclude.h (is_fnmatch_pattern): New prototype.
33845         * modules/exclude: Depend on hash and mbuiter.
33846
33847         * modules/exclude-tests: New file.
33848         * tests/test-exclude.c: New file.
33849         * tests/test-exclude1.sh: New file.
33850         * tests/test-exclude2.sh: New file.
33851         * tests/test-exclude3.sh: New file.
33852         * tests/test-exclude4.sh: New file.
33853         * tests/test-exclude5.sh: New file.
33854         * tests/test-exclude6.sh: New file.
33855         * tests/test-exclude7.sh: New file.
33856
33857 2009-08-12  Bruno Haible  <bruno@clisp.org>
33858
33859         Ensure that getopt() gets declared by <unistd.h>.
33860         * lib/unistd.in.h: Conditionally include getopt.h.
33861         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
33862         Set GNULIB_UNISTD_H_GETOPT.
33863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33864         GNULIB_UNISTD_H_GETOPT.
33865         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
33866
33867 2009-08-12  Bruno Haible  <bruno@clisp.org>
33868
33869         Clarify logic.
33870         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
33871         gl_replace_getopt instead of GETOPT_H.
33872
33873 2009-08-12  Bruno Haible  <bruno@clisp.org>
33874
33875         * m4/getopt.m4: Add comments.
33876
33877 2009-08-12  Bruno Haible  <bruno@clisp.org>
33878
33879         Disable multithread support by default on Cygwin 1.5.x.
33880         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
33881         set gl_use_threads=no if not specified otherwise.
33882
33883 2009-08-11  Bruno Haible  <bruno@clisp.org>
33884
33885         Avoid compilation error on NetBSD 5.0.
33886         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
33887         * tests/test-stdio.c: Likewise.
33888         * tests/test-stdlib.c: Likewise.
33889         * tests/test-string.c: Likewise.
33890         * tests/test-unistd.c: Likewise.
33891         Reported by Greg Troxel <gdt@ir.bbn.com>
33892         at <https://savannah.gnu.org/support/?106973>.
33893
33894 2009-08-11  Bruno Haible  <bruno@clisp.org>
33895
33896         * modules/dup2-tests (Depends-on): Remove close.
33897
33898         Undo 2009-07-19 commit.
33899         * modules/acl-tests (Depends-on): Remove close.
33900         * modules/binary-io-tests (Depends-on): Likewise.
33901         * modules/closein-tests (Depends-on): Likewise.
33902         * modules/flock-tests (Depends-on): Likewise.
33903         * modules/fsync-tests (Depends-on): Likewise.
33904         * modules/lseek-tests (Depends-on): Likewise.
33905         * modules/pipe-tests (Depends-on): Likewise.
33906         * modules/posix_spawn-tests (Depends-on): Likewise.
33907         * modules/posix_spawnp-tests (Depends-on): Likewise.
33908         * modules/stat-time-tests (Depends-on): Likewise.
33909         * modules/yesno-tests (Depends-on): Likewise.
33910
33911 2009-08-10  Bruno Haible  <bruno@clisp.org>
33912
33913         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
33914
33915 2009-08-10  Bruno Haible  <bruno@clisp.org>
33916
33917         Fix a gcc warning.
33918         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
33919
33920 2009-08-10  Bruno Haible  <bruno@clisp.org>
33921
33922         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
33923         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
33924         not only the first time.
33925         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
33926         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
33927         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
33928         is 1, not only the the first time.
33929
33930 2009-08-10  Bruno Haible  <bruno@clisp.org>
33931
33932         Make it possible to use module 'gethostname' without module 'close'.
33933         * lib/unistd.in.h (close): Evoke a link error only if
33934         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33936         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33937         * modules/unistd (Makefile.am): Substitute
33938         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33939         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
33940         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33941         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33942         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33943         * modules/sys_ioctl (Makefile.am): Substitute
33944         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33945         * modules/socket (configure.ac): On native Windows, set
33946         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
33947         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33948         Reported by Sam Steingold <sds@gnu.org>.
33949
33950 2009-08-10  Bruno Haible  <bruno@clisp.org>
33951
33952         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
33953         * modules/ioctl (configure.ac): Likewise.
33954
33955 2009-08-10  Bruno Haible  <bruno@clisp.org>
33956
33957         Avoid collision between gnulib wrapper and libintl wrapper.
33958         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
33959         already defined in intl/printf.c.
33960         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
33961         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
33962
33963 2009-08-09  Bruno Haible  <bruno@clisp.org>
33964
33965         Make <sys/select.h> really self-contained, also on Solaris 10.
33966         * lib/sys_select.in.h: Include <string.h>.
33967         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
33968         Solaris 10 problem.
33969         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
33970         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
33971         Reported by Jim Meyering.
33972
33973 2009-08-09  Bruno Haible  <bruno@clisp.org>
33974
33975         Avoid warnings from 'aclocal' that are due to a use of macro name
33976         AM_XGETTEXT_OPTION that is not defined in automake.
33977         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33978         automake.
33979         * modules/error (configure.ac): Likewise.
33980         * modules/propername (configure.ac): Likewise.
33981         * modules/vasprintf (configure.ac): Likewise.
33982         * modules/verror (configure.ac): Likewise.
33983         * modules/xprintf (configure.ac): Likewise.
33984         * modules/xvasprintf (configure.ac): Likewise.
33985
33986 2009-08-08  Bruno Haible  <bruno@clisp.org>
33987
33988         Avoid compilation error in C++ mode.
33989         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33990         Reported by Sam Steingold <sds@gnu.org>.
33991
33992 2009-08-08  Bruno Haible  <bruno@clisp.org>
33993
33994         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33995         for the various Unix platforms.
33996         * doc/posix-headers/limits.texi: Update platforms list regarding
33997         HOST_NAME_MAX.
33998         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33999
34000 2009-08-07  Jim Meyering  <meyering@redhat.com>
34001
34002         selinux-at: fix typo in a comment
34003         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
34004         Spotted by Paolo Bonzini.
34005
34006         selinux-at: remove redundant m4 code, add documentation
34007         * modules/selinux-at (configure.ac): Remove redundant code.
34008         LIB_SELINUX is already set via the dependent module, selinux-h.
34009         (Include): Add quotes around selinux-at.h.
34010         * lib/selinux-at.h: Add documentation.
34011         Reported by Bruno Haible in
34012         http://marc.info/?l=gnulib-bug&m=124958988300749
34013
34014 2009-08-07  Bruno Haible  <bruno@clisp.org>
34015
34016         Avoid link error on MacOS X 10.3 and 10.4.
34017         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
34018         on non-ELF systems.
34019         * lib/argp-pv.c (argp_program_version): Likewise.
34020         Reported by Simon Josefsson.
34021
34022 2009-08-07  Simon Josefsson  <simon@josefsson.org>
34023
34024         * tests/test-version-etc.sh: Use $EXEEXT.
34025
34026 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
34027
34028         update-copyright: update documentation to point to maint.mk
34029         * build-aux/update-copyright: Here.
34030
34031 2009-08-06  Jim Meyering  <meyering@redhat.com>
34032
34033         maint.mk: support update-copyright-local
34034         * top/maint.mk (update-copyright-local): Define place-holder.
34035         (update-copyright): Depend on $(update-copyright-local).
34036
34037 2009-08-06  Jim Meyering  <meyering@redhat.com>
34038
34039         selinux-at: new module
34040         Initially written for coreutils, this module will soon be
34041         used by findutils, too.
34042         * MODULES.html.sh [Misc]: Add selinux-at.
34043         * lib/selinux-at.h: New file, from coreutils.
34044         * lib/selinux-at.c: Likewise.
34045         * modules/selinux-at: Likewise.
34046         (License): Change from LGPL to GPL, since it depends
34047         on the GPL'd openat module.
34048
34049         doc: update README
34050         * README: Remove references to cogito.
34051         Remove cvs-repo-updating instructions from 2007.
34052         Don't imply that CVS is better if you have limited disk space.
34053
34054 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34055
34056         update-copyright: support C-style comments
34057         * build-aux/update-copyright: Implement and document.
34058         * tests/test-update-copyright.sh: Test.
34059
34060 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34061
34062         update-copyright: support omitted "(C)"
34063         * build-aux/update-copyright: Implement and document.  Also,
34064         allow variable whitespace before "(C)".
34065         * tests/test-update-copyright.sh: Test.
34066
34067 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34068
34069         update-copyright: don't trip on non-FSF copyright statements
34070         * build-aux/update-copyright: Fix so that the first correctly
34071         formatted FSF copyright statement is recognized no matter what
34072         appears before it.  Update documentation.
34073         * tests/test-update-copyright.sh: Test that.
34074
34075 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34076
34077         update-copyright: clean up code a little
34078         * build-aux/update-copyright: Append "_re" to the name of any
34079         variable holding a regular expression.
34080         Replace "old" and "new" with "stmt" in variable names.
34081         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
34082         handled correctly.
34083         Format code more consistently.
34084
34085 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34086
34087         update-copyright-tests: improve portability
34088         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
34089         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
34090
34091 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34092
34093         update-copyright: support @copyright{} and &copy;
34094         * build-aux/update-copyright: Implement and document.
34095         * tests/test-update-copyright.sh: Test.
34096
34097 2009-08-04  Jim Meyering  <meyering@redhat.com>
34098
34099         update-copyright-tests: correctly test EOL=\r\n handling
34100         * tests/test-update-copyright.sh: Put \r at the end of some lines
34101         for the dos-eol tests.  Based on a patch by Joel E. Denny.
34102
34103         maint.mk: make update-copyright exclusion list more configurable
34104         * top/maint.mk (update-copyright): Default to excluding COPYING,
34105         but allow an override, in case someone does want to update that file.
34106
34107         maint.mk: don't update copyright date in COPYING
34108         * top/maint.mk (update-copyright): Exclude COPYING.
34109
34110         maint.mk: add a copyright-updating rule
34111         * top/maint.mk (update-copyright): New rule.
34112         Derived from coreutils/Makefile.am.
34113
34114         update-copyright: rename some variables
34115         * build-aux/update-copyright: Rename a few variables for clarity.
34116         Tweak syntax.  List Joel E. Denny as coauthor.
34117
34118 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34119
34120         update-copyright: fix bug for 2-digit last year and add tests
34121         * build-aux/update-copyright: Fix bug.
34122         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
34123         specified.
34124         * modules/update-copyright-tests: New
34125         * tests/test-update-copyright.sh: New.
34126
34127 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34128
34129         update-copyright: handle leading tabs in line prefix
34130         * build-aux/update-copyright: Count leading tabs as 8 spaces
34131         when computing margin.  This helps with the formatting of
34132         ChangeLogs, for example.
34133         Fix documentation a little.
34134
34135 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34136
34137         update-copyright: support EOL=\r\n
34138         * build-aux/update-copyright: Implement that.
34139
34140 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34141
34142         update-copyright: automatically format copyright statements
34143         * build-aux/update-copyright: Implement that.
34144         Also, be a little more predictable and safer by always failing
34145         when the full copyright format is not perfectly recognized as an
34146         unbroken whole.  Discussed at
34147         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
34148         Rewrite documentation.
34149
34150 2009-08-03  Bruno Haible  <bruno@clisp.org>
34151
34152         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
34153
34154 2009-08-02  Bruno Haible  <bruno@clisp.org>
34155
34156         Tests for module 'uname'.
34157         * modules/uname-tests: New file.
34158         * tests/test-uname.c: New file.
34159
34160         New module 'uname'.
34161         * lib/uname.c: New file.
34162         * m4/uname.m4: New file.
34163         * modules/uname: New file.
34164         * doc/posix-functions/uname.texi: Mention the new module.
34165
34166 2009-08-02  Bruno Haible  <bruno@clisp.org>
34167
34168         Tests for module 'sys_utsname'.
34169         * modules/sys_utsname-tests: New file.
34170         * tests/test-sys_utsname.c: New file.
34171
34172         New module 'sys_utsname'.
34173         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
34174         * m4/sys_utsname_h.m4: New file.
34175         * modules/sys_utsname: New file.
34176         * doc/posix-headers/sys_utsname.texi: Mention the new module.
34177
34178 2009-08-02  Bruno Haible  <bruno@clisp.org>
34179
34180         Implicitly initialize the sockets library.
34181         * lib/gethostname.c: Include sockets.h.
34182         (rpl_gethostname): Invoke gl_sockets_startup.
34183         * lib/socket.c: Include sockets.h.
34184         (rpl_socket): Invoke gl_sockets_startup.
34185         * modules/gethostname (Depends-on): Add sockets.
34186         * modules/socket (Depends-on): Likewise.
34187         * tests/test-poll.c: Don't include sockets.h.
34188         (main): Don't invoke gl_sockets_startup.
34189         * tests/test-select.c: Don't include sockets.h.
34190         (main): Don't invoke gl_sockets_startup.
34191
34192 2009-08-02  Bruno Haible  <bruno@clisp.org>
34193
34194         Allow multiple calls to gl_sockets_startup.
34195         * lib/sockets.c (initialized_sockets_version): New variable.
34196         (gl_sockets_startup): Do nothing if already called for this or a higher
34197         version.
34198         (gl_sockets_cleanup): Reset initialized_sockets_version.
34199
34200 2009-08-03  Simon Josefsson  <simon@josefsson.org>
34201
34202         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
34203         different project/version.
34204
34205 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
34206             Bruno Haible  <bruno@clisp.org>
34207
34208         Tests for module 'pipe-filter-gi'.
34209         * modules/pipe-filter-gi-tests: New file.
34210         * tests/test-pipe-filter-gi1.sh: New file.
34211         * tests/test-pipe-filter-gi1.c: New file.
34212         * tests/test-pipe-filter-gi2.sh: New file.
34213         * tests/test-pipe-filter-gi2-main.c: New file.
34214         * tests/test-pipe-filter-gi2-child.c: New file.
34215
34216         New module 'pipe-filter-gi'.
34217         * lib/pipe-filter-gi.c: New file.
34218         * modules/pipe-filter-gi: New file.
34219
34220 2009-08-02  Bruno Haible  <bruno@clisp.org>
34221             Paolo Bonzini  <bonzini@gnu.org>
34222
34223         Tests for module 'pipe-filter-ii'.
34224         * modules/pipe-filter-ii-tests: New file.
34225         * tests/test-pipe-filter-ii1.sh: New file.
34226         * tests/test-pipe-filter-ii1.c: New file.
34227         * tests/test-pipe-filter-ii2.sh: New file.
34228         * tests/test-pipe-filter-ii2-main.c: New file.
34229         * tests/test-pipe-filter-ii2-child.c: New file.
34230
34231         New module 'pipe-filter-ii'.
34232         * lib/pipe-filter.h: New file.
34233         * lib/pipe-filter-ii.c: New file.
34234         * lib/pipe-filter-aux.h: New file.
34235         * modules/pipe-filter-ii: New file.
34236
34237 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34238
34239         * lib/gc-libgcrypt.c: Change copyright to FSF.
34240         * lib/gc-gnulib.c: Likewise.
34241
34242 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
34243
34244         * lib/gethostname.c: Include limits.h.
34245
34246 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34247             Bruno Haible  <bruno@clisp.org>
34248
34249         Ensure HOST_NAME_MAX as part of the gethostname module.
34250         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
34251         define also HOST_NAME_MAX.
34252         * tests/test-gethostname.c: Include <limits.h>.
34253         (main): Check also HOST_NAME_MAX.
34254         * doc/posix-headers/limits.texi: Document the mingw problem.
34255
34256 2009-08-02  Bruno Haible  <bruno@clisp.org>
34257
34258         * lib/gethostname.c (gethostname): Fix handling of large len argument.
34259         Add comments.
34260
34261 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34262
34263         * lib/gethostname.c: Add Windows wrapper.
34264         * m4/gethostname.m4: Look for gethostname in -lws2_32.
34265         * modules/gethostname: Depend on sys_socket & errno, for also
34266         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
34267         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
34268
34269 2009-07-31  Jim Meyering  <meyering@redhat.com>
34270
34271         getloadavg: fix symbol name in comment
34272         * lib/getloadavg.c: Correct a typo I introduced when adding
34273         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
34274         Matt Kraai spotted the problem.
34275
34276 2009-07-29  Matt Kraai  <mkraai@beckman.com>
34277
34278         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
34279         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
34280         code also if ! defined N_NAME_POINTER.
34281         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
34282         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
34283         but the n_name member is a 12-byte array.
34284
34285 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
34286
34287         update-copyright: generalize comment handling
34288         * build-aux/update-copyright: Handle copyright statements
34289         within more comment styles.
34290         Document usage.
34291         Report any file with an external copyright holder or parse failure.
34292
34293 2009-07-29  Jim Meyering  <meyering@redhat.com>
34294
34295         mktime: correct setting of REPLACE_MKTIME
34296         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
34297
34298         update-copyright: new module
34299         * modules/update-copyright: New file.
34300         * build-aux/update-copyright: New file.
34301         * MODULES.html.sh (maint+release support): Add update-copyright.
34302
34303 2009-07-27  Bruno Haible  <bruno@clisp.org>
34304
34305         Fix compilation error when <ctime> is used and mktime is replaced.
34306         * lib/time.in.h (mktime): New declaration.
34307         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
34308         REPLACE_MKTIME instead of defining mktime in config.h.
34309         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
34310         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
34311         Reported by Ross McFarland <rwmcfa1@neces.com>.
34312
34313 2009-07-27  Bruno Haible  <bruno@clisp.org>
34314
34315         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
34316         Reported by Matt Kraai <mkraai@beckman.com>.
34317
34318 2009-07-25  Jim Meyering  <meyering@redhat.com>
34319
34320         maint.mk: avoid warnings about missing files
34321         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
34322         diagnostic when .prev-version does not exist.
34323         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
34324         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
34325         nonexistent cfg.mk.
34326         Suggestions from Simon Josefsson.
34327
34328 2009-07-25  Bruno Haible  <bruno@clisp.org>
34329
34330         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
34331         defined as macros. Needed on QNX 6.4.1.
34332         Reported by Matt Kraai <mkraai@beckman.com>.
34333
34334 2009-07-23  Jim Meyering  <meyering@redhat.com>
34335
34336         maint.mk: invoke "make dist" with a working value of XZ_OPT
34337         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
34338
34339 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
34340
34341         Make fseeko.c compile on QNX.
34342         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
34343
34344 2009-07-22  Peter Simons  <simons@cryp.to>
34345
34346         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
34347         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
34348         * lib/md4.h: Likewise.
34349         * lib/md5.h: Likewise.
34350         * lib/sha1.h: Likewise.
34351         * lib/sha256.h: Likewise.
34352         * lib/sha512.h: Likewise.
34353
34354         tests-sha1: don't assign literal string to 'char *' variable
34355         * tests/test-sha1.c (main): Declare locals with "const" to match
34356         attributes of the right hand side.
34357
34358 2009-07-21  Eric Blake  <ebb9@byu.net>
34359
34360         dup2: fix more mingw problems
34361         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
34362         fd to itself.
34363         * doc/posix-functions/dup2.texi (dup2): Document the bug.
34364         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
34365         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
34366         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
34367         care of mingw bugs.
34368
34369 2009-07-21  Jim Meyering  <meyering@redhat.com>
34370
34371         vc-list-files: avoid failure when /bin/sh is dash
34372         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
34373         On some Debian based systems, /bin/sh is a symlink to dash, and running
34374         this command would omit the "/" following each 'tests' prefix:
34375           dash -x build-aux/vc-list-files -C . tests
34376         That is because bash and dash work differently:
34377           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
34378           bash ok
34379           dash odd
34380
34381 2009-07-21  Eric Blake  <ebb9@byu.net>
34382
34383         dup2-tests: test previous patch
34384         * modules/dup2-tests: New file.
34385         * tests/test-dup2.c: Likewise.
34386         * tests/test-open.c (main): Avoid unspecified behavior.
34387         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
34388         test.
34389
34390         dup2: work around mingw and cygwin 1.5 bug
34391         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
34392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34393         * modules/unistd (Makefile.am): Substitute it.
34394         * lib/unistd.in.h (dup2): Declare the replacement.
34395         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
34396         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
34397         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
34398         * modules/execute (Depends-on): Add dup2.
34399         * modules/fseterr (Depends-on): Likewise.
34400         * modules/pipe (Depends-on): Likewise.
34401         * modules/posix_spawn-internal (Depends-on): Likewise.
34402
34403 2009-07-21  Bruno Haible  <bruno@clisp.org>
34404
34405         * modules/.gitattributes: New file.
34406
34407 2009-07-20  Bruno Haible  <bruno@clisp.org>
34408
34409         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
34410         (main): Use it.
34411
34412 2009-07-20  Eric Blake  <ebb9@byu.net>
34413
34414         test-pipe: make a bit more robust.
34415         * tests/test-pipe.c (myerr): Allow error messages regardless of
34416         what we do to stderr.
34417         (test_pipe): Rearrange to avoid deadlock.
34418         (child_main): Try a larger read, to ensure we avoided deadlock.
34419         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
34420         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
34421         if misused.
34422
34423 2009-07-19  Jim Meyering  <meyering@redhat.com>
34424
34425         fts: avoid false-positive cycle-detection
34426         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
34427         for each new command line argument.
34428
34429 2009-07-19  Bruno Haible  <bruno@clisp.org>
34430
34431         Fix build error on mingw with the modules sys_select and unistd.
34432         * modules/acl-tests (Depends-on): Add close.
34433         * modules/binary-io-tests (Depends-on): Likewise.
34434         * modules/closein-tests (Depends-on): Likewise.
34435         * modules/flock-tests (Depends-on): Likewise.
34436         * modules/fsync-tests (Depends-on): Likewise.
34437         * modules/lseek-tests (Depends-on): Likewise.
34438         * modules/pipe-tests (Depends-on): Likewise.
34439         * modules/posix_spawn-tests (Depends-on): Likewise.
34440         * modules/posix_spawnp-tests (Depends-on): Likewise.
34441         * modules/stat-time-tests (Depends-on): Likewise.
34442         * modules/yesno-tests (Depends-on): Likewise.
34443
34444 2009-07-19  Bruno Haible  <bruno@clisp.org>
34445
34446         Unify conditionals.
34447         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
34448         macros, not at the compiler macros.
34449         * lib/pipe.c: Likewise.
34450         * lib/execute.c: Likewise.
34451         * lib/spawni.c: Likewise.
34452
34453 2009-07-19  Bruno Haible  <bruno@clisp.org>
34454
34455         Fix handling of closed stdin/stdout/stderr on mingw.
34456         * lib/w32spawn.h: Include unistd.h.
34457         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
34458         file descriptor with O_NOINHERIT flag.
34459         (fd_safer_noinherit): New function, based on fd-safer.c.
34460         (dup_safer_noinherit): New function, based on dup-safer.c.
34461         (undup_safer_noinherit): New function.
34462         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
34463         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
34464         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
34465         instead of fd_safer.
34466         * tests/test-pipe.c: Include <windows.h>.
34467         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
34468         result.
34469
34470         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
34471         from main.
34472         (test_pipe): Pass an extra argument for disambiguation.
34473         (main): Invoke parent_main or child_main.
34474
34475         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
34476         consistently.
34477
34478 2009-07-18  Eric Blake  <ebb9@byu.net>
34479
34480         test-pipe: fix mingw build
34481         * tests/test-pipe.c (main): Avoid fcntl on mingw.
34482
34483 2009-07-18  Bruno Haible  <bruno@clisp.org>
34484
34485         * modules/pipe-tests (Makefile.am): Fix typo.
34486
34487 2009-07-18  Eric Blake  <ebb9@byu.net>
34488
34489         error: fix mingw build
34490         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
34491         Reported by Bruno Haible.
34492
34493         error: avoid undefined use of stdout
34494         * lib/error.c (error, error_at_line): Check that fd 1 is open
34495         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
34496         is handling faults and the close_stdout module wants to report the
34497         detection of closed stdout as an error.
34498
34499 2009-07-17  Eric Blake  <ebb9@byu.net>
34500
34501         pipe: be robust in face of closed fds
34502         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
34503         should cause child to misbehave.
34504         * modules/pipe-tests: New module.
34505         * tests/test-pipe.c: New file.
34506         * tests/test-pipe.sh: New file.
34507         Reported by Akim Demaille.
34508
34509 2009-07-14  Bruno Haible  <bruno@clisp.org>
34510
34511         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
34512         Reported by anonymous kc.
34513
34514 2009-07-07  Jim Meyering  <meyering@redhat.com>
34515
34516         maint.mk: don't look for translatable strings in *.m4 or *.mk
34517         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
34518         when searching for translatable strings.
34519
34520 2009-07-05  Jim Meyering  <meyering@redhat.com>
34521
34522         remove superfluous parentheses in STREQ definition
34523         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
34524         * lib/getugroups.c (STREQ): Likewise.
34525         * lib/fnmatch.c (STREQ): Likewise.
34526         Spotted by Bruno Haible.
34527
34528 2009-07-04  Jim Meyering  <meyering@redhat.com>
34529
34530         argv-iter: new module
34531         * MODULES.html.sh: Add argv-iter.
34532         * lib/argv-iter.c, lib/argv-iter.h: New files.
34533         * modules/argv-iter: New file.
34534         * modules/argv-iter-tests: New file.
34535         * tests/test-argv-iter.c: Test it.
34536
34537 2009-07-04  Bruno Haible  <bruno@clisp.org>
34538
34539         Fix assertion.
34540         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
34541         contains more exact copies of a given entry than file2, leave the extra
34542         copies unpaired rather than aborting.
34543         Reported by Eric Blake.
34544
34545 2009-07-02  Bruno Haible  <bruno@clisp.org>
34546
34547         Speedup git-merge-changelog for git cherry-pick.
34548         * lib/git-merge-changelog.c (struct entries_mapping): New type.
34549         (entries_mapping_get): New function, extracted from compute_mapping.
34550         (entries_mapping_reverse_get): New function.
34551         (compute_mapping): Add a 'full' argument. Return the result in a
34552         'struct entries_mapping'.
34553         (main): Update. Access the mappings through entries_mapping_get.
34554         Reported by Eric Blake.
34555
34556 2009-07-02  Bruno Haible  <bruno@clisp.org>
34557
34558         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
34559         best_i.
34560
34561 2009-07-02  Bruno Haible  <bruno@clisp.org>
34562
34563         Speed up approximate search for matching ChangeLog entries.
34564         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
34565         argument. Call fstrcmp_bounded instead of fstrcmp.
34566         (compute_mapping, try_split_merged_entry, main): Update callers.
34567
34568 2009-07-02  Bruno Haible  <bruno@clisp.org>
34569
34570         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
34571
34572 2009-06-30  Bruno Haible  <bruno@clisp.org>
34573
34574         Reduce the number of uc_is_cased calls.
34575         * lib/unicase.h (casing_suffix_context_t): Add
34576         'first_char_except_ignorable' field.
34577         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
34578         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
34579         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
34580         Update initializer.
34581         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
34582         case-ignorable characters.
34583         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
34584         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
34585         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
34586         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
34587         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
34588
34589 2009-06-30  Bruno Haible  <bruno@clisp.org>
34590
34591         Tests for module 'unicase/ignorable'.
34592         * modules/unicase/ignorable-tests: New file.
34593         * tests/unicase/test-ignorable.c: New file, generated by
34594         gen-uni-tables.
34595
34596         Tests for module 'unicase/cased'.
34597         * modules/unicase/cased-tests: New file.
34598         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
34599         * tests/unicase/test-predicate-part1.h: New file, derived from
34600         tests/unictype/test-predicate-part1.h.
34601         * tests/unicase/test-predicate-part2.h: New file, same as
34602         tests/unictype/test-predicate-part2.h.
34603
34604         Fix evaluation of "Before C" condition of FINAL_SIGMA.
34605         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
34606         (output_casing_properties): New function.
34607         (main): Call it.
34608         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
34609         * lib/unicase/cased.c: Include unictype/bitmap.h.
34610         (uc_is_cased): Define through a bitmap lookup.
34611         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
34612         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
34613         (uc_is_case_ignorable): Define through a bitmap lookup.
34614         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
34615         lib/unictype/bitmap.h.
34616         (Depends-on): Add inline. Clean up.
34617         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
34618         lib/unictype/bitmap.h.
34619         (Depends-on): Add inline. Clean up.
34620         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
34621         recognition.
34622         * tests/unicase/test-u16-tolower.c (main): Likewise.
34623         * tests/unicase/test-u32-tolower.c (main): Likewise.
34624
34625 2009-06-30  Bruno Haible  <bruno@clisp.org>
34626
34627         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
34628         * lib/unicase/u16-casemap.c: Likewise.
34629         * lib/unicase/u32-casemap.c: Likewise.
34630
34631 2009-06-29  Bruno Haible  <bruno@clisp.org>
34632
34633         Define u32_casefold as a wrapper around u32_ct_casefold.
34634         * lib/unicase/u32-casefold.c: Update.
34635         * modules/unicase/u32-casefold (Depends-on): Add
34636         unicase/u32-ct-casefold, unicase/empty-prefix-context,
34637         unicase/empty-suffix-context. Clean up.
34638
34639         Define u16_casefold as a wrapper around u16_ct_casefold.
34640         * lib/unicase/u16-casefold.c: Update.
34641         * modules/unicase/u16-casefold (Depends-on): Add
34642         unicase/u16-ct-casefold, unicase/empty-prefix-context,
34643         unicase/empty-suffix-context. Clean up.
34644
34645         Define u8_casefold as a wrapper around u8_ct_casefold.
34646         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
34647         * lib/unicase/u8-casefold.c: Update.
34648         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
34649         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34650
34651         Define u32_totitle as a wrapper around u32_ct_totitle.
34652         * lib/unicase/u32-totitle.c: Update.
34653         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
34654         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34655
34656         Define u16_totitle as a wrapper around u16_ct_totitle.
34657         * lib/unicase/u16-totitle.c: Update.
34658         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
34659         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34660
34661         Define u8_totitle as a wrapper around u8_ct_totitle.
34662         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
34663         functions.
34664         (FUNC): Delegate to U_CT_TOTITLE.
34665         * lib/unicase/u8-totitle.c: Update.
34666         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
34667         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34668
34669         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
34670         invocation.
34671         * modules/unicase/u32-tolower (Depends-on): Add
34672         unicase/empty-prefix-context, unicase/empty-suffix-context.
34673
34674         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
34675         invocation.
34676         * modules/unicase/u16-tolower (Depends-on): Add
34677         unicase/empty-prefix-context, unicase/empty-suffix-context.
34678
34679         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
34680         * modules/unicase/u8-tolower (Depends-on): Add
34681         unicase/empty-prefix-context, unicase/empty-suffix-context.
34682
34683         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
34684         invocation.
34685         * modules/unicase/u32-toupper (Depends-on): Add
34686         unicase/empty-prefix-context, unicase/empty-suffix-context.
34687
34688         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
34689         invocation.
34690         * modules/unicase/u16-toupper (Depends-on): Add
34691         unicase/empty-prefix-context, unicase/empty-suffix-context.
34692
34693         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
34694         * modules/unicase/u8-toupper (Depends-on): Add
34695         unicase/empty-prefix-context, unicase/empty-suffix-context.
34696
34697         New module 'unicase/u32-ct-casefold'.
34698         * lib/unicase/u32-ct-casefold.c: New file.
34699         * modules/unicase/u32-ct-casefold: New file.
34700
34701         New module 'unicase/u16-ct-casefold'.
34702         * lib/unicase/u16-ct-casefold.c: New file.
34703         * modules/unicase/u16-ct-casefold: New file.
34704
34705         New module 'unicase/u8-ct-casefold'.
34706         * lib/unicase/u8-ct-casefold.c: New file.
34707         * lib/unicase/u-ct-casefold.h: New file, derived from
34708         lib/unicase/u-casefold.h.
34709         * modules/unicase/u8-ct-casefold: New file.
34710
34711         New module 'unicase/u32-ct-totitle'.
34712         * lib/unicase/u32-ct-totitle.c: New file.
34713         * modules/unicase/u32-ct-totitle: New file.
34714
34715         New module 'unicase/u16-ct-totitle'.
34716         * lib/unicase/u16-ct-totitle.c: New file.
34717         * modules/unicase/u16-ct-totitle: New file.
34718
34719         New module 'unicase/u8-ct-totitle'.
34720         * lib/unicase/u8-ct-totitle.c: New file.
34721         * lib/unicase/u-ct-totitle.h: New file, derived from
34722         lib/unicase/u-totitle.h.
34723         * modules/unicase/u8-ct-totitle: New file.
34724
34725         New module 'unicase/u32-ct-tolower'.
34726         * lib/unicase/u32-ct-tolower.c: New file.
34727         * modules/unicase/u32-ct-tolower: New file.
34728
34729         New module 'unicase/u16-ct-tolower'.
34730         * lib/unicase/u16-ct-tolower.c: New file.
34731         * modules/unicase/u16-ct-tolower: New file.
34732
34733         New module 'unicase/u8-ct-tolower'.
34734         * lib/unicase/u8-ct-tolower.c: New file.
34735         * modules/unicase/u8-ct-tolower: New file.
34736
34737         New module 'unicase/u32-ct-toupper'.
34738         * lib/unicase/u32-ct-toupper.c: New file.
34739         * modules/unicase/u32-ct-toupper: New file.
34740
34741         New module 'unicase/u16-ct-toupper'.
34742         * lib/unicase/u16-ct-toupper.c: New file.
34743         * modules/unicase/u16-ct-toupper: New file.
34744
34745         New module 'unicase/u8-ct-toupper'.
34746         * lib/unicase/u8-ct-toupper.c: New file.
34747         * modules/unicase/u8-ct-toupper: New file.
34748
34749         Add context arguments to u*_casemap functions.
34750         * lib/unicase/unicasemap.h: Include unicase.h.
34751         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
34752         suffix_context arguments.
34753         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
34754         functions.
34755         (FUNC): Add prefix_context and suffix_context arguments. Use
34756         uc_is_cased and uc_is_case_ignorable.
34757         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
34758         * lib/unicase/u16-casemap.c: Likewise.
34759         * lib/unicase/u32-casemap.c: Likewise.
34760         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
34761         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34762         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
34763         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34764         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
34765         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34766
34767         New module 'unicase/u32-suffix-context'.
34768         * lib/unicase/u32-suffix-context.c: New file.
34769         * modules/unicase/u32-suffix-context: New file.
34770
34771         New module 'unicase/u16-suffix-context'.
34772         * lib/unicase/u16-suffix-context.c: New file.
34773         * modules/unicase/u16-suffix-context: New file.
34774
34775         New module 'unicase/u8-suffix-context'.
34776         * lib/unicase/u8-suffix-context.c: New file.
34777         * lib/unicase/u-suffix-context.h: New file.
34778         * modules/unicase/u8-suffix-context: New file.
34779
34780         New module 'unicase/empty-suffix-context'.
34781         * lib/unicase/empty-suffix-context.c: New file.
34782         * modules/unicase/empty-suffix-context: New file.
34783
34784         New module 'unicase/u32-prefix-context'.
34785         * lib/unicase/u32-prefix-context.c: New file.
34786         * modules/unicase/u32-prefix-context: New file.
34787
34788         New module 'unicase/u16-prefix-context'.
34789         * lib/unicase/u16-prefix-context.c: New file.
34790         * modules/unicase/u16-prefix-context: New file.
34791
34792         New module 'unicase/u8-prefix-context'.
34793         * lib/unicase/u8-prefix-context.c: New file.
34794         * lib/unicase/u-prefix-context.h: New file.
34795         * lib/unicase/context.h: New file.
34796         * modules/unicase/u8-prefix-context: New file.
34797
34798         New module 'unicase/empty-prefix-context'.
34799         * lib/unicase/empty-prefix-context.c: New file.
34800         * modules/unicase/empty-prefix-context: New file.
34801
34802         New module 'unicase/ignorable'.
34803         * lib/unicase/ignorable.c: New file.
34804         * modules/unicase/ignorable: New file.
34805
34806         New module 'unicase/cased'.
34807         * lib/unicase/caseprop.h: New file.
34808         * lib/unicase/cased.c: New file.
34809         * modules/unicase/cased: New file.
34810
34811         New functions for case mapping of substrings.
34812         * lib/unicase.h (casing_prefix_context_t): New type.
34813         (unicase_empty_prefix_context): New variable.
34814         (u8_casing_prefix_context, u16_casing_prefix_context,
34815         u32_casing_prefix_context, u8_casing_prefixes_context,
34816         u16_casing_prefixes_context, u32_casing_prefixes_context): New
34817         declarations.
34818         (casing_suffix_context_t): New type.
34819         (unicase_empty_suffix_context): New variable.
34820         (u8_casing_suffix_context, u16_casing_suffix_context,
34821         u32_casing_suffix_context, u8_casing_suffixes_context,
34822         u16_casing_suffixes_context, u32_casing_suffixes_context,
34823         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
34824         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
34825         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
34826         declarations.
34827
34828 2009-06-28  Jim Meyering  <meyering@redhat.com>
34829
34830         boostrap: indent only with spaces
34831         * build-aux/bootstrap: Indent only with spaces, never TABs.
34832
34833         bootstrap: split long lines
34834         * build-aux/bootstrap: Keep line length < 80.
34835
34836         bootstrap: sync from coreutils
34837         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
34838         just as autoreconf does.  Verify a list of prerequisite
34839         package-name,version-number pairs if defined in bootstrap.conf.
34840         Refer to README-prereq, if prerequisites are not satisfied.
34841
34842 2009-06-27  Eric Blake  <ebb9@byu.net>
34843
34844         tests: add test for bogus NULL definition
34845         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
34846         * tests/test-stdlib.c: Likewise.
34847         * tests/test-string.c: Likewise.
34848         * tests/test-locale.c: Likewise.
34849         * tests/test-unistd.c: Likewise.
34850         * modules/stdio-tests (Depends-on): Add verify.
34851         * modules/stdlib-tests (Depends-on): Likewise.
34852         * modules/string-tests (Depends-on): Likewise.
34853         * modules/locale-tests (Depends-on): Likewise.
34854         * modules/unistd-tests (Depends-on): Likewise.
34855
34856 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
34857
34858         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
34859         self-explaining comment.
34860         * m4/selinux-selinux-h: Update serial.
34861         (gl_LIBSELINUX): New macro, adding a warning for missing development
34862         packages to code extracted from...
34863         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
34864         Add warning for missing development packages here, too.
34865
34866 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
34867
34868         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
34869
34870 2009-06-25  Eric Blake  <ebb9@byu.net>
34871
34872         version-etc: fix regression
34873         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
34874         gcc.
34875         (version_etc): Use it, to catch bugs with trailing NULL.
34876         * lib/version-etc.c (version_etc_arn): Delete unused argument.
34877         (version_etc_va): Fix logic bug.
34878         * modules/version-etc-tests: Add test.
34879         * tests/test-version-etc.c: New file.
34880         * tests/test-version-etc.sh: Likewise.
34881
34882 2009-06-25  Sam Steingold  <sds@gnu.org>
34883
34884         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
34885         mbtowc declaration.
34886
34887 2009-06-25  Eric Blake  <ebb9@byu.net>
34888
34889         fpurge: migrate into <stdio.h>
34890         * lib/fpurge.h: Delete...
34891         * lib/stdio.in.h (fpurge): ...and declare here, instead.
34892         * lib/fpurge.c (fpurge): Change declaring header.
34893         * modules/fpurge (Files): Drop deleted file.
34894         (Depends-on): Add stdio.
34895         (configure.ac): Set witness.
34896         * modules/stdio (Makefile.am): Support fpurge macros.
34897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34898         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
34899         * lib/fflush.c: Update client.
34900         * tests/test-fpurge.c: Likewise.
34901         * NEWS: Mention the change.
34902
34903 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34904
34905         * lib/argp-version-etc.c (program_authors): Add const
34906         qualifier.
34907         * lib/version-etc.c: Fix typos in the comments.
34908         * modules/argp-version-etc: Depends on version-etc.
34909
34910 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34911
34912         argp-version-etc: new module.
34913
34914         * lib/argp-version-etc.c: New file.
34915         * lib/argp-version-etc.h: New file.
34916         * modules/argp-version-etc: New file.
34917         * modules/argp-version-etc-tests: New file.
34918         * tests/test-argp-version-etc.c: New test.
34919         * tests/test-argp-version-etc-1.sh: New test.
34920
34921 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34922
34923         Provide additional interfaces and documentation for version-etc
34924         module.
34925
34926         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
34927         interfaces.
34928         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
34929         prototypes.
34930
34931 2009-06-24  Bruno Haible  <bruno@clisp.org>
34932
34933         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
34934         HAVE_LIB${NAME} macro.
34935         Reported by Sam Steingold <sds@gnu.org>.
34936
34937 2009-06-23  Simon Josefsson  <simon@josefsson.org>
34938
34939         * modules/hash-tests (test_hash_LDADD): Link to libintl when
34940         needed.
34941
34942 2009-06-21  Bruno Haible  <bruno@clisp.org>
34943
34944         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
34945         work.
34946         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
34947         together with LIB${NAME}, LTLIB${NAME}.
34948         Reported by Sam Steingold <sds@gnu.org>.
34949
34950 2009-06-20  Jim Meyering  <meyering@redhat.com>
34951
34952         tests: make sc_require_test_exit_idiom more generic
34953         * top/maint.mk (Exit_witness_file): New overridable variable.
34954         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
34955         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
34956
34957 2009-06-19  Jim Meyering  <meyering@redhat.com>
34958
34959         hash: reverse order of src/dst parameters in an internal interface
34960         * lib/hash.c (transfer_entries): Reverse order of parameters to
34961         put DST before SRC.  Adjust callers.
34962
34963         tests: test-hash: avoid wholesale duplication
34964         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
34965         Instead, use a loop and add a single conditional.
34966
34967         tests: test-hash: allow seed selection via a command line argument
34968         * tests/test-hash.c (get_seed): New function.
34969         (main): Use it.
34970
34971 2009-06-19  Eric Blake  <ebb9@byu.net>
34972
34973         hash: avoid memory leak on allocation failure
34974         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34975         failure.  Factor repeated algorithm...
34976         (transfer_entries): ...into new helper routine.
34977         (hash_delete): React to hash_rehash return value.
34978
34979         hash: reduce memory pressure in hash_rehash no-op case
34980         * lib/hash.c (next_prime): Avoid overflow.
34981         (hash_initialize): Factor bucket size computation...
34982         (compute_bucket_size): ...into new helper function.
34983         (hash_rehash): Use new function and open coding to reduce memory
34984         pressure, and avoid a memory leak in USE_OBSTACK code.
34985         Reported by Jim Meyering.
34986
34987 2009-06-18  Eric Blake  <ebb9@byu.net>
34988
34989         hash: make rotation more obvious
34990         * modules/hash (Depends-on): Add bitrotate and stdint.
34991         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34992         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34993         (SIZE_MAX): Rely on headers for definition.
34994         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34995         (raw_hasher): Use rotr_sz.
34996         Suggested by Jim Meyering.
34997
34998         hash: fix memory leak in last patch
34999         * lib/hash.c (hash_rehash): Avoid memory leak.
35000
35001         hash: avoid no-op rehashing
35002         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
35003
35004         hash: provide default callback functions
35005         * lib/hash.c (raw_hasher, raw_comparator): New functions.
35006         (hash_initialize): Use them as defaults.
35007         * tests/test-hash.c (main): Test this.
35008
35009         hash: minor optimization
35010         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
35011         when possible.
35012         (hash_initialize): Document this promise.
35013         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
35014         * tests/test-hash.c (hash_compare_strings): Test this.
35015
35016 2009-06-18  Bruno Haible  <bruno@clisp.org>
35017
35018         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
35019         going to be replaced anyway.
35020
35021 2009-06-18  Bruno Haible  <bruno@clisp.org>
35022
35023         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
35024         in one place.
35025         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
35026         be replaced anyway.
35027
35028 2009-06-18  Eric Blake  <ebb9@byu.net>
35029
35030         hash: check for resize before insertion
35031         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
35032         threshold before insertion, so that a pathological hash_rehash
35033         that fills every bucket can still trigger another rehash.
35034
35035 2009-06-18  Jim Meyering  <meyering@redhat.com>
35036
35037         hash-tests: add a loop around the small tests
35038         * tests/test-hash.c (main): Repeat small tests with selected
35039         small initial table sizes.
35040
35041 2009-06-17  Eric Blake  <ebb9@byu.net>
35042
35043         hash: minor cleanups
35044         * lib/hash.h (hash_entry): Make opaque, by moving...
35045         * lib/hash.c (hash_entry): ...here.
35046         (hash_insert): Clarify restrictions on what can be inserted.
35047         (hash_get_next): Clarify when it is safe to remove an element
35048         during traversal.
35049         (check_tuning): Skip verification when tuning is known safe.
35050         (hash_initialize): Clarify restrictions on tuning.
35051
35052 2009-06-17  Jim Meyering  <jim@meyering.net>
35053         and Eric Blake  <ebb9@byu.net>
35054
35055         hash-tests: new module
35056         * modules/hash-tests: New file.
35057         * tests/test-hash.c: New file.
35058
35059 2009-06-17  Eric Blake  <ebb9@byu.net>
35060
35061         strstr-simple: document new module
35062         * MODULES.html.sh: Document new module.
35063
35064         strstr, strcasestr: replace on platforms with broken memchr
35065         * modules/strstr: Split into...
35066         * modules/strstr-simple: ...new module that does not care about
35067         performance, but does care about glibc bug.
35068         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
35069         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
35070         if platform memchr is broken, per Debian bug 521737.
35071         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
35072         memchr.
35073         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
35074         * doc/posix-functions/strstr.texi (strstr): Document the fix.
35075         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
35076         * modules/mountlist (Depends-on): Add strstr-simple.
35077         * modules/gen-uni-tables (Depends-on): Likewise.
35078         * modules/argz (Depends-on): Add strstr.
35079
35080 2009-06-17  Bruno Haible  <bruno@clisp.org>
35081
35082         * modules/posix_spawn-internal (Depends-on): Add errno.
35083
35084 2009-06-17  Bruno Haible  <bruno@clisp.org>
35085
35086         Define missing ESTALE on Interix 3.5.
35087         * lib/errno.in.h (ESTALE): Assign a value if missing.
35088         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
35089         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
35090         missing.
35091         * doc/posix-headers/errno.texi: Mention the Interix bug.
35092         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
35093
35094 2009-06-15  Eric Blake  <ebb9@byu.net>
35095
35096         memchr, memchr2: add valgrind exception
35097         * lib/memchr.valgrind: New file.
35098         * lib/memchr2.valgrind: New file.
35099         * modules/memchr (Files): Distribute valgrind file.
35100         * modules/memchr2 (Files): Likewise.
35101
35102         docs: memchr is no longer obsolete
35103         * MODULES.html.sh: Move memchr from obsolete to string.h section.
35104         * lib/string.in.h (memchr): Simplify logic.
35105
35106 2009-06-14  Jim Meyering  <meyering@redhat.com>
35107
35108         link-follow: fix the "checking..." message to not mention trailing slash
35109         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
35110         never considered trailing slashes.
35111
35112 2009-06-14  Bruno Haible  <bruno@clisp.org>
35113
35114         * m4/memchr.m4: Mention also the bug on IA-64.
35115         * doc/posix-functions/memchr.texi: Likewise.
35116
35117 2009-06-12  Eric Blake  <ebb9@byu.net>
35118
35119         memchr: detect broken x86_64 and alpha implementations
35120         * modules/memchr-tests (Depends-on): Move mmap detection...
35121         * modules/memchr (Depends-on): ...here.
35122         (configure.ac): Set indicator.
35123         * lib/string.in.h (memchr): Declare replacement.
35124         * modules/string (Makefile.am): Trigger replacement.
35125         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
35126         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
35127         bugs.
35128         * doc/posix-functions/memchr.texi (memchr): Document the bug.
35129         * modules/getpagesize (License): Relax license.
35130
35131 2009-06-11  Bruno Haible  <bruno@clisp.org>
35132
35133         * lib/idpriv.h: Add more references.
35134
35135 2009-06-08  Bruno Haible  <bruno@clisp.org>
35136
35137         Tests for module 'idpriv-droptemp'.
35138         * modules/idpriv-droptemp-tests: New file.
35139         * tests/test-idpriv-droptemp.sh: New file.
35140         * tests/test-idpriv-droptemp.su.sh: New file.
35141         * tests/test-idpriv-droptemp.c: New file.
35142
35143         New module 'idpriv-droptemp'.
35144         * lib/idpriv-droptemp.c: New file.
35145         * modules/idpriv-droptemp: New file.
35146
35147 2009-06-08  Bruno Haible  <bruno@clisp.org>
35148
35149         Tests for module 'idpriv-drop'.
35150         * modules/idpriv-drop-tests: New file.
35151         * tests/test-idpriv-drop.sh: New file.
35152         * tests/test-idpriv-drop.su.sh: New file.
35153         * tests/test-idpriv-drop.c: New file.
35154
35155         New module 'idpriv-drop'.
35156         * lib/idpriv.h: New file.
35157         * lib-idpriv-drop.c: New file.
35158         * m4/idpriv.m4: New file.
35159         * modules/idpriv-drop: New file.
35160
35161 2009-06-08  Bruno Haible  <bruno@clisp.org>
35162
35163         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
35164         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35165         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35166         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35167         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35168         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35169         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35170
35171 2009-06-08  Eric Blake  <ebb9@byu.net>
35172
35173         test-strstr: use memory fence, when possible
35174         * tests/test-strstr.c (main): Use memory fence, in order to be
35175         more likely to trigger Debian bug 521737.
35176         * modules/strstr-tests (Files): Pull in additional files.
35177
35178         memchr: no longer obsolete, for wider field testing
35179         * modules/memchr (Status, Notice): Delete, this module is no
35180         longer obsolete.
35181         * modules/vasnprintf (Depends-on): Add memchr.
35182
35183 2009-06-07  Jim Meyering  <meyering@redhat.com>
35184
35185         hash: declare some functions with the warn_unused_result attribute
35186         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
35187
35188 2009-06-07  Bruno Haible  <bruno@clisp.org>
35189
35190         * tests/test-alignof.c: Don't test int64_t if it does not exist.
35191         Reported by Eric Blake.
35192
35193 2009-06-06  Eric Blake  <ebb9@byu.net>
35194
35195         test-alignof: fix typo with long double
35196         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
35197         compiler error.
35198
35199 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
35200
35201         Escape non-texinfo { and }s.
35202         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
35203         markup error.
35204
35205 2009-06-04  Jim Meyering  <meyering@redhat.com>
35206
35207         gitlog-to-changelog: don't infloop on an empty commit log
35208         * build-aux/gitlog-to-changelog: Warn about an empty log message.
35209         Reported by Boris Petersen <transacid@centerim.org>.
35210
35211 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
35212
35213         version-etc: extend for packagers
35214         Add three new configure options, intended for packagers:
35215           --with-packager="packager name"
35216           --with-packager-version="packager-specific version"
35217           --with-packager-bug-reports="packager bug reporting"
35218         An example with coreutils:
35219           $ ./configure \
35220             --with-packager=Gentoo \
35221             --with-packager-bug-report=http://bugs.gentoo.org/ \
35222             --with-packager-version="patchset 1.6"
35223           $ ./src/ls --version | head -n2
35224           ls (GNU coreutils) 7.1-dirty
35225           Packaged by Gentoo (patchset 1.6)
35226         Note that the bug reporting info via --help doesn't show up because
35227         coreutils uses its own custom emit_bug_reporting_address() implementation
35228         in src/system.h.  If it didn't, it'd look like:
35229           $ ./src/ls --help | tail -n4
35230           Report bugs to <bug-coreutils@gnu.org>.
35231           Report Gentoo bugs to <http://bugs.gentoo.org/>.
35232           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
35233           General help using GNU software: <http://www.gnu.org/gethelp/>.
35234         * lib/version-etc.c: Print new information, if provided.
35235         * m4/version-etc.m4: New file.
35236         * modules/version-etc (Files): Add m4/version-etc.m4.
35237         (configure.ac): Add gl_VERSION_ETC.
35238
35239 2009-05-31  Bruno Haible  <bruno@clisp.org>
35240
35241         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
35242         and 'int64_t'.
35243         * modules/alignof-tests (Dependencies): Add stdint.
35244         Reported by Eric Blake.
35245
35246 2009-05-31  Bruno Haible  <bruno@clisp.org>
35247
35248         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
35249         restriction due to compiler bugs.
35250         Reported by Eric Blake.
35251
35252 2009-05-31  Simon Josefsson  <simon@josefsson.org>
35253             Bruno Haible  <bruno@clisp.org>
35254
35255         Fix test-alignof failure.
35256         * lib/alignof.h (alignof_slot): New macro.
35257         (alignof_type): New macro, with the same semantics as the previous
35258         'alignof'.
35259         (alignof): Alias to alignof_slot.
35260         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
35261         check that the results are usable as constant expressions.
35262
35263 2009-05-31  Bruno Haible  <bruno@clisp.org>
35264
35265         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
35266         * tests/test-memchr.c (main): Check that memchr does not read past the
35267         first occurrence of the byte.
35268         * tests/test-strstr.c (main): Update comment.
35269         Suggested by Eric Blake.
35270
35271 2009-05-30  Bruno Haible  <bruno@clisp.org>
35272
35273         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
35274         detail how to use dumpbin.
35275         Reported by David Byron <dbyron@dbyron.com>.
35276
35277 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35278
35279         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
35280
35281 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35282
35283         * m4/manywarnings.m4: Add GCC 4.4 warnings.
35284
35285 2009-05-28  Bruno Haible  <bruno@clisp.org>
35286
35287         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
35288         build-aux/ files.
35289
35290 2009-05-28  Simon Josefsson  <simon@josefsson.org>
35291
35292         * gnulib-tool (func_import): Transform license on build-aux/ files too.
35293
35294 2009-05-27  Simon Josefsson  <simon@josefsson.org>
35295
35296         * gnulib-tool (sed_transform_main_lib_file)
35297         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
35298         regexps.
35299
35300 2009-05-26  Simon Josefsson  <simon@josefsson.org>
35301
35302         * tests/test-strstr.c: Add another self-test.
35303         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
35304         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
35305
35306 2009-05-23  Bruno Haible  <bruno@clisp.org>
35307
35308         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
35309         change.
35310
35311 2009-05-21  Bruno Haible  <bruno@clisp.org>
35312
35313         Simplify use of mode_t varargs.
35314         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
35315         uses 'mode_t' or 'int'.
35316         * lib/openat.c (openat): Likewise.
35317         * lib/open-safer.c (open_safer): Likewise.
35318         * m4/mode_t.m4: New file.
35319         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
35320         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
35321         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
35322         * modules/open (Files): Add m4/mode_t.m4.
35323         * modules/openat (Files): Likewise.
35324         * modules/fcntl-safer (Files): Likewise.
35325         Suggested by Eric Blake.
35326
35327 2009-05-21  Pádraig Brady  <P@draigbrady.com>
35328
35329         * doc/glibc-functions/fallocate.texi: New file.
35330         * doc/gnulib.texi: Include it.
35331
35332 2009-05-21  Eric Blake  <ebb9@byu.net>
35333             Bruno Haible  <bruno@clisp.org>
35334
35335         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
35336         invocations.
35337         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35338
35339 2009-05-21  Eric Blake  <ebb9@byu.net>
35340             Bruno Haible  <bruno@clisp.org>
35341
35342         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
35343         include_next. Fix of 2008-11-20 commit.
35344         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
35345         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
35346         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
35347         NEXT_MATH_H.
35348         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
35349         instead of NEXT_MATH_H.
35350
35351 2009-05-21  Bruno Haible  <bruno@clisp.org>
35352
35353         Avoid redefinition warnings for SIZE_MAX.
35354         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
35355         Reported by Simon Josefsson.
35356
35357 2009-05-21  Bruno Haible  <bruno@clisp.org>
35358
35359         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
35360         AC_CACHE_VAL.
35361
35362 2009-05-20  Bruno Haible  <bruno@clisp.org>
35363
35364         Make zeroptr.h work on mingw.
35365         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
35366         mprotect.
35367         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
35368         * modules/memchr2-tests (configure.ac): Likewise.
35369         * modules/memcmp-tests (configure.ac): Likewise.
35370         * modules/memmem-tests (configure.ac): Likewise.
35371         * modules/memrchr-tests (configure.ac): Likewise.
35372         Reported by Simon Josefsson.
35373
35374 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35375
35376         * tests/test-glob.c: Include string.h for strcmp prototype.
35377
35378 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35379
35380         * modules/getdelim (Depends-on): Add explicit stdint, although it
35381         was implicitly already pulled in via realloc-posix.
35382         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
35383
35384 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35385
35386         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
35387         G. Christensen" <tgc@jupiterrise.com>.
35388         * m4/sys_socket_h.m4: Check for sa_family_t.
35389         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
35390         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
35391         * tests/test-sys_socket.c: Check that sa_family_t works.
35392
35393 2009-05-18  Eric Blake  <ebb9@byu.net>
35394
35395         maint.mk: allow gnulib_dir in VPATH build
35396         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
35397
35398 2009-05-15  Jim Meyering  <meyering@redhat.com>
35399
35400         maint.mk: Give gnulib_dir a default definition.
35401         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
35402         Thus, most packages no longer need to specify this variable in cfg.mk
35403
35404 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
35405
35406         rename.m4: fix typos that would make non-mingw cross-configure fail
35407         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
35408
35409 2009-05-13  Eric Blake  <ebb9@byu.net>
35410
35411         mmap-anon: avoid out-of-order autoconf expansion
35412         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
35413         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
35414         * modules/memchr-tests (Depends-on): Add extensions.
35415         * modules/memchr2-tests (Depends-on): Add extensions.
35416         * modules/memcmp-tests (Depends-on): Add extensions.
35417         * modules/memmem-tests (Depends-on): Add extensions.
35418         * modules/memrchr-tests (Depends-on): Add extensions.
35419
35420 2009-05-13  Bruno Haible  <bruno@clisp.org>
35421
35422         Make some tests ISO C 99 compliant.
35423         * tests/zerosize-ptr.h: New file.
35424         * tests/test-memchr.c: Include zerosize-ptr.h.
35425         (main): Use a zero-size object pointer instead of NULL.
35426         * tests/test-memchr2.c: Include zerosize-ptr.h.
35427         (main): Use a zero-size object pointer instead of NULL.
35428         * tests/test-memcmp.c: Include zerosize-ptr.h.
35429         (main): Use a zero-size object pointer instead of NULL.
35430         * tests/test-memmem.c: Include zerosize-ptr.h.
35431         (main): Use a zero-size object pointer instead of NULL.
35432         * tests/test-memrchr.c: Include zerosize-ptr.h.
35433         (main): Use a zero-size object pointer instead of NULL.
35434         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
35435         m4/mmap-anon.m4.
35436         (Depends-on): Add getpagesize.
35437         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35438         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
35439         m4/mmap-anon.m4.
35440         (Depends-on): Add getpagesize.
35441         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35442         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
35443         m4/mmap-anon.m4.
35444         (Depends-on): Add getpagesize.
35445         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35446         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
35447         m4/mmap-anon.m4.
35448         (Depends-on): Add getpagesize.
35449         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35450         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
35451         m4/mmap-anon.m4.
35452         (Depends-on): Add getpagesize.
35453         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35454
35455 2009-05-12  Bruno Haible  <bruno@clisp.org>
35456
35457         Tests for module 'alignof'.
35458         * modules/alignof-tests: New file.
35459         * tests/test-alignof.c: New file.
35460
35461 2009-05-12  Bruno Haible  <bruno@clisp.org>
35462
35463         Fix alignof macro.
35464         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
35465         vendor compilers that are always correct.
35466
35467 2009-05-12  Bruno Haible  <bruno@clisp.org>
35468
35469         Make the MAP_ANONYMOUS detection work on HP-UX 11.
35470         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
35471         not whether its fully works.
35472
35473 2009-05-12  Bruno Haible  <bruno@clisp.org>
35474
35475         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
35476
35477 2009-05-12  Jim Meyering  <meyering@redhat.com>
35478
35479         * top/maint.mk: Adjust backslash alignment.
35480
35481 2009-05-11  Simon Josefsson  <simon@josefsson.org>
35482
35483         * top/maint.mk: Make $(srcdir)/build-aux configurable.
35484
35485 2009-05-11  Eric Blake  <ebb9@byu.net>
35486
35487         argp: avoid undefined behavior
35488         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
35489         macros.
35490
35491 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35492
35493         * tests/test-vc-list-files-git.sh: Do git config of user.email and
35494         user.name to prevent git commit from complaining.
35495
35496 2009-05-10  Bruno Haible  <bruno@clisp.org>
35497
35498         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
35499         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
35500         it rewrites every file name only once.
35501         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
35502
35503 2009-05-08  Bruno Haible  <bruno@clisp.org>
35504
35505         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
35506         instead of 'max'.
35507
35508 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35509
35510         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
35511         sockaddr_storage test.
35512
35513 2009-05-07  Simon Josefsson  <simon@josefsson.org>
35514
35515         * modules/sys_socket (Makefile.am): Substitute
35516         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
35517         * m4/sys_socket_h.m4: Check for sockaddr_storage.
35518         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
35519         * tests/test-sys_socket.c: Check sockaddr_storage.
35520
35521 2009-05-08  Bruno Haible  <bruno@clisp.org>
35522
35523         New module 'alignof'.
35524         * lib/alignof.h: New file.
35525         * modules/alignof: New file.
35526
35527 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35528             Bruno Haible  <bruno@clisp.org>
35529
35530         Fix test-file-has-acl on FreeBSD.
35531         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
35532         mask is implicitly added.
35533         * tests/test-file-has-acl.c: Include <signal.h>.
35534         (main): Terminate the test after 5 seconds.
35535         * modules/acl-tests (configure.ac): Check for alarm function.
35536
35537 2009-05-04  Bruno Haible  <bruno@clisp.org>
35538
35539         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
35540         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
35541         * modules/errno (configure.ac): Drop AC_REQUIRE.
35542         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
35543         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
35544
35545 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35546
35547         * modules/glob-tests: New module.
35548         * tests/test-glob.c: Add.
35549
35550 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35551
35552         * modules/fnmatch-tests: New module.
35553         * tests/test-fnmatch.c: Add.
35554
35555 2009-05-04  Eric Blake  <ebb9@byu.net>
35556
35557         maint: make the new no-submodule-changes rule VPATH-safe
35558         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
35559
35560 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35561             Bruno Haible  <bruno@clisp.org>
35562
35563         acl: Fix infinite loop on FreeBSD.
35564         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
35565         of return value from acl_get_entry.
35566         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
35567         Likewise.
35568
35569 2009-05-03  Bruno Haible  <bruno@clisp.org>
35570
35571         * lib/acl-internal.h (acl_entries): Clarify return value.
35572         * lib/acl_entries.c (acl_entries): Likewise.
35573
35574 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35575
35576         Bug fix in acl module.
35577         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
35578
35579 2009-05-03  Bruno Haible  <bruno@clisp.org>
35580
35581         Create gperf-generated file in the source dir, not in the build dir.
35582         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
35583         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
35584         * modules/unicase/locale-language (unicase/locale-languages.h):
35585         Likewise.
35586         * modules/unicase/special-casing (unicase/special-casing-table.h):
35587         Likewise.
35588         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
35589         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
35590         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
35591         Reported by Ralf Wildenhues.
35592
35593 2009-05-03  Bruno Haible  <bruno@clisp.org>
35594
35595         * modules/fnmatch (Description, configure.ac): Taken from
35596         fnmatch-posix.
35597         * modules/fnmatch-posix: Turn into a symbolic reference to the
35598         'fnmatch' module, and deprecate.
35599         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
35600
35601 2009-05-03  Bruno Haible  <bruno@clisp.org>
35602
35603         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
35604         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
35605         Reported by Ralf Wildenhues.
35606
35607 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35608
35609         * m4/fnmatch.m4: Fix fnmatch re-define.
35610
35611 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35612
35613         priv-set: new module and tests; adapt write-any-file
35614         * lib/priv-set.c: New file.
35615         * lib/priv-set.h: New file.
35616         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
35617         * lib/write-any-file.c: Simplify by using priv-set module.
35618         * m4/priv-set.m4: New file.
35619         * modules/priv-set: New file.
35620         * modules/unlinkdir: Add dependency on priv-set module.
35621         * modules/write-any-file: Likewise.
35622
35623         Tests for module 'priv-set'.
35624         * modules/priv-set-tests: New file.
35625         * tests/test-priv-set.c: New file.
35626
35627 2009-05-03  Jim Meyering  <meyering@redhat.com>
35628             Bruno Haible  <bruno@clisp.org>
35629
35630         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
35631         use the converted UTF-8 variant of the name instead.
35632
35633 2009-05-03  Jim Meyering  <meyering@redhat.com>
35634
35635         tests: tighten some getdate tests
35636         * tests/test-getdate.c (main): Tighten tests: require equality,
35637         not just greater than.  Set TZ envvar to UTC0.
35638
35639 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
35640
35641         getdate: correctly interpret "next monday" when run on a Monday
35642         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
35643         that e.g., "next tues" (when run on a tuesday) results in a date
35644         that is one week in the future, and not today's date.
35645         I.e., add a week when the wday is the same as the current one.
35646         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
35647         and earlier by Martin Bernreuther and Jan Minář.
35648         * tests/test-getdate.c (main): Check that "next DAY" is always in
35649         the future and that "last DAY" is always in the past.
35650
35651 2009-05-02  Jim Meyering  <meyering@redhat.com>
35652
35653         build: ensure that a release build fails when a submodule is unclean
35654         * top/maint.mk (no-submodule-changes): New rule.
35655         (alpha beta major): Depend on it.
35656
35657 2009-05-02  Bruno Haible  <bruno@clisp.org>
35658
35659         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
35660         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
35661         shell variable gl_fnmatch_required to detect which variant is
35662         requested.
35663         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
35664         gl_FUNC_FNMATCH_POSIX.
35665         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
35666         exclude fnmatch-posix.
35667
35668 2009-05-02  Bruno Haible  <bruno@clisp.org>
35669
35670         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
35671         * modules/mbsrtowcs (License): Change to LGPLv2+.
35672         * modules/strnlen1 (License): Likewise.
35673         Reported by Simon Josefsson.
35674
35675 2009-05-02  Bruno Haible  <bruno@clisp.org>
35676
35677         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
35678         "cross".
35679         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
35680         gnulib-tool was called with option --source-base=lib.
35681
35682 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35683
35684         Use automake *-local hooks without commands, for extensibility.
35685         * modules/localcharset (Makefile.am): Rename install-exec-local
35686         rule to install-exec-localcharset, and make it a prerequisite of
35687         install-exec-local.  Likewise, rename the uninstall-local rule to
35688         uninstall-localcharset, and make it a prerequisite of the former.
35689
35690 2009-05-01  Bruno Haible  <bruno@clisp.org>
35691
35692         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
35693         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35694         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
35695         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
35696         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
35697         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35698         m4/locale-zh.m4, m4/codeset.m4.
35699
35700         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35701         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
35702         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35703         m4/locale-zh.m4.
35704
35705         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
35706         REPLACE_WCRTOMB if mbstate_t must be replaced.
35707         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
35708         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
35709
35710 2009-05-01  Bruno Haible  <bruno@clisp.org>
35711
35712         Avoid compiler warnings when redefining macros defined by <libintl.h>.
35713         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
35714         dngettext, dcngettext, textdomain, bindtextdomain,
35715         bind_textdomain_codeset): Undefine before redefining.
35716
35717 2009-04-30  Bruno Haible  <bruno@clisp.org>
35718
35719         Fix bug introduced on 2009-04-25.
35720         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
35721         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
35722         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
35723         is defined.
35724         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
35725         is defined.
35726         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
35727         is defined.
35728         Reported by Elbert_Pol <elbert.pol@gmail.com>.
35729
35730 2009-04-28  Bruno Haible  <bruno@clisp.org>
35731
35732         Comment tweaks.
35733         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
35734         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
35735         * lib/unicase.h (u*_casexfrm): Likewise.
35736         Reported by Paolo Bonzini.
35737
35738 2009-04-28  Bruno Haible  <bruno@clisp.org>
35739
35740         Fix a compilation error.
35741         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
35742         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35743         Reported by Jim Meyering.
35744
35745 2009-04-27  Bruno Haible  <bruno@clisp.org>
35746
35747         New module 'libunistring'.
35748         * modules/libunistring: New file.
35749         * m4/libunistring.m4: New file.
35750         * MODULES.html.sh (Unicode string functions): Add it.
35751
35752 2009-04-27  Eric Blake  <ebb9@byu.net>
35753
35754         maint.mk: allow package-specific header to provide <config.h>
35755         * top/maint.mk (sc_require_config_h): New variable.
35756         (sc_require_config_h, sc_require_config_h_first): Use it.
35757
35758 2009-04-27  Simon Josefsson  <simon@josefsson.org>
35759
35760         * top/maint.mk (sc_avoid_if_before_free): Except
35761         useless-if-before-free script.
35762
35763 2009-04-27  Eric Blake  <ebb9@byu.net>
35764
35765         maintainer-makefile: depend on all required helper scripts
35766         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
35767         useless-if-before-free.
35768         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
35769         version, rather than assuming gnulib checkout is available.
35770         Reported by Simen Josefsson.
35771
35772 2009-04-26  Bruno Haible  <bruno@clisp.org>
35773
35774         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
35775         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
35776         "../" or "..".
35777
35778 2009-04-26  Bruno Haible  <bruno@clisp.org>
35779
35780         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
35781         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
35782         AC_LIB_HAVE_LINKFLAGS.
35783
35784 2009-04-26  Bruno Haible  <bruno@clisp.org>
35785
35786         Simplify calling convention of u*_conv_from_encoding.
35787         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
35788         u32_conv_from_encoding): Expect a resultbuf argument and return the
35789         result directly as a pointer.
35790         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
35791         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
35792         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
35793         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
35794         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
35795         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35796         Update.
35797         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
35798         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
35799         * lib/vasnprintf.c (VASNPRINTF): Update.
35800         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
35801         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
35802         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
35803         * NEWS: Mention the change.
35804
35805 2009-04-26  Bruno Haible  <bruno@clisp.org>
35806
35807         Simplify calling convention of u*_conv_to_encoding.
35808         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
35809         u32_conv_to_encoding): Expect a resultbuf argument and return the
35810         result directly as a pointer.
35811         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35812         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
35813         freeing scaled_offsets if mem_iconveha failed.
35814         * lib/unicase/u-casexfrm.h (FUNC): Update.
35815         * lib/uninorm/u-normxfrm.h (FUNC): Update.
35816         * lib/vasnprintf.c (VASNPRINTF): Update.
35817         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
35818         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
35819         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
35820         * NEWS: Mention the change.
35821
35822 2009-04-26  Bruno Haible  <bruno@clisp.org>
35823
35824         Avoid test failures on AIX and OSF/1.
35825         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
35826         malloc(0).
35827         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35828         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35829         Likewise.
35830         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
35831         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
35832         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
35833         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
35834         * doc/posix-functions/malloc.texi: Document the portability problem
35835         related to malloc(0).
35836
35837 2009-04-26  Bruno Haible  <bruno@clisp.org>
35838
35839         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
35840         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
35841         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
35842
35843 2009-04-25  Bruno Haible  <bruno@clisp.org>
35844
35845         Avoid link error when creating a namespace clean library.
35846         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
35847         as macro with arguments if already defined as an alias.
35848         * lib/signbitf.c (gl_signbitf): Don't undefine.
35849         * lib/signbitd.c (gl_signbitd): Don't undefine.
35850         * lib/signbitl.c (gl_signbitl): Don't undefine.
35851
35852 2009-04-25  Jim Meyering  <meyering@redhat.com>
35853
35854         vc-list-files: fix another quoting bug
35855         * build-aux/vc-list-files: Avoid sed backslash expansion
35856         of pathological directory names.
35857
35858 2009-04-25  Eric Blake  <ebb9@byu.net>
35859
35860         vc-list-files: fix shell quoting error
35861         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
35862         timestamp.
35863
35864 2009-04-25  Jim Meyering  <meyering@redhat.com>
35865
35866         vc-list-files: restore lost functionality with subdir argument
35867         * build-aux/vc-list-files: When given a non-"." sub-directory
35868         argument, substitute the $dir/ prefix back onto each resulting name.
35869         Otherwise, coreutils' root_tests check would fail.
35870
35871 2009-04-24  Eric Blake  <ebb9@byu.net>
35872
35873         vc-list-files: ignore git symlinks
35874         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
35875         than ls-files, to ignore git symlinks.
35876
35877         maint.mk: import improvements from m4
35878         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
35879         (move_if_change): Delete unused macro.
35880         (news-date-check, vc-diff-check): Support VPATH builds.
35881         (announcement): Likewise.  Split --bootstrap-tools list...
35882         (boostrap-tools): ...into separate list, which can be overridden
35883         in cfg.mk.
35884         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
35885         requiring dependency on useless-if-before-free module.
35886         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
35887         Support VPATH builds.
35888
35889 2009-04-24  Jim Meyering  <meyering@redhat.com>
35890
35891         maint.mk: remove coreutils-specific rules and variables
35892         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
35893         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
35894         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
35895
35896         maint.mk: remove obsolete rule
35897         * top/maint.mk (rel-check): Remove rule.
35898         (WGET, WGETFLAGS): Remove now-unused variables.
35899
35900 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35901
35902         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
35903         consistency.
35904
35905         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
35906         '$(PATH_SEPARATOR)' instead of ':'.
35907
35908 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35909
35910         * lib/getopt1.c (main): Use 'const' for static array.
35911
35912 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35913
35914         * top/maint.mk: Sync with coreutils.
35915         * NEWS: Explain incompatibilities.
35916
35917 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35918             Bruno Haible  <bruno@clisp.org>
35919
35920         Fix cross-compilation results.
35921         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
35922         statement, as third argument of AC_TRY_RUN.
35923         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
35924         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
35925         Likewise.
35926         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
35927         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
35928         Likewise.
35929         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
35930         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
35931         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
35932
35933 2009-04-20  Bruno Haible  <bruno@clisp.org>
35934
35935         Avoid test failure on mingw.
35936         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
35937
35938 2009-04-20  Bruno Haible  <bruno@clisp.org>
35939
35940         Avoid compilation error on mingw.
35941         * modules/localename-tests (Depends-on): Add locale.
35942
35943 2009-04-19  Bruno Haible  <bruno@clisp.org>
35944
35945         Support for building a shared library on Windows platforms.
35946         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
35947         (main): Test the presence of UNINORM_NFC here.
35948         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
35949         (main): Test the presence of UNINORM_NFD here.
35950         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
35951         (main): Test the presence of UNINORM_NFKC here.
35952         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
35953         (main): Test the presence of UNINORM_NFKD here.
35954
35955 2009-04-19  Bruno Haible  <bruno@clisp.org>
35956
35957         Avoid a compiler warning.
35958         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
35959         Change type of variable 'sequence'.
35960
35961 2009-04-19  Bruno Haible  <bruno@clisp.org>
35962
35963         * modules/configmake (Makefile.am): When the contents of configmake.h
35964         does not change, arrange to preserve its modification time.
35965
35966 2009-04-17  Simon Josefsson  <simon@josefsson.org>
35967
35968         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
35969         gettext domain.
35970
35971 2009-04-16  Jim Meyering  <meyering@redhat.com>
35972
35973         useless-if-before-free: improve conversion code
35974         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35975         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35976
35977 2009-04-14  Bruno Haible  <bruno@clisp.org>
35978
35979         * modules/fcntl (Depends-on): Add extensions.
35980         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35981
35982 2009-04-12  Ben Pfaff  <blp@gnu.org>
35983
35984         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35985         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35986
35987 2009-03-20  Ben Pfaff  <blp@gnu.org>
35988
35989         Make rename replace existing destinations on Windows.
35990         * m4/rename.m4: Add test for Mingw.
35991         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35992         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35993         * doc/posix-functions/rename.texi: Document.
35994
35995 2009-04-10  Bruno Haible  <bruno@clisp.org>
35996
35997         New include file "iconveh.h".
35998         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35999         * lib/striconveh.h: Include it.
36000         (enum iconv_ilseq_handler): Remove definition.
36001         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
36002         striconveh.h.
36003         * lib/striconveha.c: Include striconveh.h.
36004         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
36005         * modules/striconveh (Files): Add lib/iconveh.h.
36006         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
36007         lib/striconveh.h.
36008
36009 2009-04-10  Bruno Haible  <bruno@clisp.org>
36010
36011         * lib/uniconv.h: Update comment.
36012
36013 2009-04-10  Bruno Haible  <bruno@clisp.org>
36014
36015         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
36016         always.
36017         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36018         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36019         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36020         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
36021         "unistring-notinline.h", so that the function gets defined always.
36022         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36023         * lib/unistr/u8-uctomb.c: Likewise.
36024         * lib/unistr/u16-mbtouc.c: Likewise.
36025         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36026         * lib/unistr/u16-uctomb.c: Likewise.
36027         * lib/unistr/u32-mbtouc.c: Likewise.
36028         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36029         * lib/unistr/u32-uctomb.c: Likewise.
36030
36031 2009-04-10  Bruno Haible  <bruno@clisp.org>
36032
36033         Mark 'utime' obsolete.
36034         * modules/utime (Status, Notice): New sections.
36035         Suggested by Jim Meyering.
36036
36037         Fix cross-compile guess for utime test.
36038         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
36039         autoconf.
36040         * doc/posix-functions/utime.texi: Give more precisions.
36041         Reported by Jan <ipif@ymail.com>.
36042
36043 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
36044
36045         filevercmp: correct today's change
36046         * lib/filevercmp.c: Also handle coreutils' test inputs.
36047         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
36048
36049         Fix regression in 'filevercmp' module. Thanks Sven Joachim
36050         for reporting it.
36051         * lib/filevercmp.c: Special handle for "", "." and "..".
36052         * tests/test-filevercmp.c: Enlarge the set suite.
36053
36054 2009-04-07  Jim Meyering  <meyering@redhat.com>
36055
36056         useless-if-before-free: show how to remove braced useless free, too
36057         * build-aux/useless-if-before-free: still only in a comment, though.
36058
36059 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
36060
36061         maint.mk: import changes to syntax-check macros from coreutils
36062         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
36063         Use them in the relevant macros.
36064
36065 2009-04-06  Bruno Haible  <bruno@clisp.org>
36066
36067         Fix unportable use of bit-fields.
36068         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
36069         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
36070         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
36071
36072 2009-04-06  Bruno Haible  <bruno@clisp.org>
36073
36074         Avoid test failures on AIX and OSF/1.
36075         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
36076         that malloc(0) = NULL.
36077         * tests/unicase/test-u8-tolower.c (check): Likewise.
36078         * tests/unicase/test-u8-totitle.c (check): Likewise.
36079         * tests/unicase/test-u8-toupper.c (check): Likewise.
36080         * tests/unicase/test-u16-casefold.c (check): Likewise.
36081         * tests/unicase/test-u16-tolower.c (check): Likewise.
36082         * tests/unicase/test-u16-totitle.c (check): Likewise.
36083         * tests/unicase/test-u16-toupper.c (check): Likewise.
36084         * tests/unicase/test-u32-casefold.c (check): Likewise.
36085         * tests/unicase/test-u32-tolower.c (check): Likewise.
36086         * tests/unicase/test-u32-totitle.c (check): Likewise.
36087         * tests/unicase/test-u32-toupper.c (check): Likewise.
36088         * tests/uninorm/test-u8-nfc.c (check): Likewise.
36089         * tests/uninorm/test-u8-nfd.c (check): Likewise.
36090         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
36091         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
36092         * tests/uninorm/test-u16-nfc.c (check): Likewise.
36093         * tests/uninorm/test-u16-nfd.c (check): Likewise.
36094         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
36095         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
36096         * tests/uninorm/test-u32-nfc.c (check): Likewise.
36097         * tests/uninorm/test-u32-nfd.c (check): Likewise.
36098         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
36099         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
36100
36101 2009-04-05  Bruno Haible  <bruno@clisp.org>
36102
36103         Work around an autoconf limitation.
36104         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
36105         comment line if it would be longer than 3 KB.
36106
36107 2009-04-05  Bruno Haible  <bruno@clisp.org>
36108
36109         Avoid test failure with libiconv-1.13.
36110         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
36111         of the expected test results.
36112
36113 2009-04-05  Bruno Haible  <bruno@clisp.org>
36114
36115         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
36116         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
36117         that it should be installed.
36118
36119 2009-04-05  Bruno Haible  <bruno@clisp.org>
36120
36121         * gnulib-tool: New option --copy-file.
36122         (func_usage): Document it.
36123         (func_dest_tmpfilename): Moved out of func_import.
36124         (func_add_file, func_update_file): New functions, extracted from
36125         func_import.
36126         (func_import): Update.
36127
36128 2009-04-05  Karl Berry  <karl@gnu.org>
36129
36130         * README: prominently mention gnulib-tool.
36131         Rearrange sections so getting the code is near the top.
36132
36133 2009-04-05  Bruno Haible  <bruno@clisp.org>
36134
36135         * lib/unicase.h: Mention u*_cmp2.
36136         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36137         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
36138         * lib/unicase/ulc-casecmp.c: Likewise.
36139         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
36140         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
36141         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
36142         unistr/u8-cmp.
36143         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
36144         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
36145         unistr/u16-cmp.
36146         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
36147         unistr/u32-cmp.
36148
36149         * lib/uninorm.h: Mention u*_cmp2.
36150         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36151         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
36152         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
36153         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
36154         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
36155         unistr/u8-cmp.
36156         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
36157         unistr/u16-cmp.
36158         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
36159         unistr/u32-cmp.
36160
36161         New module 'unistr/u32-cmp2'.
36162         * lib/unistr/u32-cmp2.c: New file.
36163         * modules/unistr/u32-cmp2: New file.
36164
36165         New module 'unistr/u16-cmp2'.
36166         * lib/unistr/u16-cmp2.c: New file.
36167         * modules/unistr/u16-cmp2: New file.
36168
36169         New module 'unistr/u8-cmp2'.
36170         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
36171         * lib/unistr/u8-cmp2.c: New file.
36172         * lib/unistr/u-cmp2.h: New file.
36173         * modules/unistr/u8-cmp2: New file.
36174
36175 2009-04-05  Bruno Haible  <bruno@clisp.org>
36176
36177         * lib/unictype.h (uc_property_is_valid): New macro.
36178         * tests/unictype/test-pr_byname.c (main): Use it.
36179
36180         * lib/unistr.h: Doc fixes.
36181         * lib/uniconv.h: Doc fixes.
36182         * lib/unictype.h: Doc fixes.
36183
36184 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
36185
36186         Port coreutils 7.2 to Solaris 8.
36187
36188         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
36189         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
36190         for Solaris 8.  This is a bit of a hack, as it means it's the
36191         caller's responsibility to add -lnsl if needed, but most likely it
36192         won't be needed since only getaddrinfo uses this and getaddrinfo
36193         isn't needed on Solaris 8.
36194
36195         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
36196         problem to Solaris 8 encountered with coreutils 7.2, which
36197         resulted in a message "fnmatch.c:292: warning: passing argument 4
36198         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
36199         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
36200
36201 2009-04-03  Simon Josefsson  <simon@josefsson.org>
36202
36203         * m4/ld-version-script.m4: Add FIXME comment.
36204
36205 2009-04-02  Simon Josefsson  <simon@josefsson.org>
36206
36207         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
36208         SOVERSION variable.
36209
36210 2009-04-02  Bruno Haible  <bruno@clisp.org>
36211
36212         * Makefile (info, html, dvi, pdf): Combine the rules.
36213         Suggested by Jim Meyering.
36214
36215 2009-04-01  Bruno Haible  <bruno@clisp.org>
36216
36217         * Makefile (info, html, dvi, pdf): New targets.
36218         Reported by Reuben Thomas <rrt@sc3d.org>.
36219
36220 2009-04-01  Bruno Haible  <bruno@clisp.org>
36221
36222         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
36223         can be put into PATH.
36224         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
36225
36226 2009-04-01  Bruno Haible  <bruno@clisp.org>
36227
36228         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
36229
36230 2009-04-01  Bruno Haible  <bruno@clisp.org>
36231
36232         Rename module 'visibility'.
36233         * modules/lib-symbol-visibility: Renamed from modules/visibility.
36234         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
36235         * doc/gnulib.texi: Update.
36236         * MODULES.html.sh (Misc): Update.
36237         * NEWS: Mention the change.
36238
36239 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36240
36241         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
36242         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
36243         Eric Blake <ebb9@byu.net> for review.
36244         * MODULES.html.sh: Add lib-msvc-compat.
36245         * doc/gnulib.texi: Link to new section.
36246         * m4/ld-output-def.m4: New file.
36247         * doc/ld-output-def.texi: New file.
36248
36249 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36250
36251         Rename ld-version-script to lib-symbol-versions.  Suggested by
36252         Bruno Haible <bruno@clisp.org>.
36253         * modules/ld-version-script: Renamed to lib-symbol-versions.
36254         * doc/ld-version-script.texi: Fix module name.
36255         * MODULES.html.sh: Add lib-symbol-versions.
36256
36257 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36258
36259         * modules/u64-tests: New file.
36260         * tests/test-u64.c: New file.
36261
36262 2009-03-04  Simon Josefsson  <simon@josefsson.org>
36263
36264         * MODULES.html.sh: Mention u64.
36265         * modules/u64: New module.
36266         * modules/crypto/sha512: Depend on u64 module instead of providing
36267         u64.h.
36268
36269 2009-03-27  Eric Blake  <ebb9@byu.net>
36270
36271         test-strerror: make debugging EAI_SYSTEM easier
36272         * modules/getaddrinfo-tests (Depends-on): Add strerror.
36273         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
36274         failure was EAI_SYSTEM.
36275
36276 2009-03-25  Bruno Haible  <bruno@clisp.org>
36277
36278         Fix a problem with --enable-relocatable on Solaris 7.
36279         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
36280         since 2008-02-24.
36281
36282 2009-03-25  Eric Blake  <ebb9@byu.net>
36283
36284         test-sockets: avoid gcc warning
36285         * tests/test-sockets.c (main): Silence compiler warning.
36286
36287 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
36288
36289         New modules nproc, pthread, contributed by Glen Lenker.
36290
36291         * MODULES.html.sh: Add pthread, nproc.
36292         * lib/nproc.c: New file.
36293         * lib/nproc.h: New file.
36294         * lib/pthread.in.h: New file.
36295         * m4/pthread.m4: New file.
36296         * modules/nproc: New file.
36297         * modules/pthread: New file.
36298
36299 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36300
36301         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
36302         New variable.
36303
36304 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
36305
36306         filevercmp: handle simple~ and numbered.~3~ backup suffixes
36307         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
36308         * tests/test-filevercmp.c: Add tests for backup suffixes.
36309
36310 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36311
36312         * modules/stdlib (Depends-on): Add stdint, needed when defining
36313         struct random_data on, for example, HP-UX 10.20.  Reported by
36314         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36315
36316 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36317
36318         * lib/readline.c (readline): Call fflush on stdout after printing
36319         prompt.
36320
36321 2009-03-20  Bruno Haible  <bruno@clisp.org>
36322
36323         Remove dependency from 'close' module to -lws2_32 on native Windows.
36324         * lib/close-hook.h: New file.
36325         * lib/close-hook.c: New file.
36326         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
36327         w32sock.h.
36328         (_gl_close_fd_maybe_socket): Remove function.
36329         (rpl_close): Invoke execute_all_close_hooks instead of
36330         _gl_close_fd_maybe_socket.
36331         * lib/sockets.c: Include close-hook.h, w32sock.h.
36332         (close_fd_maybe_socket): New function, essentially from lib/close.c.
36333         (close_sockets_hook): New variable.
36334         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
36335         (gl_sockets_cleanup): Unregister it.
36336         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
36337         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
36338         * modules/close-hook: New file.
36339         * modules/close (Files): Remove lib/w32sock.h.
36340         (Depends-on): Add close-hook.
36341         (Link): Remove section.
36342         * modules/sockets (Files): Add lib/w32sock.h.
36343         (Depends-on): Add close-hook.
36344         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
36345         invocation.
36346         * NEWS: Mention that LIB_CLOSE is gone.
36347
36348 2009-03-23  Eric Blake  <ebb9@byu.net>
36349
36350         signal-tests: test previous patch
36351         * tests/test-signal.c: New file.
36352         * modules/signal-tests: Likewise.
36353
36354         signal.h: always support 'volatile sig_atomic_t'
36355         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
36356         (gl_SIGNAL_H_DEFAULTS): Add a default.
36357         * modules/signal (Makefile.am): Substitute if needed.
36358         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
36359         users can blindly add volatile.
36360         * doc/posix-headers/signal.texi (signal.h): Document it.
36361         Reported by Matthew Woehlke.
36362
36363 2009-03-23  Jim Meyering  <meyering@redhat.com>
36364
36365         pathmax: PATH_MAX: use pathconf only when available
36366         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
36367         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
36368         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
36369         This avoids a link failure in a PSP cross-compilation environment
36370         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
36371
36372         * lib/vasnprintf.c (divide): Fix typo in comment.
36373
36374 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36375
36376         * gnulib-tool (func_filter_filelist): Fix comment.
36377
36378 2009-03-20  Bruno Haible  <bruno@clisp.org>
36379
36380         Make sockets.h self-contained.
36381         * lib/sockets.c: Include sockets.h first.
36382         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
36383
36384 2009-03-19  Eric Blake  <ebb9@byu.net>
36385
36386         doc: mention more functions added in cygwin 1.7.0
36387         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
36388         addition.
36389         * doc/posix-functions/log2f.texi: Likewise.
36390
36391 2009-03-19  Jim Meyering  <meyering@redhat.com>
36392
36393         fsusage: avoid syntax error due to statement-before-declaration
36394         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
36395         after all declarations.  Reported by Matthew Woehlke in
36396         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
36397
36398 2009-03-18  Eric Blake  <ebb9@byu.net>
36399
36400         build-aux/compile: sync from automake
36401         * build-aux/compile: New file, from automake.
36402         * config/srclist.txt: Mention build-aux/compile.
36403
36404 2009-03-17  Bruno Haible  <bruno@clisp.org>
36405
36406         * lib/git-merge-changelog.c: Fix typo in comment.
36407         Reported by Reuben Thomas <rrt@sc3d.org>.
36408
36409 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
36410
36411         * m4/regex.m4: update and improve help for
36412         --without-included-regex.
36413
36414 2009-03-17  Simon Josefsson  <simon@josefsson.org>
36415
36416         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
36417         failure on missing include files.
36418
36419 2009-03-17  Eric Blake  <ebb9@byu.net>
36420
36421         doc: mention more functions added in cygwin 1.7.0
36422         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
36423         addition.
36424         * doc/posix-functions/fwscanf.texi: Likewise.
36425         * doc/posix-functions/swprintf.texi: Likewise.
36426         * doc/posix-functions/swscanf.texi: Likewise.
36427         * doc/posix-functions/vfwprintf.texi: Likewise.
36428         * doc/posix-functions/vfwscanf.texi: Likewise.
36429         * doc/posix-functions/vswprintf.texi: Likewise.
36430         * doc/posix-functions/vswscanf.texi: Likewise.
36431         * doc/posix-functions/vwprintf.texi: Likewise.
36432         * doc/posix-functions/vwscanf.texi: Likewise.
36433         * doc/posix-functions/wcscasecmp.texi: Likewise.
36434         * doc/posix-functions/wcsdup.texi: Likewise.
36435         * doc/posix-functions/wcsftime.texi: Likewise.
36436         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36437         * doc/posix-functions/wprintf.texi: Likewise.
36438         * doc/posix-functions/wscanf.texi: Likewise.
36439         * doc/glibc-functions/gethostbyname2.texi: Likewise.
36440
36441 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36442
36443         maint.mk: really add $(AM_MAKEFLAGS)
36444         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
36445         was inadvertently omitted in the last commit.
36446         Spotted by Bruno Haible.
36447
36448         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
36449         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
36450         $(AM_MAKEFLAGS)' rather than plain `make'.
36451
36452         gnulib-tool: execute $MAKE not make
36453         * gnulib-tool: Default $MAKE to 'make'.
36454         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
36455         than make.  Initialize $MAKE in the do-autobuild script.
36456
36457         gnulib-tool: use $MAKE not make in generated files
36458         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
36459         make, in generated files.  Initialize $MAKE in the do-autobuild
36460         script.
36461
36462         * top/GNUmakefile (_have-git-version-gen): Fix typo.
36463
36464         GNUmakefile: disable parallelism only for multiple, recursive targets
36465         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
36466         additions in the Makefile.
36467         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
36468         by Automake.
36469         (.NOTPARALLEL): Only disable parallel builds if multiple targets
36470         are listed on the command line and at least one of them is
36471         listed in $(ALL_RECURSIVE_TARGETS).
36472
36473 2009-03-14  Bruno Haible  <bruno@clisp.org>
36474
36475         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
36476         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
36477         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
36478         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
36479         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
36480         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
36481         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
36482         unistr/u8-uctomb.
36483         * modules/unistr/u8-strchr (Depends-on): Likewise.
36484         * modules/unistr/u8-strrchr (Depends-on): Likewise.
36485         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
36486         unistr/u16-uctomb.
36487         * modules/unistr/u16-strchr (Depends-on): Likewise.
36488         * modules/unistr/u16-strrchr (Depends-on): Likewise.
36489
36490 2009-03-12  Bruno Haible  <bruno@clisp.org>
36491
36492         Work around select() bug on Interix 3.5.
36493         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
36494         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
36495         * m4/select.m4: New file.
36496         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
36497         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
36498         * modules/select (Files): Add m4/select.m4.
36499         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
36500         * modules/nanosleep (Depends-on): Add select.
36501         * modules/poll (Depends-on): Likewise.
36502         * doc/posix-functions/select.texi: Mention the Interix bug.
36503         Reported by Markus Duft <mduft@gentoo.org>.
36504
36505         * lib/select.c: Renamed from lib/winsock-select.c.
36506         * modules/select (Files): Add lib/select.c, remove
36507         lib/winsock-select.c.
36508         (configure.ac): Update.
36509
36510 2009-03-12  Jim Meyering  <meyering@redhat.com>
36511
36512         avoid gcc warnings about unused macro definitions
36513         * lib/readtokens.c (STREQ): Remove unused definition.
36514         * lib/xmalloc.c (SIZE_MAX): Likewise.
36515         * lib/openat-die.c (N_): Likewise.
36516         * lib/mountlist.c (SIZE_MAX): Remove definition.
36517         Instead, include <stdint.h>.
36518         * lib/readutmp.c: Likewise.
36519         * modules/readutmp (Depends-on): Add stdint.
36520         * modules/mountlist (Depends-on): Add stdint.
36521         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
36522
36523 2009-03-10  Bruno Haible  <bruno@clisp.org>
36524
36525         Tests for module 'mbmemcasecoll'.
36526         * modules/mbmemcasecoll-tests: New file.
36527         * tests/test-mbmemcasecoll1.sh: New file.
36528         * tests/test-mbmemcasecoll2.sh: New file.
36529         * tests/test-mbmemcasecoll3.sh: New file.
36530         * tests/test-mbmemcasecoll.c: New file.
36531
36532         New module 'mbmemcasecoll'.
36533         * lib/mbmemcasecoll.h: New file.
36534         * lib/mbmemcasecoll.c: New file.
36535         * modules/mbmemcasecoll: New file.
36536
36537         * tests/test-mbmemcasecmp.h: New file, extracted from
36538         tests/test-mbmemcasecmp.c.
36539         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
36540         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
36541         (main): Update.
36542         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
36543
36544 2009-03-09  Bruno Haible  <bruno@clisp.org>
36545
36546         Tests for module 'mbmemcasecmp'.
36547         * modules/mbmemcasecmp-tests: New file.
36548         * tests/test-mbmemcasecmp1.sh: New file.
36549         * tests/test-mbmemcasecmp2.sh: New file.
36550         * tests/test-mbmemcasecmp3.sh: New file.
36551         * tests/test-mbmemcasecmp.c: New file.
36552
36553         New module 'mbmemcasecmp'.
36554         * lib/mbmemcasecmp.h: New file.
36555         * lib/mbmemcasecmp.c: New file.
36556         * modules/mbmemcasecmp: New file.
36557
36558 2009-03-09  Bruno Haible  <bruno@clisp.org>
36559
36560         Tests for module 'unicase/ulc-casecoll'.
36561         * modules/unicase/ulc-casecoll-tests: New file.
36562         * tests/unicase/test-ulc-casecoll1.sh: New file.
36563         * tests/unicase/test-ulc-casecoll2.sh: New file.
36564         * tests/unicase/test-ulc-casecoll.c: New file.
36565
36566         New module 'unicase/ulc-casecoll'.
36567         * lib/unicase.h (ulc_casecoll): New declaration.
36568         * lib/unicase/ulc-casecoll.c: New file.
36569         * modules/unicase/ulc-casecoll: New file.
36570
36571         New module 'unicase/ulc-casexfrm'.
36572         * lib/unicase.h (ulc_casexfrm): New declaration.
36573         * lib/unicase/ulc-casexfrm.c: New file.
36574         * modules/unicase/ulc-casexfrm: New file.
36575
36576 2009-03-09  Bruno Haible  <bruno@clisp.org>
36577
36578         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
36579         invocations.
36580
36581         * m4/mbscasecmp.m4: Remove file.
36582         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
36583         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
36584
36585         * m4/mbscasestr.m4: Remove file.
36586         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
36587         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
36588
36589         * m4/mbschr.m4: Remove file.
36590         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
36591         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
36592
36593         * m4/mbscspn.m4: Remove file.
36594         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
36595         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
36596
36597         * m4/mbslen.m4: Remove file.
36598         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
36599         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
36600
36601         * m4/mbsncasecmp.m4: Remove file.
36602         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
36603         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
36604
36605         * m4/mbsnlen.m4: Remove file.
36606         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
36607         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
36608
36609         * m4/mbspbrk.m4: Remove file.
36610         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
36611         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
36612
36613         * m4/mbspcasecmp.m4: Remove file.
36614         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
36615         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
36616
36617         * m4/mbsrchr.m4: Remove file.
36618         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
36619         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
36620
36621         * m4/mbssep.m4: Remove file.
36622         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
36623         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
36624
36625         * m4/mbsspn.m4: Remove file.
36626         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
36627         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
36628
36629         * m4/mbsstr.m4: Remove file.
36630         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
36631         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
36632
36633         * m4/mbstok_r.m4: Remove file.
36634         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
36635         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
36636
36637         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
36638
36639         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
36640         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
36641
36642         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
36643
36644 2009-03-08  Bruno Haible  <bruno@clisp.org>
36645
36646         Tests for module 'unicase/ulc-casecmp'.
36647         * modules/unicase/ulc-casecmp-tests: New file.
36648         * tests/unicase/test-ulc-casecmp1.sh: New file.
36649         * tests/unicase/test-ulc-casecmp2.sh: New file.
36650         * tests/unicase/test-ulc-casecmp.c: New file.
36651
36652         New module 'unicase/ulc-casecmp'.
36653         * lib/unicase.h (ulc_casecmp): New declaration.
36654         * lib/unicase/ulc-casecmp.c: New file.
36655         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
36656         'const SRC_UNIT *'.
36657         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
36658         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
36659         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
36660         * modules/unicase/ulc-casecmp: New file.
36661
36662         Tests for module 'unicase/u32-is-cased'.
36663         * modules/unicase/u32-is-cased-tests: New file.
36664         * tests/unicase/test-u32-is-cased.c: New file.
36665
36666         Tests for module 'unicase/u16-is-cased'.
36667         * modules/unicase/u16-is-cased-tests: New file.
36668         * tests/unicase/test-u16-is-cased.c: New file.
36669
36670         Tests for module 'unicase/u8-is-cased'.
36671         * modules/unicase/u8-is-cased-tests: New file.
36672         * tests/unicase/test-u8-is-cased.c: New file.
36673         * tests/unicase/test-is-cased.h: New file.
36674
36675         New module 'unicase/u32-is-cased'.
36676         * lib/unicase/u32-is-cased.c: New file.
36677         * modules/unicase/u32-is-cased: New file.
36678
36679         New module 'unicase/u16-is-cased'.
36680         * lib/unicase/u16-is-cased.c: New file.
36681         * modules/unicase/u16-is-cased: New file.
36682
36683         New module 'unicase/u8-is-cased'.
36684         * lib/unicase/u8-is-cased.c: New file.
36685         * lib/unicase/u-is-cased.h: New file.
36686         * modules/unicase/u8-is-cased: New file.
36687
36688         Tests for module 'unicase/u32-is-casefolded'.
36689         * modules/unicase/u32-is-casefolded-tests: New file.
36690         * tests/unicase/test-u32-is-casefolded.c: New file.
36691
36692         Tests for module 'unicase/u16-is-casefolded'.
36693         * modules/unicase/u16-is-casefolded-tests: New file.
36694         * tests/unicase/test-u16-is-casefolded.c: New file.
36695
36696         Tests for module 'unicase/u8-is-casefolded'.
36697         * modules/unicase/u8-is-casefolded-tests: New file.
36698         * tests/unicase/test-u8-is-casefolded.c: New file.
36699         * tests/unicase/test-is-casefolded.h: New file.
36700
36701         New module 'unicase/u32-is-casefolded'.
36702         * lib/unicase/u32-is-casefolded.c: New file.
36703         * modules/unicase/u32-is-casefolded: New file.
36704
36705         New module 'unicase/u16-is-casefolded'.
36706         * lib/unicase/u16-is-casefolded.c: New file.
36707         * modules/unicase/u16-is-casefolded: New file.
36708
36709         New module 'unicase/u8-is-casefolded'.
36710         * lib/unicase/u8-is-casefolded.c: New file.
36711         * modules/unicase/u8-is-casefolded: New file.
36712
36713         Tests for module 'unicase/u32-is-titlecase'.
36714         * modules/unicase/u32-is-titlecase-tests: New file.
36715         * tests/unicase/test-u32-is-titlecase.c: New file.
36716
36717         Tests for module 'unicase/u16-is-titlecase'.
36718         * modules/unicase/u16-is-titlecase-tests: New file.
36719         * tests/unicase/test-u16-is-titlecase.c: New file.
36720
36721         Tests for module 'unicase/u8-is-titlecase'.
36722         * modules/unicase/u8-is-titlecase-tests: New file.
36723         * tests/unicase/test-u8-is-titlecase.c: New file.
36724         * tests/unicase/test-is-titlecase.h: New file.
36725
36726         New module 'unicase/u32-is-titlecase'.
36727         * lib/unicase/u32-is-titlecase.c: New file.
36728         * modules/unicase/u32-is-titlecase: New file.
36729
36730         New module 'unicase/u16-is-titlecase'.
36731         * lib/unicase/u16-is-titlecase.c: New file.
36732         * modules/unicase/u16-is-titlecase: New file.
36733
36734         New module 'unicase/u8-is-titlecase'.
36735         * lib/unicase/u8-is-titlecase.c: New file.
36736         * modules/unicase/u8-is-titlecase: New file.
36737
36738         Tests for module 'unicase/u32-is-lowercase'.
36739         * modules/unicase/u32-is-lowercase-tests: New file.
36740         * tests/unicase/test-u32-is-lowercase.c: New file.
36741
36742         Tests for module 'unicase/u16-is-lowercase'.
36743         * modules/unicase/u16-is-lowercase-tests: New file.
36744         * tests/unicase/test-u16-is-lowercase.c: New file.
36745
36746         Tests for module 'unicase/u8-is-lowercase'.
36747         * modules/unicase/u8-is-lowercase-tests: New file.
36748         * tests/unicase/test-u8-is-lowercase.c: New file.
36749         * tests/unicase/test-is-lowercase.h: New file.
36750
36751         New module 'unicase/u32-is-lowercase'.
36752         * lib/unicase/u32-is-lowercase.c: New file.
36753         * modules/unicase/u32-is-lowercase: New file.
36754
36755         New module 'unicase/u16-is-lowercase'.
36756         * lib/unicase/u16-is-lowercase.c: New file.
36757         * modules/unicase/u16-is-lowercase: New file.
36758
36759         New module 'unicase/u8-is-lowercase'.
36760         * lib/unicase/u8-is-lowercase.c: New file.
36761         * modules/unicase/u8-is-lowercase: New file.
36762
36763         Tests for module 'unicase/u32-is-uppercase'.
36764         * modules/unicase/u32-is-uppercase-tests: New file.
36765         * tests/unicase/test-u32-is-uppercase.c: New file.
36766
36767         Tests for module 'unicase/u16-is-uppercase'.
36768         * modules/unicase/u16-is-uppercase-tests: New file.
36769         * tests/unicase/test-u16-is-uppercase.c: New file.
36770
36771         Tests for module 'unicase/u8-is-uppercase'.
36772         * modules/unicase/u8-is-uppercase-tests: New file.
36773         * tests/unicase/test-u8-is-uppercase.c: New file.
36774         * tests/unicase/test-is-uppercase.h: New file.
36775
36776         New module 'unicase/u32-is-uppercase'.
36777         * lib/unicase/u32-is-uppercase.c: New file.
36778         * modules/unicase/u32-is-uppercase: New file.
36779
36780         New module 'unicase/u16-is-uppercase'.
36781         * lib/unicase/u16-is-uppercase.c: New file.
36782         * modules/unicase/u16-is-uppercase: New file.
36783
36784         New module 'unicase/u8-is-uppercase'.
36785         * lib/unicase/u8-is-uppercase.c: New file.
36786         * modules/unicase/u8-is-uppercase: New file.
36787
36788         New module 'unicase/u32-is-invariant'.
36789         * lib/unicase/u32-is-invariant.c: New file.
36790         * modules/unicase/u32-is-invariant: New file.
36791
36792         New module 'unicase/u16-is-invariant'.
36793         * lib/unicase/u16-is-invariant.c: New file.
36794         * modules/unicase/u16-is-invariant: New file.
36795
36796         New module 'unicase/u8-is-invariant'.
36797         * lib/unicase/u8-is-invariant.c: New file.
36798         * lib/unicase/invariant.h: New file.
36799         * lib/unicase/u-is-invariant.h: New file.
36800         * modules/unicase/u8-is-invariant: New file.
36801
36802         Tests for module 'unicase/u32-casecoll'.
36803         * modules/unicase/u32-casecoll-tests: New file.
36804         * tests/unicase/test-u32-casecoll.c: New file.
36805
36806         Tests for module 'unicase/u16-casecoll'.
36807         * modules/unicase/u16-casecoll-tests: New file.
36808         * tests/unicase/test-u16-casecoll.c: New file.
36809
36810         Tests for module 'unicase/u8-casecoll'.
36811         * modules/unicase/u8-casecoll-tests: New file.
36812         * tests/unicase/test-u8-casecoll.c: New file.
36813
36814         New module 'unicase/u32-casecoll'.
36815         * lib/unicase/u32-casecoll.c: New file.
36816         * modules/unicase/u32-casecoll: New file.
36817
36818         New module 'unicase/u16-casecoll'.
36819         * lib/unicase/u16-casecoll.c: New file.
36820         * modules/unicase/u16-casecoll: New file.
36821
36822         New module 'unicase/u8-casecoll'.
36823         * lib/unicase/u8-casecoll.c: New file.
36824         * lib/unicase/u-casecoll.h: New file.
36825         * modules/unicase/u8-casecoll: New file.
36826
36827         New module 'unicase/u32-casexfrm'.
36828         * lib/unicase/u32-casexfrm.c: New file.
36829         * modules/unicase/u32-casexfrm: New file.
36830
36831         New module 'unicase/u16-casexfrm'.
36832         * lib/unicase/u16-casexfrm.c: New file.
36833         * modules/unicase/u16-casexfrm: New file.
36834
36835         New module 'unicase/u8-casexfrm'.
36836         * lib/unicase/u8-casexfrm.c: New file.
36837         * lib/unicase/u-casexfrm.h: New file.
36838         * modules/unicase/u8-casexfrm: New file.
36839
36840         Tests for module 'unicase/u32-casecmp'.
36841         * modules/unicase/u32-casecmp-tests: New file.
36842         * tests/unicase/test-u32-casecmp.c: New file.
36843
36844         Tests for module 'unicase/u16-casecmp'.
36845         * modules/unicase/u16-casecmp-tests: New file.
36846         * tests/unicase/test-u16-casecmp.c: New file.
36847
36848         Tests for module 'unicase/u8-casecmp'.
36849         * modules/unicase/u8-casecmp-tests: New file.
36850         * tests/unicase/test-u8-casecmp.c: New file.
36851         * tests/unicase/test-casecmp.h: New file.
36852
36853         New module 'unicase/u32-casecmp'.
36854         * lib/unicase/u32-casecmp.c: New file.
36855         * modules/unicase/u32-casecmp: New file.
36856
36857         New module 'unicase/u16-casecmp'.
36858         * lib/unicase/u16-casecmp.c: New file.
36859         * modules/unicase/u16-casecmp: New file.
36860
36861         New module 'unicase/u8-casecmp'.
36862         * lib/unicase/u8-casecmp.c: New file.
36863         * lib/unicase/u-casecmp.h: New file.
36864         * modules/unicase/u8-casecmp: New file.
36865
36866         Tests for module 'unicase/u32-casefold'.
36867         * modules/unicase/u32-casefold-tests: New file.
36868         * tests/unicase/test-u32-casefold.c: New file.
36869
36870         Tests for module 'unicase/u16-casefold'.
36871         * modules/unicase/u16-casefold-tests: New file.
36872         * tests/unicase/test-u16-casefold.c: New file.
36873
36874         Tests for module 'unicase/u8-casefold'.
36875         * modules/unicase/u8-casefold-tests: New file.
36876         * tests/unicase/test-u8-casefold.c: New file.
36877
36878         New module 'unicase/u32-casefold'.
36879         * lib/unicase/u32-casefold.c: New file.
36880         * modules/unicase/u32-casefold: New file.
36881
36882         New module 'unicase/u16-casefold'.
36883         * lib/unicase/u16-casefold.c: New file.
36884         * modules/unicase/u16-casefold: New file.
36885
36886         New module 'unicase/u8-casefold'.
36887         * lib/unicase/u8-casefold.c: New file.
36888         * lib/unicase/u-casefold.h: New file.
36889         * modules/unicase/u8-casefold: New file.
36890
36891         New module 'unicase/tocasefold'.
36892         * lib/unicase/casefold.h: New file.
36893         * lib/unicase/tocasefold.c: New file.
36894         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
36895         * modules/unicase/tocasefold: New file.
36896
36897         Tests for module 'unicase/u32-totitle'.
36898         * modules/unicase/u32-totitle-tests: New file.
36899         * tests/unicase/test-u32-totitle.c: New file.
36900
36901         Tests for module 'unicase/u16-totitle'.
36902         * modules/unicase/u16-totitle-tests: New file.
36903         * tests/unicase/test-u16-totitle.c: New file.
36904
36905         Tests for module 'unicase/u8-totitle'.
36906         * modules/unicase/u8-totitle-tests: New file.
36907         * tests/unicase/test-u8-totitle.c: New file.
36908
36909         New module 'unicase/u32-totitle'.
36910         * lib/unicase/u32-totitle.c: New file.
36911         * modules/unicase/u32-totitle: New file.
36912
36913         New module 'unicase/u16-totitle'.
36914         * lib/unicase/u16-totitle.c: New file.
36915         * modules/unicase/u16-totitle: New file.
36916
36917         New module 'unicase/u8-totitle'.
36918         * lib/unicase/u8-totitle.c: New file.
36919         * lib/unicase/u-totitle.h: New file.
36920         * modules/unicase/u8-totitle: New file.
36921
36922         Tests for module 'unicase/u32-tolower'.
36923         * modules/unicase/u32-tolower-tests: New file.
36924         * tests/unicase/test-u32-tolower.c: New file.
36925
36926         Tests for module 'unicase/u16-tolower'.
36927         * modules/unicase/u16-tolower-tests: New file.
36928         * tests/unicase/test-u16-tolower.c: New file.
36929
36930         Tests for module 'unicase/u8-tolower'.
36931         * modules/unicase/u8-tolower-tests: New file.
36932         * tests/unicase/test-u8-tolower.c: New file.
36933
36934         New module 'unicase/u32-tolower'.
36935         * lib/unicase/u32-tolower.c: New file.
36936         * modules/unicase/u32-tolower: New file.
36937
36938         New module 'unicase/u16-tolower'.
36939         * lib/unicase/u16-tolower.c: New file.
36940         * modules/unicase/u16-tolower: New file.
36941
36942         New module 'unicase/u8-tolower'.
36943         * lib/unicase/u8-tolower.c: New file.
36944         * modules/unicase/u8-tolower: New file.
36945
36946         Tests for module 'unicase/u32-toupper'.
36947         * modules/unicase/u32-toupper-tests: New file.
36948         * tests/unicase/test-u32-toupper.c: New file.
36949
36950         Tests for module 'unicase/u16-toupper'.
36951         * modules/unicase/u16-toupper-tests: New file.
36952         * tests/unicase/test-u16-toupper.c: New file.
36953
36954         Tests for module 'unicase/u8-toupper'.
36955         * modules/unicase/u8-toupper-tests: New file.
36956         * tests/unicase/test-u8-toupper.c: New file.
36957
36958         New module 'unicase/u32-toupper'.
36959         * lib/unicase/u32-toupper.c: New file.
36960         * modules/unicase/u32-toupper: New file.
36961
36962         New module 'unicase/u16-toupper'.
36963         * lib/unicase/u16-toupper.c: New file.
36964         * modules/unicase/u16-toupper: New file.
36965
36966         New module 'unicase/u8-toupper'.
36967         * lib/unicase/u8-toupper.c: New file.
36968         * modules/unicase/u8-toupper: New file.
36969
36970         New module 'unicase/u32-casemap'.
36971         * lib/unicase/u32-casemap.c: New file.
36972         * modules/unicase/u32-casemap: New file.
36973
36974         New module 'unicase/u16-casemap'.
36975         * lib/unicase/u16-casemap.c: New file.
36976         * modules/unicase/u16-casemap: New file.
36977
36978         New module 'unicase/u8-casemap'.
36979         * lib/unicase/unicasemap.h: New file.
36980         * lib/unicase/u8-casemap.c: New file.
36981         * lib/unicase/u-casemap.h: New file.
36982         * modules/unicase/u8-casemap: New file.
36983
36984         New module 'unicase/special-casing'.
36985         * lib/unicase/special-casing.h: New file.
36986         * lib/unicase/special-casing.c: New file.
36987         * lib/unicase/special-casing-table.gperf: New file, generated by
36988         gen-uni-tables.c.
36989         * modules/unicase/special-casing: New file.
36990
36991         Tests for module 'unicase/locale-language'.
36992         * modules/unicase/locale-language-tests: New file.
36993         * tests/unicase/test-locale-language.sh: New file.
36994         * tests/unicase/test-locale-language.c: New file.
36995
36996         New module 'unicase/locale-language'.
36997         * lib/unicase/locale-language.c: New file.
36998         * lib/unicase/locale-languages.gperf: New file.
36999         * modules/unicase/locale-language: New file.
37000
37001         Generate more tables for case conversion and case folding.
37002         * lib/gen-uni-tables.c (SCC_*): New enum items.
37003         (struct special_casing_rule): New type.
37004         (casing_rules, num_casing_rules, allocated_casing_rules): New
37005         variables.
37006         (add_casing_rule, fill_casing_rules): New functions.
37007         (struct casefold_rule): New type.
37008         (casefolding_rules, num_casefolding_rules,
37009         allocated_casefolding_rules): New variables.
37010         (fill_casefolding_rules): New function.
37011         (unicode_casefold): New variable.
37012         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
37013         sort_casing_rules, output_casing_rules): New functions.
37014         (main): Accept to more arguments: SpecialCasing.txt and
37015         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
37016         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
37017         Output mapping for casefolding.
37018
37019         * lib/unicase.h: Include stdbool.h, uninorm.h.
37020         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
37021         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
37022         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
37023         arguments.
37024         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
37025         resultp arguments.
37026         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
37027         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
37028         resultp arguments.
37029         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
37030         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
37031         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
37032         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
37033         declarations.
37034         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
37035
37036 2009-03-08  Bruno Haible  <bruno@clisp.org>
37037
37038         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
37039         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
37040         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
37041         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
37042
37043 2009-03-07  Bruno Haible  <bruno@clisp.org>
37044
37045         Adjust u*_normcmp, u*_normcoll API.
37046         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
37047         u16_normcoll, u32_normcoll): Change failure conventions.
37048         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
37049         errno and return -1.
37050         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
37051
37052 2009-03-07  Bruno Haible  <bruno@clisp.org>
37053
37054         Tests for module 'uninorm/u32-normcoll'.
37055         * modules/uninorm/u32-normcoll-tests: New file.
37056         * tests/uninorm/test-u32-normcoll.c: New file.
37057
37058         Tests for module 'uninorm/u16-normcoll'.
37059         * modules/uninorm/u16-normcoll-tests: New file.
37060         * tests/uninorm/test-u16-normcoll.c: New file.
37061
37062         Tests for module 'uninorm/u8-normcoll'.
37063         * modules/uninorm/u8-normcoll-tests: New file.
37064         * tests/uninorm/test-u8-normcoll.c: New file.
37065
37066 2009-03-07  Bruno Haible  <bruno@clisp.org>
37067
37068         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
37069         tests/uninorm/test-u32-normcmp.c.
37070         * tests/uninorm/test-u32-normcmp.c: Include it.
37071         (test_nonascii): New function, extracted from main. Add some more
37072         tests.
37073         (main): Invoke test_ascii and test_nonascii.
37074         * modules/uninorm/u32-normcmp-tests (Files): Add
37075         tests/uninorm/test-u32-normcmp.h.
37076         (Depends-on): Remove uninorm/u32-normcmp.
37077
37078         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
37079         tests/uninorm/test-u16-normcmp.c.
37080         * tests/uninorm/test-u16-normcmp.c: Include it.
37081         (test_nonascii): New function, extracted from main. Add some more
37082         tests.
37083         (main): Invoke test_ascii and test_nonascii.
37084         * modules/uninorm/u16-normcmp-tests (Files): Add
37085         tests/uninorm/test-u16-normcmp.h.
37086         (Depends-on): Remove uninorm/u16-normcmp.
37087
37088         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
37089         tests/uninorm/test-u8-normcmp.c.
37090         * tests/uninorm/test-u8-normcmp.c: Include it.
37091         (test_nonascii): New function, extracted from main. Add some more
37092         tests.
37093         (main): Invoke test_ascii and test_nonascii.
37094         * modules/uninorm/u8-normcmp-tests (Files): Add
37095         tests/uninorm/test-u8-normcmp.h.
37096         (Depends-on): Remove uninorm/u8-normcmp.
37097
37098 2009-03-07  Bruno Haible  <bruno@clisp.org>
37099
37100         New module 'uninorm/u32-normcoll'.
37101         * lib/uninorm/u32-normcoll.c: New file.
37102         * modules/uninorm/u32-normcoll: New file.
37103
37104         New module 'uninorm/u16-normcoll'.
37105         * lib/uninorm/u16-normcoll.c: New file.
37106         * modules/uninorm/u16-normcoll: New file.
37107
37108         New module 'uninorm/u8-normcoll'.
37109         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
37110         declarations.
37111         * lib/uninorm/u8-normcoll.c: New file.
37112         * lib/uninorm/u-normcoll.h: New file.
37113         * modules/uninorm/u8-normcoll: New file.
37114
37115         New module 'uninorm/u32-normxfrm'.
37116         * lib/uninorm/u32-normxfrm.c: New file.
37117         * modules/uninorm/u32-normxfrm: New file.
37118
37119         New module 'uninorm/u16-normxfrm'.
37120         * lib/uninorm/u16-normxfrm.c: New file.
37121         * modules/uninorm/u16-normxfrm: New file.
37122
37123         New module 'uninorm/u8-normxfrm'.
37124         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
37125         declarations.
37126         * lib/uninorm/u8-normxfrm.c: New file.
37127         * lib/uninorm/u-normxfrm.h: New file.
37128         * modules/uninorm/u8-normxfrm: New file.
37129
37130 2009-03-07  Bruno Haible  <bruno@clisp.org>
37131
37132         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
37133         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
37134         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
37135
37136 2009-03-07  Bruno Haible  <bruno@clisp.org>
37137
37138         New module 'memxfrm'.
37139         * lib/memxfrm.h: New file.
37140         * lib/memxfrm.c: New file.
37141         * modules/memxfrm: New file.
37142
37143 2009-03-07  Bruno Haible  <bruno@clisp.org>
37144
37145         New module 'memcmp2'.
37146         * lib/memcmp2.h: New file.
37147         * lib/memcmp2.c: New file.
37148         * modules/memcmp2: New file.
37149
37150 2009-03-07  Bruno Haible  <bruno@clisp.org>
37151
37152         Tests for module 'uninorm/decomposing-form'.
37153         * modules/uninorm/decomposing-form-tests: New file.
37154         * tests/uninorm/test-decomposing-form.c: New file.
37155
37156         New module 'uninorm/decomposing-form'.
37157         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
37158         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
37159         Add 'decomposing_variant' field.
37160         * lib/uninorm/decomposing-form.c: New file.
37161         * lib/uninorm/nfc.c (uninorm_nfc): Update.
37162         * lib/uninorm/nfd.c (uninorm_nfd): Update.
37163         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
37164         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
37165         * modules/uninorm/decomposing-form: New file.
37166         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
37167         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
37168
37169 2009-03-07  Bruno Haible  <bruno@clisp.org>
37170
37171         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
37172         strings.
37173
37174 2009-03-06  Bruno Haible  <bruno@clisp.org>
37175
37176         Tests for module 'uninorm/u32-normcmp'.
37177         * tests/uninorm/test-u32-normcmp.c: New file.
37178         * modules/uninorm/u32-normcmp-tests: New file.
37179
37180         Tests for module 'uninorm/u16-normcmp'.
37181         * tests/uninorm/test-u16-normcmp.c: New file.
37182         * modules/uninorm/u16-normcmp-tests: New file.
37183
37184         Tests for module 'uninorm/u8-normcmp'.
37185         * tests/uninorm/test-u8-normcmp.c: New file.
37186         * modules/uninorm/u8-normcmp-tests: New file.
37187
37188         New module 'uninorm/u32-normcmp'.
37189         * lib/uninorm/u32-normcmp.c: New file.
37190         * modules/uninorm/u32-normcmp: New file.
37191
37192         New module 'uninorm/u16-normcmp'.
37193         * lib/uninorm/u16-normcmp.c: New file.
37194         * modules/uninorm/u16-normcmp: New file.
37195
37196         New module 'uninorm/u8-normcmp'.
37197         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
37198         declarations.
37199         * lib/uninorm/u8-normcmp.c: New file.
37200         * lib/uninorm/u-normcmp.h: New file.
37201         * modules/uninorm/u8-normcmp: New file.
37202
37203 2009-03-06  Bruno Haible  <bruno@clisp.org>
37204
37205         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
37206         Reported by Eric Blake.
37207
37208 2009-03-06  Eric Blake  <ebb9@byu.net>
37209             Bruno Haible  <bruno@clisp.org>
37210
37211         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
37212         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
37213         condition.
37214         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37215         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
37216         condition.
37217         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37218
37219 2009-03-06  Eric Blake  <ebb9@byu.net>
37220
37221         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
37222         to avoid compiler warnings.
37223         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
37224
37225 2009-03-05  Bruno Haible  <bruno@clisp.org>
37226
37227         * tests/test-ftell.c (main): Disable test beyond end of file on
37228         FreeMiNT.
37229         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37230
37231 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
37232
37233         * lib/filevercmp.c: Move hidden files up in ordering.
37234         * tests/test-filevercmp.c: Add tests for hidden files.
37235
37236 2009-03-04  Bruno Haible  <bruno@clisp.org>
37237
37238         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
37239         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
37240         AM_CFLAGS.
37241         Reported by Simon Josefsson.
37242
37243 2009-03-03  Bruno Haible  <bruno@clisp.org>
37244
37245         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
37246         Reported by Simon Josefsson.
37247
37248         * doc/ld-version-script.texi: Update node reference.
37249
37250 2009-03-03  Bruno Haible  <bruno@clisp.org>
37251
37252         * modules/visibility (License): Change to 'unlimited'.
37253         Suggested by Simon Josefsson.
37254
37255 2009-03-03  Jim Meyering  <meyering@redhat.com>
37256
37257         unlinkdir: cannot_unlink_dir may modify process state
37258         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
37259         it's neither thread-safe nor appropriate for use in a library.
37260
37261 2009-03-03  Eric Blake  <ebb9@byu.net>
37262
37263         test-closein: silence test under Darwin
37264         * tests/test-closein.sh: Ignore stderr from cat, since we don't
37265         care if it dies from EPIPE or EBADF.
37266
37267 2009-03-03  Bruno Haible  <bruno@clisp.org>
37268
37269         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
37270         earlier.
37271         * doc/visibility.texi: Fix @node and @section.
37272
37273 2009-03-03  Simon Josefsson  <simon@josefsson.org>
37274
37275         * doc/gnulib.texi: Link to sections for ld version script and
37276         visibility.
37277         * doc/visibility.texi: Add @node and @section.
37278         * modules/ld-version-script: New module.
37279         * m4/ld-version-script.m4: New file.
37280         * doc/ld-version-script.texi: New file.
37281
37282 2009-03-02  David Lutterkort  <lutter@redhat.com>
37283
37284         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
37285         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37286
37287 2009-03-02  Bruno Haible  <bruno@clisp.org>
37288
37289         * doc/visibility.texi: Mention libtool's -export-symbols option.
37290
37291 2009-03-02  Jim Meyering  <meyering@redhat.com>
37292
37293         announce-gen: new option: --no-print-checksums
37294         * build-aux/announce-gen (usage): Describe it.
37295         (print_checksums): Print a newline here, not in the [*] footnote.
37296         (main): Honor it.
37297
37298 2009-03-01  Bruno Haible  <bruno@clisp.org>
37299
37300         Use socklen_t in the native Windows replacements prototypes.
37301         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
37302         instead of 'int'.
37303         * lib/getsockopt.c (rpl_getsockopt): Likewise.
37304         * lib/setsockopt.c (rpl_setsockopt): Likewise.
37305         * modules/getsockopt (Depends-on): Add socklen.
37306         * modules/setsockopt (Depends-on): Add socklen.
37307
37308 2009-03-01  Bruno Haible  <bruno@clisp.org>
37309
37310         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
37311         least 4.2.
37312
37313 2009-03-01  Eric Blake  <ebb9@byu.net>
37314             Bruno Haible  <bruno@clisp.org>
37315
37316         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
37317         error messages.
37318         * lib/wait-process.c (wait_subprocess): Omit error message about
37319         deadly signal sent to the child of termsigp != NULL.
37320
37321 2009-03-01  Eric Blake  <ebb9@byu.net>
37322
37323         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
37324
37325 2009-03-01  Bruno Haible  <bruno@clisp.org>
37326
37327         Avoid a gcc warning.
37328         * tests/test-sched.c (b): Make global.
37329         Reported by Eric Blake.
37330
37331 2009-01-19  Martin Lambers  <marlam@marlam.de>
37332
37333         Provide POSIX semantics for socket timeout options on W32.
37334         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
37335         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
37336         * modules/setsockopt: Depend on sys_time module for struct timeval.
37337         * modules/getsockopt: Depend on sys_time module for struct timeval.
37338
37339 2009-03-01  Simon Josefsson  <simon@josefsson.org>
37340
37341         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
37342         __USE_GNU, for consistency with netdb.in.h.
37343         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37344
37345 2009-03-01  Bruno Haible  <bruno@clisp.org>
37346
37347         More support for FreeMiNT.
37348         * lib/fseeko.c (rpl_fseeko): Complete last commit.
37349         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37350
37351 2009-03-01  Bruno Haible  <bruno@clisp.org>
37352
37353         More support for FreeMiNT.
37354         * lib/fpurge.c (fpurge): Correct last commit.
37355         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37356
37357 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37358
37359         Fix unportable awk script in vc-list-files.
37360         * build-aux/vc-list-files: In the replacement awk script, use
37361         substr with a second argument of 1, not zero.
37362         Report by Simon Josefsson.
37363
37364 2009-02-28  Bruno Haible  <bruno@clisp.org>
37365
37366         More support for FreeMiNT.
37367         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
37368         to FreeMiNT today.
37369         * lib/fwriting.c (fwriting): Likewise.
37370         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
37371
37372 2009-02-28  Bruno Haible  <bruno@clisp.org>
37373
37374         * tests/test-freadseek.c (main): Disable test beyond end of file on
37375         FreeMiNT.
37376         * tests/test-ftello.c (main): Likewise.
37377         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37378
37379 2009-02-28  Bruno Haible  <bruno@clisp.org>
37380
37381         Add tentative support for FreeMiNT.
37382         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
37383         * lib/fpurge.c (fpurge): Likewise.
37384         * lib/freadable.c (freadable): Likewise.
37385         * lib/freading.c (freading): Likewise.
37386         * lib/freadptr.c (freadptr): Likewise.
37387         * lib/freadseek.c (freadptrinc): Likewise.
37388         * lib/fseeko.c (rpl_fseeko): Likewise.
37389         * lib/fseterr.c (fseterr): Likewise.
37390         * lib/fwritable.c (fwritable): Likewise.
37391         * lib/fwriting.c (fwriting): Likewise.
37392         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
37393         Hourihane.
37394         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37395
37396 2009-02-28  Bruno Haible  <bruno@clisp.org>
37397
37398         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
37399         SIGCHLD.
37400         Reported by Jim Meyering.
37401
37402 2009-02-28  Bruno Haible  <bruno@clisp.org>
37403
37404         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
37405         Mention the results of these tests on various platforms.
37406         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
37407         order.
37408         * doc/posix-functions/printf.texi: Likewise.
37409         * doc/posix-functions/snprintf.texi: Likewise.
37410         * doc/posix-functions/sprintf.texi: Likewise.
37411         * doc/posix-functions/vfprintf.texi: Likewise.
37412         * doc/posix-functions/vprintf.texi: Likewise.
37413         * doc/posix-functions/vsnprintf.texi: Likewise.
37414         * doc/posix-functions/vsprintf.texi: Likewise.
37415         * doc/glibc-functions/obstack_printf.texi: Likewise.
37416         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
37417
37418 2009-02-28  Bruno Haible  <bruno@clisp.org>
37419
37420         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
37421         Reported by Loïc Minier <lool@dooz.org>.
37422
37423 2009-02-27  Bruno Haible  <bruno@clisp.org>
37424
37425         * gnulib-tool (func_import): Make the sed expression used to create the
37426         sed script for updating the .gitignore file POSIX compliant.
37427         Reported by Eric Blake.
37428
37429 2009-02-27  Bruno Haible  <bruno@clisp.org>
37430
37431         * gnulib-tool (sed): Don't alias as "sed --posix".
37432         Reported by Eric Blake.
37433
37434 2009-02-27  Bruno Haible  <bruno@clisp.org>
37435
37436         Avoid test link errors.
37437         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
37438         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
37439         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
37440         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
37441         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37442
37443 2009-02-27  Bruno Haible  <bruno@clisp.org>
37444
37445         Avoid spurious "(cached)" in configure output.
37446         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
37447         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
37448         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37449         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37450         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37451         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
37452         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37453         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
37454         Reported by Eric Blake.
37455
37456 2009-02-27  Eric Blake  <ebb9@byu.net>
37457
37458         printf: fix regression in previous patch
37459         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
37460
37461 2009-02-27  Bruno Haible  <bruno@clisp.org>
37462
37463         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
37464         value.
37465         * lib/stdint.in.h: Likewise.
37466         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
37467
37468 2009-02-27  Eric Blake  <ebb9@byu.net>
37469
37470         doc: mention more functions added in cygwin 1.7.0
37471         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
37472         addition.
37473         * doc/posix-functions/open_wmemstream.texi: Likewise.
37474         * doc/posix-functions/wcsnlen.texi: Likewise.
37475         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37476         * doc/posix-functions/wcstod.texi: Likewise.
37477         * doc/posix-functions/wcstof.texi: Likewise.
37478         * doc/posix-functions/wcstoimax.texi: Likewise.
37479         * doc/posix-functions/wcstok.texi: Likewise.
37480         * doc/posix-functions/wcstoumax.texi: Likewise.
37481
37482         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
37483         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
37484         * doc/posix-functions/fprintf.texi: Update.
37485         * doc/posix-functions/printf.texi: Update.
37486         * doc/posix-functions/snprintf.texi: Update.
37487         * doc/posix-functions/sprintf.texi: Update.
37488         * doc/posix-functions/vfprintf.texi: Update.
37489         * doc/posix-functions/vprintf.texi: Update.
37490         * doc/posix-functions/vsnprintf.texi: Update.
37491         * doc/posix-functions/vsprintf.texi: Update.
37492         * doc/glibc-functions/obstack_printf.texi: Update.
37493         * doc/glibc-functions/obstack_vprintf.texi: Update.
37494
37495 2009-02-26  Eric Blake  <ebb9@byu.net>
37496
37497         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
37498         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
37499         compilation bug by using runtime conversion.
37500         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
37501         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
37502         * modules/ceill-tests (Files): Use nan.h.
37503         * modules/floorl-tests (Files): Likewise.
37504         * modules/frexpl-tests (Files): Likewise.
37505         * modules/isnanl-tests (Files): Likewise.
37506         * modules/ldexpl-tests (Files): Likewise.
37507         * modules/roundl-tests (Files): Likewise.
37508         * modules/truncl-tests (Files): Likewise.
37509         * tests/test-ceill.c (main): Use a working NaN.
37510         * tests/test-floorl.c (main): Likewise.
37511         * tests/test-frexpl.c (main): Likewise.
37512         * tests/test-isnan.c (test_long_double): Likewise.
37513         * tests/test-isnanl.h (main): Likewise.
37514         * tests/test-ldexpl.h (main): Likewise.
37515         * tests/test-roundl.h (main): Likewise.
37516         * tests/test-truncl.h (main): Likewise.
37517         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
37518
37519 2009-02-26  Eric Blake  <ebb9@byu.net>
37520             Bruno Haible  <bruno@clisp.org>
37521
37522         Work around a *printf bug with %ls on Solaris.
37523         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
37524         precision is specified, sprintf stops converting the wide string
37525         argument when the number of bytes that have been produced by this
37526         conversion equals or exceeds the precision.
37527         * doc/posix-functions/fprintf.texi: Update.
37528         * doc/posix-functions/printf.texi: Update.
37529         * doc/posix-functions/snprintf.texi: Update.
37530         * doc/posix-functions/sprintf.texi: Update.
37531         * doc/posix-functions/vfprintf.texi: Update.
37532         * doc/posix-functions/vprintf.texi: Update.
37533         * doc/posix-functions/vsnprintf.texi: Update.
37534         * doc/posix-functions/vsprintf.texi: Update.
37535         * doc/glibc-functions/obstack_printf.texi: Update.
37536         * doc/glibc-functions/obstack_vprintf.texi: Update.
37537
37538 2009-02-26  Eric Blake  <ebb9@byu.net>
37539
37540         stdlib: favor compiler check of random.h
37541         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
37542         to avoid an ObjC random.h installed by Swarm.
37543
37544 2009-02-26  Bruno Haible  <bruno@clisp.org>
37545
37546         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
37547         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
37548         Reported by Gary V. Vaughan <gary@gnu.org>.
37549
37550 2009-02-26  Bruno Haible  <bruno@clisp.org>
37551
37552         Fix *printf behaviour regarding the %ls directive.
37553         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
37554         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
37555         NEED_PRINTF_DIRECTIVE_LS.
37556         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
37557         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37558         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37559         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
37560         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
37561         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
37562         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37563         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37564         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37565         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37566         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37567         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
37568         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37569         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37570         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37571         * doc/posix-functions/fprintf.texi: Update.
37572         * doc/posix-functions/printf.texi: Update.
37573         * doc/posix-functions/snprintf.texi: Update.
37574         * doc/posix-functions/sprintf.texi: Update.
37575         * doc/posix-functions/vfprintf.texi: Update.
37576         * doc/posix-functions/vprintf.texi: Update.
37577         * doc/posix-functions/vsnprintf.texi: Update.
37578         * doc/posix-functions/vsprintf.texi: Update.
37579         * doc/glibc-functions/obstack_printf.texi: Update.
37580         * doc/glibc-functions/obstack_vprintf.texi: Update.
37581         Reported by Eric Blake.
37582
37583 2009-02-25  Bruno Haible  <bruno@clisp.org>
37584
37585         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
37586         with known value.
37587         Reported by Gary V. Vaughan <gary@gnu.org>.
37588
37589 2009-02-25  Bruno Haible  <bruno@clisp.org>
37590
37591         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
37592         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
37593         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
37594         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
37595         Reported by Gary V. Vaughan <gary@gnu.org>.
37596
37597 2009-02-25  Bruno Haible  <bruno@clisp.org>
37598
37599         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
37600         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
37601         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
37602         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
37603         Reported by Gary V. Vaughan <gary@gnu.org>.
37604
37605 2009-02-25  Eric Blake  <ebb9@byu.net>
37606
37607         tests: skip fseek/ftell tests if ungetc is broken
37608         * m4/ungetc.m4: New file.
37609         * modules/fseek-tests: Split test, so ungetc dependency is
37610         separate from rest of test.
37611         * modules/fseeko-tests: Likewise.
37612         * modules/ftell-tests: Likewise.
37613         * modules/ftello-tests: Likewise.
37614         * tests/test-fseek.c (main): Isolate ungetc dependency.
37615         * tests/test-fseeko.c (main): Likewise.
37616         * tests/test-ftell.c (main): Likewise.
37617         * tests/test-ftello.c (main): Likewise.
37618         * tests/test-fseek2.sh: New file.
37619         * tests/test-fseeko2.sh: Likewise.
37620         * tests/test-ftell2.sh: Likewise.
37621         * tests/test-ftello2.sh: Likewise.
37622
37623 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
37624
37625         test-getaddrinfo: fix usage of skip return code 77
37626         * tests/test-gettaddrinfo.c: Return skip code 77 only
37627         for first occurance of skip (4x77 is not 77)
37628
37629 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
37630
37631         strtod: avoid C99 decl-after-statement
37632         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
37633
37634 2009-02-24  Eric Blake  <ebb9@byu.net>
37635
37636         strtod: detect HP-UX 11.31 bug
37637         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
37638         Reported by Gary V. Vaughan.
37639
37640 2009-02-23  Bruno Haible  <bruno@clisp.org>
37641
37642         Fix invalid read past end of memory block.
37643         * lib/vasnprintf.c (DCHAR_SET): Define.
37644         (local_wcslen): Define only when needed.
37645         (local_strnlen, local_wcsnlen): New functions.
37646         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
37647         directives that involve a conversion ourselves.
37648         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
37649         wcsnlen, mbrtowc, wcrtomb.
37650         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
37651         * tests/test-vasprintf-posix.c (test_function): Likewise.
37652         * tests/test-snprintf-posix.h (test_function): Likewise.
37653         * tests/test-sprintf-posix.h (test_function): Likewise.
37654         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37655
37656 2009-02-22  Bruno Haible  <bruno@clisp.org>
37657
37658         Implement new clarified decomposition of Hangul syllables.
37659         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
37660         of type LTV, return only a pairwise decomposition.
37661         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
37662         Likewise.
37663         * tests/uninorm/test-decomposition.c (main): Updated expected result.
37664         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
37665         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
37666
37667 2009-02-22  Bruno Haible  <bruno@clisp.org>
37668
37669         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
37670         zero-length results and shrink excess allocated memory.
37671         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
37672         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
37673         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
37674         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
37675         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
37676         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
37677         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
37678         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
37679         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
37680         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
37681         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
37682         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
37683
37684 2009-02-21  Bruno Haible  <bruno@clisp.org>
37685
37686         * doc/gnulib.texi: Include safe-alloc.texi earlier.
37687         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
37688         spaces after a period. Put a space between a macro name and its
37689         argument list. Trivial rewordings.
37690         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
37691         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
37692         (main): Return 0 explicitly.
37693
37694 2009-02-21  Bruno Haible  <bruno@clisp.org>
37695
37696         Tests for module 'uninorm/filter'.
37697         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
37698         * modules/uninorm/filter-tests: New file.
37699
37700         New module 'uninorm/filter'.
37701         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
37702         uninorm_filter_flush, uninorm_filter_free): New declarations.
37703         * lib/uninorm/uninorm-filter.c: New file.
37704         * modules/uninorm/filter: New file.
37705
37706 2009-02-21  Bruno Haible  <bruno@clisp.org>
37707
37708         Tests for module 'uninorm/nfkc'.
37709         * tests/uninorm/test-nfkc.c: New file.
37710         * tests/uninorm/test-u8-nfkc.c: New file.
37711         * tests/uninorm/test-u16-nfkc.c: New file.
37712         * tests/uninorm/test-u32-nfkc.c: New file.
37713         * tests/uninorm/test-u32-nfkc-big.sh: New file.
37714         * tests/uninorm/test-u32-nfkc-big.c: New file.
37715         * modules/uninorm/nfkc-tests: New file.
37716
37717         New module 'uninorm/nfkc'.
37718         * lib/uninorm/nfkc.c: New file.
37719         * modules/uninorm/nfkc: New file.
37720
37721         Tests for module 'uninorm/nfkd'.
37722         * tests/uninorm/test-nfkd.c: New file.
37723         * tests/uninorm/test-u8-nfkd.c: New file.
37724         * tests/uninorm/test-u16-nfkd.c: New file.
37725         * tests/uninorm/test-u32-nfkd.c: New file.
37726         * tests/uninorm/test-u32-nfkd-big.sh: New file.
37727         * tests/uninorm/test-u32-nfkd-big.c: New file.
37728         * modules/uninorm/nfkd-tests: New file.
37729
37730         New module 'uninorm/nfkd'.
37731         * lib/uninorm/nfkd.c: New file.
37732         * modules/uninorm/nfkd: New file.
37733
37734         Tests for module 'uninorm/nfc'.
37735         * tests/uninorm/test-nfc.c: New file.
37736         * tests/uninorm/test-u8-nfc.c: New file.
37737         * tests/uninorm/test-u16-nfc.c: New file.
37738         * tests/uninorm/test-u32-nfc.c: New file.
37739         * tests/uninorm/test-u32-nfc-big.sh: New file.
37740         * tests/uninorm/test-u32-nfc-big.c: New file.
37741         * modules/uninorm/nfc-tests: New file.
37742
37743         New module 'uninorm/nfc'.
37744         * lib/uninorm/nfc.c: New file.
37745         * modules/uninorm/nfc: New file.
37746
37747         Tests for module 'uninorm/nfd'.
37748         * tests/uninorm/test-nfd.c: New file.
37749         * tests/uninorm/test-u8-nfd.c: New file.
37750         * tests/uninorm/test-u16-nfd.c: New file.
37751         * tests/uninorm/test-u32-nfd.c: New file.
37752         * tests/uninorm/test-u32-nfd-big.sh: New file.
37753         * tests/uninorm/test-u32-nfd-big.c: New file.
37754         * tests/uninorm/test-u32-normalize-big.h: New file.
37755         * tests/uninorm/test-u32-normalize-big.c: New file.
37756         * tests/uninorm/NormalizationTest.txt: New file, created from
37757         Unicode 5.1.0 NormalizationTest.txt.
37758         * modules/uninorm/nfd-tests: New file.
37759
37760         New module 'uninorm/nfd'.
37761         * lib/uninorm/nfd.c: New file.
37762         * modules/uninorm/nfd: New file.
37763
37764         New module 'uninorm/u32-normalize'.
37765         * lib/uninorm/u32-normalize.c: New file.
37766         * modules/uninorm/u32-normalize: New file.
37767
37768         New module 'uninorm/u16-normalize'.
37769         * lib/uninorm/u16-normalize.c: New file.
37770         * modules/uninorm/u16-normalize: New file.
37771
37772         New module 'uninorm/u8-normalize'.
37773         * lib/uninorm/u8-normalize.c: New file.
37774         * lib/uninorm/normalize-internal.h: New file.
37775         * lib/uninorm/u-normalize-internal.h: New file.
37776         * modules/uninorm/u8-normalize: New file.
37777
37778         New module 'uninorm/decompose-internal'.
37779         * lib/uninorm/decompose-internal.c: New file.
37780         * modules/uninorm/decompose-internal: New file.
37781
37782         Tests for module 'uninorm/composition'.
37783         * tests/uninorm/test-composition.c: New file.
37784         * modules/uninorm/composition-tests: New file.
37785
37786         New module 'uninorm/composition'.
37787         * lib/uninorm/composition.c: New file.
37788         * lib/uninorm/composition-table.gperf: New file, generated by
37789         gen-uni-tables.
37790         * modules/uninorm/composition: New file.
37791
37792         Tests for module 'uninorm/compat-decomposition'.
37793         * tests/uninorm/test-compat-decomposition.c: New file.
37794         * modules/uninorm/compat-decomposition-tests: New file.
37795
37796         New module 'uninorm/compat-decomposition'.
37797         * lib/uninorm/decompose-internal.h: New file.
37798         * lib/uninorm/compat-decomposition.c: New file.
37799         * modules/uninorm/compat-decomposition: New file.
37800
37801         Tests for module 'uninorm/canonical-decomposition'.
37802         * tests/uninorm/test-canonical-decomposition.c: New file.
37803         * modules/uninorm/canonical-decomposition-tests: New file.
37804
37805         New module 'uninorm/canonical-decomposition'.
37806         * lib/uninorm/canonical-decomposition.c: New file.
37807         * modules/uninorm/canonical-decomposition: New file.
37808
37809         Tests for module 'uninorm/decomposition'.
37810         * tests/uninorm/test-decomposition.c: New file.
37811         * modules/uninorm/decomposition-tests: New file.
37812
37813         New module 'uninorm/decomposition'.
37814         * lib/uninorm/decomposition.c: New file.
37815         * modules/uninorm/decomposition: New file.
37816
37817         New module 'uninorm/decomposition-table'.
37818         * lib/uninorm/decomposition-table.h: New file.
37819         * lib/uninorm/decomposition-table.c: New file.
37820         * lib/uninorm/decomposition-table1.h: New file, generated by
37821         gen-uni-tables.
37822         * lib/uninorm/decomposition-table2.h: New file, generated by
37823         gen-uni-tables.
37824         * modules/uninorm/decomposition-table: New file.
37825
37826         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
37827         (UC_DECOMP_*): New enumeration items.
37828         (get_decomposition): New function.
37829         (struct decomp_table): New type.
37830         (output_decomposition, output_decomposition_tables): New functions.
37831         (unicode_composition_exclusions): New variable.
37832         (fill_composition_exclusions, debug_output_composition_tables): New
37833         functions.
37834         (main): Accept one more argument. Invoke fill_composition_exclusions.
37835         Output decomposition and composition tables.
37836
37837         New module 'uninorm/base'.
37838         * lib/uninorm.h: New file.
37839         * lib/unictype.h: Update comment.
37840         * modules/uninorm/base: New file.
37841
37842 2009-02-21  David Lutterkort  <lutter@redhat.com>
37843
37844         Tests for module 'safe-alloc'.
37845         * tests/test-safe-alloc.c: New file.
37846         * modules/safe-alloc-tests: New file.
37847
37848         New module 'safe-alloc'.
37849         * lib/safe-alloc.h: New file.
37850         * lib/safe-alloc.c: New file.
37851         * m4/safe-alloc.m4: New file.
37852         * modules/safe-alloc: New file.
37853         * doc/safe-alloc.texi: New file.
37854         * doc/gnulib.texi: Include it.
37855         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
37856         safe-alloc.
37857
37858 2009-02-18  Bruno Haible  <bruno@clisp.org>
37859
37860         Fix link error on non-glibc systems.
37861         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
37862         variable.
37863         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37864
37865 2009-02-18  Jim Meyering  <meyering@redhat.com>
37866
37867         fts: avoid used-uninitialized error due to recent change
37868         * lib/fts.c (fts_read): Guard uses of the new member,
37869         parent->fts_n_dirs_remaining, since it's not relevant for
37870         the parent of a directory specified on the command-line.
37871
37872 2009-02-17  James Youngman  <jay@gnu.org>
37873             Bruno Haible  <bruno@clisp.org>
37874
37875         * m4/include_next.m4: Reformulate comment.
37876
37877 2009-02-16  Jim Meyering  <meyering@redhat.com>
37878
37879         fts: add #if guards so that the fts_lgpl module still builds
37880         * lib/fts.c: Guard just-added hash-table-using parts with
37881         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
37882         Reported by Simon Josefsson.
37883
37884 2009-02-15  Bruno Haible  <bruno@clisp.org>
37885
37886         * modules/array-mergesort-tests: New file.
37887         * tests/test-array-mergesort.c: New file.
37888
37889         New module 'array-mergesort'.
37890         * modules/array-mergesort: New file.
37891         * lib/array-mergesort.h: New file.
37892
37893 2009-02-15  Bruno Haible  <bruno@clisp.org>
37894
37895         Fix 2009-02-07 commit.
37896         * lib/gen-uni-tables.c (output_predicate, output_category,
37897         output_combclass, output_bidi_category, output_decimal_digit,
37898         output_digit, output_numeric, output_mirror, output_scripts,
37899         output_ident_category, output_simple_mapping): Fix format directives.
37900         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
37901
37902 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
37903
37904         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
37905         fixes are available from IBM.
37906
37907 2009-02-13  Jim Meyering  <meyering@redhat.com>
37908
37909         fts: arrange not to stat non-directories in more cases
37910         This makes GNU find (when it doesn't need to stat each file)
37911         *much* more efficient at traversing reiserfs file systems.
37912         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
37913         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
37914         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
37915         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
37916         (leaf_optimization_applies): New function.
37917         (LCO_hash, LCO_compare): New helper functions.
37918         (link_count_optimize_ok): New function.
37919         (fts_stat): Initialize new member (if dir).
37920         (fts_read): Decrement parent's fts_n_dirs_remaining count if
37921         we've just stat'ed a directory.  Skip the stat call when possible.
37922         ---
37923         Note this AFS-related exchange:
37924         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
37925         and note find's pioctl call in find/fstype.c.
37926         But that is necessary only if you want to enable the
37927         optimization for AFS, and for now, I don't.
37928
37929         fts: move a function definition "up" (no semantic change)
37930         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
37931         "up" to precede upcoming use of a related function.
37932
37933 2009-02-11  Jim Meyering  <meyering@redhat.com>
37934
37935         fts: correct internal computation of nlinks (optimization-related)
37936         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
37937         whether the current entry is a directory, so don't test it.
37938
37939 2009-02-10  Bruno Haible  <bruno@clisp.org>
37940
37941         Tests for module 'uniwbrk/ulc-wordbreaks'.
37942         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
37943         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
37944         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
37945
37946         Tests for module 'uniwbrk/u32-wordbreaks'.
37947         * modules/uniwbrk/u32-wordbreaks-tests: New file.
37948         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
37949
37950         Tests for module 'uniwbrk/u16-wordbreaks'.
37951         * modules/uniwbrk/u16-wordbreaks-tests: New file.
37952         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
37953
37954         Tests for module 'uniwbrk/u8-wordbreaks'.
37955         * modules/uniwbrk/u8-wordbreaks-tests: New file.
37956         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
37957
37958 2009-02-10  Bruno Haible  <bruno@clisp.org>
37959
37960         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
37961         property.
37962         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
37963         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
37964         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
37965
37966 2009-02-10  Simon Josefsson  <simon@josefsson.org>
37967
37968         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
37969         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
37970
37971 2009-02-10  Bruno Haible  <bruno@clisp.org>
37972
37973         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37974         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37975         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37976         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37977         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37978         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37979
37980 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37981
37982         * lib/sockets.h (gl_fd_to_handle): New function.
37983
37984         * tests/test-sockets.c: Call gl_fd_to_handle.
37985
37986 2009-02-09  Bruno Haible  <bruno@clisp.org>
37987
37988         * doc/havelib.texi: Document the conventions on bi-arch systems.
37989
37990 2009-02-08  Bruno Haible  <bruno@clisp.org>
37991
37992         Document the AC_LIB_LINKFLAGS macro.
37993         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37994         * doc/gnulib.texi: Include it.
37995
37996 2009-02-08  Bruno Haible  <bruno@clisp.org>
37997
37998         Fix wrong order of sections, compared to TOC.
37999         * doc/gnulib.texi: Include relocatable-maint.texi after the
38000         "Regular expressions" node, not before.
38001
38002 2009-02-08  Bruno Haible  <bruno@clisp.org>
38003
38004         Tests for module 'unicase/totitle'.
38005         * modules/unicase/totitle-tests: New file.
38006
38007         Tests for module 'unicase/tolower'.
38008         * modules/unicase/tolower-tests: New file.
38009
38010         Tests for module 'unicase/toupper'.
38011         * modules/unicase/toupper-tests: New file.
38012         * tests/unicase/test-mapping-part1.h: New file.
38013         * tests/unicase/test-mapping-part2.h: New file.
38014
38015         New module 'unicase/totitle'.
38016         * modules/unicase/totitle: New file.
38017         * lib/unicase/totitle.c: New file.
38018
38019         New module 'unicase/tolower'.
38020         * modules/unicase/tolower: New file.
38021         * lib/unicase/tolower.c: New file.
38022
38023         New module 'unicase/toupper'.
38024         * modules/unicase/toupper: New file.
38025         * lib/unicase/toupper.c: New file.
38026         * lib/unicase/simple-mapping.h: New file.
38027
38028         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
38029         (mapping_table): New structure.
38030         (output_simple_mapping): New function.
38031         (main): Invoke output_simple_mapping_test and output_simple_mapping.
38032         * modules/gen-uni-tables (Description): Update.
38033         * lib/unicase/toupper.h: New file, automatically generated by
38034         gen-uni-tables.
38035         * lib/unicase/tolower.h: New file, automatically generated by
38036         gen-uni-tables.
38037         * lib/unicase/totitle.h: New file, automatically generated by
38038         gen-uni-tables.
38039         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
38040         gen-uni-tables.
38041         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
38042         gen-uni-tables.
38043         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
38044         gen-uni-tables.
38045
38046         New module 'unicase/base'.
38047         * modules/unicase/base: New file.
38048         * lib/unicase.h: New file.
38049
38050 2009-02-08  Bruno Haible  <bruno@clisp.org>
38051
38052         New module 'uniwbrk/ulc-wordbreaks'.
38053         * modules/uniwbrk/ulc-wordbreaks: New file.
38054         * lib/uniwbrk/ulc-wordbreaks.c: New file.
38055
38056         New module 'uniwbrk/u32-wordbreaks'.
38057         * modules/uniwbrk/u32-wordbreaks: New file.
38058         * lib/uniwbrk/u32-wordbreaks.c: New file.
38059
38060         New module 'uniwbrk/u16-wordbreaks'.
38061         * modules/uniwbrk/u16-wordbreaks: New file.
38062         * lib/uniwbrk/u16-wordbreaks.c: New file.
38063
38064         New module 'uniwbrk/u8-wordbreaks'.
38065         * modules/uniwbrk/u8-wordbreaks: New file.
38066         * lib/uniwbrk/u8-wordbreaks.c: New file.
38067         * lib/uniwbrk/u-wordbreaks.h: New file.
38068
38069         New module 'uniwbrk/table'.
38070         * modules/uniwbrk/table: New file.
38071         * lib/uniwbrk/wbrktable.h: New file.
38072         * lib/uniwbrk/wbrktable.c: New file.
38073
38074         New module 'uniwbrk/wordbreak-property'.
38075         * modules/uniwbrk/wordbreak-property: New file.
38076         * lib/uniwbrk/wordbreak-property.c: New file.
38077
38078         * lib/gen-uni-tables.c (WBP_*): New enum items.
38079         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
38080         (unicode_org_wbp): New variable.
38081         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
38082         New functions.
38083         (wbp_table): New structure.
38084         (output_wbp, output_wbrk_tables): New functions.
38085         (main): Accept additional argument. Invoke fill_org_wbp,
38086         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
38087         output_wbrk_tables.
38088         * modules/gen-uni-tables (Description): Update.
38089         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
38090         gen-uni-tables.
38091
38092         New module 'uniwbrk/base'.
38093         * modules/uniwbrk/base: New file.
38094         * lib/uniwbrk.h: New file.
38095
38096 2009-02-08  Bruno Haible  <bruno@clisp.org>
38097
38098         Update to Unicode 5.1.0.
38099         * lib/gen-uni-tables.c (is_property_alphabetic): Include
38100         U+2185..U+2188.
38101         (is_property_default_ignorable_code_point): Don't include characters
38102         of category Cc or Cs and not-a-characters.
38103         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
38104         U+0D79, U+109E, U+109F, U+A60C.
38105         * lib/unictype/bidi_of.h: Regenerated.
38106         * lib/unictype/blocks.h: Regenerated.
38107         * lib/unictype/categ_C.h: Regenerated.
38108         * lib/unictype/categ_Cf.h: Regenerated.
38109         * lib/unictype/categ_Cn.h: Regenerated.
38110         * lib/unictype/categ_L.h: Regenerated.
38111         * lib/unictype/categ_Ll.h: Regenerated.
38112         * lib/unictype/categ_Lm.h: Regenerated.
38113         * lib/unictype/categ_Lo.h: Regenerated.
38114         * lib/unictype/categ_Lu.h: Regenerated.
38115         * lib/unictype/categ_M.h: Regenerated.
38116         * lib/unictype/categ_Mc.h: Regenerated.
38117         * lib/unictype/categ_Me.h: Regenerated.
38118         * lib/unictype/categ_Mn.h: Regenerated.
38119         * lib/unictype/categ_N.h: Regenerated.
38120         * lib/unictype/categ_Nd.h: Regenerated.
38121         * lib/unictype/categ_Nl.h: Regenerated.
38122         * lib/unictype/categ_No.h: Regenerated.
38123         * lib/unictype/categ_P.h: Regenerated.
38124         * lib/unictype/categ_Pd.h: Regenerated.
38125         * lib/unictype/categ_Pe.h: Regenerated.
38126         * lib/unictype/categ_Pf.h: Regenerated.
38127         * lib/unictype/categ_Pi.h: Regenerated.
38128         * lib/unictype/categ_Po.h: Regenerated.
38129         * lib/unictype/categ_Ps.h: Regenerated.
38130         * lib/unictype/categ_S.h: Regenerated.
38131         * lib/unictype/categ_Sk.h: Regenerated.
38132         * lib/unictype/categ_Sm.h: Regenerated.
38133         * lib/unictype/categ_So.h: Regenerated.
38134         * lib/unictype/categ_of.h: Regenerated.
38135         * lib/unictype/combining.h: Regenerated.
38136         * lib/unictype/ctype_alnum.h: Regenerated.
38137         * lib/unictype/ctype_alpha.h: Regenerated.
38138         * lib/unictype/ctype_graph.h: Regenerated.
38139         * lib/unictype/ctype_lower.h: Regenerated.
38140         * lib/unictype/ctype_print.h: Regenerated.
38141         * lib/unictype/ctype_punct.h: Regenerated.
38142         * lib/unictype/ctype_upper.h: Regenerated.
38143         * lib/unictype/decdigit.h: Regenerated.
38144         * lib/unictype/digit.h: Regenerated.
38145         * lib/unictype/mirror.h: Regenerated.
38146         * lib/unictype/numeric.h: Regenerated.
38147         * lib/unictype/pr_alphabetic.h: Regenerated.
38148         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
38149         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
38150         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
38151         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
38152         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
38153         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
38154         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
38155         * lib/unictype/pr_combining.h: Regenerated.
38156         * lib/unictype/pr_dash.h: Regenerated.
38157         * lib/unictype/pr_decimal_digit.h: Regenerated.
38158         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
38159         * lib/unictype/pr_deprecated.h: Regenerated.
38160         * lib/unictype/pr_diacritic.h: Regenerated.
38161         * lib/unictype/pr_extender.h: Regenerated.
38162         * lib/unictype/pr_format_control.h: Regenerated.
38163         * lib/unictype/pr_grapheme_base.h: Regenerated.
38164         * lib/unictype/pr_grapheme_extend.h: Regenerated.
38165         * lib/unictype/pr_grapheme_link.h: Regenerated.
38166         * lib/unictype/pr_id_continue.h: Regenerated.
38167         * lib/unictype/pr_id_start.h: Regenerated.
38168         * lib/unictype/pr_ideographic.h: Regenerated.
38169         * lib/unictype/pr_ignorable_control.h: Regenerated.
38170         * lib/unictype/pr_lowercase.h: Regenerated.
38171         * lib/unictype/pr_math.h: Regenerated.
38172         * lib/unictype/pr_numeric.h: Regenerated.
38173         * lib/unictype/pr_other_alphabetic.h: Regenerated.
38174         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
38175         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
38176         * lib/unictype/pr_other_id_continue.h: Regenerated.
38177         * lib/unictype/pr_other_lowercase.h: Regenerated.
38178         * lib/unictype/pr_other_math.h: Regenerated.
38179         * lib/unictype/pr_punctuation.h: Regenerated.
38180         * lib/unictype/pr_sentence_terminal.h: Regenerated.
38181         * lib/unictype/pr_soft_dotted.h: Regenerated.
38182         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
38183         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
38184         * lib/unictype/pr_unified_ideograph.h: Regenerated.
38185         * lib/unictype/pr_uppercase.h: Regenerated.
38186         * lib/unictype/pr_xid_continue.h: Regenerated.
38187         * lib/unictype/pr_xid_start.h: Regenerated.
38188         * lib/unictype/pr_zero_width.h: Regenerated.
38189         * lib/unictype/scripts.h: Regenerated.
38190         * lib/unictype/scripts_byname.gperf: Regenerated.
38191         * lib/unictype/sy_java_ident.h: Regenerated.
38192         * lib/unilbrk/lbrkprop1.h: Regenerated.
38193         * lib/unilbrk/lbrkprop2.h: Regenerated.
38194         * tests/unictype/test-categ_C.c: Regenerated.
38195         * tests/unictype/test-categ_Cf.c: Regenerated.
38196         * tests/unictype/test-categ_Cn.c: Regenerated.
38197         * tests/unictype/test-categ_L.c: Regenerated.
38198         * tests/unictype/test-categ_Ll.c: Regenerated.
38199         * tests/unictype/test-categ_Lm.c: Regenerated.
38200         * tests/unictype/test-categ_Lo.c: Regenerated.
38201         * tests/unictype/test-categ_Lu.c: Regenerated.
38202         * tests/unictype/test-categ_M.c: Regenerated.
38203         * tests/unictype/test-categ_Mc.c: Regenerated.
38204         * tests/unictype/test-categ_Me.c: Regenerated.
38205         * tests/unictype/test-categ_Mn.c: Regenerated.
38206         * tests/unictype/test-categ_N.c: Regenerated.
38207         * tests/unictype/test-categ_Nd.c: Regenerated.
38208         * tests/unictype/test-categ_Nl.c: Regenerated.
38209         * tests/unictype/test-categ_No.c: Regenerated.
38210         * tests/unictype/test-categ_P.c: Regenerated.
38211         * tests/unictype/test-categ_Pd.c: Regenerated.
38212         * tests/unictype/test-categ_Pe.c: Regenerated.
38213         * tests/unictype/test-categ_Pf.c: Regenerated.
38214         * tests/unictype/test-categ_Pi.c: Regenerated.
38215         * tests/unictype/test-categ_Po.c: Regenerated.
38216         * tests/unictype/test-categ_Ps.c: Regenerated.
38217         * tests/unictype/test-categ_S.c: Regenerated.
38218         * tests/unictype/test-categ_Sk.c: Regenerated.
38219         * tests/unictype/test-categ_Sm.c: Regenerated.
38220         * tests/unictype/test-categ_So.c: Regenerated.
38221         * tests/unictype/test-ctype_alnum.c: Regenerated.
38222         * tests/unictype/test-ctype_alpha.c: Regenerated.
38223         * tests/unictype/test-ctype_graph.c: Regenerated.
38224         * tests/unictype/test-ctype_lower.c: Regenerated.
38225         * tests/unictype/test-ctype_print.c: Regenerated.
38226         * tests/unictype/test-ctype_punct.c: Regenerated.
38227         * tests/unictype/test-ctype_upper.c: Regenerated.
38228         * tests/unictype/test-decdigit.h: Regenerated.
38229         * tests/unictype/test-digit.h: Regenerated.
38230         * tests/unictype/test-numeric.h: Regenerated.
38231         * tests/unictype/test-pr_alphabetic.c: Regenerated.
38232         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
38233         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
38234         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
38235         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
38236         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
38237         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
38238         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
38239         * tests/unictype/test-pr_combining.c: Regenerated.
38240         * tests/unictype/test-pr_dash.c: Regenerated.
38241         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
38242         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
38243         * tests/unictype/test-pr_deprecated.c: Regenerated.
38244         * tests/unictype/test-pr_diacritic.c: Regenerated.
38245         * tests/unictype/test-pr_extender.c: Regenerated.
38246         * tests/unictype/test-pr_format_control.c: Regenerated.
38247         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
38248         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
38249         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
38250         * tests/unictype/test-pr_id_continue.c: Regenerated.
38251         * tests/unictype/test-pr_id_start.c: Regenerated.
38252         * tests/unictype/test-pr_ideographic.c: Regenerated.
38253         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
38254         * tests/unictype/test-pr_lowercase.c: Regenerated.
38255         * tests/unictype/test-pr_math.c: Regenerated.
38256         * tests/unictype/test-pr_numeric.c: Regenerated.
38257         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
38258         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
38259         Regenerated.
38260         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
38261         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
38262         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
38263         * tests/unictype/test-pr_other_math.c: Regenerated.
38264         * tests/unictype/test-pr_punctuation.c: Regenerated.
38265         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
38266         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
38267         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
38268         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
38269         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
38270         * tests/unictype/test-pr_uppercase.c: Regenerated.
38271         * tests/unictype/test-pr_xid_continue.c: Regenerated.
38272         * tests/unictype/test-pr_xid_start.c: Regenerated.
38273         * tests/unictype/test-pr_zero_width.c: Regenerated.
38274
38275         Update to Unicode 5.1.0.
38276         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
38277         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
38278         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
38279         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
38280         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
38281         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
38282         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
38283         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
38284         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
38285         (nonspacing_table_ind): Update.
38286         * tests/uniwidth/test-uc_width2.sh: Update expected result.
38287
38288         Update to Unicode 5.1.0.
38289         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
38290         code transform.
38291         * lib/uniname/uniname.c (unicode_character_name,
38292         unicode_name_character): Add the range 0x1Fxxx to the code transform.
38293         * lib/uniname/uninames.h: Regenerated.
38294         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
38295
38296 2009-02-07  Bruno Haible  <bruno@clisp.org>
38297
38298         Merge gen-ctype and gen-lbrk into a single program.
38299         * lib/gen-uni-tables.c: New file, incorporating
38300         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
38301         Add directory prefixes to the names of the generated files.
38302         * lib/unictype/gen-ctype.c: Remove file.
38303         * lib/unilbrk/gen-lbrk.c: Remove file.
38304         * modules/gen-uni-tables: New file.
38305         * modules/unictype/gen-ctype: Remove file.
38306         * modules/unilbrk/gen-lbrk: Remove file.
38307
38308 2009-02-07  Bruno Haible  <bruno@clisp.org>
38309
38310         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
38311
38312         New module 'unistr/u32-strcoll'.
38313         * modules/unistr/u32-strcoll: New file.
38314         * lib/unistr/u32-strcoll.c: New file.
38315
38316         New module 'unistr/u16-strcoll'.
38317         * modules/unistr/u16-strcoll: New file.
38318         * lib/unistr/u16-strcoll.c: New file.
38319
38320         New module 'unistr/u8-strcoll'.
38321         * modules/unistr/u8-strcoll: New file.
38322         * lib/unistr/u8-strcoll.c: New file.
38323         * lib/unistr/u-strcoll.h: New file.
38324
38325 2009-02-07  Bruno Haible  <bruno@clisp.org>
38326
38327         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
38328         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38329         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38330         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
38331         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
38332         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
38333
38334 2009-02-07  Bruno Haible  <bruno@clisp.org>
38335
38336         Make 64-bit clean.
38337         * lib/unictype/gen-ctype.c (output_predicate, output_category,
38338         output_combclass, output_bidi_category, output_decimal_digit,
38339         output_digit, output_numeric, output_mirror, output_scripts,
38340         output_ident_category): Use proper width specifier in format strings.
38341
38342 2009-02-07  Bruno Haible  <bruno@clisp.org>
38343
38344         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
38345         failure behaviour.
38346
38347 2009-02-07  Jim Meyering  <meyering@redhat.com>
38348
38349         regex: avoid compilation failure with upcoming gcc-4.4
38350         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
38351         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
38352         "... error: integer overflow in preprocessor expression".
38353
38354 2009-02-05  Ben Pfaff  <blp@gnu.org>
38355
38356         Fix link errors on Windows when close module is used.
38357         * modules/close: Add $(LIB_CLOSE) to Link section.
38358         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
38359         $(LIB_CLOSE) on Windows.
38360
38361 2009-02-05  Jim Meyering  <meyering@redhat.com>
38362
38363         still avoid unused-parameter warnings, but do it cleanly
38364         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
38365         (get_fs_usage): Cast to void instead.
38366         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
38367         (dev_from_mount_options, read_file_system_list): Cast to void.
38368         Prompted by Bruno Haible.
38369
38370 2009-02-04  Jim Meyering  <meyering@redhat.com>
38371
38372         fsusage.c: correct copyright year
38373         * lib/fsusage.c: Reflect year in which the change is pushed into
38374
38375         avoid misc. warnings
38376         * lib/fsusage.c (UNUSED_PARAM): Define.
38377         (get_fs_usage): Mark parameter "disk" as unused.
38378         * lib/getugroups.c (getgrent): Use "void" in prototype.
38379         * lib/mountlist.c: Mark unused parameters.
38380         (read_file_system_list): Declare a local with "const".
38381         * lib/nanosleep.c (getnow): Declare static.
38382         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
38383
38384         dirfd: set errno upon failure
38385         * lib/dirfd.c: Include <errno.h>.
38386         Set errno to ENOTSUP when returning -1.
38387         * modules/dirfd (Depends-on): Add errno.
38388         Suggested by John Kodis <kodis@comcast.net>.
38389
38390 2009-02-01  Bruno Haible  <bruno@clisp.org>
38391
38392         Don't assume sizeof (long) >= sizeof (void *).
38393         * lib/memcmp.c: Include stdint.h.
38394         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
38395         srcp2 to 'const byte *'.
38396         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
38397         types to uintptr_t.
38398         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
38399         * modules/memcmp (Depends-on): Add stdint.
38400         Reported by Ozkan Sezer <sezeroz@gmail.com>.
38401
38402 2009-01-30  Eric Blake  <ebb9@byu.net>
38403
38404         fix more require-before-expand issues
38405         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
38406         expand, AC_PROG_AWK.
38407         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
38408
38409 2009-01-28  Eric Blake  <ebb9@byu.net>
38410
38411         version-etc: use consistent URL formatting
38412         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
38413         Improve formatting.  Use fputs for string without %.
38414
38415 2009-01-28  Jim Meyering  <meyering@redhat.com>
38416
38417         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
38418         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
38419         "underquoted definition of NAME" from autoconf-2.59.
38420
38421 2009-01-28  Bruno Haible  <bruno@clisp.org>
38422
38423         * doc/gnulib.texi: Add "Obsolete modules" to index.
38424
38425 2009-01-28  Jim Meyering  <meyering@redhat.com>
38426
38427         useless-if-before-free: recognize more variants
38428         * build-aux/useless-if-before-free: Also recognize e.g.,
38429         if (NULL != p) free (p);
38430
38431 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
38432
38433         test-getaddrinfo: skip (don't fail) this test when there's no network
38434         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
38435         on the presumption that it means you lack network access.
38436
38437 2009-01-26  Jim Meyering  <meyering@redhat.com>
38438
38439         fflush: avoid warnings on modern systems
38440         * lib/fflush.c (rpl_fflush): Move declarations of locals,
38441         pos and result, into scopes where they're used.
38442
38443 2009-01-26  Eric Blake  <ebb9@byu.net>
38444
38445         Silence warning reintroduced by recent extensions patch.
38446         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
38447         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
38448         autoconf.
38449
38450         Backport improved autoconf semantics of AC_DEFUN_ONCE.
38451         * m4/00gnulib.m4: New file.
38452         * gnulib-tool (func_get_filelist): Always use it.
38453         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
38454         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
38455
38456 2009-01-25  Bruno Haible  <bruno@clisp.org>
38457
38458         Make test-quotearg work on MacOS X and AIX.
38459         * tests/test-quotearg.sh: New file.
38460         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
38461         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
38462         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
38463         include <libintl.h>.
38464         (fake_locale): Remove variable.
38465         (gettext, dgettext, dcgettext): Remove functions.
38466         (main): Instead of setting a fake locale, set a real locale. Call
38467         textdomain and bindtextdomain.
38468         * modules/quotearg-tests (Files): Add the new files.
38469         (Depends-on): Add gettext, setenv, unsetenv.
38470         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
38471         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
38472         Augment TESTS_ENVIRONMENT.
38473
38474 2009-01-25  Bruno Haible  <bruno@clisp.org>
38475
38476         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
38477         fr_FR.ISO8859-1 locale on MacOS X.
38478         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
38479         ja_JP.eucJP locale on MacOS X.
38480         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
38481         zh_CN.GB18030 locale on MacOS X.
38482
38483 2009-01-25  Bruno Haible  <bruno@clisp.org>
38484
38485         Avoid link errors on MacOS X 10.3.
38486         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
38487         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38488
38489 2009-01-25  Bruno Haible  <bruno@clisp.org>
38490
38491         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38492         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
38493         * modules/pipe (Files): Remove m4/posix_spawn.m4.
38494         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38495         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
38496         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38497         posix_spawnattr_init, posix_spawnattr_setsigmask,
38498         posix_spawnattr_setflags, posix_spawnattr_destroy.
38499
38500         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38501         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
38502         * modules/execute (Files): Remove m4/posix_spawn.m4.
38503         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38504         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38505         posix_spawnattr_init, posix_spawnattr_setsigmask,
38506         posix_spawnattr_setflags, posix_spawnattr_destroy.
38507
38508 2009-01-25  Bruno Haible  <bruno@clisp.org>
38509
38510         * lib/glthread/threadlib.c: Include <stdlib.h>.
38511
38512 2009-01-25  Bruno Haible  <bruno@clisp.org>
38513
38514         * lib/glthread/threadlib.c (dummy): New declaration.
38515
38516 2009-01-25  Bruno Haible  <bruno@clisp.org>
38517
38518         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
38519         multibyte characters also for the GB18030 encoding. Don't crash when
38520         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
38521
38522 2009-01-25  Bruno Haible  <bruno@clisp.org>
38523
38524         Avoid redefining 'struct random_data' on OSF/1 5.1.
38525         * lib/stdlib.in.h: Include <random.h> if it exists.
38526         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
38527         HAVE_RANDOM_H. Include <random.h> when testing whether
38528         'struct random_data' exists.
38529         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
38530
38531 2009-01-25  Bruno Haible  <bruno@clisp.org>
38532
38533         Don't install charset.alias on MacOS X >= 10.3.
38534         * lib/localcharset.c (DARWIN7): New macro.
38535         (get_charset_aliases): Hardcode the result for Darwin7.
38536         * modules/localcharset (install-exec-local): Don't install
38537         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
38538
38539 2009-01-25  Bruno Haible  <bruno@clisp.org>
38540
38541         Don't install charset.alias on mingw and Cygwin.
38542         * modules/localcharset (install-exec-local): Don't install
38543         charset.alias on mingw and Cygwin, if the file does not yet exist.
38544         The result for these platforms is hardcoded in localcharset.c.
38545
38546 2009-01-25  Bruno Haible  <bruno@clisp.org>
38547
38548         Make it possible again to use AC_GNU_SOURCE together with gnulib.
38549         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
38550         before requiring AC_USE_SYSTEM_EXTENSIONS.
38551
38552 2009-01-25  Jim Meyering  <meyering@redhat.com>
38553
38554         c-strtod: avoid warnings
38555         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
38556         "assignment discards qualifiers from pointer target type" warnings.
38557
38558 2009-01-24  Bruno Haible  <bruno@clisp.org>
38559
38560         Add support for non-UTF-8 locales on MacOS X.
38561         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
38562         canonical encodings. For Darwin 7 and newer, don't map traditional
38563         encodings to UTF-8.
38564         Reported by Vincent Lefevre <vincent@vinc17.org>
38565         at <http://savannah.gnu.org/bugs/?25235>.
38566
38567 2009-01-24  Bruno Haible  <bruno@clisp.org>
38568
38569         * doc/gnulib.texi (Obsolete modules): New section.
38570         Reported by Mike Frysinger <vapier@gentoo.org>.
38571
38572 2009-01-24  Bruno Haible  <bruno@clisp.org>
38573
38574         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
38575         (%.dvi): New rule.
38576
38577 2009-01-24  Bruno Haible  <bruno@clisp.org>
38578
38579         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
38580         Reported by Eric Blake.
38581
38582 2009-01-24  Bruno Haible  <bruno@clisp.org>
38583
38584         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
38585         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
38586         Reported by Gary V. Vaughan <gary@gnu.org>.
38587
38588 2009-01-24  Bruno Haible  <bruno@clisp.org>
38589
38590         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
38591
38592 2009-01-23  Bruno Haible  <bruno@clisp.org>
38593
38594         Make c-strtod, c-strtold usable in libraries.
38595         * lib/c-strtod.c: Include string.h instead of xalloc.h.
38596         (C_STRTOD): Call strdup instead of xstrdup.
38597         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
38598         * modules/c-strtold (Depends-on): Likewise.
38599         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
38600         * NEWS: Mention the change.
38601         Reported by Michael Gold <mgold@ncf.ca>.
38602
38603 2009-01-23  Jim Meyering  <meyering@redhat.com>
38604
38605         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
38606         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
38607         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
38608
38609 2009-01-23  Simon Josefsson  <simon@josefsson.org>
38610
38611         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
38612         GNU CoreUtils.
38613         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
38614         * modules/version-etc (Description): Update.
38615
38616 2009-01-22  Bruno Haible  <bruno@clisp.org>
38617
38618         Cache the C locale object.
38619         * lib/c-strtod.c (c_locale_cache): New variable.
38620         (c_locale): New function.
38621         (C_STRTOD): Use it, and don't call freelocale.
38622         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
38623         Suggested by Paolo Bonzini.
38624
38625 2009-01-21  Bruno Haible  <bruno@clisp.org>
38626
38627         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
38628         conditions other than overflow.
38629
38630 2009-01-21  Bruno Haible  <bruno@clisp.org>
38631
38632         * lib/c-strtod.c: Include errno.h.
38633         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
38634         value from STRTOD_L and STRTOD.
38635
38636 2009-01-21  Bruno Haible  <bruno@clisp.org>
38637         and Jim Meyering  <meyering@redhat.com>
38638
38639         nanosleep: skip configure test (fail it) for apple universal builds
38640         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
38641         universal builds, assume that nanosleep does not work.
38642         * modules/nanosleep (Depends-on): Add multiarch.
38643
38644         mktime: skip configure test (fail it) for apple universal builds
38645         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
38646         universal builds, assume that mktime does not work.
38647         * modules/mktime (Depends-on): Add multiarch.
38648
38649 2009-01-21  Eric Blake  <ebb9@byu.net>
38650
38651         multiarch: avoid expand-before-require warning
38652         * modules/multiarch (configure.ac): Require, rather than expand,
38653         gl_MULTIARCH.
38654         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
38655         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
38656         enforce that all clients require it.  Partial reversion of
38657         2008-12-29 patch.
38658
38659         error: avoid expand-before-require warning
38660         * modules/errno (configure.ac): Require, rather than expand,
38661         gl_HEADER_ERRNO_H.
38662         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
38663         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
38664         enforce that all clients require it.
38665
38666         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
38667         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
38668         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
38669         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
38670
38671 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
38672
38673         Revert:
38674         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38675
38676         regex: do not depend on obsolete modules.
38677         * modules/regex: Remove memcmp and memmove.
38678
38679 2009-01-20  Bruno Haible  <bruno@clisp.org>
38680
38681         Make the 'link' module link on Windows NT 4.
38682         * lib/link.c (_WIN32_WINNT): Don't define.
38683         (CreateHardLinkFuncType): New type.
38684         (CreateHardLinkFunc, initialized): New variables.
38685         (initialize): New function.
38686         (link): Invoke CreateHardLink indirectly through the function pointer.
38687
38688 2009-01-20  Bruno Haible  <bruno@clisp.org>
38689
38690         Fix compilation failure on mingw.
38691         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
38692
38693 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
38694
38695         * doc/c-strtod.texi: Mention a couple of restrictions.
38696
38697 2009-01-20  Jim Meyering  <meyering@redhat.com>
38698
38699         gettimeofday: move more declarations out of functions
38700         * lib/gettimeofday.c: Move extern declarations of tzset and
38701         gmtime out of containing functions.  Prompted by Bruno Haible.
38702
38703 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38704
38705         regex: do not depend on obsolete modules.
38706         * modules/regex: Remove memcmp and memmove.
38707
38708 2009-01-19  Bruno Haible  <bruno@clisp.org>
38709
38710         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38711         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
38712         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38713         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
38714         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
38715
38716 2009-01-19  Bruno Haible  <bruno@clisp.org>
38717
38718         * tests/test-link.c: Include <errno.h>.
38719         (main): Exit with code 77 when a hard link cannot be created due to
38720         the file system.
38721         * tests/test-link.sh: Skip test when a hard link cannot be created due
38722         to the file system.
38723         Suggested by Eric Blake.
38724
38725 2009-01-19  Martin Lambers  <marlam@marlam.de>
38726
38727         * modules/link-tests: New file.
38728         * tests/test-link.sh: New file.
38729         * tests/test-link.c: New file.
38730
38731 2009-01-19  Eric Blake  <ebb9@byu.net>
38732
38733         doc: mention another function added in cygwin 1.7.0
38734         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
38735         Another new function in cygwin 1.7.
38736
38737 2009-01-19  Bruno Haible  <bruno@clisp.org>
38738
38739         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38740         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
38741         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
38742         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38743         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38744         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
38745         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
38746         * m4/md4.m4 (gl_MD4): Likewise.
38747         * m4/md5.m4 (gl_MD5): Likewise.
38748         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
38749         * m4/sha1.m4 (gl_SHA1): Likewise.
38750         * m4/sha256.m4 (gl_SHA256): Likewise.
38751         * m4/sha512.m4 (gl_SHA512): Likewise.
38752
38753 2009-01-19  Bruno Haible  <bruno@clisp.org>
38754
38755         * modules/uniname/uniname-tests (Depends-on): Add progname.
38756         * tests/uniname/test-uninames.c: Include progname.h.
38757         (main): Call set_program_name.
38758
38759         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
38760         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
38761         (main): Call set_program_name.
38762
38763         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
38764         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
38765         (main): Call set_program_name.
38766
38767         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
38768         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
38769         (main): Call set_program_name.
38770
38771         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
38772         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
38773         (main): Call set_program_name.
38774
38775         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
38776         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
38777         (main): Call set_program_name.
38778
38779         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
38780         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
38781         (main): Call set_program_name.
38782
38783         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
38784         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
38785         (main): Call set_program_name.
38786
38787         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
38788         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
38789         (main): Call set_program_name.
38790
38791 2009-01-19  Eric Blake  <ebb9@byu.net>
38792
38793         test-unistd: test previous patch
38794         * tests/test-unistd.c: Test *_FILENO macros.
38795
38796         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
38797         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38798         Guarantee a definition.
38799         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
38800         * modules/unistd-safer (Depends-on): Add dependency on unistd.
38801         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
38802         * lib/dup-safer.c (STDERR_FILENO): Likewise.
38803         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38804         Likewise.
38805         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
38806         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
38807         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38808         Likewise.
38809         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
38810         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
38811         (STDERR_FILENO): Likewise.
38812         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
38813         (STDERR_FILENO): Likewise.
38814         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
38815         (STDERR_FILENO): Likewise.
38816         Reported by Elbert Pol.
38817
38818 2009-01-19  Eric Blake  <ebb9@byu.net>
38819
38820         doc: mention more functions added in cygwin 1.7.0
38821         * doc/posix-functions/abort.texi (abort): Update wording related
38822         to cygwin.
38823         * doc/posix-functions/daylight.texi (daylight): Likewise.
38824         * doc/posix-functions/optarg.texi (optarg): Likewise.
38825         * doc/posix-functions/optarg.texi (opterr): Likewise.
38826         * doc/posix-functions/optarg.texi (optind): Likewise.
38827         * doc/posix-functions/optarg.texi (optopt): Likewise.
38828         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
38829         worked in 1.5.x, and was withdrawn in 1.7.
38830         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38831         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
38832         cygwin versions.
38833         * doc/posix-functions/perror.texi (perror): Likewise.
38834         * doc/posix-functions/printf.texi (printf): Likewise.
38835         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
38836         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
38837         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38838         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38839         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
38840         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
38841         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38842         Likewise.
38843         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38844         Likewise.
38845         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
38846         this function.
38847         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
38848         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
38849         Likewise.
38850         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
38851         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
38852         * doc/posix-functions/confstr.texi (confstr): Likewise.
38853         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
38854         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
38855         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
38856         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
38857         * doc/posix-functions/fputws.texi (fputws): Likewise.
38858         * doc/posix-functions/fwide.texi (fwide): Likewise.
38859         * doc/posix-functions/getwc.texi (getwc): Likewise.
38860         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
38861         * doc/posix-functions/putwc.texi (putwc): Likewise.
38862         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38863         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
38864         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
38865         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38866         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
38867         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
38868         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
38869         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
38870         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
38871         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
38872         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
38873
38874 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38875
38876         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
38877         * lib/ioctl.c: Include <sys/ioctl.h>.
38878
38879 2009-01-19  Simon Josefsson  <simon@josefsson.org>
38880
38881         * modules/getdate-tests (Depends-on): Add progname.
38882         * tests/test-getdate.c: Use progname module, to avoid link errors
38883         on non-glibc systems.
38884
38885 2009-01-18  Simon Josefsson  <simon@josefsson.org>
38886
38887         * modules/filenamecat-tests (Depends-on): Add progname.
38888         * modules/fstrcmp-tests (Depends-on): Likewise.
38889
38890         * tests/test-filenamecat.c: Use progname module, to avoid link
38891         errors on non-glibc systems.
38892         * tests/test-fstrcmp.c: Likewise.
38893
38894 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38895
38896         gettimeofday: avoid warning: nested extern declaration of 'localtime'
38897         * lib/gettimeofday.c: Move extern declaration out of function.
38898
38899 2009-01-18  Bruno Haible  <bruno@clisp.org>
38900
38901         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
38902         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
38903         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
38904
38905 2009-01-18  Bruno Haible  <bruno@clisp.org>
38906
38907         * lib/strftime.c (MEMPCPY): Remove unused macro.
38908         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
38909
38910 2009-01-18  Martin Lambers  <marlam@marlam.de>
38911
38912         New module 'link'.
38913         * lib/unistd.in.h (link): New declaration.
38914         * lib/link.c: New file.
38915         * m4/link.m4: New file.
38916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
38917         HAVE_LINK.
38918         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
38919         * modules/link: New file.
38920         * doc/posix-functions/link.texi: Mention the new module.
38921
38922 2009-01-18  Bruno Haible  <bruno@clisp.org>
38923
38924         * tests/test-avltree_list.c (main): Call set_program_name.
38925         * tests/test-avltree_oset.c (main): Likewise.
38926         * tests/test-obstack-printf.c: Include progname.h.
38927         (main): Call set_program_name.
38928         * tests/test-quotearg.c: Include progname.h.
38929         (main): Call set_program_name.
38930         * tests/test-xmemdup0.c: Include progname.h.
38931         (main): Call set_program_name.
38932
38933 2009-01-18  Bruno Haible  <bruno@clisp.org>
38934
38935         New module 'alphasort'.
38936         * lib/dirent.in.h (alphasort): New declaration.
38937         * lib/alphasort.c: New file, from glibc with modifications.
38938         * m4/alphasort.m4: New file.
38939         * modules/alphasort: New file.
38940         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
38941         HAVE_ALPHASORT.
38942         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
38943         HAVE_ALPHASORT.
38944         * doc/posix-functions/alphasort.texi: Mention the new module and the
38945         portability problems.
38946
38947 2009-01-18  Bruno Haible  <bruno@clisp.org>
38948
38949         New module 'scandir'.
38950         * lib/dirent.in.h (scandir): New declaration.
38951         * lib/scandir.c: New file, from glibc with modifications.
38952         * m4/scandir.m4: New file.
38953         * modules/scandir: New file.
38954         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
38955         HAVE_SCANDIR.
38956         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
38957         HAVE_SCANDIR.
38958         * doc/posix-functions/scandir.texi: Mention the new module and the
38959         portability problems.
38960
38961 2009-01-17  Bruno Haible  <bruno@clisp.org>
38962
38963         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
38964         Update documentation.
38965         (func_remove_suffix): Escape all dots in the suffix. Update
38966         documentation.
38967         (func_filter_filelist): Update documentation.
38968         Reported by Ralf Wildenhues.
38969
38970 2009-01-17  Bruno Haible  <bruno@clisp.org>
38971
38972         * modules/dprintf-posix-tests: New file.
38973         * tests/test-dprintf-posix.sh: New file.
38974         * tests/test-dprintf-posix.c: New file.
38975
38976         New modules 'dprintf', 'dprintf-posix'.
38977         * lib/stdio.in.h (dprintf): New declaration.
38978         * lib/dprintf.c: New file.
38979         * m4/dprintf.m4: New file.
38980         * m4/dprintf-posix.m4: New file.
38981         * modules/dprintf: New file.
38982         * modules/dprintf-posix: New file.
38983         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38984         HAVE_DPRINTF, REPLACE_DPRINTF.
38985         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38986         HAVE_DPRINTF, REPLACE_DPRINTF.
38987         * doc/posix-functions/dprintf.texi: Mention the new modules.
38988
38989 2009-01-17  Bruno Haible  <bruno@clisp.org>
38990
38991         * modules/vdprintf-posix-tests: New file.
38992         * tests/test-vdprintf-posix.sh: New file.
38993         * tests/test-vdprintf-posix.c: New file.
38994
38995         New modules 'vdprintf', 'vdprintf-posix'.
38996         * lib/stdio.in.h (vdprintf): New declaration.
38997         * lib/vdprintf.c: New file.
38998         * m4/vdprintf.m4: New file.
38999         * m4/vdprintf-posix.m4: New file.
39000         * modules/vdprintf: New file.
39001         * modules/vdprintf-posix: New file.
39002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
39003         HAVE_VDPRINTF, REPLACE_VDPRINTF.
39004         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
39005         HAVE_VDPRINTF, REPLACE_VDPRINTF.
39006         * doc/posix-functions/vdprintf.texi: Mention the new modules.
39007
39008 2009-01-17  Bruno Haible  <bruno@clisp.org>
39009
39010         Fix replacement of fopen on mingw.
39011         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
39012         mingw.
39013
39014 2009-01-17  Bruno Haible  <bruno@clisp.org>
39015
39016         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
39017         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
39018
39019 2009-01-17  Bruno Haible  <bruno@clisp.org>
39020
39021         Avoid test-fflush2.sh failure on mingw.
39022         * tests/test-fflush2.c: Include binary-io.h.
39023         (main): Put standard input into binary mode.
39024         * modules/fflush-tests (Depends-on): Add binary-io.
39025
39026 2009-01-17  Bruno Haible  <bruno@clisp.org>
39027
39028         * lib/wchar.in.h: In another particular situation, include only the
39029         system's <wchar.h> file.
39030         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
39031         Reported by Albert Chin-A-Young <china@thewrittenword.com>
39032         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
39033
39034 2009-01-17  Bruno Haible  <bruno@clisp.org>
39035
39036         Support for stripping executables in --enable-relocatable.
39037         * build-aux/install-reloc: Expect one more argument, or an environment
39038         variable RELOC_STRIP_PROG. If set, strip the destination program and
39039         its wrapper.
39040         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
39041         RELOC_STRIP_PROG.
39042         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
39043         to set RELOCATABLE_STRIP.
39044         * NEWS: Mention the new Makefile requirement.
39045
39046 2009-01-17  Bruno Haible  <bruno@clisp.org>
39047
39048         * build-aux/install-reloc: Remove debugging information left over by
39049         C compiler on MacOS X.
39050
39051 2009-01-17  Bruno Haible  <bruno@clisp.org>
39052
39053         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
39054         * lib/progreloc.c (find_executable): Fix type of pointer passed to
39055         _NSGetExecutablePath.
39056
39057 2009-01-16  Jim Meyering  <meyering@redhat.com>
39058
39059         strerror: avoid warnings about discarding "const"
39060         * lib/strerror.c (rpl_strerror): Instead of returning a const
39061         string from each and every "case", use a variable, and add a single
39062         cast after the switch.
39063
39064 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
39065
39066         * lib/arpa_inet.in.h: Add extern "C" block for C++.
39067
39068 2009-01-16  Bruno Haible  <bruno@clisp.org>
39069
39070         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
39071         array initializer syntax that also works in C++ mode.
39072         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39073
39074 2009-01-16  Jim Meyering  <meyering@redhat.com>
39075
39076         poll: suppress a warning
39077         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
39078         to ignore "...unsigned expression < 0 is always false" warnings.
39079
39080 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
39081
39082         poll: remove declarations of unused variables
39083         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
39084         sockbuf and optlen.
39085
39086 2009-01-15  Bruno Haible  <bruno@clisp.org>
39087
39088         Make fflush-after-ungetc POSIX compliant on BSD systems.
39089         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
39090         (clear_ungetc_buffer): Implement also for other systems.
39091         (rpl_fflush): On glibc systems, invoke
39092         clear_ungetc_buffer_preserving_position. Otherwise, invoke
39093         clear_ungetc_buffer after fetching the stream's position, not before.
39094
39095 2009-01-15  Bruno Haible  <bruno@clisp.org>
39096
39097         Make fflush-after-ungetc POSIX compliant on glibc systems.
39098         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
39099         after ungetc.
39100         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
39101         (rpl_fflush): On glibc systems, simply call the system's fflush
39102         function after clearing the ungetc buffer.
39103         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
39104         Instead, lseek only to the end of file, then use the system's fseeko
39105         for the rest. On glibc systems, reset the EOF indicator bit.
39106
39107 2009-01-15  Jim Meyering  <meyering@redhat.com>
39108
39109         openmp.m4: revert quote-adding change, for portability to older autoconf
39110         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
39111         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
39112         Simon Josefsson noticed the problem when using autoconf-2.61.
39113
39114 2009-01-15  Bruno Haible  <bruno@clisp.org>
39115
39116         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
39117         * tests/test-fflush2.c (ASSERT): Always fail.
39118         (main): Add two tests for fflush() after ungetc(), taking into account
39119         the Austin Group's clarification.
39120         Suggested by Eric Blake.
39121
39122 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
39123
39124         mktime.m4: remove K&R-style function prototypes
39125         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
39126         for the Sun C++ compiler.
39127
39128 2009-01-14  Bruno Haible  <bruno@clisp.org>
39129
39130         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
39131         while including <wchar.h>.
39132         * lib/wchar.in.h: In two particular situations on HP-UX, include only
39133         the system's <wchar.h> file.
39134         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39135
39136 2009-01-14  Bruno Haible  <bruno@clisp.org>
39137
39138         * m4/csharp.m4: Don't mention gettext on the serial number line.
39139         * m4/csharpexec.m4: Likewise.
39140         * m4/eaccess.m4: Likewise.
39141         * m4/javaexec.m4: Likewise.
39142         * m4/sig_atomic_t.m4: Likewise.
39143         * m4/tmpdir.m4: Likewise.
39144         * m4/intldir.m4: Bump gettext version.
39145         * m4/lib-ld.m4: Likewise.
39146
39147 2009-01-14  Bruno Haible  <bruno@clisp.org>
39148
39149         * lib/progname.c (set_program_name): Add more comments.
39150         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39151
39152 2009-01-14  Simon Josefsson  <simon@josefsson.org>
39153
39154         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
39155         were sys/stat.h does not define it.
39156
39157 2009-01-14  Jim Meyering  <meyering@redhat.com>
39158
39159         many *.m4 files: improve m4 quoting
39160         99% of this change was performed by running the following commands:
39161         git ls-files | grep '\.m4$' | xargs perl -pi \
39162           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
39163           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39164           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39165           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
39166         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
39167         The remainder were to add Copyright dates, increment serial numbers,
39168         undo some changes in comments, exclude m4/intl.m4, and add quotes
39169         around the "1" in ",1" where the unusual spacing prohibited the
39170         above regexps from doing the job.  For more details, see
39171         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
39172         * m4/acl.m4: Modified.
39173         * m4/afs.m4: Likewise.
39174         * m4/alloca.m4: Likewise.
39175         * m4/argp.m4: Likewise.
39176         * m4/argz.m4: Likewise.
39177         * m4/atexit.m4: Likewise.
39178         * m4/bison-i18n.m4: Likewise.
39179         * m4/bison.m4: Likewise.
39180         * m4/byteswap.m4: Likewise.
39181         * m4/c-stack.m4: Likewise.
39182         * m4/c-strtod.m4: Likewise.
39183         * m4/calloc.m4: Likewise.
39184         * m4/canonicalize-lgpl.m4: Likewise.
39185         * m4/chown.m4: Likewise.
39186         * m4/clock_time.m4: Likewise.
39187         * m4/codeset.m4: Likewise.
39188         * m4/copy-file.m4: Likewise.
39189         * m4/csharp.m4: Likewise.
39190         * m4/csharpcomp.m4: Likewise.
39191         * m4/csharpexec.m4: Likewise.
39192         * m4/d-ino.m4: Likewise.
39193         * m4/d-type.m4: Likewise.
39194         * m4/dirfd.m4: Likewise.
39195         * m4/double-slash-root.m4: Likewise.
39196         * m4/eaccess.m4: Likewise.
39197         * m4/eealloc.m4: Likewise.
39198         * m4/environ.m4: Likewise.
39199         * m4/errno_h.m4: Likewise.
39200         * m4/euidaccess.m4: Likewise.
39201         * m4/execute.m4: Likewise.
39202         * m4/fatal-signal.m4: Likewise.
39203         * m4/fchdir.m4: Likewise.
39204         * m4/fcntl_h.m4: Likewise.
39205         * m4/fileblocks.m4: Likewise.
39206         * m4/filenamecat.m4: Likewise.
39207         * m4/findprog.m4: Likewise.
39208         * m4/flexmember.m4: Likewise.
39209         * m4/fnmatch.m4: Likewise.
39210         * m4/fopen.m4: Likewise.
39211         * m4/fpending.m4: Likewise.
39212         * m4/fprintf-posix.m4: Likewise.
39213         * m4/free.m4: Likewise.
39214         * m4/frexp.m4: Likewise.
39215         * m4/frexpl.m4: Likewise.
39216         * m4/fsusage.m4: Likewise.
39217         * m4/ftruncate.m4: Likewise.
39218         * m4/gc-camellia.m4: Likewise.
39219         * m4/gc-random.m4: Likewise.
39220         * m4/gc.m4: Likewise.
39221         * m4/getaddrinfo.m4: Likewise.
39222         * m4/getcwd-abort-bug.m4: Likewise.
39223         * m4/getcwd-path-max.m4: Likewise.
39224         * m4/getdate.m4: Likewise.
39225         * m4/getdomainname.m4: Likewise.
39226         * m4/getgroups.m4: Likewise.
39227         * m4/gethostname.m4: Likewise.
39228         * m4/gethrxtime.m4: Likewise.
39229         * m4/getline.m4: Likewise.
39230         * m4/getloadavg.m4: Likewise.
39231         * m4/getndelim2.m4: Likewise.
39232         * m4/getpass.m4: Likewise.
39233         * m4/gettext.m4: Likewise.
39234         * m4/gettime.m4: Likewise.
39235         * m4/gettimeofday.m4: Likewise.
39236         * m4/gnulib-common.m4: Likewise.
39237         * m4/group-member.m4: Likewise.
39238         * m4/host-os.m4: Likewise.
39239         * m4/iconv.m4: Likewise.
39240         * m4/iconv_open.m4: Likewise.
39241         * m4/inet_ntop.m4: Likewise.
39242         * m4/inet_pton.m4: Likewise.
39243         * m4/inline.m4: Likewise.
39244         * m4/intldir.m4: Likewise.
39245         * m4/intlmacosx.m4: Likewise.
39246         * m4/intmax.m4: Likewise.
39247         * m4/intmax_t.m4: Likewise.
39248         * m4/inttypes.m4: Likewise.
39249         * m4/inttypes_h.m4: Likewise.
39250         * m4/inttypes-pri.m4: Likewise.
39251         * m4/isapipe.m4: Likewise.
39252         * m4/isnand.m4: Likewise.
39253         * m4/isnanf.m4: Likewise.
39254         * m4/isnanl.m4: Likewise.
39255         * m4/javacomp.m4: Likewise.
39256         * m4/javaexec.m4: Likewise.
39257         * m4/jm-winsz1.m4: Likewise.
39258         * m4/jm-winsz2.m4: Likewise.
39259         * m4/lchown.m4: Likewise.
39260         * m4/lcmessage.m4: Likewise.
39261         * m4/ldexpl.m4: Likewise.
39262         * m4/lib-ld.m4: Likewise.
39263         * m4/lib-link.m4: Likewise.
39264         * m4/libsigsegv.m4: Likewise.
39265         * m4/link-follow.m4: Likewise.
39266         * m4/localcharset.m4: Likewise.
39267         * m4/locale-fr.m4: Likewise.
39268         * m4/locale-ja.m4: Likewise.
39269         * m4/locale-tr.m4: Likewise.
39270         * m4/locale-zh.m4: Likewise.
39271         * m4/lock.m4: Likewise.
39272         * m4/longlong.m4: Likewise.
39273         * m4/ls-mntd-fs.m4: Likewise.
39274         * m4/lstat.m4: Likewise.
39275         * m4/malloc.m4: Likewise.
39276         * m4/mathl.m4: Likewise.
39277         * m4/mbrtowc.m4: Likewise.
39278         * m4/mbstate_t.m4: Likewise.
39279         * m4/mbswidth.m4: Likewise.
39280         * m4/memchr.m4: Likewise.
39281         * m4/memcmp.m4: Likewise.
39282         * m4/memcpy.m4: Likewise.
39283         * m4/memmem.m4: Likewise.
39284         * m4/memmove.m4: Likewise.
39285         * m4/mempcpy.m4: Likewise.
39286         * m4/memrchr.m4: Likewise.
39287         * m4/memset.m4: Likewise.
39288         * m4/minmax.m4: Likewise.
39289         * m4/mkdir-slash.m4: Likewise.
39290         * m4/mkdtemp.m4: Likewise.
39291         * m4/mktime.m4: Likewise.
39292         * m4/mmap-anon.m4: Likewise.
39293         * m4/mountlist.m4: Likewise.
39294         * m4/nanosleep.m4: Likewise.
39295         * m4/nls.m4: Likewise.
39296         * m4/nocrash.m4: Likewise.
39297         * m4/open.m4: Likewise.
39298         * m4/openat.m4: Likewise.
39299         * m4/openmp.m4: Likewise.
39300         * m4/pathmax.m4: Likewise.
39301         * m4/perl.m4: Likewise.
39302         * m4/physmem.m4: Likewise.
39303         * m4/pipe.m4: Likewise.
39304         * m4/po.m4: Likewise.
39305         * m4/poll.m4: Likewise.
39306         * m4/posixtm.m4: Likewise.
39307         * m4/posixver.m4: Likewise.
39308         * m4/printf-frexp.m4: Likewise.
39309         * m4/printf-frexpl.m4: Likewise.
39310         * m4/printf-posix.m4: Likewise.
39311         * m4/printf-posix-rpl.m4: Likewise.
39312         * m4/printf.m4: Likewise.
39313         * m4/progtest.m4: Likewise.
39314         * m4/putenv.m4: Likewise.
39315         * m4/readline.m4: Likewise.
39316         * m4/readlink.m4: Likewise.
39317         * m4/readutmp.m4: Likewise.
39318         * m4/realloc.m4: Likewise.
39319         * m4/regex.m4: Likewise.
39320         * m4/relocatable.m4: Likewise.
39321         * m4/relocatable-lib.m4: Likewise.
39322         * m4/rename-dest-slash.m4: Likewise.
39323         * m4/rename.m4: Likewise.
39324         * m4/rmdir-errno.m4: Likewise.
39325         * m4/rmdir.m4: Likewise.
39326         * m4/roundf.m4: Likewise.
39327         * m4/roundl.m4: Likewise.
39328         * m4/rpmatch.m4: Likewise.
39329         * m4/save-cwd.m4: Likewise.
39330         * m4/selinux-selinux-h.m4: Likewise.
39331         * m4/setenv.m4: Likewise.
39332         * m4/settime.m4: Likewise.
39333         * m4/sig2str.m4: Likewise.
39334         * m4/sig_atomic_t.m4: Likewise.
39335         * m4/signalblocking.m4: Likewise.
39336         * m4/signbit.m4: Likewise.
39337         * m4/sigpipe.m4: Likewise.
39338         * m4/sockets.m4: Likewise.
39339         * m4/sockpfaf.m4: Likewise.
39340         * m4/st_dm_mode.m4: Likewise.
39341         * m4/stat-time.m4: Likewise.
39342         * m4/stdbool.m4: Likewise.
39343         * m4/stdint.m4: Likewise.
39344         * m4/stdint_h.m4: Likewise.
39345         * m4/stpcpy.m4: Likewise.
39346         * m4/stpncpy.m4: Likewise.
39347         * m4/strcase.m4: Likewise.
39348         * m4/strchrnul.m4: Likewise.
39349         * m4/strcspn.m4: Likewise.
39350         * m4/strdup.m4: Likewise.
39351         * m4/strftime.m4: Likewise.
39352         * m4/strndup.m4: Likewise.
39353         * m4/strnlen.m4: Likewise.
39354         * m4/strpbrk.m4: Likewise.
39355         * m4/strptime.m4: Likewise.
39356         * m4/strsep.m4: Likewise.
39357         * m4/strtod.m4: Likewise.
39358         * m4/strtoimax.m4: Likewise.
39359         * m4/strtok_r.m4: Likewise.
39360         * m4/strtol.m4: Likewise.
39361         * m4/strtoll.m4: Likewise.
39362         * m4/strtoul.m4: Likewise.
39363         * m4/strtoull.m4: Likewise.
39364         * m4/strtoumax.m4: Likewise.
39365         * m4/strverscmp.m4: Likewise.
39366         * m4/threadlib.m4: Likewise.
39367         * m4/timegm.m4: Likewise.
39368         * m4/tm_gmtoff.m4: Likewise.
39369         * m4/tmpdir.m4: Likewise.
39370         * m4/tmpfile.m4: Likewise.
39371         * m4/tzset.m4: Likewise.
39372         * m4/uintmax_t.m4: Likewise.
39373         * m4/unlinkdir.m4: Likewise.
39374         * m4/unlocked-io.m4: Likewise.
39375         * m4/uptime.m4: Likewise.
39376         * m4/userspec.m4: Likewise.
39377         * m4/utimbuf.m4: Likewise.
39378         * m4/utime.m4: Likewise.
39379         * m4/utimes-null.m4: Likewise.
39380         * m4/utimes.m4: Likewise.
39381         * m4/vararrays.m4: Likewise.
39382         * m4/vasnprintf.m4: Likewise.
39383         * m4/vfprintf-posix.m4: Likewise.
39384         * m4/vprintf-posix.m4: Likewise.
39385         * m4/wait-process.m4: Likewise.
39386         * m4/wchar_t.m4: Likewise.
39387         * m4/wint_t.m4: Likewise.
39388         * m4/write-any-file.m4: Likewise.
39389         * m4/yield.m4: Likewise.
39390
39391 2009-01-13  Bruno Haible  <bruno@clisp.org>
39392
39393         Avoid test-copy-file.sh failures when ACL support insufficient.
39394         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
39395         TESTS_ENVIRONMENT.
39396         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
39397         Reported by Jim Meyering.
39398
39399 2009-01-13  Bruno Haible  <bruno@clisp.org>
39400
39401         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
39402         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
39403         * modules/unistdio/u8-printf-parse (Files): Likewise.
39404         * modules/unistdio/u32-printf-parse (Files): Likewise.
39405         * modules/unistdio/ulc-printf-parse (Files): Likewise.
39406
39407 2009-01-13  Simon Josefsson  <simon@josefsson.org>
39408
39409         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
39410         and m4/inttypes_h.m4 too.
39411
39412 2009-01-12  Eric Blake  <ebb9@byu.net>
39413
39414         tests: IRIX 6.2 cc can't compile -0.0 into .data
39415         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
39416         rather than at compile-time.
39417         * tests/test-floorl.c (minus_zero): Likewise.
39418         * tests/test-frexpl.c (minus_zero): Likewise.
39419         * tests/test-isnan.c (minus_zerol): Likewise.
39420         * tests/test-isnanl.h (minus_zero): Likewise.
39421         * tests/test-ldexpl.c (minus_zero): Likewise.
39422         * tests/test-roundl.c (minus_zero): Likewise.
39423         * tests/test-signbit.c (minus_zerol): Likewise.
39424         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39425         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39426         * tests/test-truncl.c (minus_zero): Likewise.
39427         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39428         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39429         Reported by Tom G. Christensen and Nelson H. F. Beebe.
39430
39431 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39432
39433         regex: fix glibc bug 9697
39434         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
39435         handling.
39436
39437 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39438
39439         regex: fix glibc bug 697
39440         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
39441         being NULL also if there are no backreferences.
39442
39443 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39444
39445         regex: merge glibc changes
39446         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
39447         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
39448         re_string_skip_chars, re_string_reconstruct): Likewise.
39449         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
39450
39451 2009-01-07  Jim Meyering  <meyering@redhat.com>
39452
39453         poll: filter through cppi
39454         * lib/poll.c: Indent cpp directives to reflect nesting.
39455
39456 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
39457
39458         poll: don't return uninitialized
39459         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
39460
39461 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
39462
39463         avoid compile failure on AIX 6.1
39464         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
39465         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
39466
39467 2009-01-04  Jim Meyering  <meyering@redhat.com>
39468
39469         remove duplicate inclusion of <stdio.h>
39470         * tests/test-fprintf-posix.c: Likewise.
39471         * tests/test-printf-posix.c: Likewise.
39472         * tests/test-snprintf-posix.c: Likewise.
39473         * tests/test-sprintf-posix.c: Likewise.
39474         * tests/test-vasprintf-posix.c: Likewise.
39475         * tests/test-vfprintf-posix.c: Likewise.
39476         * tests/test-vprintf-posix.c: Likewise.
39477         * tests/test-vsnprintf-posix.c: Likewise.
39478         * tests/test-vsprintf-posix.c: Likewise.
39479
39480 2009-01-03  Jim Meyering  <meyering@redhat.com>
39481
39482         gnulib-tool: fix sed-based filtering
39483         * gnulib-tool (func_filter_filelist): Remove extra backslash
39484         in sed_fff_filter definition.
39485
39486 2009-01-02  Jim Meyering  <meyering@redhat.com>
39487
39488         strftime: avoid compilation failure on Solaris 2.6
39489         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
39490         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
39491         Don't #define mbrlen or mbsinit, since now they're guaranteed to
39492         be available.  Reported by Tom G. Christensen.  Details in
39493         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
39494
39495 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39496             Bruno Haible  <bruno@clisp.org>
39497
39498         Speed up gnulib-tool by doing more string processing through shell
39499         built-ins.
39500         * gnulib-tool (fast_func_append): New variable.
39501         (func_remove_prefix, func_remove_suffix): New functions.
39502         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
39503         (func_filter_filelist): New function.
39504         (func_get_dependencies): Use func_remove_suffix instead of sed.
39505         (func_get_automake_snippet): Use func_filter_filelist instead of a
39506         subshell and sed invocation.
39507
39508 2009-01-01  Bruno Haible  <bruno@clisp.org>
39509
39510         Fix a security bug.
39511         * gnulib-tool (func_import, import, update): Don't allow the characters
39512         '"', '$', '`', '\' in macro arguments that become part of commands that
39513         are evaluated.
39514
39515 2009-01-01  Bruno Haible  <bruno@clisp.org>
39516
39517         * gnulib-tool (func_reset_sigpipe): Add more comments.
39518
39519 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39520
39521         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
39522         func_emit_tests_Makefile_am, func_import): Abort loops early if we
39523         already know the answer.
39524
39525 2009-01-01  Jim Meyering  <meyering@redhat.com>
39526
39527         * lib/version-etc.c (version_etc_va): Update copyright year.
39528
39529 2008-12-30  Bruno Haible  <bruno@clisp.org>
39530
39531         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
39532         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
39533         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
39534
39535 2008-12-29  Eric Blake  <ebb9@byu.net>
39536
39537         multiarch: avoid autoconf AC_REQUIRE bug
39538         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
39539         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
39540         2.63 and older.
39541         Reported by Bruno Haible, and analyzed in
39542         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
39543
39544 2008-12-29  Bruno Haible  <bruno@clisp.org>
39545
39546         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
39547         files in subdirectories correctly.
39548         Reported by Ralf Wildenhues.
39549
39550 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39551
39552         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
39553         rather than 'join FILE -', for Solaris join.
39554
39555 2008-12-29  Bruno Haible  <bruno@clisp.org>
39556
39557         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
39558         quoting.
39559         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
39560         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
39561         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
39562         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
39563         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
39564         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
39565         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
39566         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
39567         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
39568         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
39569         * m4/nls.m4 (AM_NLS): Likewise.
39570         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
39571         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
39572         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
39573         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
39574         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
39575         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
39576         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
39577         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
39578         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
39579         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39580         * m4/xsize.m4 (gl_XSIZE): Likewise.
39581         Suggested by Jim Meyering.
39582
39583 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39584
39585         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
39586         * lib/parse-duration.c: use a switch instead of cascading if's.
39587
39588 2008-12-29  Eric Blake  <ebb9@byu.net>
39589
39590         wchar.h: supply WEOF on Irix 5.3
39591         * lib/wchar.in.h (wint_t): Also supply WEOF.
39592         * lib/wctype.in.h (wint_t): Likewise.
39593         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
39594         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
39595         Reported by Tom G. Christensen.
39596
39597 2008-12-26  Bruno Haible  <bruno@clisp.org>
39598
39599         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
39600         i486, i586, i686.
39601
39602 2008-12-26  Bruno Haible  <bruno@clisp.org>
39603
39604         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
39605
39606 2008-12-26  Bruno Haible  <bruno@clisp.org>
39607
39608         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
39609         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
39610         not __STDC_CONSTANT_MACROS.
39611         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39612
39613 2008-12-25  Bruno Haible  <bruno@clisp.org>
39614
39615         Add support for universal builds to vasnprintf.
39616         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
39617         universal builds, guess no.
39618         * modules/vasnprintf-posix (Depends-on): Add multiarch.
39619         * modules/vasprintf-posix (Depends-on): Likewise.
39620         * modules/fprintf-posix (Depends-on): Likewise.
39621         * modules/vfprintf-posix (Depends-on): Likewise.
39622         * modules/snprintf-posix (Depends-on): Likewise.
39623         * modules/vsnprintf-posix (Depends-on): Likewise.
39624         * modules/sprintf-posix (Depends-on): Likewise.
39625         * modules/vsprintf-posix (Depends-on): Likewise.
39626         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39627         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39628         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39629         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39630         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39631         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39632         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39633
39634         Add support for universal builds to <inttypes.h>.
39635         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
39636         _SCNu64_PREFIX): In Apple
39637         universal builds, define directly, using _LP64.
39638         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
39639         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
39640         * modules/inttypes (Depends-on): Add multiarch.
39641         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39642
39643         Add support for universal builds to <stdint.h>.
39644         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
39645         universal builds, define directly, using _LP64.
39646         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
39647         Apple universal builds, don't test for the size and suffix of ptrdiff_t
39648         and size_t.
39649         * modules/stdint (Depends-on): Add multiarch.
39650         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39651
39652         New module 'multiarch'.
39653         * modules/multiarch: New file.
39654         * m4/multiarch.m4: New file.
39655
39656 2008-12-25  Bruno Haible  <bruno@clisp.org>
39657
39658         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
39659
39660 2008-12-25  Bruno Haible  <bruno@clisp.org>
39661
39662         * modules/btowc (License): Relicense under LGPLv2+.
39663         * modules/mbsinit (License): Likewise.
39664         * modules/mbrtowc (License): Likewise.
39665         * modules/wcrtomb (License): Likewise.
39666         * modules/streq (License): Likewise.
39667         Reported by David Lutterkort <lutter@redhat.com>.
39668
39669 2008-12-23  Bruno Haible  <bruno@clisp.org>
39670
39671         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
39672
39673 2008-12-23  Bruno Haible  <bruno@clisp.org>
39674
39675         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
39676         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
39677         GETADDRINFO_LIB, not in LIBS.
39678         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
39679         * modules/canon-host (Link): Likewise.
39680         * NEWS: Mention the change.
39681         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
39682         GETADDRINFO_LIB.
39683
39684 2008-12-22  Bruno Haible  <bruno@clisp.org>
39685
39686         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
39687         * doc/posix-functions/iswalpha_l.texi: Likewise.
39688         * doc/posix-functions/iswblank_l.texi: Likewise.
39689         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39690         * doc/posix-functions/iswctype_l.texi: Likewise.
39691         * doc/posix-functions/iswdigit_l.texi: Likewise.
39692         * doc/posix-functions/iswgraph_l.texi: Likewise.
39693         * doc/posix-functions/iswlower_l.texi: Likewise.
39694         * doc/posix-functions/iswprint_l.texi: Likewise.
39695         * doc/posix-functions/iswpunct_l.texi: Likewise.
39696         * doc/posix-functions/iswspace_l.texi: Likewise.
39697         * doc/posix-functions/iswupper_l.texi: Likewise.
39698         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39699         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
39700         * doc/posix-functions/open_wmemstream.texi: Likewise.
39701         * doc/posix-functions/swscanf.texi: Likewise.
39702         * doc/posix-functions/towctrans_l.texi: Likewise.
39703         * doc/posix-functions/towlower.texi: Likewise.
39704         * doc/posix-functions/towlower_l.texi: Likewise.
39705         * doc/posix-functions/towupper.texi: Likewise.
39706         * doc/posix-functions/towupper_l.texi: Likewise.
39707         * doc/posix-functions/vfwprintf.texi: Likewise.
39708         * doc/posix-functions/vfwscanf.texi: Likewise.
39709         * doc/posix-functions/vswscanf.texi: Likewise.
39710         * doc/posix-functions/vwprintf.texi: Likewise.
39711         * doc/posix-functions/vwscanf.texi: Likewise.
39712         * doc/posix-functions/wcpcpy.texi: Likewise.
39713         * doc/posix-functions/wcpncpy.texi: Likewise.
39714         * doc/posix-functions/wcscasecmp.texi: Likewise.
39715         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
39716         * doc/posix-functions/wcscoll_l.texi: Likewise.
39717         * doc/posix-functions/wcsdup.texi: Likewise.
39718         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39719         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
39720         * doc/posix-functions/wcsnlen.texi: Likewise.
39721         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39722         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39723         * doc/posix-functions/wctrans_l.texi: Likewise.
39724         * doc/posix-functions/wctype_l.texi: Likewise.
39725         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
39726         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
39727         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
39728         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
39729         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
39730         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
39731         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
39732         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
39733         * doc/glibc-functions/wcschrnul.texi: Likewise.
39734         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39735         * doc/glibc-functions/wcstod_l.texi: Likewise.
39736         * doc/glibc-functions/wcstof_l.texi: Likewise.
39737         * doc/glibc-functions/wcstol_l.texi: Likewise.
39738         * doc/glibc-functions/wcstold_l.texi: Likewise.
39739         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39740         * doc/glibc-functions/wcstoq.texi: Likewise.
39741         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39742         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39743         * doc/glibc-functions/wcstouq.texi: Likewise.
39744         * doc/glibc-functions/wmempcpy.texi: Likewise.
39745
39746 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
39747             Eric Blake  <ebb9@byu.net>
39748             Paolo Bonzini  <bonzini@gnu.org>
39749             Bruno Haible  <bruno@clisp.org>
39750
39751         Make c-stack work on Haiku.
39752         * lib/c-stack.c (SA_ONSTACK): Define fallback.
39753         (c_stack_action): Use SA_ONSTACK flag.
39754
39755 2008-12-22  Bruno Haible  <bruno@clisp.org>
39756
39757         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
39758
39759 2008-12-22  Bruno Haible  <bruno@clisp.org>
39760
39761         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
39762         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
39763         being overridden.
39764         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
39765         New macros.
39766         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
39767         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
39768         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
39769         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
39770
39771 2008-12-22  Bruno Haible  <bruno@clisp.org>
39772
39773         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
39774         from test code.
39775
39776 2008-12-22  Eric Blake  <ebb9@byu.net>
39777
39778         Avoid gcc warnings on cygwin.
39779         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
39780         Avoid unused variable.
39781         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
39782         Likewise.
39783
39784 2008-12-22  Bruno Haible  <bruno@clisp.org>
39785
39786         Remove HAVE_MBRTOWC conditionals.
39787         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
39788         (mbscasecmp): Assume mbrtowc function.
39789         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
39790         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
39791         * lib/mbschr.c: Include mbuiter.h unconditionally.
39792         (mbschr): Assume mbrtowc function.
39793         * lib/mbscspn.c: Include mbuiter.h unconditionally.
39794         (mbscspn): Assume mbrtowc function.
39795         * lib/mbslen.c: Include mbuiter.h unconditionally.
39796         (mbslen): Assume mbrtowc function.
39797         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
39798         (mbsncasecmp): Assume mbrtowc function.
39799         * lib/mbsnlen.c: Include mbiter.h unconditionally.
39800         (mbsnlen): Assume mbrtowc function.
39801         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
39802         (mbspbrk): Assume mbrtowc function.
39803         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
39804         (mbspcasecmp): Assume mbrtowc function.
39805         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
39806         (mbsrchr): Assume mbrtowc function.
39807         * lib/mbssep.c: Include mbuiter.h unconditionally.
39808         (mbssep): Assume mbrtowc function.
39809         * lib/mbsspn.c: Include mbuiter.h unconditionally.
39810         (mbsspn): Assume mbrtowc function.
39811         * lib/mbsstr.c: Include mbuiter.h unconditionally.
39812         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
39813         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
39814         (mbstok_r): Assume mbrtowc function.
39815         * lib/propername.c: Include mbuiter.h unconditionally.
39816         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
39817         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
39818         (trim2): Assume mbrtowc function.
39819         * lib/mbswidth.c (mbsinit): Remove fallback definition.
39820         (mbsnwidth): Assume mbrtowc function.
39821         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
39822         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
39823         fallback definitions.
39824         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
39825
39826 2008-12-22  Bruno Haible  <bruno@clisp.org>
39827
39828         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
39829
39830 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
39831
39832         * modules/regex: Request emulations for the mb*/wc* functions we need.
39833         * m4/regex.m4: Don't look for those functions here.
39834         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
39835
39836 2008-12-22  Bruno Haible  <bruno@clisp.org>
39837
39838         * modules/fnmatch (Depends-on): Remove duplicated dependency.
39839
39840 2008-12-21  Bruno Haible  <bruno@clisp.org>
39841
39842         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
39843         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
39844         (Include): Remove conditionalization.
39845         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
39846         (Include): Remove conditionalization.
39847         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
39848         (Include): Remove conditionalization.
39849         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
39850         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39851         * NEWS: Mention the change.
39852         Reported by Alan Hourihane <alanh@fairlite.co.uk>
39853         via Sergey Poznyakoff <gray@gnu.org.ua>.
39854
39855 2008-12-21  Bruno Haible  <bruno@clisp.org>
39856
39857         * MODULES.html.sh (Extended multibyte and wide character utilities
39858         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
39859         wcrtomb, wcsrtombs.
39860         (Support for systems lacking POSIX:2008): Add accept, bind, close,
39861         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
39862         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
39863         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
39864
39865 2008-12-21  Bruno Haible  <bruno@clisp.org>
39866
39867         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
39868
39869 2008-12-21  Bruno Haible  <bruno@clisp.org>
39870
39871         * modules/wcsnrtombs-tests: New file.
39872         * tests/test-wcsnrtombs1.sh: New file.
39873         * tests/test-wcsnrtombs2.sh: New file.
39874         * tests/test-wcsnrtombs3.sh: New file.
39875         * tests/test-wcsnrtombs4.sh: New file.
39876         * tests/test-wcsnrtombs.c: New file.
39877
39878         New module 'wcsnrtombs'.
39879         * lib/wchar.in.h (wcsnrtombs): New declaration.
39880         * lib/wcsnrtombs.c: New file.
39881         * lib/wcsrtombs-state.c: New file.
39882         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
39883         (internal_state): Remove variable.
39884         * m4/wcsnrtombs.m4: New file.
39885         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
39886         compilation units.
39887         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
39888         HAVE_WCSNRTOMBS.
39889         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
39890         HAVE_WCSNRTOMBS.
39891         * modules/wcsnrtombs: New file.
39892         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
39893         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
39894
39895 2008-12-21  Bruno Haible  <bruno@clisp.org>
39896
39897         * modules/wcsrtombs-tests: New file.
39898         * tests/test-wcsrtombs1.sh: New file.
39899         * tests/test-wcsrtombs2.sh: New file.
39900         * tests/test-wcsrtombs3.sh: New file.
39901         * tests/test-wcsrtombs4.sh: New file.
39902         * tests/test-wcsrtombs.c: New file.
39903
39904         New module 'wcsrtombs'.
39905         * lib/wchar.in.h (wcsrtombs): New declaration.
39906         * lib/wcsrtombs.c: New file.
39907         * m4/wcsrtombs.m4: New file.
39908         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
39909         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39910         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
39911         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39912         * modules/wcsrtombs: New file.
39913         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
39914         bugs.
39915
39916 2008-12-21  Bruno Haible  <bruno@clisp.org>
39917
39918         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
39919         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
39920         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
39921         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
39922         if not correct.
39923         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
39924         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
39925         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39926         m4/locale-zh.m4, m4/codeset.m4.
39927         * doc/posix-functions/wcrtomb.texi: Document the bug.
39928
39929 2008-12-21  Bruno Haible  <bruno@clisp.org>
39930
39931         Work around a btowc() bug on IRIX 6.5.
39932         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
39933         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
39934         REPLACE_WTOBC if not.
39935         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
39936         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
39937         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
39938
39939 2008-12-21  Bruno Haible  <bruno@clisp.org>
39940
39941         * modules/wcrtomb-tests: New file.
39942         * tests/test-wcrtomb.sh: New file.
39943         * tests/test-wcrtomb.c: New file.
39944
39945         New module 'wcrtomb'.
39946         * lib/wchar.in.h (wcrtomb): New declaration.
39947         * lib/wcrtomb.c: New file.
39948         * m4/wcrtomb.m4: New file.
39949         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
39950         HAVE_WCRTOMB.
39951         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
39952         HAVE_WCRTOMB.
39953         * modules/wcrtomb: New file.
39954         * doc/posix-functions/wcrtomb.texi: Mention the new module.
39955
39956 2008-12-21  Bruno Haible  <bruno@clisp.org>
39957
39958         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
39959         * modules/mbsrtowcs (Files): Likewise.
39960         * modules/wctob (Files): Likewise.
39961         * modules/c-strcase-tests (Files): Likewise.
39962         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39963         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39964         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39965         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39966         * modules/vasnprintf-posix-tests (Files): Likewise.
39967
39968 2008-12-21  William Pursell  <bill.pursell@gmail.com>
39969
39970         gitlog-to-changelog: pass all command-line arguments to git-log
39971         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
39972         it is sometimes convenient to filter the commits in various ways.
39973         gitlog-to-changelog only allows --since to specify a start date,
39974         but git-log itself supports many other filtering mechanisms.
39975         At the moment, I want to filter by branch name.  Rather than
39976         adding a --branch option to gitlog-to-changelog, it seems more
39977         flexible to simply pass all options directly to git-log and let
39978         git do the work.  Notice that this effectively makes --since a
39979         redundant option for gitlog-to-changelog, but removing it would
39980         require current usage to change since calls would then require
39981         an additional '--'.
39982
39983 2008-12-21  Bruno Haible  <bruno@clisp.org>
39984
39985         * modules/mbsnrtowcs-tests: New file.
39986         * tests/test-mbsnrtowcs1.sh: New file.
39987         * tests/test-mbsnrtowcs2.sh: New file.
39988         * tests/test-mbsnrtowcs3.sh: New file.
39989         * tests/test-mbsnrtowcs4.sh: New file.
39990         * tests/test-mbsnrtowcs.c: New file.
39991
39992         New module 'mbsnrtowcs'.
39993         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39994         * lib/mbsnrtowcs.c: New file.
39995         * lib/mbsrtowcs-state.c: New file.
39996         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39997         (internal_state): Remove variable.
39998         * m4/mbsnrtowcs.m4: New file.
39999         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
40000         compilation units.
40001         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
40002         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
40003         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
40004         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
40005         * modules/mbsnrtowcs: New file.
40006         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
40007         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
40008         portability problem.
40009
40010 2008-12-21  Bruno Haible  <bruno@clisp.org>
40011
40012         Work around mbsrtowcs bug.
40013         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
40014         (gl_FUNC_MBSRTOWCS): Invoke it.
40015         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40016         m4/locale-zh.m4.
40017         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
40018
40019 2008-12-21  Bruno Haible  <bruno@clisp.org>
40020
40021         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
40022
40023 2008-12-21  Bruno Haible  <bruno@clisp.org>
40024
40025         Update doc for AIX.
40026         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
40027         16-bit wchar_t type.
40028         * doc/posix-functions/btowc.texi: Likewise.
40029         * doc/posix-functions/fgetwc.texi: Likewise.
40030         * doc/posix-functions/fgetws.texi: Likewise.
40031         * doc/posix-functions/fputwc.texi: Likewise.
40032         * doc/posix-functions/fputws.texi: Likewise.
40033         * doc/posix-functions/fwide.texi: Likewise.
40034         * doc/posix-functions/fwprintf.texi: Likewise.
40035         * doc/posix-functions/fwscanf.texi: Likewise.
40036         * doc/posix-functions/getwchar.texi: Likewise.
40037         * doc/posix-functions/getwc.texi: Likewise.
40038         * doc/posix-functions/iswalnum.texi: Likewise.
40039         * doc/posix-functions/iswalpha.texi: Likewise.
40040         * doc/posix-functions/iswblank.texi: Likewise.
40041         * doc/posix-functions/iswcntrl.texi: Likewise.
40042         * doc/posix-functions/iswctype.texi: Likewise.
40043         * doc/posix-functions/iswdigit.texi: Likewise.
40044         * doc/posix-functions/iswgraph.texi: Likewise.
40045         * doc/posix-functions/iswlower.texi: Likewise.
40046         * doc/posix-functions/iswprint.texi: Likewise.
40047         * doc/posix-functions/iswpunct.texi: Likewise.
40048         * doc/posix-functions/iswspace.texi: Likewise.
40049         * doc/posix-functions/iswupper.texi: Likewise.
40050         * doc/posix-functions/iswxdigit.texi: Likewise.
40051         * doc/posix-functions/mbrtowc.texi: Likewise.
40052         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40053         * doc/posix-functions/mbstowcs.texi: Likewise.
40054         * doc/posix-functions/mbtowc.texi: Likewise.
40055         * doc/posix-functions/putwchar.texi: Likewise.
40056         * doc/posix-functions/putwc.texi: Likewise.
40057         * doc/posix-functions/swprintf.texi: Likewise.
40058         * doc/posix-functions/tolower.texi: Likewise.
40059         * doc/posix-functions/toupper.texi: Likewise.
40060         * doc/posix-functions/towctrans.texi: Likewise.
40061         * doc/posix-functions/ungetwc.texi: Likewise.
40062         * doc/posix-functions/vswprintf.texi: Likewise.
40063         * doc/posix-functions/wcrtomb.texi: Likewise.
40064         * doc/posix-functions/wcscat.texi: Likewise.
40065         * doc/posix-functions/wcschr.texi: Likewise.
40066         * doc/posix-functions/wcscmp.texi: Likewise.
40067         * doc/posix-functions/wcscoll.texi: Likewise.
40068         * doc/posix-functions/wcscpy.texi: Likewise.
40069         * doc/posix-functions/wcscspn.texi: Likewise.
40070         * doc/posix-functions/wcsftime.texi: Likewise.
40071         * doc/posix-functions/wcslen.texi: Likewise.
40072         * doc/posix-functions/wcsncat.texi: Likewise.
40073         * doc/posix-functions/wcsncmp.texi: Likewise.
40074         * doc/posix-functions/wcsncpy.texi: Likewise.
40075         * doc/posix-functions/wcspbrk.texi: Likewise.
40076         * doc/posix-functions/wcsrchr.texi: Likewise.
40077         * doc/posix-functions/wcsrtombs.texi: Likewise.
40078         * doc/posix-functions/wcsspn.texi: Likewise.
40079         * doc/posix-functions/wcsstr.texi: Likewise.
40080         * doc/posix-functions/wcstod.texi: Likewise.
40081         * doc/posix-functions/wcstof.texi: Likewise.
40082         * doc/posix-functions/wcstoimax.texi: Likewise.
40083         * doc/posix-functions/wcstok.texi: Likewise.
40084         * doc/posix-functions/wcstold.texi: Likewise.
40085         * doc/posix-functions/wcstoll.texi: Likewise.
40086         * doc/posix-functions/wcstol.texi: Likewise.
40087         * doc/posix-functions/wcstombs.texi: Likewise.
40088         * doc/posix-functions/wcstoull.texi: Likewise.
40089         * doc/posix-functions/wcstoul.texi: Likewise.
40090         * doc/posix-functions/wcstoumax.texi: Likewise.
40091         * doc/posix-functions/wcswidth.texi: Likewise.
40092         * doc/posix-functions/wcsxfrm.texi: Likewise.
40093         * doc/posix-functions/wctob.texi: Likewise.
40094         * doc/posix-functions/wctomb.texi: Likewise.
40095         * doc/posix-functions/wctrans.texi: Likewise.
40096         * doc/posix-functions/wctype.texi: Likewise.
40097         * doc/posix-functions/wcwidth.texi: Likewise.
40098         * doc/posix-functions/wmemchr.texi: Likewise.
40099         * doc/posix-functions/wmemcmp.texi: Likewise.
40100         * doc/posix-functions/wmemcpy.texi: Likewise.
40101         * doc/posix-functions/wmemmove.texi: Likewise.
40102         * doc/posix-functions/wmemset.texi: Likewise.
40103         * doc/posix-functions/wprintf.texi: Likewise.
40104         * doc/posix-functions/wscanf.texi: Likewise.
40105
40106 2008-12-21  Bruno Haible  <bruno@clisp.org>
40107
40108         Update doc for HP-UX 11.11.
40109         * doc/posix-functions/btowc.texi: Clarify that the function is missing
40110         in HP-UX version 11.00, not in all versions of HP-UX 11.
40111         * doc/posix-functions/fwide.texi: Likewise.
40112         * doc/posix-functions/fwprintf.texi: Likewise.
40113         * doc/posix-functions/fwscanf.texi: Likewise.
40114         * doc/posix-functions/inet_ntop.texi: Likewise.
40115         * doc/posix-functions/inet_pton.texi: Likewise.
40116         * doc/posix-functions/mbrlen.texi: Likewise.
40117         * doc/posix-functions/mbrtowc.texi: Likewise.
40118         * doc/posix-functions/mbsinit.texi: Likewise.
40119         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40120         * doc/posix-functions/swprintf.texi: Likewise.
40121         * doc/posix-functions/swscanf.texi: Likewise.
40122         * doc/posix-functions/towctrans.texi: Likewise.
40123         * doc/posix-functions/vfwprintf.texi: Likewise.
40124         * doc/posix-functions/vswprintf.texi: Likewise.
40125         * doc/posix-functions/vwprintf.texi: Likewise.
40126         * doc/posix-functions/wcrtomb.texi: Likewise.
40127         * doc/posix-functions/wcsrtombs.texi: Likewise.
40128         * doc/posix-functions/wcsstr.texi: Likewise.
40129         * doc/posix-functions/wctob.texi: Likewise.
40130         * doc/posix-functions/wctrans.texi: Likewise.
40131         * doc/posix-functions/wmemchr.texi: Likewise.
40132         * doc/posix-functions/wmemcmp.texi: Likewise.
40133         * doc/posix-functions/wmemcpy.texi: Likewise.
40134         * doc/posix-functions/wmemmove.texi: Likewise.
40135         * doc/posix-functions/wmemset.texi: Likewise.
40136         * doc/posix-functions/wprintf.texi: Likewise.
40137         * doc/posix-functions/wscanf.texi: Likewise.
40138
40139 2008-12-21  Bruno Haible  <bruno@clisp.org>
40140
40141         Work around a portability problem.
40142         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
40143         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
40144
40145 2008-12-20  Bruno Haible  <bruno@clisp.org>
40146
40147         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
40148         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
40149         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
40150         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
40151         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
40152
40153         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
40154         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
40155         set.
40156         (GNULIB_defined_mbstate_t): New macro.
40157         (mbsinit): Redefine if REPLACE_MBSINIT is set.
40158         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
40159         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
40160         reuses the system's mbrtowc function but works around the bugs.
40161         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
40162         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
40163         macros.
40164         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
40165         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
40166         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
40167         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
40168         REPLACE_MBSINIT if mbsinit needs to be overridden.
40169         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
40170         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40171         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
40172         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40173         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40174         m4/locale-zh.m4.
40175         (Depends): Add mbsinit.
40176         * modules/mbsinit (Depends): Add mbrtowc.
40177         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
40178
40179 2008-12-20  Bruno Haible  <bruno@clisp.org>
40180
40181         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
40182         so that there are no conversion errors on AIX.
40183         * tests/test-mbsrtowcs.c (main): LIkewise.
40184
40185 2008-12-20  Bruno Haible  <bruno@clisp.org>
40186
40187         Work around wctob bug on Solaris <= 9.
40188         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
40189         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
40190         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
40191         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
40192         * modules/wctob (Files): Add m4/locale-fr.m4.
40193         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
40194
40195 2008-12-20  Bruno Haible  <bruno@clisp.org>
40196
40197         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
40198         /dev/null.
40199         * tests/test-select-in.sh: Likewise.
40200         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40201
40202 2008-12-20  Bruno Haible  <bruno@clisp.org>
40203
40204         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
40205         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
40206         Cygwin 1.5.x.
40207
40208 2008-12-20  Bruno Haible  <bruno@clisp.org>
40209
40210         Ensure mbstate_t is defined on HP-UX 11.11.
40211         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
40212         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
40213         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
40214         AC_USE_SYSTEM_EXTENSIONS.
40215         * modules/fnmatch (Depends-on): Add extensions.
40216         * modules/mbrlen (Depends-on): Likewise.
40217         * modules/mbrtowc (Depends-on): Likewise.
40218         * modules/mbsinit (Depends-on): Likewise.
40219         * modules/mbsrtowcs (Depends-on): Likewise.
40220         * modules/mbswidth (Depends-on): Likewise.
40221         * modules/quotearg (Depends-on): Likewise.
40222         * modules/strftime (Depends-on): Likewise.
40223
40224 2008-12-20  Bruno Haible  <bruno@clisp.org>
40225
40226         Ensure wctob is declared on IRIX 6.5.
40227         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
40228         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
40229         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
40230         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
40231         of HAVE_WCTOB.
40232         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
40233         HAVE_WCTOB.
40234         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
40235
40236 2008-12-19  Bruno Haible  <bruno@clisp.org>
40237
40238         * modules/mbsrtowcs-tests: New file.
40239         * tests/test-mbsrtowcs1.sh: New file.
40240         * tests/test-mbsrtowcs2.sh: New file.
40241         * tests/test-mbsrtowcs3.sh: New file.
40242         * tests/test-mbsrtowcs4.sh: New file.
40243         * tests/test-mbsrtowcs.c: New file.
40244
40245         New module 'mbsrtowcs'.
40246         * lib/wchar.in.h (mbsrtowcs): New declaration.
40247         * lib/mbsrtowcs.c: New file.
40248         * m4/mbsrtowcs.m4: New file.
40249         * modules/mbsrtowcs: New file.
40250         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
40251         HAVE_MBSRTOWCS.
40252         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
40253         HAVE_MBSRTOWCS.
40254         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
40255
40256 2008-12-19  Bruno Haible  <bruno@clisp.org>
40257
40258         New module 'mbrlen'.
40259         * lib/wchar.in.h (mbrlen): New declaration.
40260         * lib/mbrlen.c: New file.
40261         * m4/mbrlen.m4: New file.
40262         * modules/mbrlen: New file.
40263         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
40264         HAVE_MBRLEN.
40265         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
40266         HAVE_MBRLEN.
40267         * doc/posix-functions/mbrlen.texi: Document the new module.
40268
40269 2008-12-19  Bruno Haible  <bruno@clisp.org>
40270
40271         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
40272         * modules/mbrtowc (Depends-on): Add verify.
40273         Suggested by Paul Eggert.
40274
40275 2008-12-18  Bruno Haible  <bruno@clisp.org>
40276
40277         * modules/mbsinit-tests: New file.
40278         * tests/test-mbsinit.sh: New file.
40279         * tests/test-mbsinit.c: New file.
40280
40281 2008-12-18  Bruno Haible  <bruno@clisp.org>
40282
40283         * modules/mbrtowc-tests: New file.
40284         * tests/test-mbrtowc1.sh: New file.
40285         * tests/test-mbrtowc2.sh: New file.
40286         * tests/test-mbrtowc3.sh: New file.
40287         * tests/test-mbrtowc4.sh: New file.
40288         * tests/test-mbrtowc.c: New file.
40289
40290         New module 'mbrtowc'.
40291         * lib/wchar.in.h (mbstate_t): Override when the system does not have
40292         mbsinit and mbrtowc.
40293         (mbrtowc): New declaration.
40294         * lib/mbrtowc.c: New file.
40295         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
40296         * modules/mbrtowc: New file.
40297         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
40298         HAVE_MBRTOWC.
40299         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
40300         HAVE_MBRTOWC.
40301         * doc/posix-functions/mbrtowc.texi: Document the new module.
40302
40303 2008-12-18  Bruno Haible  <bruno@clisp.org>
40304
40305         New module 'wctob'.
40306         * lib/wchar.in.h (wctob): New declaration.
40307         * lib/wctob.c: New file.
40308         * m4/wctob.m4: New file.
40309         * modules/wctob: New file.
40310         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
40311         HAVE_WCTOB.
40312         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
40313         * doc/posix-functions/wctob.texi: Document the new module.
40314
40315 2008-12-18  Bruno Haible  <bruno@clisp.org>
40316
40317         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
40318         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
40319
40320 2008-12-18  Simon Josefsson  <simon@josefsson.org>
40321
40322         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
40323         G. Christensen" <tgc@jupiterrise.com>.
40324
40325         * lib/flock.c: Need to include errno.h.  Reported by "Tom
40326         G. Christensen" <tgc@jupiterrise.com>.
40327
40328         * lib/flock.c: Need to include string.h.  Reported by "Tom
40329         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
40330         <ebb9@byu.net>.
40331
40332 2008-12-18  Bruno Haible  <bruno@clisp.org>
40333
40334         * m4/locale-ja.m4: New file, from GNU gettext.
40335
40336 2008-12-17  Bruno Haible  <bruno@clisp.org>
40337
40338         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
40339         Suggested by Eric Blake.
40340
40341 2008-12-17  Bruno Haible  <bruno@clisp.org>
40342
40343         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
40344
40345 2008-12-17  Bruno Haible  <bruno@clisp.org>
40346
40347         * lib/mbsinit.c: Include verify.h. Verify an assumption.
40348         * modules/mbsinit (Depends-on): Add verify.
40349         Suggested by Paul Eggert.
40350
40351 2008-12-17  Bruno Haible  <bruno@clisp.org>
40352
40353         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
40354         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
40355         gl_FUNC_MBRTOWC.
40356         * m4/mbiter.m4 (gl_MBITER): LIkewise.
40357         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
40358         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
40359         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
40360         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
40361         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
40362         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
40363         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
40364         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
40365         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
40366         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
40367         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
40368         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
40369         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
40370         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
40371         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40372         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
40373         * modules/trim (configure.ac): Likewise.
40374
40375 2008-12-17  Bruno Haible  <bruno@clisp.org>
40376
40377         * modules/btowc-tests: New file.
40378         * tests/test-btowc1.sh: New file.
40379         * tests/test-btowc2.sh: New file.
40380         * tests/test-btowc.c: New file.
40381
40382         New module 'btowc'.
40383         * lib/wchar.in.h (btowc): New declaration.
40384         * lib/btowc.c: New file.
40385         * m4/btowc.m4: New file.
40386         * modules/btowc: New file.
40387         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
40388         HAVE_BTOWC.
40389         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
40390         * doc/posix-functions/btowc.texi: Document the new module.
40391
40392 2008-12-17  Bruno Haible  <bruno@clisp.org>
40393
40394         New module 'mbsinit'.
40395         * lib/wchar.in.h (mbsinit): New declaration.
40396         * lib/mbsinit.c: New file.
40397         * m4/mbsinit.m4: New file.
40398         * modules/mbsinit: New file.
40399         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
40400         HAVE_MBSINIT.
40401         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
40402         HAVE_MBSINIT.
40403         * doc/posix-functions/mbsinit.texi: Document the new module.
40404
40405 2008-12-16  Bruno Haible  <bruno@clisp.org>
40406
40407         * lib/unistd.in.h: Add comment.
40408         * tests/test-environ.c: Don't include <stdlib.h>.
40409
40410 2008-12-16  Bruno Haible  <bruno@clisp.org>
40411
40412         * lib/parse-duration.h (parse_duration): Document return value
40413         convention.
40414         * lib/parse-duration.c: Include specification header first. Add
40415         comments.
40416         (_): Remove macro.
40417         (parse_year_month_day, parse_hour_minute_second): Move side effects
40418         outside of strchr call.
40419         (parse_non_iso8601): Move side effects outside of isspace call.
40420         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
40421         call.
40422
40423 2008-12-16  Bruno Haible  <bruno@clisp.org>
40424
40425         * tests/test-parse-duration.sh: Produce no output when the test
40426         succeeds.
40427
40428 2008-12-16  Bruno Haible  <bruno@clisp.org>
40429
40430         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
40431         expressions.
40432
40433 2008-12-15  Bruno Haible  <bruno@clisp.org>
40434
40435         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
40436         * doc/glibc-functions/flistxattr.texi: Likewise.
40437         * doc/glibc-functions/fopencookie.texi: Likewise.
40438         * doc/glibc-functions/fremovexattr.texi: Likewise.
40439         * doc/glibc-functions/fsetxattr.texi: Likewise.
40440         * doc/glibc-functions/getxattr.texi: Likewise.
40441         * doc/glibc-functions/lgetxattr.texi: Likewise.
40442         * doc/glibc-functions/listxattr.texi: Likewise.
40443         * doc/glibc-functions/llistxattr.texi: Likewise.
40444         * doc/glibc-functions/lremovexattr.texi: Likewise.
40445         * doc/glibc-functions/lsetxattr.texi: Likewise.
40446         * doc/glibc-functions/removexattr.texi: Likewise.
40447         * doc/glibc-functions/setxattr.texi: Likewise.
40448         * doc/posix-functions/open_memstream.texi: Likewise.
40449
40450 2008-12-15  Eric Blake  <ebb9@byu.net>
40451
40452         Update doc for cygwin 1.7.
40453         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
40454         functions.
40455         * doc/posix-functions/fchmodat.texi: Likewise.
40456         * doc/posix-functions/fchownat.texi: Likewise.
40457         * doc/posix-functions/fdopendir.texi: Likewise.
40458         * doc/posix-functions/fmemopen.texi: Likewise.
40459         * doc/posix-functions/freeaddrinfo.texi: Likewise.
40460         * doc/posix-functions/fstatat.texi: Likewise.
40461         * doc/posix-functions/futimens.texi: Likewise.
40462         * doc/posix-functions/gai_strerror.texi: Likewise.
40463         * doc/posix-functions/getaddrinfo.texi: Likewise.
40464         * doc/posix-functions/getnameinfo.texi: Likewise.
40465         * doc/posix-functions/if_freenameindex.texi: Likewise.
40466         * doc/posix-functions/if_indextoname.texi: Likewise.
40467         * doc/posix-functions/if_nameindex.texi: Likewise.
40468         * doc/posix-functions/if_nametoindex.texi: Likewise.
40469         * doc/posix-functions/insque.texi: Likewise.
40470         * doc/posix-functions/linkat.texi: Likewise.
40471         * doc/posix-functions/llrint.texi: Likewise.
40472         * doc/posix-functions/llrintf.texi: Likewise.
40473         * doc/posix-functions/llrintl.texi: Likewise.
40474         * doc/posix-functions/lockf.texi: Likewise.
40475         * doc/posix-functions/lrintl.texi: Likewise.
40476         * doc/posix-functions/mkdirat.texi: Likewise.
40477         * doc/posix-functions/mkfifoat.texi: Likewise.
40478         * doc/posix-functions/mknodat.texi: Likewise.
40479         * doc/posix-functions/mq_close.texi: Likewise.
40480         * doc/posix-functions/mq_getattr.texi: Likewise.
40481         * doc/posix-functions/mq_notify.texi: Likewise.
40482         * doc/posix-functions/mq_open.texi: Likewise.
40483         * doc/posix-functions/mq_receive.texi: Likewise.
40484         * doc/posix-functions/mq_send.texi: Likewise.
40485         * doc/posix-functions/mq_setattr.texi: Likewise.
40486         * doc/posix-functions/mq_timedreceive.texi: Likewise.
40487         * doc/posix-functions/mq_timedsend.texi: Likewise.
40488         * doc/posix-functions/mq_unlink.texi: Likewise.
40489         * doc/posix-functions/open_memstream.texi: Likewise.
40490         * doc/posix-functions/openat.texi: Likewise.
40491         * doc/posix-functions/posix_fadvise.texi: Likewise.
40492         * doc/posix-functions/posix_fallocate.texi: Likewise.
40493         * doc/posix-functions/posix_madvise.texi: Likewise.
40494         * doc/posix-functions/posix_memalign.texi: Likewise.
40495         * doc/posix-functions/posix_openpt.texi: Likewise.
40496         * doc/posix-functions/readlinkat.texi: Likewise.
40497         * doc/posix-functions/remque.texi: Likewise.
40498         * doc/posix-functions/renameat.texi: Likewise.
40499         * doc/posix-functions/rintl.texi: Likewise.
40500         * doc/posix-functions/sem_unlink.texi: Likewise.
40501         * doc/posix-functions/shm_open.texi: Likewise.
40502         * doc/posix-functions/shm_unlink.texi: Likewise.
40503         * doc/posix-functions/signgam.texi: Likewise.
40504         * doc/posix-functions/sigset.texi: Likewise.
40505         * doc/posix-functions/stpcpy.texi: Likewise.
40506         * doc/posix-functions/stpncpy.texi: Likewise.
40507         * doc/posix-functions/strerror.texi: Likewise.
40508         * doc/posix-functions/strtod.texi: Likewise.
40509         * doc/posix-functions/symlinkat.texi: Likewise.
40510         * doc/posix-functions/unlinkat.texi: Likewise.
40511         * doc/posix-functions/utimensat.texi: Likewise.
40512         * doc/glibc-functions/bindresvport.texi: Likewise.
40513         * doc/glibc-functions/dn_expand.texi: Likewise.
40514         * doc/glibc-functions/exp10.texi: Likewise.
40515         * doc/glibc-functions/exp10f.texi: Likewise.
40516         * doc/glibc-functions/fgetxattr.texi: Likewise.
40517         * doc/glibc-functions/flistxattr.texi: Likewise.
40518         * doc/glibc-functions/fopencookie.texi: Likewise.
40519         * doc/glibc-functions/freeifaddrs.texi: Likewise.
40520         * doc/glibc-functions/fremovexattr.texi: Likewise.
40521         * doc/glibc-functions/fsetxattr.texi: Likewise.
40522         * doc/glibc-functions/getifaddrs.texi: Likewise.
40523         * doc/glibc-functions/getxattr.texi: Likewise.
40524         * doc/glibc-functions/lgetxattr.texi: Likewise.
40525         * doc/glibc-functions/listxattr.texi: Likewise.
40526         * doc/glibc-functions/llistxattr.texi: Likewise.
40527         * doc/glibc-functions/lremovexattr.texi: Likewise.
40528         * doc/glibc-functions/lsetxattr.texi: Likewise.
40529         * doc/glibc-functions/pow10.texi: Likewise.
40530         * doc/glibc-functions/pow10f.texi: Likewise.
40531         * doc/glibc-functions/rcmd_af.texi: Likewise.
40532         * doc/glibc-functions/removexattr.texi: Likewise.
40533         * doc/glibc-functions/res_init.texi: Likewise.
40534         * doc/glibc-functions/res_mkquery.texi: Likewise.
40535         * doc/glibc-functions/res_query.texi: Likewise.
40536         * doc/glibc-functions/res_querydomain.texi: Likewise.
40537         * doc/glibc-functions/res_send.texi: Likewise.
40538         * doc/glibc-functions/rresvport_af.texi: Likewise.
40539         * doc/glibc-functions/setxattr.texi: Likewise.
40540         * doc/glibc-functions/strcasestr.texi: Likewise.
40541
40542 2008-12-15  Bruno Haible  <bruno@clisp.org>
40543
40544         Fix compilation error on OSF/1 4.0.
40545         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
40546         <sys/time.h>, simply delegate to the system header.
40547         Reported by Daniel Richard G. <oss@teragram.com>.
40548
40549 2008-12-15  Bruno Haible  <bruno@clisp.org>
40550
40551         * doc/posix-functions/openat.texi: Mention the 'openat' module.
40552         * doc/posix-functions/fchmodat.texi: Likewise.
40553         * doc/posix-functions/fchownat.texi: Likewise.
40554         * doc/posix-functions/fdopendir.texi: Likewise.
40555         * doc/posix-functions/fstatat.texi: Likewise.
40556         * doc/posix-functions/mkdirat.texi: Likewise.
40557         * doc/posix-functions/unlinkat.texi: Likewise.
40558
40559 2008-12-14  Bruno Haible  <bruno@clisp.org>
40560
40561         Update doc for POSIX:2008.
40562         * doc/posix-functions/faccessat.texi: New file.
40563         * doc/posix-functions/fchmodat.texi: New file.
40564         * doc/posix-functions/fchownat.texi: New file.
40565         * doc/posix-functions/fdopendir.texi: New file.
40566         * doc/posix-functions/fstatat.texi: New file.
40567         * doc/posix-functions/futimens.texi: New file.
40568         * doc/posix-functions/linkat.texi: New file.
40569         * doc/posix-functions/mkdirat.texi: New file.
40570         * doc/posix-functions/mkfifoat.texi: New file.
40571         * doc/posix-functions/mknodat.texi: New file.
40572         * doc/posix-functions/open_wmemstream.texi: New file.
40573         * doc/posix-functions/openat.texi: New file.
40574         * doc/posix-functions/psiginfo.texi: New file.
40575         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
40576         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
40577         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
40578         * doc/posix-functions/readlinkat.texi: New file.
40579         * doc/posix-functions/renameat.texi: New file.
40580         * doc/posix-functions/strerror_l.texi: New file.
40581         * doc/posix-functions/symlinkat.texi: New file.
40582         * doc/posix-functions/unlinkat.texi: New file.
40583         * doc/posix-functions/utimensat.texi: New file.
40584         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40585
40586 2008-12-14  Bruno Haible  <bruno@clisp.org>
40587
40588         Update doc for POSIX:2008.
40589         * doc/posix-functions/alphasort.texi: Renamed from
40590         doc/glibc-functions/alphasort.texi.
40591         * doc/posix-functions/dirfd.texi: Renamed from
40592         doc/glibc-functions/dirfd.texi.
40593         * doc/posix-functions/dprintf.texi: Renamed from
40594         doc/glibc-functions/dprintf.texi.
40595         * doc/posix-functions/duplocale.texi: Renamed from
40596         doc/glibc-functions/duplocale.texi.
40597         * doc/posix-functions/fexecve.texi: Renamed from
40598         doc/glibc-functions/fexecve.texi.
40599         * doc/posix-functions/fmemopen.texi: Renamed from
40600         doc/glibc-functions/fmemopen.texi.
40601         * doc/posix-functions/freelocale.texi: Renamed from
40602         doc/glibc-functions/freelocale.texi.
40603         * doc/posix-functions/getdate_err.texi: Renamed from
40604         doc/glibc-functions/getdate_err.texi.
40605         * doc/posix-functions/isalnum_l.texi: Renamed from
40606         doc/glibc-functions/isalnum_l.texi.
40607         * doc/posix-functions/isalpha_l.texi: Renamed from
40608         doc/glibc-functions/isalpha_l.texi.
40609         * doc/posix-functions/isblank_l.texi: Renamed from
40610         doc/glibc-functions/isblank_l.texi.
40611         * doc/posix-functions/iscntrl_l.texi: Renamed from
40612         doc/glibc-functions/iscntrl_l.texi.
40613         * doc/posix-functions/isdigit_l.texi: Renamed from
40614         doc/glibc-functions/isdigit_l.texi.
40615         * doc/posix-functions/isgraph_l.texi: Renamed from
40616         doc/glibc-functions/isgraph_l.texi.
40617         * doc/posix-functions/islower_l.texi: Renamed from
40618         doc/glibc-functions/islower_l.texi.
40619         * doc/posix-functions/isprint_l.texi: Renamed from
40620         doc/glibc-functions/isprint_l.texi.
40621         * doc/posix-functions/ispunct_l.texi: Renamed from
40622         doc/glibc-functions/ispunct_l.texi.
40623         * doc/posix-functions/isspace_l.texi: Renamed from
40624         doc/glibc-functions/isspace_l.texi.
40625         * doc/posix-functions/isupper_l.texi: Renamed from
40626         doc/glibc-functions/isupper_l.texi.
40627         * doc/posix-functions/iswalnum_l.texi: Renamed from
40628         doc/glibc-functions/iswalnum_l.texi.
40629         * doc/posix-functions/iswalpha_l.texi: Renamed from
40630         doc/glibc-functions/iswalpha_l.texi.
40631         * doc/posix-functions/iswblank_l.texi: Renamed from
40632         doc/glibc-functions/iswblank_l.texi.
40633         * doc/posix-functions/iswcntrl_l.texi: Renamed from
40634         doc/glibc-functions/iswcntrl_l.texi.
40635         * doc/posix-functions/iswctype_l.texi: Renamed from
40636         doc/glibc-functions/iswctype_l.texi.
40637         * doc/posix-functions/iswdigit_l.texi: Renamed from
40638         doc/glibc-functions/iswdigit_l.texi.
40639         * doc/posix-functions/iswgraph_l.texi: Renamed from
40640         doc/glibc-functions/iswgraph_l.texi.
40641         * doc/posix-functions/iswlower_l.texi: Renamed from
40642         doc/glibc-functions/iswlower_l.texi.
40643         * doc/posix-functions/iswprint_l.texi: Renamed from
40644         doc/glibc-functions/iswprint_l.texi.
40645         * doc/posix-functions/iswpunct_l.texi: Renamed from
40646         doc/glibc-functions/iswpunct_l.texi.
40647         * doc/posix-functions/iswspace_l.texi: Renamed from
40648         doc/glibc-functions/iswspace_l.texi.
40649         * doc/posix-functions/iswupper_l.texi: Renamed from
40650         doc/glibc-functions/iswupper_l.texi.
40651         * doc/posix-functions/iswxdigit_l.texi: Renamed from
40652         doc/glibc-functions/iswxdigit_l.texi.
40653         * doc/posix-functions/isxdigit_l.texi: Renamed from
40654         doc/glibc-functions/isxdigit_l.texi.
40655         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
40656         doc/glibc-functions/mbsnrtowcs.texi.
40657         * doc/posix-functions/mkdtemp.texi: Renamed from
40658         doc/glibc-functions/mkdtemp.texi.
40659         * doc/posix-functions/newlocale.texi: Renamed from
40660         doc/glibc-functions/newlocale.texi.
40661         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
40662         doc/glibc-functions/nl_langinfo_l.texi.
40663         * doc/posix-functions/open_memstream.texi: Renamed from
40664         doc/glibc-functions/open_memstream.texi.
40665         * doc/posix-functions/opterr.texi: Renamed from
40666         doc/glibc-functions/opterr.texi.
40667         * doc/posix-functions/optind.texi: Renamed from
40668         doc/glibc-functions/optind.texi.
40669         * doc/posix-functions/optopt.texi: Renamed from
40670         doc/glibc-functions/optopt.texi.
40671         * doc/posix-functions/psignal.texi: Renamed from
40672         doc/glibc-functions/psignal.texi.
40673         * doc/posix-functions/scandir.texi: Renamed from
40674         doc/glibc-functions/scandir.texi.
40675         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
40676         doc/glibc-functions/sched_get_priority_min.texi.
40677         * doc/posix-functions/signgam.texi: Renamed from
40678         doc/glibc-functions/signgam.texi.
40679         * doc/posix-functions/stpcpy.texi: Renamed from
40680         doc/glibc-functions/stpcpy.texi.
40681         * doc/posix-functions/stpncpy.texi: Renamed from
40682         doc/glibc-functions/stpncpy.texi.
40683         * doc/posix-functions/strcasecmp_l.texi: Renamed from
40684         doc/glibc-functions/strcasecmp_l.texi.
40685         * doc/posix-functions/strcoll_l.texi: Renamed from
40686         doc/glibc-functions/strcoll_l.texi.
40687         * doc/posix-functions/strfmon_l.texi: Renamed from
40688         doc/glibc-functions/strfmon_l.texi.
40689         * doc/posix-functions/strftime_l.texi: Renamed from
40690         doc/glibc-functions/strftime_l.texi.
40691         * doc/posix-functions/strncasecmp_l.texi: Renamed from
40692         doc/glibc-functions/strncasecmp_l.texi.
40693         * doc/posix-functions/strndup.texi: Renamed from
40694         doc/glibc-functions/strndup.texi.
40695         * doc/posix-functions/strnlen.texi: Renamed from
40696         doc/glibc-functions/strnlen.texi.
40697         * doc/posix-functions/strsignal.texi: Renamed from
40698         doc/glibc-functions/strsignal.texi.
40699         * doc/posix-functions/strxfrm_l.texi: Renamed from
40700         doc/glibc-functions/strxfrm_l.texi.
40701         * doc/posix-functions/timer_gettime.texi: Renamed from
40702         doc/glibc-functions/timer_gettime.texi.
40703         * doc/posix-functions/tolower_l.texi: Renamed from
40704         doc/glibc-functions/tolower_l.texi.
40705         * doc/posix-functions/toupper_l.texi: Renamed from
40706         doc/glibc-functions/toupper_l.texi.
40707         * doc/posix-functions/towctrans_l.texi: Renamed from
40708         doc/glibc-functions/towctrans_l.texi.
40709         * doc/posix-functions/towlower_l.texi: Renamed from
40710         doc/glibc-functions/towlower_l.texi.
40711         * doc/posix-functions/towupper_l.texi: Renamed from
40712         doc/glibc-functions/towupper_l.texi.
40713         * doc/posix-functions/uselocale.texi: Renamed from
40714         doc/glibc-functions/uselocale.texi.
40715         * doc/posix-functions/vdprintf.texi: Renamed from
40716         doc/glibc-functions/vdprintf.texi.
40717         * doc/posix-functions/wcpcpy.texi:
40718         Renamed from doc/glibc-functions/wcpcpy.texi.
40719         * doc/posix-functions/wcpncpy.texi: Renamed from
40720         doc/glibc-functions/wcpncpy.texi.
40721         * doc/posix-functions/wcscasecmp.texi: Renamed from
40722         doc/glibc-functions/wcscasecmp.texi.
40723         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
40724         doc/glibc-functions/wcscasecmp_l.texi.
40725         * doc/posix-functions/wcscoll_l.texi: Renamed from
40726         doc/glibc-functions/wcscoll_l.texi.
40727         * doc/posix-functions/wcsdup.texi: Renamed from
40728         doc/glibc-functions/wcsdup.texi.
40729         * doc/posix-functions/wcsncasecmp.texi: Renamed from
40730         doc/glibc-functions/wcsncasecmp.texi.
40731         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
40732         doc/glibc-functions/wcsncasecmp_l.texi.
40733         * doc/posix-functions/wcsnlen.texi: Renamed from
40734         doc/glibc-functions/wcsnlen.texi.
40735         * doc/posix-functions/wcsnrtombs.texi: Renamed from
40736         doc/glibc-functions/wcsnrtombs.texi.
40737         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
40738         doc/glibc-functions/wcsxfrm_l.texi.
40739         * doc/posix-functions/wctrans_l.texi: Renamed from
40740         doc/glibc-functions/wctrans_l.texi.
40741         * doc/posix-functions/wctype_l.texi: Renamed from
40742         doc/glibc-functions/wctype_l.texi.
40743         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40744         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
40745         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
40746         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
40747         these subsections.
40748         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
40749         Remove sections.
40750
40751 2008-12-14  Bruno Haible  <bruno@clisp.org>
40752
40753         Update doc for POSIX:2008.
40754         * doc/posix-functions/*.texi: Update URL of POSIX specification.
40755
40756 2008-12-14  Bruno Haible  <bruno@clisp.org>
40757
40758         Update doc for POSIX:2008.
40759         * doc/pastposix-functions/bcmp.texi: Renamed from
40760         doc/posix-functions/bcmp.texi.
40761         * doc/pastposix-functions/bcopy.texi: Renamed from
40762         doc/posix-functions/bcopy.texi.
40763         * doc/pastposix-functions/bsd_signal.texi: Renamed from
40764         doc/posix-functions/bsd_signal.texi.
40765         * doc/pastposix-functions/bzero.texi: Renamed from
40766         doc/posix-functions/bzero.texi.
40767         * doc/pastposix-functions/ecvt.texi: Renamed from
40768         doc/posix-functions/ecvt.texi.
40769         * doc/pastposix-functions/fcvt.texi: Renamed from
40770         doc/posix-functions/fcvt.texi.
40771         * doc/pastposix-functions/ftime.texi: Renamed from
40772         doc/posix-functions/ftime.texi.
40773         * doc/pastposix-functions/gcvt.texi: Renamed from
40774         doc/posix-functions/gcvt.texi.
40775         * doc/pastposix-functions/getcontext.texi: Renamed from
40776         doc/posix-functions/getcontext.texi.
40777         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
40778         doc/posix-functions/gethostbyaddr.texi.
40779         * doc/pastposix-functions/gethostbyname.texi: Renamed from
40780         doc/posix-functions/gethostbyname.texi.
40781         * doc/pastposix-functions/getwd.texi: Renamed from
40782         doc/posix-functions/getwd.texi.
40783         * doc/pastposix-functions/h_errno.texi: Renamed from
40784         doc/posix-functions/h_errno.texi.
40785         * doc/pastposix-functions/index.texi: Renamed from
40786         doc/posix-functions/index.texi.
40787         * doc/pastposix-functions/makecontext.texi: Renamed from
40788         doc/posix-functions/makecontext.texi.
40789         * doc/pastposix-functions/mktemp.texi: Renamed from
40790         doc/posix-functions/mktemp.texi.
40791         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
40792         doc/posix-functions/pthread_attr_getstackaddr.texi.
40793         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
40794         doc/posix-functions/pthread_attr_setstackaddr.texi.
40795         * doc/pastposix-functions/rindex.texi: Renamed from
40796         doc/posix-functions/rindex.texi.
40797         * doc/pastposix-functions/scalb.texi: Renamed from
40798         doc/posix-functions/scalb.texi.
40799         * doc/pastposix-functions/setcontext.texi: Renamed from
40800         doc/posix-functions/setcontext.texi.
40801         * doc/pastposix-functions/swapcontext.texi: Renamed from
40802         doc/posix-functions/swapcontext.texi.
40803         * doc/pastposix-functions/ualarm.texi: Renamed from
40804         doc/posix-functions/ualarm.texi.
40805         * doc/pastposix-functions/usleep.texi: Renamed from
40806         doc/posix-functions/usleep.texi.
40807         * doc/pastposix-functions/vfork.texi: Renamed from
40808         doc/posix-functions/vfork.texi.
40809         * doc/pastposix-functions/wcswcs.texi: Renamed from
40810         doc/posix-functions/wcswcs.texi.
40811         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
40812         (Function Substitutes): Update.
40813
40814 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40815
40816         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
40817         m4/strerror.m4.
40818
40819 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40820             Bruno Haible  <bruno@clisp.org>
40821
40822         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
40823
40824 2008-12-13  Bruno Haible  <bruno@clisp.org>
40825
40826         * modules/strtoull (Depends-on): Remove unistd.
40827
40828 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40829
40830         * modules/strtoull (Depends-on): Add stdlib.
40831
40832 2008-12-11  Simon Josefsson  <simon@josefsson.org>
40833
40834         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
40835
40836 2008-12-10  Jim Meyering  <meyering@redhat.com>
40837
40838         gl_ASSERT: don't say assertions are disabled when they're not
40839         * m4/assert.m4 (gl_ASSERT): Do not make configure report
40840         "checking whether to enable assertions... no", when they are in
40841         fact enabled.  This is solely a bug in the output of configure.
40842         In spite of saying "no", NDEBUG was not defined in that case.
40843         Also, as noted by Eric Blake, leave assertions enabled upon
40844         --enable-assert=INVALID.
40845
40846 2008-12-10  Bruno Haible  <bruno@clisp.org>
40847
40848         Change MODULES.html to refer to POSIX:2008 where possible.
40849         * MODULES.html.sh (POSIX2008_URL): New variable.
40850         (posix_headers): Remove sys/timeb, ucontext.
40851         (posix2001_headers): New variable.
40852         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
40853         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
40854         index, makecontext, mktemp, pthread_attr_getstackaddr,
40855         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
40856         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
40857         (posix2001_functions): New variable.
40858         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
40859         otherwise.
40860
40861 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40862
40863         add missing include to parse-duration.c
40864         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
40865         * modules/parse-duration (Depends-on): Add xalloc.
40866
40867         fix sed script reading maint.mk
40868         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
40869         (syntax-check-rules): Use it.
40870
40871 2008-12-09  Bruno Haible  <bruno@clisp.org>
40872
40873         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
40874         MacOS X 10.4/PowerPC.
40875         Reported by Simon Josefsson.
40876
40877 2008-12-08  Jim Meyering  <meyering@redhat.com>
40878
40879         work around mingw's lack of some S_IF definitions
40880         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
40881         Reported by Simon Josefsson.
40882
40883 2008-12-08  Bruno Haible  <bruno@clisp.org>
40884
40885         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
40886         applied to variables. Needed on MacOS X 10.4/PowerPC.
40887         Reported by Simon Josefsson.
40888
40889 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
40890         and Eric Blake  <ebb9@byu.net>
40891
40892         assert: honor --enable-assert
40893         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
40894         order to honor --enable-assert, rather than treating it as a
40895         synonym for --disable-assert.
40896
40897 2008-12-08  Jim Meyering  <meyering@redhat.com>
40898
40899         * lib/posixtm.c: Remove now-useless declaration of mktime.
40900
40901         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
40902
40903 2008-12-07  Bruno Haible  <bruno@clisp.org>
40904
40905         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
40906         test_once): Mark functions as static.
40907         * tests/test-tls.c (test_tls): Likewise.
40908
40909 2008-12-07  Bruno Haible  <bruno@clisp.org>
40910
40911         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
40912         iconv_register_autodetect.
40913
40914 2008-12-07  Jim Meyering  <meyering@redhat.com>
40915
40916         posixtm.c: avoid a warning
40917         * lib/posixtm.c (posixtime): Don't initialize tm0.
40918         It's no longer needed to placate gcc4's -Wuninitialized,
40919         and the attempt to placate would elicit a new warning.
40920
40921         unicodeio.c: mark unused parameters
40922         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40923         (fallback_failure_callback): Likewise.
40924
40925 2008-12-07  Bruno Haible  <bruno@clisp.org>
40926
40927         * gnulib-tool (func_create_testdir): When building the tests
40928         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
40929         Reported by Simon Josefsson.
40930
40931 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40932
40933         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
40934
40935 2008-12-06  Bruno Haible  <bruno@clisp.org>
40936
40937         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
40938         Suggested by Eric Blake.
40939
40940 2008-12-06  Bruno Haible  <bruno@clisp.org>
40941
40942         Fix a c-stack test failure on MacOS X.
40943         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
40944         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
40945         handler for SIGBUS as well.
40946         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
40947         install a signal handler for SIGBUS as well.
40948         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
40949
40950 2008-12-06  Bruno Haible  <bruno@clisp.org>
40951
40952         Advocacy documentation.
40953         * doc/gnulib-intro.texi (Benefits): New section.
40954         * doc/gnulib.texi: Update.
40955
40956 2008-12-06  Bruno Haible  <bruno@clisp.org>
40957
40958         Document the 'manywarnings' module.
40959         * doc/manywarnings.texi: New file.
40960         * doc/gnulib.texi: Include it.
40961
40962 2008-12-05  Eric Blake  <ebb9@byu.net>
40963
40964         tests: silence some gcc warnings
40965         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
40966         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
40967         type mismatches.
40968
40969 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40970             Bruno Haible  <bruno@clisp.org>
40971
40972         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
40973
40974 2008-11-29  Jim Meyering  <meyering@redhat.com>
40975
40976         unicodeio.c: mark unused parameters
40977         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40978         (fallback_failure_callback): Likewise.
40979
40980         fts: fix a thinko
40981         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40982         (set_stat_type): Return S_IF*-valued "type" directly.
40983         Prompted by James Youngman's spotting a related bug.
40984         Confirmed by further testing through find.
40985
40986         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40987         * lib/fts.c (D_TYPE): Define.
40988         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40989         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40990         (s_ifmt_shift_bits): New function.
40991         (set_stat_type): New function.
40992         (fts_build): When not calling fts_stat, call set_stat_type
40993         to propagate dirent.d_type info to fts_read caller.
40994         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40995         fts_statp->st_mode type information may be valid.
40996
40997 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40998
40999         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
41000         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
41001         <sds@gnu.org>.
41002
41003 2008-11-20  Bruno Haible  <bruno@clisp.org>
41004
41005         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
41006         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
41007         INCLUDE_NEXT.
41008         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
41009         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
41010         * modules/math (Makefile.am): Substitute
41011         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
41012         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41013
41014 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
41015             Bruno Haible  <bruno@clisp.org>
41016
41017         * lib/stdint.in.h: Define all type macros so that their expansion is
41018         a single typedef'ed token. Fixes a compilation failure in Boost which
41019         does "using ::int8_t;".
41020
41021 2008-11-18  Simon Josefsson  <simon@josefsson.org>
41022
41023         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
41024         gl_MANYWARN_ALL_GCC.
41025         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
41026         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
41027         * modules/manywarnings: New file.
41028         * MODULES.html.sh: Mention manywarnings module.
41029
41030 2008-11-18  Bruno Haible  <bruno@clisp.org>
41031
41032         * doc/gnulib-tool.texi (Unit tests): New section.
41033
41034 2008-11-18  Simon Josefsson  <simon@josefsson.org>
41035
41036         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
41037         paths like 'lib/po/foo.po'.
41038
41039 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41040
41041         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
41042         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
41043
41044 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41045
41046         * m4/warnings.m4: Use CPPFLAGS to really check whether the
41047         parameter works.
41048
41049 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41050
41051         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
41052
41053 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41054
41055         * modules/parse-duration-tests: New file.
41056         * tests/test-parse-duration.sh: New file.
41057         * tests/test-parse-duration.c: New file.
41058
41059         New module 'parse-duration'.
41060         * lib/parse-duration.h: New file.
41061         * lib/parse-duration.c: New file.
41062         * modules/parse-duration: New file.
41063
41064 2008-11-17  Bruno Haible  <bruno@clisp.org>
41065
41066         * tests/test-select-out.sh: Comment out the first pipe test.
41067         Reported by Simon Josefsson.
41068
41069 2008-11-17  Bruno Haible  <bruno@clisp.org>
41070
41071         * modules/getaddrinfo (Depends-on): Add servent, hostent.
41072         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
41073         gl_HOSTENT.
41074
41075 2008-11-17  Bruno Haible  <bruno@clisp.org>
41076
41077         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
41078         -lnetwork and -lnet. Needed for Haiku and BeOS.
41079
41080 2008-11-16  Bruno Haible  <bruno@clisp.org>
41081
41082         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
41083
41084 2008-11-16  Bruno Haible  <bruno@clisp.org>
41085
41086         Avoid test failure on Haiku.
41087         * tests/test-fsync.c: Include <errno.h>.
41088         (main): Don't require that fsync (0) fails.
41089
41090 2008-11-15  Bruno Haible  <bruno@clisp.org>
41091
41092         New module 'hostent'.
41093         * modules/hostent: New file.
41094         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
41095
41096 2008-11-15  Bruno Haible  <bruno@clisp.org>
41097
41098         New module 'servent'.
41099         * modules/servent: New file.
41100         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
41101
41102 2008-11-15  Bruno Haible  <bruno@clisp.org>
41103
41104         Avoid generating same test program with two different rules.
41105         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
41106         test-frexp to test-frexp-nolibm.
41107         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
41108         test-frexpl to test-frexpl-nolibm.
41109
41110 2008-11-15  Bruno Haible  <bruno@clisp.org>
41111
41112         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
41113         $(FREXPL_LIBM).
41114
41115 2008-11-15  Bruno Haible  <bruno@clisp.org>
41116
41117         * lib/netdb.in.h: Activate the definitions also when the system's
41118         <netdb.h> has 'struct addrinfo'.
41119         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
41120         EAI_OVERFLOW or AI_NUMERICSERV.
41121         * doc/posix-headers/netdb.texi: Document the problem.
41122
41123 2008-11-15  Bruno Haible  <bruno@clisp.org>
41124
41125         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
41126
41127         Make the 'sched' module work on platforms where <sched.h> exists but
41128         is incomplete (such as Haiku).
41129         * lib/sched.in.h; Include the system's <sched.h> if it exists.
41130         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
41131         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
41132         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
41133         HAVE_STRUCT_SCHED_PARAM.
41134         * modules/sched (Depends-on): Add include_next.
41135         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
41136         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
41137         * doc/posix-headers/sched.texi: Document the issue.
41138
41139 2008-11-13  Jim Meyering  <meyering@redhat.com>
41140
41141         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
41142         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
41143         test would fail due to the difference in the Report bugs to ...
41144         line.  The expected address is empty, "<>", while the actual
41145         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
41146
41147 2008-11-12  Bruno Haible  <bruno@clisp.org>
41148
41149         lstat: don't compile lstat.c on systems lacking lstat
41150         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
41151         which don't have lstat; this is handled by lib/sys_stat.in.h already.
41152         Reported by Daniel P. Berrange via Jim Meyering.
41153
41154 2008-11-12  Jim Meyering  <meyering@redhat.com>
41155
41156         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
41157
41158 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41159
41160         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
41161         instead.
41162
41163 2008-11-12  Bruno Haible  <bruno@clisp.org>
41164
41165         * lib/unicodeio.c: Include unistr.h.
41166         (utf8_wctomb): Remove function.
41167         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
41168
41169 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41170
41171         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
41172         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
41173         <bruno@clisp.org>.
41174         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
41175
41176 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41177
41178         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
41179         * doc/gnulib.texi: Add section for warnings.
41180
41181 2008-11-11  Bruno Haible  <bruno@clisp.org>
41182
41183         * lib/sockets.h: Add a comment.
41184
41185 2008-11-11  Karl Berry  <karl@gnu.org>
41186
41187         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
41188
41189 2008-11-11  Eric Blake  <ebb9@byu.net>
41190
41191         fdl.texi: avoid git symlinks
41192         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
41193
41194 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41195
41196         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
41197
41198 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41199
41200         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
41201         (gl_WARN_ADD): Substitute $2 if literal.
41202
41203 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41204
41205         * m4/warning.m4: Remove.
41206
41207 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41208
41209         * m4/warnings.m4: Almost complete rewrite. :-)
41210
41211 2008-11-10  Simon Josefsson  <simon@josefsson.org>
41212
41213         * modules/warnings: New module.
41214         * m4/warnings.m4: New file.
41215         * MODULES.html.sh: Mention warnings module.
41216         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
41217         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41218
41219 2008-11-10  Eric Blake  <ebb9@byu.net>
41220
41221         fdl.texi: make a symlink to the latest version
41222         * doc/standards.texi: Revert today's earlier change.
41223         * doc/fdl-1.2.texi: Rename from old fdl.texi...
41224         * doc/fdl.texi: ...and replace this with a symlink to the newer
41225         fdl-1.3.texi.
41226
41227 2008-11-10  Bruno Haible  <bruno@clisp.org>
41228
41229         * tests/test-select-fd.c (main): Accept the result file name as fourth
41230         argument.
41231         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
41232         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
41233
41234 2008-11-10  Bruno Haible  <bruno@clisp.org>
41235
41236         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
41237         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
41238         as autoconf-substituted macros.
41239         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
41240         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
41241         gl_NETDB_H_DEFAULTS. Set these variables.
41242         * modules/netdb (Makefile.am): Substitute these variables.
41243
41244 2008-11-10  Eric Blake  <ebb9@byu.net>
41245
41246         standards.texi: include correct file for FDL 1.3
41247         * doc/standards.texi (GNU Free Documentation License): Change
41248         include file to pull in FDL 1.3, not 1.2.
41249
41250         fdl.texi: revert accidental change to license
41251         * doc/fdl.texi: This is FDL 1.2, not 1.3.
41252
41253 2008-11-10  Bruno Haible  <bruno@clisp.org>
41254
41255         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
41256         cross-compiling guesses also when the native compile gives no result.
41257
41258 2008-11-10  Bruno Haible  <bruno@clisp.org>
41259
41260         * lib/spawni.c (__spawni): Force variable into the stack.
41261
41262 2008-11-10  Bruno Haible  <bruno@clisp.org>
41263
41264         Add support for Haiku.
41265         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
41266         glibc and BeOS, but also on Haiku.
41267         * lib/fpurge.c (fpurge): Likewise.
41268         * lib/freadable.c (freadable): Likewise.
41269         * lib/freadahead.c (freadahead): Likewise.
41270         * lib/freading.c (freading): Likewise.
41271         * lib/freadptr.c (freadptr): Likewise.
41272         * lib/freadseek.c (freadptrinc): Likewise.
41273         * lib/fseeko.c (rpl_fseeko): Likewise.
41274         * lib/fseterr.c (fseterr): Likewise.
41275         * lib/fwritable.c (fwritable): Likewise.
41276         * lib/fwriting.c (fwriting): Likewise.
41277         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
41278
41279 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41280
41281         * lib/config.charset: Treat Haiku like BeOS.
41282
41283 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41284
41285         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
41286         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
41287
41288 2008-11-08  Bruno Haible  <bruno@clisp.org>
41289
41290         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
41291         AC_CACHE_CHECK.
41292
41293 2008-11-08  Bruno Haible  <bruno@clisp.org>
41294
41295         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
41296
41297 2008-11-08  Bruno Haible  <bruno@clisp.org>
41298
41299         * tests/test-select-fd.c: New file.
41300         * tests/test-select-in.sh: New file.
41301         * tests/test-select-out.sh: New file.
41302         * tests/test-select-stdin.c: New file.
41303         * modules/select-tests (Files): Add the new files.
41304         (Depends-on): Add gettimeofday.
41305         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
41306         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
41307         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
41308
41309 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
41310             Bruno Haible  <bruno@clisp.org>
41311
41312         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
41313
41314 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
41315
41316         * build-aux/pmccabe2html: Added support for C++ source files.
41317
41318 2008-11-05  Ben Pfaff  <blp@gnu.org>
41319
41320         Fix lib/close.c build on Windows.
41321         * modules/close (Files): Add lib/w32sock.h.
41322
41323 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
41324
41325         Accept Bison's NEWS format.
41326         * build-aux/announce-gen (print_news_deltas): Tweak
41327         $re_prefix.
41328
41329 2008-11-04  Bruno Haible  <bruno@clisp.org>
41330
41331         * modules/random_r (Maintainer): Add glibc.
41332
41333 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41334
41335         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
41336         by karl@freefriends.org (Karl Berry).
41337         * doc/alloca.texi: Likewise.
41338         * doc/c-ctype.texi: Likewise.
41339         * doc/c-strcase.texi: Likewise.
41340         * doc/c-strcaseeq.texi: Likewise.
41341         * doc/c-strcasestr.texi: Likewise.
41342         * doc/c-strstr.texi: Likewise.
41343         * doc/c-strtod.texi: Likewise.
41344         * doc/c-strtold.texi: Likewise.
41345         * doc/ctime.texi: Likewise.
41346         * doc/error.texi: Likewise.
41347         * doc/fdl.texi: Likewise.
41348         * doc/gcd.texi: Likewise.
41349         * doc/getdate.texi: Likewise.
41350         * doc/gnulib-intro.texi: Likewise.
41351         * doc/gnulib-tool.texi: Likewise.
41352         * doc/gnulib.texi: Likewise.
41353         * doc/inet_ntoa.texi: Likewise.
41354         * doc/maintain.texi: Likewise.
41355         * doc/make-stds.texi: Likewise.
41356         * doc/quote.texi: Likewise.
41357         * doc/regexprops-generic.texi: Likewise.
41358         * doc/standards.texi: Likewise.
41359         * doc/verify.texi: Likewise.
41360         * doc/visibility.texi: Likewise.
41361         * doc/gnulib.texi (GNU Free Documentation License): Include
41362         fdl-1.3.texi instead of fdl.texi.
41363
41364 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41365
41366         * doc/fdl-1.3.texi: New file, from
41367         <http://www.gnu.org/licenses/fdl-1.3.texi>.
41368         * modules/fdl-1.3: Add.
41369         * MODULES.html.sh: Add fdl-1.3.
41370
41371 2008-11-03  Bruno Haible  <bruno@clisp.org>
41372
41373         Make determination of absolute name of header file work with AIX xlc.
41374         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
41375         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
41376         preprocessing.
41377         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41378         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
41379
41380 2008-11-03  Simon Josefsson  <simon@josefsson.org>
41381
41382         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
41383         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
41384         <ludo@gnu.org>.
41385
41386 2008-11-02  Bruno Haible  <bruno@clisp.org>
41387
41388         Mark 'strpbrk' obsolete.
41389         * modules/strpbrk (Status, Notice): New sections.
41390         * modules/strtok_r (Depends-on): Add strpbrk.
41391
41392 2008-11-02  Bruno Haible  <bruno@clisp.org>
41393
41394         Mark 'strdup' obsolete.
41395         * modules/strdup (Status, Notice): New sections.
41396         * modules/findprog (Depends-on): Add strdup.
41397         * modules/getaddrinfo (Depends-on): Likewise.
41398         * modules/localename (Depends-on): Likewise.
41399         * modules/relocatable-lib (Depends-on): Likewise.
41400         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
41401         * modules/relocatable-prog (Depends-on): Likewise.
41402         * modules/trim (Depends-on): Likewise.
41403         * modules/unictype/gen-ctype (Depends-on): Likewise.
41404         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41405
41406 2008-11-02  Bruno Haible  <bruno@clisp.org>
41407
41408         Mark 'strcspn' obsolete.
41409         * modules/strcspn (Status, Notice): New sections.
41410
41411 2008-11-02  Bruno Haible  <bruno@clisp.org>
41412
41413         Mark 'rmdir' obsolete.
41414         * modules/rmdir (Status, Notice): New sections.
41415         * modules/clean-temp (Depends-on): Add rmdir.
41416         * modules/openat (Depends-on): Likewise.
41417
41418 2008-11-02  Bruno Haible  <bruno@clisp.org>
41419
41420         Mark 'raise' obsolete.
41421         * modules/raise (Status, Notice): New sections.
41422         (Include): Specify <signal.h>.
41423         * modules/stdio (Depends-on): Add raise.
41424         * modules/write (Depends-on): Likewise.
41425
41426 2008-11-02  Bruno Haible  <bruno@clisp.org>
41427
41428         Mark 'memset' obsolete.
41429         * modules/memset (Status, Notice): New sections.
41430
41431 2008-11-02  Bruno Haible  <bruno@clisp.org>
41432
41433         Mark 'memmove' obsolete.
41434         * modules/memmove (Status, Notice): New sections.
41435         * modules/argp (Depends-on): Add memmove.
41436         * modules/argz (Depends-on): Likewise.
41437         * modules/canonicalize (Depends-on): Likewise.
41438         * modules/canonicalize-lgpl (Depends-on): Likewise.
41439         * modules/fts (Depends-on): Likewise.
41440         * modules/getcwd (Depends-on): Likewise.
41441         * modules/human (Depends-on): Likewise.
41442         * modules/regex (Depends-on): Likewise.
41443         * modules/striconveh (Depends-on): Likewise.
41444         * modules/trim (Depends-on): Likewise.
41445         * modules/unistr/u8-move (Depends-on): Likewise.
41446         * modules/unistr/u16-move (Depends-on): Likewise.
41447         * modules/unistr/u32-move (Depends-on): Likewise.
41448
41449 2008-11-02  Bruno Haible  <bruno@clisp.org>
41450
41451         Mark 'memcpy' obsolete.
41452         * modules/memcpy (Status, Notice): New sections.
41453
41454 2008-11-02  Bruno Haible  <bruno@clisp.org>
41455
41456         Mark 'memcmp' obsolete.
41457         * modules/memcmp (Status, Notice): New sections.
41458         * modules/argmatch (Depends-on): Add memchr.
41459         * modules/backupfile (Depends-on): Likewise.
41460         * modules/c-strcasestr (Depends-on): Likewise.
41461         * modules/crypto/des (Depends-on): Likewise.
41462         * modules/csharpcomp (Depends-on): Likewise.
41463         * modules/fnmatch (Depends-on): Likewise.
41464         * modules/git-merge-changelog (Depends-on): Likewise.
41465         * modules/isnand (Depends-on): Likewise.
41466         * modules/isnand-nolibm (Depends-on): Likewise.
41467         * modules/isnanf (Depends-on): Likewise.
41468         * modules/isnanf-nolibm (Depends-on): Likewise.
41469         * modules/isnanl (Depends-on): Likewise.
41470         * modules/isnanl-nolibm (Depends-on): Likewise.
41471         * modules/mbchar (Depends-on): Likewise.
41472         * modules/memcoll (Depends-on): Likewise.
41473         * modules/quotearg (Depends-on): Likewise.
41474         * modules/regex (Depends-on): Likewise.
41475         * modules/relocatable-prog (Depends-on): Likewise.
41476         * modules/same (Depends-on): Likewise.
41477         * modules/signbit (Depends-on): Likewise.
41478         * modules/strcasestr-simple (Depends-on): Likewise.
41479         * modules/unictype/gen-ctype (Depends-on): Likewise.
41480         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41481         * modules/uniname/uniname (Depends-on): Likewise.
41482         * modules/unistr/u8-cmp (Depends-on): Likewise.
41483
41484 2008-11-02  Bruno Haible  <bruno@clisp.org>
41485
41486         Mark 'memchr' obsolete.
41487         * modules/memchr (Status, Notice): New sections.
41488         * modules/argp (Depends-on): Add memchr.
41489         * modules/base64 (Depends-on): Likewise.
41490         * modules/c-strcasestr (Depends-on): Likewise.
41491         * modules/chdir-long (Depends-on): Likewise.
41492         * modules/fnmatch (Depends-on): Likewise.
41493         * modules/getsubopt (Depends-on): Likewise.
41494         * modules/git-merge-changelog (Depends-on): Likewise.
41495         * modules/glob (Depends-on): Likewise.
41496         * modules/strcasestr-simple (Depends-on): Likewise.
41497         * modules/strnlen (Depends-on): Likewise.
41498
41499 2008-11-02  Bruno Haible  <bruno@clisp.org>
41500
41501         Mark 'atexit' obsolete.
41502         * modules/atexit (Status, Notice): New sections.
41503         * modules/chdir-long (Depends-on): Add atexit.
41504         * modules/wait-process (Depends-on): Likewise.
41505
41506 2008-11-02  Bruno Haible  <bruno@clisp.org>
41507
41508         * gnulib-tool: New option --with-obsolete.
41509         (func_usage): Document it.
41510         (func_modules_transitive_closure): Drop obsolete dependencies if
41511         incobsolete is not true.
41512         (func_import): Read and save the incobsolete variable to the cache.
41513
41514 2008-11-02  Bruno Haible  <bruno@clisp.org>
41515
41516         * modules/TEMPLATE-EXTENDED: New field 'Status'.
41517         * gnulib-tool: New option --extract-status.
41518         (func_usage): Document it.
41519         (sed_extract_prog): Recognize it.
41520         (func_get_status): New function.
41521
41522 2008-10-30  Simon Josefsson  <simon@josefsson.org>
41523
41524         * modules/sockets (License): Change from LGPL to LGPLv2+.
41525
41526 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41527
41528         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
41529
41530 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41531
41532         * MODULES.html.sh (Support for systems lacking POSIX:2001):
41533         Mention times and sys_times.
41534         * modules/sys_times, modules/sys_times-tests: New modules.
41535         * modules/times, modules/times-tests: Likewise
41536         * m4/sys_times_h.m4: New file.
41537         * lib/sys_times.in.h: Likewise
41538         * lib/times.c: Likewise.
41539         * tests/test-sys_times.c: Likewise.
41540         * tests/test-times.c: Likewise.
41541         * doc/posix-headers/sys_times.texi: Update.
41542         * doc/posix-functions/times.texi: Update.
41543
41544 2008-10-28  Jim Meyering  <meyering@redhat.com>
41545
41546         * modules/tempname (Depends-on): Add lstat.
41547
41548         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
41549
41550 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41551
41552         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
41553         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
41554         using idiom used elsewhere in gnulib.
41555
41556 2008-10-27  Jim Meyering  <meyering@redhat.com>
41557
41558         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
41559
41560 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41561
41562         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
41563         TESTS_ENVIRONMENT, for shell scripts that needs to call built
41564         programs.
41565         * tests/test-argp-2.sh: Use $EXEEXT when needed.
41566
41567 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41568
41569         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
41570
41571 2008-10-27  Bruno Haible  <bruno@clisp.org>
41572
41573         * tests/test-lstat.c: Include <stdio.h>.
41574
41575 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41576
41577         * modules/lstat-tests: New module.
41578         * tests/test-lstat.c: New file.
41579
41580 2008-10-26  Jim Meyering  <meyering@redhat.com>
41581
41582         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
41583
41584 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41585             Bruno Haible  <bruno@clisp.org>
41586
41587         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
41588         * modules/configmake (Include): Add a note that the include must come
41589         after all system headers.
41590         * lib/javaversion.c: Include configmake.h after all other includes.
41591
41592 2008-10-26  Bruno Haible  <bruno@clisp.org>
41593
41594         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
41595         HAVE_STRUCT_RANDOM_DATA to 1.
41596         (gl_STDLIB_H): Simplify.
41597
41598 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41599
41600         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
41601         substitute HAVE_STRUCT_RANDOM_DATA.
41602         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
41603         random_data.
41604         * modules/stdlib (Makefile.am): Substitute
41605         HAVE_STRUCT_RANDOM_DATA.
41606
41607 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41608
41609         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
41610         * doc/gnulib-intro.texi (Copyright): Likewise.
41611
41612 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41613
41614         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
41615         findings.
41616
41617 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
41618             Bruno Haible  <bruno@clisp.org>
41619
41620         * lib/unistd.in.h: Include <winsock2.h>.
41621         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
41622         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
41623         Provide dummy declarations.
41624         (gethostname): Override.
41625         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
41626         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
41627         gl_PREREQ_SYS_H_WINSOCK2.
41628         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
41629         * doc/posix-functions/gethostname.texi: More details.
41630
41631 2008-10-25  Bruno Haible  <bruno@clisp.org>
41632
41633         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41634         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
41635         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
41636
41637         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
41638         here ...
41639         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
41640         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
41641         gl_UNISTD_H_DEFAULTS.
41642
41643 2008-10-25  Eric Blake  <ebb9@byu.net>
41644
41645         signbit: avoid spurious compiler failure
41646         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
41647         declarations inside function.
41648
41649 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41650             Bruno Haible  <bruno@clisp.org>
41651
41652         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
41653         * modules/random_r (Depends-on): Add stdint.
41654
41655 2008-10-24  Bruno Haible  <bruno@clisp.org>
41656
41657         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
41658         Eggert.
41659         * modules/strerror (License): Likewise.
41660
41661 2008-10-24  Jim Meyering  <meyering@redhat.com>
41662
41663         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
41664         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
41665
41666 2008-10-24  Eric Blake  <ebb9@byu.net>
41667
41668         getgroups: fix compilation when getgroups is available
41669         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
41670         but with <config.h> override of getgroups disabled.
41671
41672 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41673
41674         * doc/gnulib.texi (Header files): Add note about C++ problems.
41675         Explained by Bruno Haible <bruno@clisp.org>.
41676
41677 2008-10-23  Bruno Haible  <bruno@clisp.org>
41678
41679         Define a dummy SA_NODEFER macro on Interix.
41680         * lib/signal.in.h (SA_NODEFER): Define fallback.
41681         Reported by Aleksey Cheusov <cheusov@tut.by> via
41682         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
41683
41684 2008-10-23  Bruno Haible  <bruno@clisp.org>
41685
41686         * modules/freadahead (License): Change to LGPLv2+.
41687         Suggested by Simon Josefsson.
41688
41689 2008-10-23  Jim Meyering  <meyering@redhat.com>
41690
41691         random_r: new module
41692         * modules/random_r: New file.
41693         * m4/random_r.m4: New file.
41694         * lib/random_r.c: New file, from glibc.
41695         * modules/random_r-tests: New file.
41696         * tests/test-random_r.c: New file.
41697         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
41698          Declare.
41699         (RAND_MAX): Define.
41700         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
41701         * modules/stdlib: Substitute them, too.
41702         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
41703         * doc/glibc-functions/initstate_r.texi: Mention the new module.
41704         * doc/glibc-functions/random_r.texi: Likewise.
41705         * doc/glibc-functions/setstate_r.texi: Likewise.
41706         * doc/glibc-functions/srandom_r.texi: Likewise.
41707         * config/srclist.txt: Mention it.
41708
41709 2008-10-23  David Lutterkort  <lutter@redhat.com>
41710
41711         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
41712         link requirement
41713
41714 2008-10-23  Jim Meyering  <meyering@redhat.com>
41715
41716         selinux-h: mark parameters of stub functions as intentionally unused
41717         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
41718         * lib/se-context.in.h: Likewise.
41719
41720 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41721
41722         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
41723
41724 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41725
41726         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
41727
41728 2008-10-22  Eric Blake  <ebb9@byu.net>
41729
41730         glthread/thread: avoid compiler warning
41731         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
41732         Add unreachable abort to silence compiler.
41733
41734 2008-10-22  Eric Blake  <ebb9@byu.net>
41735
41736         netdb: also supply struct addrinfo for cygwin 1.5.x
41737         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
41738         older cygwin.
41739         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
41740         cygwin.
41741         * doc/posix-headers/netdb.texi (netdb.h): Document this.
41742
41743 2008-10-22  Bruno Haible  <bruno@clisp.org>
41744
41745         * users.txt: Update entry about pspp.
41746
41747 2008-10-21  Bruno Haible  <bruno@clisp.org>
41748
41749         Simplification.
41750         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
41751         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
41752
41753         Simplification.
41754         * lib/ioctl.c (ioctl): Don't undefine.
41755         * lib/socket.c (socket): Don't undefine.
41756
41757         Remove unused module indicator macros.
41758         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
41759         GNULIB_$1 as a C macro.
41760
41761         * doc/posix-functions/close.texi: Undo last change.
41762         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
41763         Windows platforms.
41764
41765 2008-10-21  Bruno Haible  <bruno@clisp.org>
41766
41767         Add gethostname() declaration to <unistd.h>.
41768         * lib/unistd.in.h (gethostname): New declaration.
41769         * lib/gethostname.c: Include <unistd.h>.
41770         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
41771         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
41772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
41773         and HAVE_GETHOSTNAME.
41774         * modules/gethostname (Depends-on): Add unistd.
41775         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41776         (Include): Specify <unistd.h>.
41777         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
41778         HAVE_GETHOSTNAME.
41779         * tests/test-gethostname.c: Include <unistd.h> first.
41780
41781 2008-10-21  Bruno Haible  <bruno@clisp.org>
41782
41783         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
41784         * modules/select-tests (Depends-on): Likewise.
41785         Reported by Simon Josefsson.
41786
41787 2008-10-21  Simon Josefsson  <simon@josefsson.org>
41788
41789         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
41790         * lib/accept.c: New file, based on winsock.c.
41791         * lib/bind.c: New file, based on winsock.c.
41792         * lib/connect.c: New file, based on winsock.c.
41793         * lib/getpeername.c: New file, based on winsock.c.
41794         * lib/getsockname.c: New file, based on winsock.c.
41795         * lib/getsockopt.c: New file, based on winsock.c.
41796         * lib/ioctl.c: New file, based on winsock.c.
41797         * lib/listen.c: New file, based on winsock.c.
41798         * lib/recv.c: New file, based on winsock.c.
41799         * lib/recvfrom.c: New file, based on winsock.c.
41800         * lib/send.c: New file, based on winsock.c.
41801         * lib/sendto.c: New file, based on winsock.c.
41802         * lib/setsockopt.c: New file, based on winsock.c.
41803         * lib/shutdown.c: New file, based on winsock.c.
41804         * lib/socket.c: New file, based on winsock.c.
41805         * lib/w32sock.h: New file, based on winsock.c.
41806         * lib/winsock.c: Remove file.
41807         * modules/accept: Likewise.
41808         * modules/bind: Likewise.
41809         * modules/connect: Likewise.
41810         * modules/getpeername: Likewise.
41811         * modules/getsockname: Likewise.
41812         * modules/getsockopt: Likewise.
41813         * modules/ioctl: Likewise.
41814         * modules/listen: Likewise.
41815         * modules/recv: Likewise.
41816         * modules/recvfrom: Likewise.
41817         * modules/send: Likewise.
41818         * modules/sendto: Likewise.
41819         * modules/setsockopt: Likewise.
41820         * modules/shutdown: Likewise.
41821         * modules/socket: Use socket.c instead of winsock.c.
41822         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
41823         * doc/posix-functions/accept.texi: Doc fix.
41824         * doc/posix-functions/bind.texi: Doc fix.
41825         * doc/posix-functions/close.texi: Doc fix.
41826         * doc/posix-functions/connect.texi: Doc fix.
41827         * doc/posix-functions/getpeername.texi: Doc fix.
41828         * doc/posix-functions/getsockname.texi: Doc fix.
41829         * doc/posix-functions/getsockopt.texi: Doc fix.
41830         * doc/posix-functions/ioctl.texi: Doc fix.
41831         * doc/posix-functions/listen.texi: Doc fix.
41832         * doc/posix-functions/recv.texi: Doc fix.
41833         * doc/posix-functions/recvfrom.texi: Doc fix.
41834         * doc/posix-functions/send.texi: Doc fix.
41835         * doc/posix-functions/sendto.texi: Doc fix.
41836         * doc/posix-functions/setsockopt.texi: Doc fix.
41837         * doc/posix-functions/shutdown.texi: Doc fix.
41838         * doc/posix-functions/socket.texi: Doc fix.
41839
41840 2008-10-20  Bruno Haible  <bruno@clisp.org>
41841
41842         Take into account the role of SIGABRT_COMPAT on Windows 2008.
41843         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
41844         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
41845         as an alias for SIGABRT.
41846         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
41847         (sigaction): Map it to SIGABRT.
41848         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
41849
41850 2008-10-20  Bruno Haible  <bruno@clisp.org>
41851
41852         * lib/fts.c: Don't include lstat.h.
41853         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
41854
41855         Move the lstat() declaration to <sys/stat.h>.
41856         * lib/lstat.h: Remove file.
41857         * lib/sys_stat.in.h: Add special invocation convention.
41858         (lstat): New declaration.
41859         * lib/lstat.c (orig_lstat): New function.
41860         (rpl_lstat): Use orig_lstat instead of lstat.
41861         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
41862         AC_C_INLINE. Set REPLACE_LSTAT.
41863         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
41864         and REPLACE_LSTAT.
41865         * modules/lstat (Files): Remove lib/lstat.h.
41866         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41867         (Include): Specify <sys/stat.h> instead of lstat.h.
41868         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
41869         REPLACE_LSTAT.
41870         * NEWS: Mention the change.
41871
41872 2008-10-20  Bruno Haible  <bruno@clisp.org>
41873
41874         * modules/posix_spawn-tests: New file.
41875         * tests/test-posix_spawn3.c: New file.
41876
41877 2008-10-20  Bruno Haible  <bruno@clisp.org>
41878
41879         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
41880         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41881         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
41882         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41883         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
41884
41885 2008-10-20  Bruno Haible  <bruno@clisp.org>
41886
41887         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
41888         of posix_spawn on AIX 5.3.
41889
41890 2008-10-20  Bruno Haible  <bruno@clisp.org>
41891
41892         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
41893
41894 2008-10-20  Bruno Haible  <bruno@clisp.org>
41895
41896         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
41897         of AC_LANG_PROGRAM.
41898
41899 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41900
41901         * lib/netdb.in.h: Don't define GNU specific constants until they
41902         are supported or needed.  Reported by Bruno Haible
41903         <bruno@clisp.org>.
41904
41905 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41906
41907         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
41908
41909 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41910
41911         * lib/getaddrinfo.h: Remove file.
41912         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
41913         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
41914         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
41915         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
41916         * modules/netdb: Substitute GNULIB_GETADDRINFO.
41917         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
41918         * tests/test-getaddrinfo.c: Likewise.
41919         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
41920         * NEWS: Mention change.
41921
41922 2008-10-19  Bruno Haible  <bruno@clisp.org>
41923
41924         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
41925
41926 2008-10-19  Bruno Haible  <bruno@clisp.org>
41927
41928         * lib/wait-process.c: Include simply <sys/wait.h>.
41929         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
41930         WIFSTOPPED): Remove fallback definitions.
41931         * modules/wait-process (Depends-on): Add sys_wait.
41932
41933         New module 'sys_wait'.
41934         * modules/sys_wait: New file.
41935         * lib/sys_wait.in.h: New file, partially copied from
41936         lib/wait-process.c.
41937         * m4/sys_wait_h.m4: New file.
41938         * doc/posix-headers/sys_wait.texi: Mention the new module.
41939
41940 2008-10-19  Bruno Haible  <bruno@clisp.org>
41941
41942         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
41943
41944 2008-10-19  Bruno Haible  <bruno@clisp.org>
41945
41946         Assume that waitpid() fills an 'int' status, not a 'union wait'.
41947         * lib/wait-process.c (WAIT_T): Remove type.
41948         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
41949         (wait_subprocess): Update.
41950
41951 2008-10-19  Bruno Haible  <bruno@clisp.org>
41952
41953         New module 'atoll'.
41954         * modules/atoll: New file.
41955         * lib/stdlib.in.h (atoll): New declaration.
41956         * lib/atoll.c: New file, from glibc with modifications.
41957         * m4/atoll.m4: New file.
41958         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
41959         HAVE_ATOLL.
41960         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
41961         * doc/posix-functions/atoll.texi: Mention the new module.
41962
41963 2008-10-19  Bruno Haible  <bruno@clisp.org>
41964
41965         Add strtoull() declaration to <stdlib.h>.
41966         * lib/stdlib.in.h (strtoull): New declaration.
41967         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41968         Set HAVE_STRTOULL.
41969         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
41970         HAVE_STRTOULL.
41971         * modules/strtoull (Depends-on): Add stdlib.
41972         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41973         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41974         HAVE_STRTOULL.
41975
41976 2008-10-19  Bruno Haible  <bruno@clisp.org>
41977
41978         Add strtoll() declaration to <stdlib.h>.
41979         * lib/stdlib.in.h (strtoll): New declaration.
41980         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41981         Set HAVE_STRTOLL.
41982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41983         HAVE_STRTOLL.
41984         * modules/strtoll (Depends-on): Add stdlib.
41985         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41986         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41987
41988 2008-10-19  Bruno Haible  <bruno@clisp.org>
41989
41990         * modules/bcopy (Depends-on): Add strings.
41991         (Include): Specify <strings.h>.
41992
41993 2008-10-19  Bruno Haible  <bruno@clisp.org>
41994
41995         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41996
41997 2008-10-19  Bruno Haible  <bruno@clisp.org>
41998
41999         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
42000         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
42001         mingw.
42002
42003 2008-10-19  Bruno Haible  <bruno@clisp.org>
42004
42005         * lib/atanl.c: Don't include isnanl.h.
42006         * lib/cosl.c: Likewise.
42007         * lib/ldexpl.c: Likewise.
42008         * lib/logl.c: Likewise.
42009         * lib/sinl.c: Likewise.
42010         * lib/sqrtl.c: Likewise.
42011         * lib/tanl.c: Likewise.
42012
42013         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
42014         * lib/isnanf.h: Remove file.
42015         * lib/isnand.h: Remove file.
42016         * lib/isnanl.h: Remove file.
42017         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
42018         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
42019         macros.
42020         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
42021         HAVE_ISNANF, don't define it as a C macro.
42022         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
42023         HAVE_ISNAND, don't define it as a C macro.
42024         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
42025         HAVE_ISNANL, don't define it as a C macro.
42026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
42027         HAVE_ISNAN[FDL].
42028         * modules/isnanf (Files): Remove lib/isnanf.h.
42029         (Depends-on): Add math.
42030         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42031         (Include): Specify <math.h> instead of isnanf.h.
42032         * modules/isnand (Files): Remove lib/isnand.h.
42033         (Depends-on): Add math.
42034         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42035         (Include): Specify <math.h> instead of isnand.h.
42036         * modules/isnanl (Files): Remove lib/isnanl.h.
42037         (Depends-on): Add math.
42038         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42039         (Include): Specify <math.h> instead of isnanl.h.
42040         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
42041         HAVE_ISNAN[FDL].
42042         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
42043         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
42044         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
42045         * NEWS: Mention the change.
42046
42047 2008-10-18  Bruno Haible  <bruno@clisp.org>
42048
42049         Add getusershell(), setusershell(), endusershell() declarations to
42050         <unistd.h>.
42051         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
42052         declarations.
42053         * lib/getusershell.c: Include unistd.h.
42054         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
42055         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42056         HAVE_GETUSERSHELL.
42057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
42058         and HAVE_GETUSERSHELL.
42059         * modules/getusershell (Depends-on): Add unistd, extensions.
42060         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42061         (Include): Specify <unistd.h>.
42062         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
42063         HAVE_GETUSERSHELL.
42064
42065 2008-10-18  Bruno Haible  <bruno@clisp.org>
42066
42067         Add a getloadavg() declaration to <stdlib.h>.
42068         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
42069         getloadavg declaration.
42070         (getloadavg): New declaration.
42071         * lib/getloadavg.c: Include <stdlib.h> first.
42072         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
42073         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
42074         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
42075         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
42076         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42077         * modules/getloadavg (Depends-on): Add stdlib, extensions.
42078         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42079         (Include): Specify <stdlib.h>.
42080         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
42081         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42082
42083 2008-10-18  Bruno Haible  <bruno@clisp.org>
42084
42085         * lib/dirchownmod.c: Don't include lchmod.h.
42086
42087         Move the lchmod() declaration to <sys/stat.h>.
42088         * lib/lchmod.h: Remove file.
42089         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
42090         (lchmod): New declaration, moved here from lib/lchown.h.
42091         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
42092         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
42093         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
42094         and HAVE_LCHMOD.
42095         * modules/lchmod (Files): Remove lib/lchmod.h.
42096         (Depends-on): Add sys_stat, extensions.
42097         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42098         (Include): Specify <sys/stat.h> instead of lchmod.h.
42099         * modules/sys_stat (Depends-on): Add link-warning.
42100         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
42101         definition of GL_LINK_WARNING.
42102         * NEWS: Mention the change.
42103
42104 2008-10-18  Bruno Haible  <bruno@clisp.org>
42105
42106         * lib/fchdir.c: Don't include dirfd.h.
42107         * lib/fts.c: Likewise.
42108         * lib/getcwd.c: Likewise.
42109         * lib/glob.c: Likewise.
42110
42111         Move the dirfd() declaration to <dirent.h>.
42112         * lib/dirfd.h: Remove file.
42113         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
42114         (dirfd): New declaration.
42115         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
42116         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
42117         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
42118         HAVE_DECL_DIRFD.
42119         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
42120         HAVE_DECL_DIRFD.
42121         * modules/dirfd (Files): Remove lib/dirfd.h.
42122         (Depends-on): Add dirent, extensions.
42123         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
42124         (Include): Specify <dirent.h> instead of dirfd.h.
42125         * modules/dirent (Depends-on): Add link-warning.
42126         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
42127         definition of GL_LINK_WARNING.
42128         * NEWS: Mention the change.
42129
42130 2008-10-18  Bruno Haible  <bruno@clisp.org>
42131
42132         Move the euidaccess() declaration to <unistd.h>.
42133         * lib/euidaccess.h: Remove file.
42134         * lib/unistd.in.h (euidaccess): New declaration.
42135         * lib/euidaccess.c: Don't include euidaccess.h.
42136         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
42137         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
42138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
42139         and HAVE_EUIDACCESS.
42140         * modules/euidaccess (Files): Remove lib/euidaccess.h.
42141         (Depends-on): Add unistd.
42142         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42143         (Include): Specify <unistd.h> instead of euidaccess.h.
42144         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
42145         HAVE_EUIDACCESS.
42146         * NEWS: Mention the change.
42147
42148 2008-10-18  Bruno Haible  <bruno@clisp.org>
42149
42150         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
42151
42152         Move the getdomainname() declaration to <unistd.h>.
42153         * lib/getdomainname.h: Remove file.
42154         * lib/unistd.in.h (getdomainname): New declaration.
42155         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
42156         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
42157         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42158         HAVE_GETDOMAINNAME.
42159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42160         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
42161         * modules/getdomainname (Files): Remove lib/getdomainname.h.
42162         (Depends-on): Add unistd, extensions.
42163         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42164         (Includes): Specify <unistd.h> instead of getdomainname.h.
42165         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
42166         HAVE_GETDOMAINNAME.
42167         * NEWS: Mention the change.
42168
42169 2008-10-18  Bruno Haible  <bruno@clisp.org>
42170
42171         * modules/dirent: New file.
42172         * m4/dirent_h.m4: New file.
42173         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
42174         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
42175         * modules/fchdir (Files): Remove lib/dirent.in.h.
42176         (Depends-on): Add dirent.
42177         (Makefile.am): Move rules to modules/dirent.
42178         * doc/posix-headers/dirent.texi: Mention the new module.
42179
42180 2008-10-18  Bruno Haible  <bruno@clisp.org>
42181
42182         Avoid -Wunused-parameter warnings in public gnulib header files.
42183         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
42184         macro.
42185         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
42186
42187 2008-10-18  Bruno Haible  <bruno@clisp.org>
42188
42189         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
42190         * doc/glibc-functions/error.texi: Mention the module 'error'.
42191         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
42192         * doc/glibc-functions/getdomainname.texi: Mention the module
42193         'getdomainname'.
42194         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
42195         * doc/glibc-functions/getpagesize.texi: Mention the module
42196         'getpagesize'.
42197         * doc/glibc-functions/getusershell.texi: Mention the module
42198         'getusershell'.
42199         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
42200         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
42201         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
42202         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
42203         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
42204         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
42205         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
42206         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
42207         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
42208         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
42209         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
42210         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
42211         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
42212         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
42213
42214 2008-10-17  Bruno Haible  <bruno@clisp.org>
42215
42216         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
42217         HP-UX and IRIX, use -0.0L.
42218         * tests/test-ceill.c (minus_zero): Likewise.
42219         * tests/test-floorl.c (minus_zero): Likewise.
42220         * tests/test-frexpl.c (minus_zero): Likewise.
42221         * tests/test-isnan.c (minus_zerol): Likewise.
42222         * tests/test-isnanl.h (minus_zero): Likewise.
42223         * tests/test-ldexpl.c (minus_zero): Likewise.
42224         * tests/test-roundl.c (minus_zero): Likewise.
42225         * tests/test-signbit.c (minus_zerol): Likewise.
42226         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42227         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42228         * tests/test-truncl.c (minus_zero): Likewise.
42229         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42230         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42231         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
42232         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42233
42234 2008-10-17  Bruno Haible  <bruno@clisp.org>
42235
42236         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
42237         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
42238         that it gets activated only for gcc >= 3.0.
42239         * lib/dirent.in.h: Likewise.
42240         * lib/errno.in.h: Likewise.
42241         * lib/fcntl.in.h: Likewise.
42242         * lib/float.in.h: Likewise.
42243         * lib/iconv.in.h: Likewise.
42244         * lib/inttypes.in.h: Likewise.
42245         * lib/locale.in.h: Likewise.
42246         * lib/math.in.h: Likewise.
42247         * lib/netdb.in.h: Likewise.
42248         * lib/netinet_in.in.h: Likewise.
42249         * lib/search.in.h: Likewise.
42250         * lib/signal.in.h: Likewise.
42251         * lib/spawn.in.h: Likewise.
42252         * lib/stdarg.in.h: Likewise.
42253         * lib/stdint.in.h: Likewise.
42254         * lib/stdio.in.h: Likewise.
42255         * lib/stdlib.in.h: Likewise.
42256         * lib/string.in.h: Likewise.
42257         * lib/strings.in.h: Likewise.
42258         * lib/sys_file.in.h: Likewise.
42259         * lib/sys_ioctl.in.h: Likewise.
42260         * lib/sys_select.in.h: Likewise.
42261         * lib/sys_socket.in.h: Likewise.
42262         * lib/sys_stat.in.h: Likewise.
42263         * lib/sys_time.in.h: Likewise.
42264         * lib/sysexits.in.h: Likewise.
42265         * lib/time.in.h: Likewise.
42266         * lib/unistd.in.h: Likewise.
42267         * lib/wchar.in.h: Likewise.
42268         * lib/wctype.in.h: Likewise.
42269         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42270
42271 2008-10-17  Jim Meyering  <meyering@redhat.com>
42272
42273         ignore-value: don't depend on inline module
42274         * modules/ignore-value (Depends-on): Remove 'inline'.
42275         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
42276         Suggestion from Bruno Haible.
42277
42278 2008-10-17  Bruno Haible  <bruno@clisp.org>
42279
42280         New implementation of condition variables for Win32.
42281         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
42282         (gl_linked_waitqueue_t): New type.
42283         (gl_cond_t): Use it.
42284         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
42285         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
42286         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
42287         (glthread_cond_init_func, glthread_cond_wait_func,
42288         glthread_cond_timedwait_func, glthread_cond_signal_func,
42289         glthread_cond_broadcast_func, glthread_cond_destroy_func):
42290         Reimplemented on the basis of gl_linked_waitqueue_t.
42291         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
42292         gl_waitqueue_t.
42293         (gl_rwlock_t): Update.
42294         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
42295
42296 2008-10-17  Simon Josefsson  <simon@josefsson.org>
42297
42298         * modules/recvfrom (Depends-on): Add dependency on getpeername.
42299         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42300
42301 2008-10-17  Jim Meyering  <meyering@redhat.com>
42302
42303         ignore-value: new module
42304         * modules/ignore-value: New file.
42305         * lib/ignore-value.h: New file.
42306         * MODULES.html.sh (Compiler warning management): New section,
42307         just for this module.  More to come.
42308
42309 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42310
42311         open-safer.c: avoid 'signed and unsigned in conditional...' warning
42312         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
42313         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
42314
42315 2008-10-16  Jim Meyering  <meyering@redhat.com>
42316
42317         openat-die.c: avoid 'no previous prototype' warning
42318         * lib/openat-die.c: Include "openat.h".
42319         Reported by Reuben Thomas <rrt@sc3d.org>.
42320
42321 2008-10-16  Simon Josefsson  <simon@josefsson.org>
42322
42323         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
42324         * lib/netdb.in.h: Fix typo.
42325         Reported by Bruno Haible  <bruno@clisp.org>
42326
42327         * lib/netdb.in.h: Include sys/socket.h for platforms without
42328         netdb.h, to get structures like hostent on MinGW.
42329         * modules/netdb (Depends-on): Add sys_socket.
42330
42331 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42332
42333         * modules/netdb, modules/netdb-tests: New file.
42334         * m4/netdb_h.m4: New file.
42335         * lib/netdb.in.h: Add, currently just an empty file pending
42336         definitions.
42337         * tests/test-netdb.c: New file.
42338         * doc/posix-headers/netdb.texi: Mention that we replace it if
42339         needed.
42340         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42341         netdb.
42342
42343 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42344
42345         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
42346         with code.
42347
42348 2008-10-13  Bruno Haible  <bruno@clisp.org>
42349
42350         * lib/glthread/cond.c (glthread_cond_wait_func,
42351         glthread_cond_timedwait_func): Add a comment.
42352
42353 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42354
42355         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
42356         * tests/test-select.c: Likewise,
42357
42358 2008-10-13  Bruno Haible  <bruno@clisp.org>
42359
42360         * lib/glthread/cond.c (glthread_cond_wait_func,
42361         glthread_cond_timedwait_func): Fix variable name.
42362         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42363
42364 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
42365
42366         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
42367         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
42368         struct sockaddr.sa_len.
42369         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
42370
42371 2008-10-13  Simon Josefsson  <simon@josefsson.org>
42372
42373         * build-aux/pmccabe2html: Add css and css_url parameters.
42374
42375 2008-10-12  Bruno Haible  <bruno@clisp.org>
42376
42377         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
42378         calling aclx_get.
42379         Reported by Rainer Tammer <tammer@tammer.net>.
42380
42381 2008-10-12  Bruno Haible  <bruno@clisp.org>
42382
42383         Use msvcrt aware primitives for creation/termination of Win32 threads.
42384         * lib/glthread/thread.c: Include <process.h>.
42385         (glthread_create_func): Use _beginthreadex instead of CreateThread.
42386         (wrapper_func): Update signature.
42387         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
42388
42389 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42390             Bruno Haible  <bruno@clisp.org>
42391
42392         Provide a Win32 implementation of the 'cond' module.
42393         * lib/glthread/cond.h [USE_WIN32]: New implementation.
42394         * lib/glthread/cond.c (glthread_cond_init_func,
42395         glthread_cond_wait_func, glthread_cond_timedwait_func,
42396         glthread_cond_signal_func, glthread_cond_broadcast_func,
42397         glthread_cond_destroy_func) [USE_WIN32]: New functions.
42398         * modules/cond (Dependencies): Add gettimeofday.
42399
42400 2008-10-11  Bruno Haible  <bruno@clisp.org>
42401
42402         Make sleep work on older versions of mingw.
42403         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
42404         only whether it exists.
42405         * doc/posix-functions/sleep.texi: Mention the problem with older
42406         versions of mingw.
42407
42408 2008-10-11  Bruno Haible  <bruno@clisp.org>
42409
42410         New module 'shutdown'.
42411         * modules/shutdown: New file.
42412         * lib/sys_socket.in.h (shutdown): New declaration.
42413         * lib/winsock.c (shutdown): New function.
42414         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42415         GNULIB_SHUTDOWN.
42416         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
42417         * doc/posix-functions/shutdown.texi: Document the new module.
42418
42419 2008-10-11  Jim Meyering  <meyering@redhat.com>
42420
42421         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
42422
42423 2008-10-11  Bruno Haible  <bruno@clisp.org>
42424
42425         New module 'fclose'.
42426         * modules/fclose: New file.
42427         * lib/stdio.in.h (fclose): New declaration.
42428         * lib/fclose.c: New file.
42429         * m4/fclose.m4: New file.
42430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
42431         REPLACE_FCLOSE.
42432         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
42433         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
42434         REPLACE_FCLOSE.
42435         * modules/close (Depends-on): fclose.
42436         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
42437
42438 2008-10-11  Bruno Haible  <bruno@clisp.org>
42439
42440         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
42441         set errno and don't call _close.
42442
42443 2008-10-10  Bruno Haible  <bruno@clisp.org>
42444
42445         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
42446         ACL, not afterwards. Fixes test failure on Cygwin.
42447
42448 2008-10-09  Ben Pfaff  <blp@gnu.org>
42449
42450         * build-aux/announce-gen: Fix gnulib version related part of usage
42451         message.  Die with a useful error message if no tarballs are
42452         found.
42453
42454 2008-10-10  Jim Meyering  <meyering@redhat.com>
42455
42456         bootstrap: use git's --depth=N option only if it's supported
42457         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
42458         recognize the --depth option.  Reported by Pádraig Brady.
42459
42460 2008-10-09  Bruno Haible  <bruno@clisp.org>
42461
42462         New module 'ioctl'.
42463         * modules/ioctl: New file.
42464         * lib/sys_socket.in.h (ioctl): Remove declaration.
42465         * lib/winsock.c: Include <sys/ioctl.h>.
42466         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
42467         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42468         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
42469         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
42470         * doc/posix-functions/ioctl.texi: Mention the new module.
42471
42472 2008-10-09  Bruno Haible  <bruno@clisp.org>
42473
42474         New module 'sys_ioctl'.
42475         * lib/sys_ioctl.in.h: New file.
42476         * m4/sys_ioctl_h.m4: New file.
42477         * modules/sys_ioctl: New file.
42478         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
42479
42480 2008-10-09  Bruno Haible  <bruno@clisp.org>
42481
42482         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
42483         * lib/winsock.c: Include <stdarg.h>.
42484         (rpl_ioctl): Change to second argument 'int' and then varargs.
42485
42486 2008-10-09  Bruno Haible  <bruno@clisp.org>
42487
42488         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
42489         when the sys_socket module is present and the system has <winsock2.h>.
42490
42491 2008-10-09  Bruno Haible  <bruno@clisp.org>
42492
42493         * doc/posix-functions/close.texi: Mention module 'close' instead of
42494         module 'sys_socket'.
42495
42496 2008-10-09  Bruno Haible  <bruno@clisp.org>
42497
42498         * doc/glibc-headers/sys_ioctl.texi: New file.
42499         * doc/gnulib.texi: Include it.
42500
42501 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42502             Bruno Haible  <bruno@clisp.org>
42503
42504         Combine the two replacements of 'close'.
42505         * lib/sys_socket.in.h (close): Define to a reminder to include
42506         <unistd.h>.
42507         (_gl_close_fd_maybe_socket): New declaration.
42508         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
42509         * lib/winsock.c (close): Remove undefinition.
42510         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
42511         needed for the gnulib module 'close'.
42512         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
42513         define to an error symbol or to a warning, if suitable.
42514         * lib/close.c: Include <sys/socket.h>.
42515         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
42516         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
42517         UNISTD_H_HAVE_WINSOCK2_H.
42518         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
42519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42520         UNISTD_H_HAVE_WINSOCK2_H.
42521         * modules/sys_socket (Files): Add m4/unistd_h.m4.
42522         (configure.ac): Set a module indicator.
42523         (Makefile.am): Substitute GNULIB_CLOSE.
42524         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
42525         * modules/poll-tests (Depends-on): Add close.
42526         * modules/select-tests (Depends-on): Likewise.
42527
42528 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42529             Bruno Haible  <bruno@clisp.org>
42530
42531         New module 'close'.
42532         * modules/close: New file.
42533         * lib/unistd.in.h (close): Move declaration out of the
42534         FCHDIR_REPLACEMENT scope.
42535         (_gl_unregister_fd): New declaration.
42536         * lib/close.c: New file.
42537         * lib/fchdir.c (rpl_close): Remove function.
42538         * m4/close.m4: New file.
42539         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42540         close.
42541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
42542         REPLACE_CLOSE.
42543         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
42544         REPLACE_CLOSE.
42545         * modules/fchdir (Depends-on): Add close.
42546
42547 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42548             Bruno Haible  <bruno@clisp.org>
42549
42550         * lib/fcntl.in.h (open): Simplify conditionals.
42551         (_gl_register_fd): New declaration.
42552         * lib/fchdir.c (rpl_open): Remove function.
42553         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
42554         also.
42555         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
42556         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42557         open.
42558
42559 2008-10-09  Jim Meyering  <meyering@redhat.com>
42560
42561         GNUmakefile: use the more name-space-friendly "_version"
42562         * top/GNUmakefile (_dummy): Update.
42563         (_version): Rename from "version".
42564
42565 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42566             Bruno Haible  <bruno@clisp.org>
42567
42568         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
42569         rpl_close.
42570         (_gl_register_fd): New function, extracted from rpl_open.
42571         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
42572         (rpl_open, rpl_opendir): Use _gl_register_fd.
42573
42574 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42575
42576         Fix organization of 'open' replacement.
42577         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
42578         (gl_FUNC_OPEN): Use it.
42579         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
42580
42581 2008-10-08  Bruno Haible  <bruno@clisp.org>
42582
42583         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
42584
42585 2008-10-08  Simon Josefsson  <simon@josefsson.org>
42586
42587         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
42588         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
42589         listen).
42590
42591 2008-10-08  Eric Blake  <ebb9@byu.net>
42592
42593         GNUmakefile: add 'make version' target
42594         * top/GNUmakefile (_curr-ver): Split version update rules...
42595         (version): ...into a target.
42596
42597 2008-10-07  Bruno Haible  <bruno@clisp.org>
42598
42599         Use a more portable replacement expression for -0.0L.
42600         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
42601         instead of -0.0L. Fix m4 quotation.
42602
42603         * tests/test-signbit.c: Include <float.h>.
42604         (minus_zero): New variable.
42605         (test_signbitl): Use minus_zero instead of -zero.
42606         * modules/signbit-tests (Depends-on): Add float.
42607
42608         * tests/test-ceill.c: Include <float.h>.
42609         (zero): Remove variable.
42610         (minus_zero): New variable.
42611         (main): Use minus_zero instead of -zero.
42612         * modules/ceill-tests (Depends-on): Add float.
42613
42614         * tests/test-floorl.c: Include <float.h>.
42615         (zero): Remove variable.
42616         (minus_zero): New variable.
42617         (main): Use minus_zero instead of -zero.
42618         * modules/floorl-tests (Depends-on): Add float.
42619
42620         * tests/test-roundl.c: Include <float.h>.
42621         (zero): Remove variable.
42622         (minus_zero): New variable.
42623         (main): Use minus_zero instead of -zero.
42624         * modules/roundl-tests (Depends-on): Add float.
42625
42626         * tests/test-truncl.c: Include <float.h>.
42627         (zero): Remove variable.
42628         (minus_zero): New variable.
42629         (main): Use minus_zero instead of -zero.
42630         * modules/truncl-tests (Depends-on): Add float.
42631
42632         * tests/test-frexpl.c (zero): Remove variable.
42633         (minus_zero): New variable.
42634         (main): Use minus_zero instead of -zero.
42635         * modules/frexpl-tests (Depends-on): Add float.
42636
42637         * tests/test-isnan.c (zerol): Remove variable.
42638         (minus_zerol): New variable.
42639         (test_long_double): Use minus_zerol instead of -zerol.
42640         * modules/isnan-tests (Depends-on): Add float.
42641
42642         * tests/test-isnanl.h (zero): Remove variable.
42643         (minus_zero): New variable.
42644         (main): Use minus_zero instead of -zero.
42645         * modules/isnanl-nolibm-tests (Depends-on): Add float.
42646         * modules/isnanl-tests (Depends-on): Add float.
42647
42648         * tests/test-ldexpl.c (zero): Remove variable.
42649         (minus_zero): New variable.
42650         (main): Use minus_zero instead of -zero.
42651         * modules/ldexpl-tests (Depends-on): Add float.
42652
42653         * tests/test-snprintf-posix.h (zerol): Remove variable.
42654         (minus_zerol): New variable.
42655         (test_function): Use minus_zerol instead of -zerol.
42656         * modules/snprintf-posix-tests (Depends-on): Add float.
42657         * modules/vsnprintf-posix-tests (Depends-on): Add float.
42658
42659         * tests/test-sprintf-posix.h (zerol): Remove variable.
42660         (minus_zerol): New variable.
42661         (test_function): Use minus_zerol instead of -zerol.
42662         * modules/sprintf-posix-tests (Depends-on): Add float.
42663         * modules/vsprintf-posix-tests (Depends-on): Add float.
42664
42665         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
42666         (minus_zerol): New variable.
42667         (test_function): Use minus_zerol instead of -zerol.
42668         * modules/vasnprintf-posix-tests (Depends-on): Add float.
42669
42670         * tests/test-vasprintf-posix.c (zerol): Remove variable.
42671         (minus_zerol): New variable.
42672         (test_function): Use minus_zerol instead of -zerol.
42673         * modules/vasprintf-posix-tests (Depends-on): Add float.
42674
42675 2008-10-07  Simon Josefsson  <simon@josefsson.org>
42676
42677         * MODULES.html.sh (Support for building documentation): Mention
42678         pmccabe2html.  Sort entries.
42679
42680         Add pmccabe2html module, from gnupdf.
42681         * build-aux/pmccabe.css: New file.
42682         * build-aux/pmccabe2html: New file.
42683         * m4/pmccabe2html.m4: New file.
42684         * modules/pmccabe2html: New file.
42685
42686 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
42687
42688         flock: new module
42689         * MODULES.html.sh: Add to list of modules.
42690         * lib/flock.c: flock implementation for Windows and Unix systems
42691         which have fcntl.
42692         * doc/glibc-functions/flock.texi: Update documentation.
42693         * lib/sys_file.in.h: <sys/file.h> header file.
42694         * m4/flock.m4: M4 macros.
42695         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
42696         * modules/flock: flock module.
42697         * modules/flock-tests: flock tests module.
42698         * modules/sys_file: sys/file.h module.
42699         * tests/test-flock.c: test suite for flock.
42700
42701 2008-10-06  Jim Meyering  <meyering@redhat.com>
42702
42703         bootstrap: check for LT_INIT more portably still ;-)
42704         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
42705         Spotted by Bruno Haible.
42706
42707 2008-10-06  Eric Blake  <ebb9@byu.net>
42708
42709         test-signbit: avoid tripping Irix cc bug on -0.0L
42710         * tests/test-signbit.c (minus_zerol): Delete, and replace with
42711         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
42712         entire testsuite consistent and avoids an Irix 6.2 bug.
42713
42714 2008-10-05  Bruno Haible  <bruno@clisp.org>
42715             Jim Meyering  <jim@meyering.net>
42716
42717         Add an option for ignoring EPIPE during close_stdout.
42718         * lib/closeout.h: Include <stdbool.h>.
42719         (close_stdout_set_ignore_EPIPE): New declaration.
42720         * lib/closeout.c: Include <stdbool.h>.
42721         (ignore_EPIPE): New variable.
42722         (close_stdout_set_ignore_EPIPE): New function.
42723         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
42724         * lib/close-stream.c (close_stream): Mention the possible EPIPE
42725         failure.
42726         * modules/closeout (Depends-on): Add stdbool.
42727
42728 2008-10-05  Bruno Haible  <bruno@clisp.org>
42729
42730         * modules/accept: New file.
42731         * modules/bind: New file.
42732         * modules/connect: New file.
42733         * modules/getpeername: New file.
42734         * modules/getsockname: New file.
42735         * modules/getsockopt: New file.
42736         * modules/listen: New file.
42737         * modules/recv: New file.
42738         * modules/recvfrom: New file.
42739         * modules/send: New file.
42740         * modules/sendto: New file.
42741         * modules/setsockopt: New file.
42742         * modules/socket: New file.
42743         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
42744         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
42745         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
42746         the particular module is requested. Add a link warning when the
42747         particular module is not requested.
42748         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
42749         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
42750         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
42751         the particular module is requested.
42752         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
42753         gl_SYS_SOCKET_H_DEFAULTS): New macros.
42754         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
42755         * modules/sys_socket (Depends-on): Add link-warning.
42756         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
42757         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
42758         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
42759         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
42760         GL_LINK_WARNING.
42761         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
42762         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
42763         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
42764         * doc/posix-functions/getpeername.texi: Mention the new module
42765         'getpeername'.
42766         * doc/posix-functions/getsockname.texi: Mention the new module
42767         'getsockname'.
42768         * doc/posix-functions/getsockopt.texi: Mention the new module
42769         'getsockopt'.
42770         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
42771         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
42772         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
42773         * doc/posix-functions/send.texi: Mention the new module 'send'.
42774         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
42775         * doc/posix-functions/setsockopt.texi: Mention the new module
42776         'setsockopt'.
42777         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
42778         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
42779         listen, connect, accept.
42780         * modules/select-tests (Depends-on): Likewise.
42781
42782 2008-10-05  Bruno Haible  <bruno@clisp.org>
42783
42784         * lib/winsock.c (strerror): Remove unused #undef.
42785         (rpl_close): Remove unused local variable.
42786
42787         * modules/sys_socket (Depends-on); Add errno.
42788
42789 2008-10-05  Bruno Haible  <bruno@clisp.org>
42790
42791         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
42792         (select): Add a link warning when the 'select' module is not used.
42793         * modules/sys_select (Depends-on): Add link-warning.
42794         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
42795         Suggested by Paolo Bonzini.
42796
42797 2008-10-05  Jim Meyering  <meyering@redhat.com>
42798
42799         bootstrap: check for LT_INIT more portably
42800         * build-aux/bootstrap: Avoid using grep -E, since it's not
42801         portable enough.  Suggestion from Bruno Haible.
42802
42803 2008-10-05  Bruno Haible  <bruno@clisp.org>
42804
42805         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
42806         as being fixed by gnulib.
42807
42808 2008-10-05  Bruno Haible  <bruno@clisp.org>
42809
42810         * modules/select-tests: New file, mostly copied from
42811         modules/sys_select-tests.
42812         * tests/test-select.c: New file, mostly copied from
42813         tests/test-sys_select.c.
42814         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
42815         * modules/sys_select-tests (Depends-on): Remove all dependencies.
42816         (Makefile.am): Remove test_sys_select_LDADD.
42817
42818         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
42819         to an undefined symbol, for an error message.
42820         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
42821         (gl_SYS_SELECT_H_DEFAULTS): New macro.
42822         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
42823         winsock-select.c here.
42824         * modules/sys_select (Files): Remove lib/winsock-select.c.
42825         (Depends-on): Remove alloca.
42826         (Makefile.am): Substitute GNULIB_SELECT.
42827         * modules/select: New file.
42828         * doc/posix-functions/select.texi: Update.
42829
42830 2008-10-05  Bruno Haible  <bruno@clisp.org>
42831
42832         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
42833         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
42834         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
42835         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
42836         getdtablesize.
42837         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
42838         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
42839
42840 2008-10-05  Bruno Haible  <bruno@clisp.org>
42841
42842         * modules/getdtablesize-tests: New file.
42843         * tests/test-getdtablesize.c: New file.
42844
42845         New module 'getdtablesize'.
42846         * lib/unistd.in.h (getdtablesize): New declaration.
42847         * lib/getdtablesize.c: New file.
42848         * m4/getdtablesize.m4: New file.
42849         * modules/getdtablesize: New file.
42850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42851         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
42852         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
42853         HAVE_GETDTABLESIZE.
42854         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
42855
42856 2008-10-05  Bruno Haible  <bruno@clisp.org>
42857
42858         * modules/sched (Makefile.am): Fix typo.
42859         Reported by Simon Josefsson.
42860
42861 2008-10-05  Jim Meyering  <meyering@redhat.com>
42862
42863         bootstrap: check for LT_INIT, too
42864         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
42865         are deprecated.  Suggestion from Ralf Wildenhues.
42866
42867 2008-10-05  Bruno Haible  <bruno@clisp.org>
42868
42869         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
42870         overriding them by ours.
42871         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
42872
42873 2008-10-05  Jim Meyering  <meyering@redhat.com>
42874
42875         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
42876         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
42877         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
42878
42879 2008-10-04  Bruno Haible  <bruno@clisp.org>
42880
42881         * modules/dup2 (License): Change to LGPLv2+.
42882         * modules/sleep (License): Likewise.
42883         * modules/perror (License): Likewise.
42884         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
42885         Blake.
42886         * modules/signal (License): Likewise.
42887         * modules/sigprocmask (License): Likewise.
42888         * modules/raise (License): Change to LGPLv2+, with approval by Jim
42889         Meyering.
42890
42891 2008-10-04  Bruno Haible  <bruno@clisp.org>
42892
42893         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
42894         Reported by Rainer Tammer <tammer@tammer.net>.
42895
42896 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
42897             Bruno Haible  <bruno@clisp.org>
42898
42899         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
42900         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
42901         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
42902
42903 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
42904
42905         filevercmp: new module
42906         * lib/filevercmp.h: New function filevercmp comparing version strings.
42907         * lib/filevercmp.c: Implementation of filevercmp function.
42908         * modules/filevercmp: Module metadata.
42909         * tests/test-filevercmp.c: Unit test for new module.
42910         * modules/filevercmp-tests: Unit test metadata.
42911         * MODULES.html.sh: Add filevercmp module.
42912
42913 2008-10-03  Bruno Haible  <bruno@clisp.org>
42914
42915         * lib/c-ctype.h: Add comment.
42916         Reported by Jim Meyering.
42917
42918 2008-10-02  Bruno Haible  <bruno@clisp.org>
42919
42920         * modules/posix_spawn-internal (Depends-on): Add 'open'.
42921
42922 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42923
42924         * build-aux/bootstrap: Allow renaming bootstrap, and change the
42925         name of bootstrap.conf accordingly.
42926
42927 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42928
42929         * build-aux/bootstrap: Install git-merge-changelog configuration
42930         items into .gitconfig if needed.
42931
42932 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42933
42934         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
42935         git repository, and initialize/update it accordingly.
42936
42937 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
42938
42939         * modules/fsync-tests: New file.
42940         * tests/test-fsync.c: New file.
42941
42942         New module 'fsync'.
42943         * lib/fsync.c: New file.
42944         * m4/fsync.m4: New file.
42945         * modules/fsync: New file.
42946         * lib/unistd.in.h (fsync): New declaration.
42947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
42948         GNULIB_FSYNC and HAVE_FSYNC.
42949         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
42950         * MODULES.html.sh (posix_functions): Add fsync.
42951         * doc/posix-functions/fsync.texi: Mention the new module.
42952
42953 2008-10-02  Jim Meyering  <meyering@redhat.com>
42954
42955         fts.c: sync with similar code from coreutils' remove.c
42956         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
42957         Guard also with "#if defined __linux__", since for now at least,
42958         this code is Linux-kernel-specific.
42959
42960 2008-10-02  Jim Meyering  <meyering@redhat.com>
42961
42962         fts: bug fixes
42963         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
42964         Include <sys/vfs.h>, not <sys/statfs.h>.
42965
42966         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
42967         Include <sys/vfs.h>, not <sys/statfs.h>.
42968
42969 2008-10-01  Bruno Haible  <bruno@clisp.org>
42970
42971         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
42972         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
42973         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42974         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42975         * doc/posix-functions/posix_spawnp.texi: Likewise.
42976         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42977         whether posix_spawn actually works.
42978         * m4/pipe.m4 (gl_PIPE): Likewise.
42979         * modules/execute (Files): Add m4/posix_spawn.m4.
42980         * modules/pipe (Files): Add m4/posix_spawn.m4.
42981         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42982
42983 2008-10-01  Jim Meyering  <meyering@redhat.com>
42984
42985         remove trailing spaces
42986         * NEWS: Likewise.
42987         * lib/poll.c (poll): Likewise.
42988         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42989         * lib/winsock.c (rpl_close): Likewise.
42990         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42991         * modules/yield: Likewise.
42992         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42993         * tests/test-sys_select.c (connect_to_socket): Likewise.
42994
42995         fts.c: adjust a new interface to be more generally useful
42996         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42997         (fts_build): Adjust caller.
42998
42999 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43000
43001         * modules/cond-tests: New file.
43002         * tests/test-cond.c: New file.
43003
43004 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43005             Bruno Haible  <bruno@clisp.org>
43006
43007         * modules/cond (Dependencies): Add errno, time.
43008         * lib/glthread/cond.h: Include <time.h>.
43009         (gl_cond_define, gl_cond_define_initialized): Use the same definition
43010         across platforms.
43011
43012 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43013             Bruno Haible  <bruno@clisp.org>
43014
43015         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
43016
43017 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43018             Bruno Haible  <bruno@clisp.org>
43019
43020         * modules/tls-tests (Depends-on): Add thread, yield.
43021         (configure.ac): Remove all checks.
43022         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
43023         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
43024         gl_thread_self): Remove definitions. Include glthread/thread.h and
43025         glthread/yield.h instead.
43026         (test_tls): Pass an additional NULL argument to gl_thread_join.
43027
43028 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43029             Bruno Haible  <bruno@clisp.org>
43030
43031         * modules/lock-tests (Depends-on): Add thread, yield.
43032         (configure.ac): Remove all checks.
43033         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
43034         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
43035         gl_thread_self): Remove definitions. Include glthread/thread.h and
43036         glthread/yield.h instead.
43037         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
43038         additional NULL argument to gl_thread_join.
43039
43040 2008-09-30  Bruno Haible  <bruno@clisp.org>
43041
43042         Fix the Win32 implementation of the 'thread' module.
43043         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
43044         pointer type.
43045         (gl_thread_self): Invoke gl_thread_self_func.
43046         (gl_thread_self_func): New declaration.
43047         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
43048         (do_init_self_key, init_self_key): New functions.
43049         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
43050         Remove some fields.
43051         (running_threads, running_lock): Remove variables.
43052         (get_current_thread_handle): New function.
43053         (gl_thread_self_func, wrapper_func, glthread_create_func,
43054         glthread_join_func, gl_thread_exit_func): Largely rewritten and
43055         simplified.
43056
43057 2008-09-30  Bruno Haible  <bruno@clisp.org>
43058
43059         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
43060         files.
43061
43062 2008-09-30  Jim Meyering  <meyering@redhat.com>
43063
43064         fts.m4: correct the test for statfs.f_type
43065         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
43066         when checking for statfs.f_type.
43067
43068 2008-09-15  Simon Josefsson  <simon@josefsson.org>
43069
43070         tests: avoid some compiler warnings
43071         * tests/test-memchr.c (main): Pass NULL indirectly.
43072         * tests/test-getdate.c (main): Remove unused variable 'ret'.
43073
43074 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
43075
43076         getdate.y: disallow countable dayshifts like "4 yesterday ago"
43077         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
43078         exactly specified dayshifts.
43079         (dayshift): New rule.
43080         (rel): Add dayshift.
43081         (relative_time_table) [tomorrow, yesterday, today, now]:
43082         Use tDAY_SHIFT in place of tDAY_UNIT.
43083         * tests/test-getdate.c: Add tests for now-disallowed countable
43084         dayshifts, e.g., "4 yesterday ago".
43085
43086 2008-09-29  Bruno Haible  <bruno@clisp.org>
43087
43088         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
43089         * tests/test-posix_spawn1.in.sh: Renamed from
43090         tests/test-posix_spawn.in.sh.
43091         * tests/test-posix_spawn2.c: New file.
43092         * tests/test-posix_spawn2.in.sh: New file.
43093         * modules/posix_spawnp-tests (Files): Update.
43094         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
43095
43096 2008-09-29  Bruno Haible  <bruno@clisp.org>
43097
43098         Propagate effects of putenv/setenv/unsetenv to child processes.
43099         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
43100         * lib/pipe.c (create_pipe): Likewise.
43101
43102 2008-09-29  Bruno Haible  <bruno@clisp.org>
43103
43104         Enable use of shell scripts as executables in mingw.
43105         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
43106         run the program as a shell script.
43107         * lib/pipe.c (create_pipe): Likewise.
43108         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
43109         resulting array.
43110
43111 2008-09-29  Eric Blake  <ebb9@byu.net>
43112
43113         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
43114
43115 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
43116
43117         * doc/posix-functions/accept.texi: Update mingw problems.
43118         * doc/posix-functions/bind.texi: Update mingw problems.
43119         * doc/posix-functions/close.texi: Update mingw problems.
43120         * doc/posix-functions/connect.texi: Update mingw problems.
43121         * doc/posix-functions/getpeername.texi: Update mingw problems.
43122         * doc/posix-functions/getsockname.texi: Update mingw problems.
43123         * doc/posix-functions/getsockopt.texi: Update mingw problems.
43124         * doc/posix-functions/ioctl.texi: Update mingw problems.
43125         * doc/posix-functions/listen.texi: Update mingw problems.
43126         * doc/posix-functions/recv.texi: Update mingw problems.
43127         * doc/posix-functions/recvfrom.texi: Update mingw problems.
43128         * doc/posix-functions/select.texi: Update mingw problems.
43129         * doc/posix-functions/send.texi: Update mingw problems.
43130         * doc/posix-functions/sendto.texi: Update mingw problems.
43131         * doc/posix-functions/setsockopt.texi: Update mingw problems.
43132         * doc/posix-functions/socket.texi: Update mingw problems.
43133
43134 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
43135             Bruno Haible  <bruno@clisp.org>
43136
43137         * lib/sys_select.in.h: Include sys/time.h.
43138         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
43139         * modules/sys_select: Depend on sys_time.
43140         * tests/test-sys_select.c: Test that sys/select.h defines struct
43141         timeval fully.
43142
43143 2008-09-29  Bruno Haible  <bruno@clisp.org>
43144
43145         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
43146         * lib/sys_select.in.h: Likewise.
43147
43148 2008-09-29  Bruno Haible  <bruno@clisp.org>
43149
43150         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
43151
43152 2008-09-29  Bruno Haible  <bruno@clisp.org>
43153
43154         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
43155         Set LIBSOCKET instead of augmenting LIBS.
43156         * modules/sockets (Link): New section.
43157         * modules/sockets-tests (test_sockets_LDADD): New variable.
43158         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
43159         * modules/poll-tests (test_poll_LDADD): New variable.
43160         * NEWS: Document the change.
43161
43162 2008-09-29  Bruno Haible  <bruno@clisp.org>
43163
43164         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
43165         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
43166         ARPA_INET_H directly.
43167         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43168
43169 2008-09-28  Bruno Haible  <bruno@clisp.org>
43170
43171         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
43172         from gl_HEADER_SYS_SOCKET.
43173         (gl_HEADER_SYS_SOCKET): Invoke it.
43174         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43175
43176 2008-09-28  Bruno Haible  <bruno@clisp.org>
43177
43178         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
43179         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
43180         Needed on OSF/1 4.0.
43181
43182 2008-09-28  Bruno Haible  <bruno@clisp.org>
43183
43184         Override open more carefully.
43185         * lib/open.c (orig_open): New function.
43186         (rpl_open): Use orig_open instead of open.
43187         * lib/fcntl.in.h: Add special invocation convention.
43188         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
43189         (gl_FUNC_OPEN): Invoke it.
43190
43191         Override freopen more carefully.
43192         * lib/freopen.c (orig_freopen): New function.
43193         (rpl_freopen): Use orig_freopen instead of freopen.
43194         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
43195         (gl_FUNC_FREOPEN): Invoke it.
43196
43197         Override fopen more carefully.
43198         * lib/fopen.c (orig_fopen): New function.
43199         (rpl_fopen): Use orig_fopen instead of fopen.
43200         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
43201         (gl_FUNC_FOPEN): Invoke it.
43202         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
43203
43204 2008-09-28  Bruno Haible  <bruno@clisp.org>
43205
43206         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
43207         SIGPIPE.
43208
43209 2008-09-28  Bruno Haible  <bruno@clisp.org>
43210
43211         * tests/test-sigaction.c (handler, main): Disable the check whether
43212         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
43213         glibc systems with LinuxThreads.
43214
43215 2008-09-28  Bruno Haible  <bruno@clisp.org>
43216
43217         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
43218
43219         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
43220         with AIX xlc.
43221         * lib/fcntl.in.h (open): Likewise.
43222         Reported by Rainer Tammer <tammer@tammer.net>.
43223
43224 2008-09-28  Bruno Haible  <bruno@clisp.org>
43225
43226         * modules/posix_spawnp-tests: New file.
43227         * tests/test-posix_spawn.c: New file.
43228         * tests/test-posix_spawn.in.sh: New file.
43229
43230         New module 'posix_spawnp'.
43231         * modules/posix_spawnp: New file.
43232         * lib/spawnp.c: New file, from GNU libc with modifications.
43233         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
43234
43235         New module 'posix_spawn'.
43236         * modules/posix_spawn: New file.
43237         * lib/spawn.c: New file, from GNU libc with modifications.
43238         * doc/posix-functions/posix_spawn.texi: Mention the new module.
43239
43240         New module 'posix_spawnattr_destroy'.
43241         * modules/posix_spawnattr_destroy: New file.
43242         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
43243         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
43244         module.
43245
43246         New module 'posix_spawnattr_setsigmask'.
43247         * modules/posix_spawnattr_setsigmask: New file.
43248         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
43249         modifications.
43250         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
43251         new module.
43252
43253         New module 'posix_spawnattr_getsigmask'.
43254         * modules/posix_spawnattr_getsigmask: New file.
43255         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
43256         modifications.
43257         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
43258         new module.
43259
43260         New module 'posix_spawnattr_setsigdefault'.
43261         * modules/posix_spawnattr_setsigdefault: New file.
43262         * lib/spawnattr_setdefault.c: New file, from GNU libc with
43263         modifications.
43264         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
43265         new module.
43266
43267         New module 'posix_spawnattr_getsigdefault'.
43268         * modules/posix_spawnattr_getsigdefault: New file.
43269         * lib/spawnattr_getdefault.c: New file, from GNU libc with
43270         modifications.
43271         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
43272         new module.
43273
43274         New module 'posix_spawnattr_setschedpolicy'.
43275         * modules/posix_spawnattr_setschedpolicy: New file.
43276         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
43277         modifications.
43278         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
43279         new module.
43280
43281         New module 'posix_spawnattr_getschedpolicy'.
43282         * modules/posix_spawnattr_getschedpolicy: New file.
43283         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
43284         modifications.
43285         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
43286         new module.
43287
43288         New module 'posix_spawnattr_setschedparam'.
43289         * modules/posix_spawnattr_setschedparam: New file.
43290         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
43291         modifications.
43292         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
43293         new module.
43294
43295         New module 'posix_spawnattr_getschedparam'.
43296         * modules/posix_spawnattr_getschedparam: New file.
43297         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
43298         modifications.
43299         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
43300         new module.
43301
43302         New module 'posix_spawnattr_setpgroup'.
43303         * modules/posix_spawnattr_setpgroup: New file.
43304         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
43305         modifications.
43306         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
43307         module.
43308
43309         New module 'posix_spawnattr_getpgroup'.
43310         * modules/posix_spawnattr_getpgroup: New file.
43311         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
43312         modifications.
43313         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
43314         module.
43315
43316         New module 'posix_spawnattr_setflags'.
43317         * modules/posix_spawnattr_setflags: New file.
43318         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
43319         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
43320         module.
43321
43322         New module 'posix_spawnattr_getflags'.
43323         * modules/posix_spawnattr_getflags: New file.
43324         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
43325         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
43326         module.
43327
43328         New module 'posix_spawnattr_init'.
43329         * modules/posix_spawnattr_init: New file.
43330         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
43331         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
43332         module.
43333
43334         New module 'posix_spawn_file_actions_destroy'.
43335         * modules/posix_spawn_file_actions_destroy: New file.
43336         * lib/spawn_faction_destroy.c: New file, from GNU libc with
43337         modifications.
43338         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
43339         the new module.
43340
43341         New module 'posix_spawn_file_actions_addopen'.
43342         * modules/posix_spawn_file_actions_addopen: New file.
43343         * lib/spawn_faction_addopen.c: New file, from GNU libc with
43344         modifications.
43345         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43346         the new module.
43347
43348         New module 'posix_spawn_file_actions_adddup2'.
43349         * modules/posix_spawn_file_actions_adddup2: New file.
43350         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
43351         modifications.
43352         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43353         the new module.
43354
43355         New module 'posix_spawn_file_actions_addclose'.
43356         * modules/posix_spawn_file_actions_addclose: New file.
43357         * lib/spawn_faction_addclose.c: New file, from GNU libc with
43358         modifications.
43359         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43360         the new module.
43361
43362         New module 'posix_spawn_file_actions_init'.
43363         * modules/posix_spawn_file_actions_init: New file.
43364         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
43365         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
43366         new module.
43367
43368         New module 'posix_spawn-internal'.
43369         * modules/posix_spawn-internal: New file.
43370         * lib/spawn_int.h: New file, from GNU libc with modifications.
43371         * lib/spawni.c: New file, from GNU libc with modifications.
43372         * m4/posix_spawn.m4: New file.
43373
43374         New module 'spawn'.
43375         * modules/spawn: New file.
43376         * lib/spawn.in.h: New file, from GNU libc with modifications.
43377         * m4/spawn_h.m4: New file.
43378         * doc/posix-headers/spawn.texi: Mention the new module.
43379
43380 2008-09-28  Bruno Haible  <bruno@clisp.org>
43381
43382         * modules/sched-tests: New file.
43383         * tests/test-sched.c: New file.
43384
43385         New module 'sched'.
43386         * modules/sched: New file.
43387         * lib/sched.in.h: New file.
43388         * m4/sched_h.m4: New file.
43389         * doc/posix-headers/sched.texi: Mention the new module.
43390
43391 2008-09-27  Eric Blake  <ebb9@byu.net>
43392
43393         Fix previous patch, and tweak references to $0.
43394         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
43395         (func_version, func_gnulib_dir): Don't call this program
43396         gnulib-tool.
43397         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
43398         with using $0 in function.
43399         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
43400         (func_fatal_error): Reuse the name the user invoked us with.
43401
43402 2008-09-27  Bruno Haible  <bruno@clisp.org>
43403
43404         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
43405         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
43406         (gl_ICONV_H): Not here.
43407         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
43408         instead of assigning ICONV_H directly.
43409
43410         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
43411         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
43412         WCHAR_H directly.
43413
43414 2008-09-27  Bruno Haible  <bruno@clisp.org>
43415
43416         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
43417         * modules/arpa_inet (Depends-on): Add link-warning.
43418         (Makefile.am): Insert the definition of GL_LINK-WARNING.
43419         * modules/unistd (Makefile.am): Likewise.
43420
43421 2008-09-26  Bruno Haible  <bruno@clisp.org>
43422
43423         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
43424         variables.
43425         (func_version): Essentially copied from gnulib-tool.
43426         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
43427         func_readlink): Copied from gnulib-tool.
43428
43429 2008-09-26  Bruno Haible  <bruno@clisp.org>
43430
43431         * gnulib-tool (func_version): Change directory to $gnulib_dir before
43432         invoking git-version-gen.
43433
43434 2008-09-26  Bruno Haible  <bruno@clisp.org>
43435
43436         * posix-modules: Update to directory names changed on 2008-01-19.
43437         Remove commas in output before splitting into words. No more need to
43438         avoid 'ftruncate' since 2007-02-19.
43439
43440 2008-09-26  Bruno Haible  <bruno@clisp.org>
43441
43442         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
43443
43444 2008-09-26  Bruno Haible  <bruno@clisp.org>
43445
43446         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
43447         * modules/fwriteerror (Depends-on): Add errno.
43448
43449 2008-09-26  Bruno Haible  <bruno@clisp.org>
43450
43451         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
43452         * tests/test-vc-list-files-cvs.sh: Likewise.
43453
43454 2008-09-26  Bruno Haible  <bruno@clisp.org>
43455
43456         * doc/posix-headers/sys_resource.texi: Reorder items.
43457
43458 2008-09-26  Jim Meyering  <meyering@redhat.com>
43459
43460         fts: tweak inode comparison function
43461         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
43462         inode numbers, as documented.
43463
43464         fts: sort dirent entries on inode number before traversing
43465         This avoids a quadratic, seek-related performance penalty when
43466         operating on a directory containing many entries (measurable at 10k;
43467         3.5 hours at 2 million entries with a cold cache) on certain types
43468         of file systems, including ext3 and ext4, but not tmpfs.
43469         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
43470         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
43471         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
43472         (fs_handles_readdir_ordered_dirents_efficiently): New function.
43473         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
43474         (fts_build): Set the stat.st_ino member from D_INO.
43475         If it is likely to be useful, sort dirent entries on inode number.
43476
43477         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
43478         and the struct statfs.f_type member.
43479         * modules/fts (Depends-on): Add d-ino.
43480
43481 2008-09-26  Bruno Haible  <bruno@clisp.org>
43482
43483         * modules/sigpipe-die (Depends-on): Add sigpipe.
43484
43485         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
43486         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
43487         and GNULIB_STDIO_H_SIGPIPE are set.
43488         * lib/stdio-write.c: New file.
43489         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
43490         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43491         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43492         REPLACE_STDIO_WRITE_FUNCS.
43493         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
43494         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43495         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43496         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43497         * modules/stdio (Files): Add lib/stdio-write.c.
43498         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
43499         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43500         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43501         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43502         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
43503         REPLACE_FPRINTF_POSIX.
43504         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
43505         REPLACE_PRINTF_POSIX.
43506         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
43507         REPLACE_VFPRINTF_POSIX.
43508         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
43509         REPLACE_VPRINTF_POSIX.
43510         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
43511         SIGPIPE issue.
43512         * doc/posix-functions/fputc.texi: Likewise.
43513         * doc/posix-functions/fputs.texi: Likewise.
43514         * doc/posix-functions/fwrite.texi: Likewise.
43515         * doc/posix-functions/printf.texi: Likewise.
43516         * doc/posix-functions/putc.texi: Likewise.
43517         * doc/posix-functions/putchar.texi: Likewise.
43518         * doc/posix-functions/puts.texi: Likewise.
43519         * doc/posix-functions/vfprintf.texi: Likewise.
43520         * doc/posix-functions/vprintf.texi: Likewise.
43521
43522         * modules/safe-write (Depends-on): Add write.
43523
43524         * modules/sigpipe-tests: New file.
43525         * tests/test-sigpipe.c: New file.
43526         * tests/test-sigpipe.sh: New file.
43527
43528         * modules/write: New file.
43529         * lib/unistd.in.h: Include <sys/types.h>.
43530         (write): New declaration.
43531         * lib/write.c: New file.
43532         * m4/write.m4: New file.
43533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43534         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
43535         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
43536         GNULIB_WRITE, REPLACE_WRITE.
43537         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
43538         and the SIGPIPE issue.
43539
43540         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
43541         (raise): New declaration.
43542         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
43543         (ext_signal): New function.
43544         (rpl_raise): New function.
43545         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
43546         GNULIB_SIGNAL_H_SIGPIPE.
43547         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
43548         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
43549
43550         * modules/sigpipe: New file.
43551         * m4/sigpipe.m4: New file.
43552
43553 2008-09-25  Derek Price  <derek@ximbiot.com>
43554             Bruno Haible  <bruno@clisp.org>
43555
43556         * gnulib-tool (func_import): Report all license incompatibilities, not
43557         just the first one.
43558
43559 2008-09-25  Bruno Haible  <bruno@clisp.org>
43560
43561         * gnulib-tool (func_import): When computing the edits, consider not
43562         only the Makefile.ams that exist but also those that will be generated.
43563
43564 2008-09-25  Simon Josefsson  <simon@josefsson.org>
43565
43566         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
43567         fixes gnulib-tool --test warning about duplicate dependency.
43568
43569 2008-09-25  Bruno Haible  <bruno@clisp.org>
43570
43571         * gnulib-tool: Don't ask the user to perform edits in the generated
43572         Makefile.ams.
43573         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
43574         apply to the Makefile.am being generated.
43575         (func_emit_tests_Makefile_am): Execute edits that apply to the
43576         Makefile.am being generated.
43577         (func_import): Setup list of Makefile.am edits before emitting the
43578         Makefile.ams, not at the end.
43579         (func_create_testdir): Update.
43580         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43581
43582 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43583
43584         * gnulib-tool (func_import): Store the --tests-base option in the
43585         comment in gnulib-cache.m4.
43586
43587 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
43588
43589         * NEWS: Document increased portability that sys_select now provides.
43590
43591         * lib/sys_select.in.h: Install select wrapper.
43592         * lib/sys_socket.in.h: Use more descriptive name when there is no
43593         select wrapper.
43594         * lib/winsock-select.c: New.
43595         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
43596         Require gl_HEADER_SYS_SOCKET.
43597         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
43598         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
43599         * tests/test-sys_select.c: Add functional tests.
43600
43601 2008-09-24  Eric Blake  <ebb9@byu.net>
43602
43603         open, fopen: close fd leak in last patch
43604         * lib/open.c (rpl_open): Close fd before returning error.
43605         * lib/fopen.c (rpl_fopen): Close fd before returning error.
43606         * doc/posix-functions/open.texi (open): Document that Irix also
43607         has the bug.
43608         * doc/posix-functions/fopen.texi (fopen): Likewise.
43609         Reported by Paolo Bonzini.
43610
43611 2008-09-24  Bruno Haible  <bruno@clisp.org>
43612
43613         Ensure that a filename ending in a slash cannot be used to access a
43614         non-directory.
43615         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
43616         to check whether it's really a directory.
43617         * lib/fopen.c: Include fcntl.h, unistd.h.
43618         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
43619         and fdopen().
43620         * modules/fopen (Depends-on): Add unistd.
43621         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
43622         * tests/test-fopen.c (main): Likewise.
43623         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
43624         * doc/posix-functions/fopen.texi: Likewise.
43625         Reported by Eric Blake.
43626
43627 2008-09-23  Eric Blake  <ebb9@byu.net>
43628
43629         c-stack: avoid compiler optimizations when provoking overflow
43630         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
43631         recursion harder to optimize, to ensure a stack overflow occurs.
43632         * tests/test-c-stack.c (recurse): Likewise.
43633         Borrowed from libsigsegv.
43634
43635         c-stack: work around Irix sigaltstack bug
43636         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
43637         whether sigaltstack uses wrong end of stack_t (copied in part from
43638         libsigsegv).
43639         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
43640         Irix bug, without requiring an over-allocation.
43641         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
43642         bug.
43643
43644         fopen: document mingw bug on directories
43645         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
43646         not allowing a stream visiting a directory, even though reading
43647         from such a stream is not portable.
43648
43649 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43650
43651         * lib/poll.c: Rewrite.
43652         * modules/poll: Depend on alloca.
43653
43654 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43655
43656         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
43657         instead define prototypes for a full set of wrappers.  Ensure
43658         that Cygwin does not use the compatibility code, which is only
43659         for MinGW.
43660         * lib/winsock.c: New.
43661         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
43662         * modules/sys_socket: Add lib/winsock.c.
43663
43664         * modules/poll-tests: Add errno and perror.
43665         * tests/test-poll.c: Use ioctl, not ioctlsocket.
43666
43667 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43668
43669         * tests/test-poll.c: Downgrade minimum needed Winsock version.
43670
43671 2008-09-23  Bruno Haible  <bruno@clisp.org>
43672
43673         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
43674         * doc/glibc-functions/*: Likewise.
43675
43676 2008-09-23  Simon Josefsson  <simon@josefsson.org>
43677
43678         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
43679         success.
43680
43681 2008-09-22  Eric Blake  <ebb9@byu.net>
43682             Bruno Haible  <bruno@clisp.org>
43683
43684         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
43685         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
43686         supply %A but mishandle pseudo-NaN.
43687         Reported by Simon Josefsson.
43688
43689 2008-09-21  Bruno Haible  <bruno@clisp.org>
43690
43691         * tests/test-lock.c (main): Tweak skip message.
43692         * tests/test-tls.c (main): Likewise.
43693
43694 2008-09-21  Bruno Haible  <bruno@clisp.org>
43695
43696         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
43697         whether 'struct sigaction' has sa_sigaction here...
43698         (gl_PREREQ_SIG_HANDLER_H): ... not here.
43699         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
43700
43701 2008-09-21  Bruno Haible  <bruno@clisp.org>
43702
43703         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
43704         section.
43705         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
43706         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
43707         the new section.
43708         (Support for obsolete systems lacking POSIX:2001): New section.
43709         (String handling <string.h>): Move strdup to the new section.
43710         Suggested by Simon Josefsson and Paolo Bonzini.
43711
43712 2008-09-21  Bruno Haible  <bruno@clisp.org>
43713
43714         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
43715         exponents in %e and %g results on 'long double'. Needed for mingw's
43716         improved *printf functions.
43717         * tests/test-vasprintf-posix.c (test_function): Likewise.
43718         * tests/test-snprintf-posix.h (test_function): Likewise.
43719         * tests/test-sprintf-posix.h (test_function): Likewise.
43720         Reported by Eric Blake.
43721
43722 2008-09-21  Bruno Haible  <bruno@clisp.org>
43723
43724         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
43725         * tests/test-sprintf-posix.h (test_function): Likewise.
43726
43727 2008-09-21  Bruno Haible  <bruno@clisp.org>
43728
43729         * modules/getpass (Depends-on): Add strdup-posix.
43730
43731         New module 'strdup-posix'.
43732         * modules/strdup-posix: New file.
43733         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
43734         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
43735         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43736         REPLACE_STRDUP.
43737         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
43738         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
43739         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43740         strdup-posix.
43741
43742         * modules/strdup (Depends-on): Remove malloc-posix.
43743
43744 2008-09-20  Bruno Haible  <bruno@clisp.org>
43745
43746         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
43747         Wildenhues.
43748
43749 2008-09-20  Bruno Haible  <bruno@clisp.org>
43750
43751         Ensure that wint_t gets defined on IRIX 5.3.
43752         * lib/wchar.in.h (wint_t): Define if not defined by the system.
43753         * lib/wctype.in.h (wint_t): Likewise.
43754         (__wctype_wint_t): Remove type.
43755         (isw*): Use wint_t instead of __wctype_wint_t.
43756         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
43757         * modules/wchar (Files): Add m4/wint_t.m4.
43758         (Makefile.am): Substitute HAVE_WINT_T.
43759         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
43760         * tests/test-wctype.c: Check that wint_t is defined.
43761         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
43762         * doc/posix-headers/wctype.texi: Likewise.
43763         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43764
43765 2008-09-18  Bruno Haible  <bruno@clisp.org>
43766
43767         * gnulib-tool (func_exit): Update comment.
43768
43769 2008-09-18  Simon Josefsson  <simon@josefsson.org>
43770
43771         * modules/getaddrinfo (Depends-on): Remove strdup, this module
43772         assumes strdup exists and does not depend on strdup to return
43773         ENOMEM on out of memory conditions.
43774
43775 2008-09-18  Bruno Haible  <bruno@clisp.org>
43776
43777         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
43778         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
43779         digits for the exponent.
43780
43781 2008-09-18  Jim Meyering  <meyering@redhat.com>
43782             Bruno Haible  <bruno@clisp.org>
43783
43784         * lib/vasnprintf.c (decimal_point_char): Define also if
43785         NEED_PRINTF_INFINITE_LONG_DOUBLE.
43786
43787 2008-09-16  Bruno Haible  <bruno@clisp.org>
43788         and Eric Blake  <ebb9@byu.net>
43789
43790         vasnprintf: support Irix 5.3
43791         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
43792         that mishandle long double infinity.
43793         Reported by Tom G. Christensen.
43794
43795 2008-09-16  Bruno Haible  <bruno@clisp.org>
43796
43797         * doc/glibc-functions/scandir.texi: Mention the function is missing on
43798         Solaris 9.
43799         * doc/glibc-functions/alphasort.texi: Likewise.
43800         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
43801
43802 2008-09-16  Jim Meyering  <meyering@redhat.com>
43803
43804         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
43805         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
43806         a umask modification leak out of a subshell.  Otherwise, the
43807         opensolaris /bin/sh would be accepted and thus cause unwarranted
43808         failures in the coreutils test suite.
43809
43810 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
43811
43812         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
43813         to succeed.
43814
43815 2008-09-16  Jim Meyering  <meyering@redhat.com>
43816
43817         avoid spurious test failure when library is built without ACL support
43818         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
43819         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
43820         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
43821         * tests/test-copy-acl.sh: Likewise.
43822
43823 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43824
43825         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
43826         based on character occurrence counts.
43827
43828 2008-09-15  Eric Blake  <ebb9@byu.net>
43829
43830         tests: avoid some compiler warnings
43831         * tests/test-memchr.c (main): Pass NULL indirectly.
43832         * tests/test-closein.c (main): Avoid unused variable.
43833
43834 2008-09-15  Bruno Haible  <bruno@clisp.org>
43835
43836         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
43837         are missing on OpenBSD 4.0 individually.
43838         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43839
43840 2008-09-15  Bruno Haible  <bruno@clisp.org>
43841
43842         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
43843         * doc/posix-functions/strerror.texi: Mention also Cygwin.
43844         * doc/posix-functions/perror.texi: Likewise.
43845         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
43846         is missing.
43847         Reported by Eric Blake.
43848
43849         * lib/errno.in.h: Use replacement values >= 2000.
43850         Reported by Eric Blake.
43851
43852 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43853
43854         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
43855         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
43856         limit.
43857         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
43858         compareseq was aborted.
43859
43860 2008-09-14  Bruno Haible  <bruno@clisp.org>
43861
43862         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
43863         yvec_edit_count.
43864         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
43865         (fstrcmp_bounded): Simplify result computation accordingly.
43866
43867 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43868
43869         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
43870         (fstrcmp): Define in terms of fstrcmp_bounded.
43871         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
43872         lower_bound argument.
43873         Return quickly if the result is certainly < lower_bound.
43874         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
43875
43876 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43877
43878         * lib/diffseq.h (EARLY_ABORT): New macro.
43879         (compareseq): Change return type to bool. Return true when EARLY_ABORT
43880         evaluates to true.
43881
43882 2008-09-14  Bruno Haible  <bruno@clisp.org>
43883
43884         * modules/perror-tests: New file.
43885         * tests/test-perror.sh: New file.
43886         * tests/test-perror.c: New file.
43887
43888         New module 'perror'.
43889         * lib/stdio.in.h (perror): New declaration.
43890         * lib/perror.c: New file.
43891         * m4/perror.m4: New file.
43892         * modules/perror: New file.
43893         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
43894         * doc/posix-functions/perror.texi: Mention the perror module.
43895         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
43896         REPLACE_PERROR.
43897         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
43898         REPLACE_PERROR.
43899
43900 2008-09-14  Bruno Haible  <bruno@clisp.org>
43901
43902         * modules/stdio (Makefile.am): Reorder to match the order in
43903         lib/stdio.in.h.
43904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43905
43906 2008-09-13  Bruno Haible  <bruno@clisp.org>
43907
43908         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
43909
43910 2008-09-13  Bruno Haible  <bruno@clisp.org>
43911
43912         Extend strerror to cover the added errno values.
43913         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
43914         (rpl_strerror): Provide error messages for the added errno values and
43915         for the WSA* values.
43916         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
43917         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
43918         strerror.
43919         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
43920         * modules/strerror (Depends-on): Add errno.
43921         * doc/posix-functions/strerror.texi: Document the change.
43922         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
43923         and EOVERFLOW.
43924
43925 2008-09-13  Bruno Haible  <bruno@clisp.org>
43926
43927         * modules/EOVERFLOW: Remove file.
43928         * m4/eoverflow.m4: Remove file.
43929         * modules/EOVERFLOW-tests: Remove file.
43930         * tests/test-EOVERFLOW.c: Remove file.
43931         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
43932         * modules/ftell (Depends-on): Likewise.
43933         * modules/getdelim (Depends-on): Likewise.
43934         * modules/getugroups (Depends-on): Likewise.
43935         * modules/poll (Depends-on): Likewise.
43936         * modules/snprintf (Depends-on): Likewise.
43937         * modules/sprintf-posix (Depends-on): Likewise.
43938         * modules/vasnprintf (Depends-on): Likewise.
43939         * modules/vasprintf (Depends-on): Likewise.
43940         * modules/vfprintf-posix (Depends-on): Likewise.
43941         * modules/vsnprintf (Depends-on): Likewise.
43942         * modules/vsprintf-posix (Depends-on): Likewise.
43943         * modules/xvasprintf (Depends-on): Likewise.
43944         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43945         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
43946         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
43947         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
43948         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43949         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
43950         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
43951         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
43952         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43953         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
43954         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
43955         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
43956         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43957         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
43958         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
43959         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
43960         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43961         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
43962         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
43963         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
43964         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43965         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
43966         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
43967         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
43968         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
43969         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43970         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
43971         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
43972         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
43973         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43974         * MODULES.html.sh: Remove EOVERFLOW.
43975         * NEWS: Mention the change.
43976
43977 2008-09-13  Bruno Haible  <bruno@clisp.org>
43978
43979         * modules/errno-tests: New file.
43980         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43981
43982         * lib/errno.in.h: New file.
43983         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43984         * modules/errno: New file.
43985         * doc/posix-headers/errno.texi: Update documentation.
43986         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43987
43988 2008-09-13  Bruno Haible  <bruno@clisp.org>
43989
43990         * tests/test-poll.c: Use #if for native Windows, rather than testing
43991         __MSVCRT__.
43992
43993 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43994             Bruno Haible  <bruno@clisp.org>
43995
43996         * lib/glob.c: Don't include <pwd.h> on native Windows.
43997         (WINDOWS32): New macro.
43998         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43999
44000 2008-09-13  Bruno Haible  <bruno@clisp.org>
44001
44002         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
44003         (ETIMEDOUT): Remove macro.
44004         (glthread_cond_timedwait_multithreaded): New declaration.
44005         (glthread_cond_timedwait): Use it.
44006         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
44007         (glthread_cond_timedwait_multithreaded): New function.
44008
44009 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44010
44011         * modules/poll-tests: Do not check for io.h.
44012         * tests/test-poll.c: Check for __MSVCRT__ instead.
44013
44014 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44015
44016         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
44017         * modules/poll-tests: Add inet_pton, stdbool, sockets.
44018         * tests/test-poll.c: Use them.  Use _pipe on Windows.
44019
44020 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44021
44022         * modules/poll-tests: New.
44023         * tests/test-poll.c: New.
44024
44025 2008-09-12  Eric Blake  <ebb9@byu.net>
44026
44027         frexp: test for NetBSD failure on -0.0
44028         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
44029         not all, bugs from NetBSD 3.0 have been fixed.
44030         * doc/posix-functions/frexp.texi (frexp): Document bug.
44031         Reported by Thomas Klausner.
44032
44033         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
44034         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
44035         literal -0.0.
44036         Reported by Jonathan C. Patschke <jp@centtech.com>.
44037
44038 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44039
44040         * lib/glthread/cond.h: Use dummy implementation also if
44041         USE_WIN32_THREADS.
44042
44043 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44044
44045         * modules/fnmatch-posix (License): Change to LGPLv2+.
44046         * modules/fnmatch-gnu (License): Likewise.
44047
44048 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44049
44050         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
44051
44052 2008-09-11  Jim Meyering  <meyering@redhat.com>
44053
44054         * users.txt: Add gtk-vnc.
44055
44056 2008-09-08  Simon Josefsson  <simon@josefsson.org>
44057
44058         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
44059         rotate amounts.
44060
44061         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
44062         required for 16-bit and 8-bit rotates.
44063         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
44064         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
44065         UINT8_MAX instead of hard-coded constants.
44066         Suggested by Paul Eggert.
44067
44068 2008-09-07  Bruno Haible  <bruno@clisp.org>
44069
44070         * tests/test-striconveh.c (main): Check behaviour when converting from
44071         UTF-7.
44072
44073         Make striconveh work better with stateful encodings.
44074         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
44075         that iconv does not increment the inptr when returning -1/EINVAL.
44076
44077 2008-09-07  Bruno Haible  <bruno@clisp.org>
44078
44079         * build-aux/config.rpath: Update according to libtool-2.2.6.
44080         * build-aux/config.libpath: Likewise.
44081
44082 2008-09-06  Bruno Haible  <bruno@clisp.org>
44083
44084         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
44085         * lib/freadptr.c (freadptr): Likewise.
44086         * lib/freadseek.c (freadptrinc): Likewise.
44087         Reported by Simon Josefsson.
44088
44089 2008-09-06  Bruno Haible  <bruno@clisp.org>
44090
44091         * modules/freadptr (License): Change to LGPLv2+.
44092         * modules/freadseek (License): Likewise.
44093         Suggested by Eric Blake.
44094
44095         * modules/memchr2 (License): Change to LGPLv2+.
44096         Approved by Eric Blake.
44097
44098 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44099             Bruno Haible  <bruno@clisp.org>
44100
44101         Make gnulib-tool work with native 'sed' on AIX.
44102         * gnulib-tool (sed_noop): New variable.
44103         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
44104         func_add_or_update, func_create_testdir): Use it to initialize sed
44105         script variables.
44106         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44107
44108 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
44109             Bruno Haible  <bruno@clisp.org>
44110
44111         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
44112         also works after #include directives.
44113
44114 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
44115
44116         getdate.y: reject an out-of-range timezone value
44117         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
44118         the range [-24...+24].  When specified with only one or two digits,
44119         * tests/test-getdate.c: Tests for the fix.
44120         * doc/getdate.texi: Document this change.
44121
44122 2008-09-03  Bruno Haible  <bruno@clisp.org>
44123
44124         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
44125
44126 2008-09-02  Simon Josefsson  <simon@josefsson.org>
44127
44128         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
44129         <bruce.korb@gmail.com> with ideas from Ben Pfaff
44130         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
44131         Blake <ebb9@byu.net>.
44132
44133         * tests/test-bitrotate.c: Add more test vectors.
44134
44135 2008-09-02  Eric Blake  <ebb9@byu.net>
44136
44137         vasnprintf-posix: handle large precision via %.*d
44138         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
44139         when handling it ourselves.
44140         * tests/test-vasnprintf-posix.c (test_function): Add test.
44141         * tests/test-snprintf-posix.h (test_function): Likewise.
44142         * tests/test-sprintf-posix.h (test_function): Likewise.
44143         * tests/test-vasprintf-posix.c (test_function): Likewise.
44144         Reported by Alain Guibert.
44145
44146 2008-09-01  Eric Blake  <ebb9@byu.net>
44147
44148         c-stack: make configure-time check more robust
44149         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
44150         successful sigaction call.
44151         Reported by Tom G. Christensen.
44152
44153 2008-09-01  Bruno Haible  <bruno@clisp.org>
44154
44155         New module 'findprog-lgpl'.
44156         * modules/findprog-lgpl: New file.
44157         * lib/findprog-lgpl.c: New file.
44158         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
44159         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
44160         to decide whether to use strdup or xstrdup, concatenated_filename or
44161         xconcatenated_filename.
44162
44163 2008-09-01  Bruno Haible  <bruno@clisp.org>
44164
44165         Split module 'concat-filename' into 'concat-filename' (LGPL) and
44166         'xconcat-filename' (GPL).
44167         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
44168         (License): Change to LGPLv2+.
44169         * modules/xconcat-filename: New file.
44170         * lib/concat-filename.h (concatenated_filename): Change specification.
44171         (xconcatenated_filename): New declaration.
44172         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
44173         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
44174         memory situations.
44175         * lib/xconcat-filename.c: New file.
44176         * NEWS: Mention the change.
44177         * lib/findprog.c: Include concat-filename.h, not filename.h.
44178         (find_in_path): Use xconcatenated_filename instead of
44179         concatenated_filename.
44180         * lib/javacomp.c: Include concat-filename.h, not filename.h.
44181         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44182         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44183         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44184         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
44185         instead of concatenated_filename.
44186         * lib/javaexec.c: Include concat-filename.h, not filename.h.
44187         (execute_java_class): Use xconcatenated_filename instead of
44188         concatenated_filename.
44189         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
44190         * modules/javacomp (Depends-on): Likewise.
44191         * modules/javaexec (Depends-on): Likewise.
44192
44193 2008-09-01  Bruno Haible  <bruno@clisp.org>
44194
44195         Split module 'filename' into 'filename' and 'concat-filename'.
44196         * modules/filename: Keep only lib/filename.h.
44197         (License): Change to LGPLv2+.
44198         * modules/concat-filename: New file, extracted from modules/filename.
44199         * lib/filename.h (concatenated_filename): Remove declaration.
44200         * lib/concat-filename.h: New file, extracted from lib/filename.h.
44201         * lib/concat-filename.c: Include concat-filename.h.
44202         * NEWS: Mention the change.
44203
44204 2008-09-01  Simon Josefsson  <simon@josefsson.org>
44205
44206         * lib/bitrotate.h (rotl8, rotr8): Add.
44207
44208         * modules/bitrotate (configure.ac): Need
44209         AC_REQUIRE([AC_C_INLINE]).
44210         (Description): Mention stdint.h.  Reported by Bruno Haible
44211         <bruno@clisp.org>.
44212
44213         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
44214         Paolo Bonzini <bonzini@gnu.org>.
44215
44216 2008-08-31  Bruno Haible  <bruno@clisp.org>
44217
44218         Assume Solaris specific bi-arch conventions on Solaris systems.
44219         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
44220         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
44221         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
44222         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
44223         like acl_libdirstem.
44224         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
44225         acl_libdirstem.
44226         * NEWS: Mention the change.
44227         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
44228
44229 2008-08-31  Jim Meyering  <meyering@redhat.com>
44230
44231         * lib/strftime.h: Add comments describing the two added arguments.
44232
44233         remove duplicate #include directives
44234         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
44235         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
44236
44237 2008-08-31  Bruno Haible  <bruno@clisp.org>
44238
44239         New module 'sigpipe-die'.
44240         * modules/sigpipe-die: New file.
44241         * lib/sigpipe-die.h: New file.
44242         * lib/sigpipe-die.c: New file.
44243         * MODULES.html.sh (Signal handling): Add sigpipe-die.
44244
44245 2008-08-31  Bruno Haible  <bruno@clisp.org>
44246
44247         Don't override previously installed signal handlers.
44248         * lib/fatal-signal.c (saved_sigactions): New variable.
44249         (uninstall_handlers): Reset the signal to the saved handler, not
44250         to SIG_DFL (except when ignored).
44251         (install_handlers): Save the previous handlers.
44252
44253 2008-08-30  Bruno Haible  <bruno@clisp.org>
44254
44255         * gnulib-tool (func_reset_sigpipe): New function.
44256         (func_get_automake_snippet, func_modules_transitive_closure,
44257         func_import): Invoke it before a join command that reads from stdin,
44258         to avoid "echo: write error: Broken pipe" error messages on stderr.
44259         Reported by Sam Steingold <sds@gnu.org>.
44260
44261 2008-08-30  Bruno Haible  <bruno@clisp.org>
44262
44263         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
44264         Code copied from m4/open.m4.
44265         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
44266         access and the filename ends in a slash. Code copied from lib/open.c.
44267         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
44268         * tests/test-fopen.c (main): Check against bug with trailing slash.
44269
44270 2008-08-29  Bruno Haible  <bruno@clisp.org>
44271
44272         Avoid some "gcc -pedantic" warnings.
44273         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
44274         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
44275         * lib/dirent.in.h: Likewise.
44276         * lib/fcntl.in.h: Likewise.
44277         * lib/float.in.h: Likewise.
44278         * lib/iconv.in.h: Likewise.
44279         * lib/inttypes.in.h: Likewise.
44280         * lib/locale.in.h: Likewise.
44281         * lib/math.in.h: Likewise.
44282         * lib/netinet_in.in.h: Likewise.
44283         * lib/search.in.h: Likewise.
44284         * lib/signal.in.h: Likewise.
44285         * lib/stdarg.in.h: Likewise.
44286         * lib/stdint.in.h: Likewise.
44287         * lib/stdio.in.h: Likewise.
44288         * lib/stdlib.in.h: Likewise.
44289         * lib/string.in.h: Likewise.
44290         * lib/strings.in.h: Likewise.
44291         * lib/sys_select.in.h: Likewise.
44292         * lib/sys_socket.in.h: Likewise.
44293         * lib/sys_stat.in.h: Likewise.
44294         * lib/sys_time.in.h: Likewise.
44295         * lib/sysexits.in.h: Likewise.
44296         * lib/time.in.h: Likewise.
44297         * lib/unistd.in.h: Likewise.
44298         * lib/wchar.in.h: Likewise.
44299         * lib/wctype.in.h: Likewise.
44300         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
44301         * modules/fchdir (Makefile.am): Likewise.
44302         * modules/fcntl (Makefile.am): Likewise.
44303         * modules/float (Makefile.am): Likewise.
44304         * modules/iconv_open (Makefile.am): Likewise.
44305         * modules/inttypes (Makefile.am): Likewise.
44306         * modules/locale (Makefile.am): Likewise.
44307         * modules/math (Makefile.am): Likewise.
44308         * modules/netinet_in (Makefile.am): Likewise.
44309         * modules/search (Makefile.am): Likewise.
44310         * modules/signal (Makefile.am): Likewise.
44311         * modules/stdarg (Makefile.am): Likewise.
44312         * modules/stdint (Makefile.am): Likewise.
44313         * modules/stdio (Makefile.am): Likewise.
44314         * modules/stdlib (Makefile.am): Likewise.
44315         * modules/string (Makefile.am): Likewise.
44316         * modules/strings (Makefile.am): Likewise.
44317         * modules/sys_select (Makefile.am): Likewise.
44318         * modules/sys_socket (Makefile.am): Likewise.
44319         * modules/sys_stat (Makefile.am): Likewise.
44320         * modules/sys_time (Makefile.am): Likewise.
44321         * modules/sysexits (Makefile.am): Likewise.
44322         * modules/time (Makefile.am): Likewise.
44323         * modules/unistd (Makefile.am): Likewise.
44324         * modules/wchar (Makefile.am): Likewise.
44325         * modules/wctype (Makefile.am): Likewise.
44326         Reported by Reuben Thomas <rrt@sc3d.org>.
44327
44328 2008-08-29  Bruno Haible  <bruno@clisp.org>
44329
44330         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
44331         any more.
44332
44333 2008-08-29  Simon Josefsson  <simon@josefsson.org>
44334
44335         * MODULES.html.sh (Misc): Add bitrotate.
44336
44337         * modules/bitrotate: New file.
44338
44339         * lib/bitrotate.h: New file.
44340
44341         * modules/bitrotate-tests: New file.
44342
44343         * tests/test-bitrotate.c: New file.
44344
44345         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
44346         on the bitrotate module.
44347
44348         * lib/arctwo.c: Use new bitrotate module.
44349
44350 2008-08-29  Jim Meyering  <meyering@redhat.com>
44351
44352         bootstrap: merge changes from coreutils
44353         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
44354         of copied files.  Remove a kludge, now that this is fixed.
44355         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
44356         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
44357         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
44358
44359 2008-08-29  Bruno Haible  <bruno@clisp.org>
44360
44361         * MODULES.html.sh: Remove --cvs-urls option.
44362
44363 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
44364
44365         maint.mk: adjust to file name change
44366         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
44367
44368 2008-08-28  Jim Meyering  <meyering@redhat.com>
44369
44370         * modules/getndelim2 (License): Relicense to LGPLv2+.
44371         Approved by Richard Stallman for the version of 1995, and by
44372         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
44373
44374 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
44375
44376         * lib/getdelim.c (flockfile, funlockfile): Make all of them
44377         dummy if one is not available.  Do not touch them if
44378         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
44379         (getc_maybe_unlocked): New.
44380         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
44381
44382 2008-08-26  Eric Blake  <ebb9@byu.net>
44383
44384         doc/INSTALL: resync from autoconf
44385         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
44386         (INSTALL_PRELUDE): Delete; this is done more efficiently by
44387         moving...
44388         * install.texi [!autoconf]: ...here.  Resync from autoconf.
44389         * INSTALL: Regenerate.
44390         * INSTALL.ISO: New file.
44391         * INSTALL.UTF-8: Likewise.
44392
44393 2008-08-26  Jim Meyering  <meyering@redhat.com>
44394
44395         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
44396         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
44397         these definitions conditional, so that they may be overridden, too.
44398
44399 2008-08-26  Bruno Haible  <bruno@clisp.org>
44400
44401         Generate INSTALL file variants with prettier quotes.
44402         * doc/Makefile (INSTALL_PRELUDE): New macro.
44403         (INSTALL): Use it.
44404         (INSTALL.ISO, INSTALL.UTF-8): New rules.
44405
44406 2008-08-26  Bruno Haible  <bruno@clisp.org>
44407
44408         Run makeinfo in an English locale.
44409         * doc/Makefile (MAKEINFO): New variable.
44410
44411 2008-08-26  Bruno Haible  <bruno@clisp.org>
44412
44413         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
44414         Suggested by Eric Blake.
44415
44416 2008-08-25  Bruno Haible  <bruno@clisp.org>
44417
44418         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
44419
44420 2008-08-25  Eric Blake  <ebb9@byu.net>
44421
44422         c-stack: test that stack overflow can be caught
44423         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
44424         that platform allows handling stack overflow; at least OS/2 EMX
44425         has sigaltstack, but crashes before transferring control to
44426         handler on stack overflow.
44427         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
44428         check for HAVE_STACK_OVERFLOW_HANDLING.
44429         Reported by Elbert Pol.
44430
44431 2008-08-25  Bruno Haible  <bruno@clisp.org>
44432
44433         * doc/posix-functions/strftime.texi: Fix description of strftime
44434         module.
44435
44436 2008-08-24  Bruno Haible  <bruno@clisp.org>
44437
44438         * tests/uniwidth/test-uc_width2.c: New file.
44439         * tests/uniwidth/test-uc_width2.sh: New file.
44440         * modules/uniwidth/width-tests (Files): Add the new files.
44441         (TESTS): Add uniwidth/test-uc_width2.sh.
44442         (TESTS_ENVIRONMENT): New variable.
44443         (check_PROGRAMS): Add test-uc_width2.
44444         (test_uc_width2_SOURCES): New variable.
44445
44446         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
44447         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
44448         not 0x00AB.
44449         Reported by Alexander V. Lukyanov <lav@netis.ru>.
44450
44451 2008-08-22  Eric Blake  <ebb9@byu.net>
44452
44453         test-lock, test-tls: mention why a test is skipped
44454         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
44455         skipped.
44456         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
44457
44458         count-one-bits: relax license
44459         * modules/count-one-bits (License): Relicense to LGPLv2+.
44460         Suggested by Ludovic Courtès, approved by Ben Pfaff.
44461
44462 2008-08-22  Andreas Schwab  <schwab@suse.de>
44463
44464         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
44465         Remove spurious space in assignment.
44466
44467 2008-08-21  Simon Josefsson  <simon@josefsson.org>
44468
44469         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
44470         Paul Eggert <eggert@CS.UCLA.EDU>.
44471
44472 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
44473
44474         * modules/gettext: Add m4/threadlib.m4.
44475
44476 2008-08-19  Eric Blake  <ebb9@byu.net>
44477
44478         test-c-stack: fix compilation failure on FreeBSD 5.0
44479         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
44480         headers before <sys/resource.h>.
44481         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
44482         the bug.
44483         Reported by Nelson H. F. Beebe.
44484
44485         strverscmp: migrate from "strverscmp.h" to <string.h>
44486         * modules/string (Makefile.am): Add new hooks.
44487         * modules/strverscmp (Files): Remove strverscmp.h.
44488         (Depends-on): Add string.
44489         (configure.ac): Add indicator.
44490         (Include): Mention new header.
44491         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
44492         defaults.
44493         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
44494         results.
44495         * lib/strverscmp.h: Delete.
44496         * lib/string.in.h (strverscmp): Provide declaration, when needed.
44497         * tests/test-strverscmp.c (includes): Adjust client.
44498         * lib/check-version.c (includes): Likewise.
44499         * NEWS: Document the change.
44500
44501         strverscmp: add unit test
44502         * modules/strverscmp-tests: New file.
44503         * tests/test-strverscmp.c: Likewise.
44504
44505 2008-08-19  Simon Josefsson  <simon@josefsson.org>
44506
44507         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
44508         regarding Windows crypto stuff, from Mono.
44509
44510 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
44511
44512         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
44513         if present, for intel RND.  Return error on failures.
44514
44515 2008-08-18  Ben Pfaff  <blp@gnu.org>
44516
44517         gitlog-to-changelog: give better diagnostic for failed pipe-open
44518         * build-aux/gitlog-to-changelog: Improve error message: suggest
44519         that the version of Git may be too old.
44520
44521 2008-08-18  Simon Josefsson  <simon@josefsson.org>
44522
44523         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
44524         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
44525
44526 2008-08-18  Bruno Haible  <bruno@clisp.org>
44527
44528         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
44529         pthread_in_use().
44530
44531 2008-08-18  Bruno Haible  <bruno@clisp.org>
44532
44533         * lib/glthread/threadlib.c: Include <pthread.h>.
44534
44535 2008-08-18  Bruno Haible  <bruno@clisp.org>
44536
44537         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
44538         glthread_recursive_lock_* macros.
44539         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
44540         Fix syntax error.
44541
44542 2008-08-18  Bruno Haible  <bruno@clisp.org>
44543
44544         * lib/glthread/thread.c: Avoid forcing a context switch right after
44545         thread creation.
44546
44547 2008-08-17  Bruno Haible  <bruno@clisp.org>
44548
44549         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
44550         * lib/glthread/thread.h: Provide Win32 specific implementation.
44551         * modules/thread (Files): Add lib/glthread/thread.c.
44552         (Depends-on): Add lock.
44553         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
44554
44555 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44556
44557         New module 'yield'.
44558         * modules/yield: New file.
44559         * lib/glthread/yield.h: New file.
44560         * m4/yield.m4: New file.
44561         * MODULES.html.sh (Multithreading): Add yield.
44562
44563 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44564
44565         New module 'thread'.
44566         * modules/thread: New file.
44567         * lib/glthread/thread.h: New file.
44568         * m4/thread.m4: New file.
44569         * MODULES.html.sh (Multithreading): Add thread.
44570
44571 2008-08-17  Bruno Haible  <bruno@clisp.org>
44572
44573         * lib/glthread/lock.h: Include <stdlib.h> always.
44574         * lib/glthread/tls.h: Likewise.
44575         * lib/glthread/cond.h: Likewise.
44576
44577 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44578
44579         New module 'cond'.
44580         * modules/cond: New file.
44581         * lib/glthread/cond.h: New file.
44582         * lib/glthread/cond.c: New file.
44583         * m4/cond.m4: New file.
44584         * MODULES.html.sh (Multithreading): Add cond.
44585
44586 2008-08-16  Eric Blake  <ebb9@byu.net>
44587
44588         c-stack: fix regression on Irix 5.3 from 2008-06-21
44589         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
44590         sa_sigaction...
44591         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
44592         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
44593         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
44594         * modules/signal (Makefile.am): Use the value.
44595         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
44596         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
44597         * doc/posix-headers/signal.texi (signal.h): Document this
44598         portability issue.
44599         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
44600         Reported by Tom G. Christensen.
44601
44602 2008-08-17  Bruno Haible  <bruno@clisp.org>
44603
44604         New module 'threadlib'.
44605         * modules/threadlib: New file.
44606         * lib/glthread/threadlib.c: New file, extracted from
44607         lib/glthread/lock.c.
44608         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
44609         functions.
44610         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
44611         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
44612         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
44613         macros.
44614         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
44615         (gl_DISABLE_THREADS): Remove macro.
44616         * modules/lock (Files): Remove build-aux/config.rpath.
44617         (Depends-on): Remove havelib. Add threadlib.
44618         (configure.ac-early): Remove section.
44619         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
44620         * modules/tls (Depends-on): Remove lock. Add threadlib.
44621         (Link): New section, copied from threadlib.
44622         * MODULES.html.sh (Multithreading): Add threadlib.
44623
44624 2008-08-14  Bruno Haible  <bruno@clisp.org>
44625
44626         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
44627         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
44628         glthread_rwlock_unlock, glthread_rwlock_destroy,
44629         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
44630         glthread_recursive_lock_destroy): Define as macros always.
44631         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
44632         glthread_lock_lock.
44633         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
44634         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
44635         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
44636         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
44637         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
44638         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
44639         (glthread_recursive_lock_lock_func): Renamed from
44640         glthread_recursive_lock_lock.
44641         (glthread_recursive_lock_unlock_func): Renamed from
44642         glthread_recursive_lock_unlock.
44643         (glthread_recursive_lock_destroy_func): Renamed from
44644         glthread_recursive_lock_destroy.
44645
44646 2008-08-14  Bruno Haible  <bruno@clisp.org>
44647
44648         * lib/glthread/lock.h: Renamed from lib/lock.h.
44649         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
44650         * lib/glthread/tls.h: Renamed from lib/tls.h.
44651         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
44652         * lib/fstrcmp.c: Update includes.
44653         * lib/strsignal.c: Update includes.
44654         * modules/lock (Files, Makefile.am): Update.
44655         (Include): Change to "glthread/lock.h".
44656         * modules/tls (Files, Makefile.am): Update.
44657         (Include): Change to "glthread/tls.h".
44658         * tests/test-lock.c: Update includes.
44659         * tests/test-tls.c: Update includes.
44660         * NEWS: Mention the renamed header files.
44661
44662 2008-08-11  Jim Meyering  <meyering@redhat.com>
44663
44664         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
44665
44666 2008-08-11  Eric Blake  <ebb9@byu.net>
44667
44668         test-c-stack: avoid C99-ism
44669         * tests/test-c-stack.c (main): Fix whitespace, move declaration
44670         before statement.
44671         Reported by Alain Guibert.
44672
44673 2008-08-10  Jim Meyering  <meyering@redhat.com>
44674
44675         ensure that return value of uinttostr et al are not ignored
44676         * lib/inttostr.h (__GNUC_PREREQ): Define.
44677         (__attribute_warn_unused_result__): Define.
44678         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
44679
44680 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
44681
44682         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
44683         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
44684
44685 2008-08-07  Jim Meyering  <meyering@redhat.com>
44686
44687         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
44688
44689         * modules/mkstemp (License): Relicense under LGPLv2+.
44690         * modules/tempname (License): Likewise.
44691
44692 2008-08-06  Bruno Haible  <bruno@clisp.org>
44693
44694         * lib/poll.c (poll): Further micro-optimization.
44695
44696 2008-08-06  Jim Meyering  <meyering@redhat.com>
44697
44698         inet_pton.c: use locale-independent tolower
44699         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
44700         (inet_pton6): Use c_tolower rather than tolower.
44701         * modules/inet_pton (Depends-on): Add c-ctype.
44702
44703 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
44704
44705         * lib/poll.c (poll): Avoid division when timeout is 0, cache
44706         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
44707
44708 2008-08-06  Jim Meyering  <meyering@redhat.com>
44709
44710         * modules/inet_pton (License): Relicense under LGPLv2+.
44711
44712 2008-08-03  Bruno Haible  <bruno@clisp.org>
44713
44714         Additional non-aborting API for lock and tls.
44715         * lib/lock.h: Include <errno.h>.
44716         (glthread_lock_init): New macro/function.
44717         (gl_lock_init): Define as wrapper around glthread_lock_init.
44718         (glthread_lock_lock): New macro/function.
44719         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
44720         (glthread_lock_unlock): New macro/function.
44721         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
44722         (glthread_lock_destroy): New macro/function.
44723         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
44724         (glthread_rwlock_init): New macro/function.
44725         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
44726         (glthread_rwlock_rdlock): New macro/function.
44727         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
44728         (glthread_rwlock_wrlock): New macro/function.
44729         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
44730         (glthread_rwlock_unlock): New macro/function.
44731         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
44732         (glthread_rwlock_destroy): New macro/function.
44733         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
44734         (glthread_recursive_lock_init): New macro/function.
44735         (gl_recursive_lock_init): Define as wrapper around
44736         glthread_recursive_lock_init.
44737         (glthread_recursive_lock_lock): New macro/function.
44738         (gl_recursive_lock_lock): Define as wrapper around
44739         glthread_recursive_lock_lock.
44740         (glthread_recursive_lock_unlock): New macro/function.
44741         (gl_recursive_lock_unlock): Define as wrapper around
44742         glthread_recursive_lock_unlock.
44743         (glthread_recursive_lock_destroy): New macro/function.
44744         (gl_recursive_lock_destroy): Define as wrapper around
44745         glthread_recursive_lock_destroy.
44746         (glthread_once): New macro/function.
44747         (gl_once): Define as wrapper around glthread_once.
44748         Update function declarations.
44749         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
44750         glthread_rwlock_init. Return error code.
44751         (glthread_rwlock_rdlock_multithreaded): Renamed from
44752         glthread_rwlock_rdlock. Return error code.
44753         (glthread_rwlock_wrlock_multithreaded): Renamed from
44754         glthread_rwlock_wrlock. Return error code.
44755         (glthread_rwlock_unlock_multithreaded): Renamed from
44756         glthread_rwlock_unlock. Return error code.
44757         (glthread_rwlock_destroy_multithreaded): Renamed from
44758         glthread_rwlock_destroy. Return error code.
44759         (glthread_recursive_lock_init_multithreaded): Renamed from
44760         glthread_recursive_lock_init. Return error code.
44761         (glthread_recursive_lock_lock_multithreaded): Renamed from
44762         glthread_recursive_lock_lock. Return error code.
44763         (glthread_recursive_lock_unlock_multithreaded): Renamed from
44764         glthread_recursive_lock_unlock. Return error code.
44765         (glthread_recursive_lock_destroy_multithreaded): Renamed from
44766         glthread_recursive_lock_destroy. Return error code.
44767         (glthread_once_call): Make static.
44768         (glthread_once_multithreaded): Renamed from glthread_once.
44769         * lib/tls.h: Include <errno.h>.
44770         (glthread_tls_key_init): New macro/function.
44771         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
44772         (glthread_tls_set): New macro/function.
44773         (gl_tls_set): Define as wrapper around glthread_tls_set.
44774         (glthread_tls_key_destroy): New macro/function.
44775         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
44776         Update function declarations.
44777         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
44778         glthread_tls_get.
44779         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44780
44781 2008-08-04  Eric Blake  <ebb9@byu.net>
44782
44783         gnumakefile: use space, not TAB, outside of targets
44784         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
44785
44786 2008-08-02  Jim Meyering  <meyering@redhat.com>
44787
44788         getdate.y: avoid locale-dependent date parsing failure
44789         In Turkish locales, getdate would fail to recognize keywords
44790         containing a lowercase "i".  The solution is not to rely on
44791         locale-sensitive case-conversion.
44792         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
44793         (lookup_word): Use c_toupper in place of toupper.
44794         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
44795         Reported by Vefa Bicakci <bicave@superonline.com> in
44796         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
44797         * modules/getdate (Depends-on): Add c-ctype.
44798
44799 2008-08-02  Bruno Haible  <bruno@clisp.org>
44800
44801         * gnulib-tool (func_import): When updating or creating a .gitignore
44802         file, prepend each added line with a slash, and ignore leading slashes
44803         from the existing lines.
44804         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44805
44806 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44807
44808         Portability fix for GNU make 3.79.1.
44809         * top/GNUmakefile: Avoid 'else COND', which older GNU make
44810         versions do not understand.
44811
44812 2008-08-01  Bruno Haible  <bruno@clisp.org>
44813
44814         Work around bug of HP-UX 10.20 cc with -0.0 literal.
44815         * tests/test-isnanf.h (zero): New variable.
44816         (main): Avoid literal -0.0f.
44817         * tests/test-isnand.h (zero): New variable.
44818         (main): Avoid literal -0.0.
44819         * tests/test-isnanl.h (zero): New variable.
44820         (main): Avoid literal -0.0L.
44821         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
44822         (test_float, test_double, test_long_double): Avoid literals -0.0f,
44823         -0.0, -0.0L.
44824         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
44825         (test_signbitd): Avoid literal -0.0.
44826         (test_signbitl): Avoid literal -0.0L.
44827         * tests/test-ceilf1.c (zero): New variable.
44828         (main): Avoid literal -0.0f.
44829         * tests/test-ceill.c (zero): New variable.
44830         (main): Avoid literal -0.0L.
44831         * tests/test-floorf1.c (zero): New variable.
44832         (main): Avoid literal -0.0f.
44833         * tests/test-floorl.c (zero): New variable.
44834         (main): Avoid literal -0.0L.
44835         * tests/test-roundf1.c (zero): New variable.
44836         (main): Avoid literal -0.0f.
44837         * tests/test-round1.c (zero): New variable.
44838         (main): Avoid literal -0.0.
44839         * tests/test-roundl.c (zero): New variable.
44840         (main): Avoid literal -0.0L.
44841         * tests/test-truncf1.c (zero): New variable.
44842         (main): Avoid literal -0.0f.
44843         * tests/test-trunc1.c (zero): New variable.
44844         (main): Avoid literal -0.0.
44845         * tests/test-truncl.c (zero): New variable.
44846         (main): Avoid literal -0.0L.
44847         * tests/test-frexp.c (zero): New variable.
44848         (main): Avoid literal -0.0.
44849         * tests/test-frexpl.c (zero): New variable.
44850         (main): Avoid literal -0.0L.
44851         * tests/test-ldexpl.c (zero): New variable.
44852         (main): Avoid literal -0.0L.
44853         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44854         (zerod, zerol): New variables.
44855         (test_function): Avoid literals -0.0, -0.0L.
44856         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44857         (zerod, zerol): New variables.
44858         (test_function): Avoid literals -0.0, -0.0L.
44859         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44860         (zerod, zerol): New variables.
44861         (test_function): Avoid literals -0.0, -0.0L.
44862         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44863         (zerod, zerol): New variables.
44864         (test_function): Avoid literals -0.0, -0.0L.
44865         * tests/test-strtod.c (zero): New variable.
44866         (main): Avoid literal -0.0.
44867         Reported by Jonathan C. Patschke <jp@centtech.com>.
44868
44869 2008-07-31  Jim Meyering  <meyering@redhat.com>
44870
44871         sha256.h: correct definition of SHA224_DIGEST_SIZE
44872         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
44873         Reported by Paulie Pena IV <paulie4@gmail.com>.
44874         Define as 224 / 8, rather than as a literal.
44875         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
44876         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
44877         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
44878
44879 2008-07-31  Bruno Haible  <bruno@clisp.org>
44880
44881         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
44882         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
44883         Reported by Jonathan Patschke <jp@centtech.com>.
44884
44885 2008-07-31  Bruno Haible  <bruno@clisp.org>
44886
44887         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
44888         Reported by Paolo Bonzini <bonzini@gnu.org>.
44889
44890 2008-07-30  Eric Blake  <ebb9@byu.net>
44891
44892         test-strtod: allow compilation without -lm
44893         * tests/test-strtod.c (main): Avoid link dependence on fabs.
44894         Reported by Dennis Clarke <blastwave@gmail.com>.
44895
44896 2008-07-28  Jim Meyering  <meyering@redhat.com>
44897
44898         bootstrap: work also when there are no .po files in po/
44899         * build-aux/bootstrap (update_po_files): Complete the change
44900         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
44901
44902 2008-07-27  Jim Meyering  <meyering@redhat.com>
44903
44904         * users.txt: Add zile.
44905
44906 2008-07-26  Ben Pfaff  <blp@gnu.org>
44907
44908         Add missing dependencies on new m4/exponent[fdl].m4 files.
44909         * modules/isnanf-nolibm: Add m4/exponentf.m4.
44910         * modules/isnand-nolibm: Add m4/exponentd.m4.
44911         * modules/isnanl-nolibm: Add m4/exponentl.m4.
44912         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
44913         m4/isnan[fdl].m4, because the macros actually used moved.
44914         Reported by Jim Meyering.
44915
44916 2008-07-14  Ben Pfaff  <blp@gnu.org>
44917
44918         Add isinf module.
44919         * lib/isinf.c: New file.
44920         * lib/math.in.h: Define isinf macro if we have decided to replace
44921         it.
44922         * m4/isinf.m4: New file.
44923         * m4/math_h.m4: Initialize and substitute variables for isinf
44924         module.
44925         * modules/isinf: New file.
44926         * modules/isinf-tests: New file.
44927         * modules/math: Add substitutions for new module.
44928         * tests/test-isinf.c: New file.
44929         * doc/posix-functions/isinf.texi: Mention new module.
44930         * MODULES.html.sh: Mention new module.
44931
44932 2008-07-14  Ben Pfaff  <blp@gnu.org>
44933
44934         Factor out some macros for use by additional modules.
44935         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
44936         exponentf.m4.
44937         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
44938         exponentd.m4.
44939         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
44940         file exponentl.m4.
44941         * m4/exponentf.m4: New file.
44942         * m4/exponentd.m4: New file.
44943         * m4/exponentl.m4: New file.
44944         * modules/isnanf: Use new file m4/exponentf.m4.
44945         * modules/isnand: Use new file m4/exponentd.m4.
44946         * modules/isnanl: Use new file m4/exponentl.m4.
44947
44948 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
44949
44950         mktime.c: normalize tp->tm_isdst value to -1/0/1.
44951         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
44952         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
44953         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
44954
44955         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
44956         readlink on platforms without PATH_MAX.
44957
44958 2008-07-21  Eric Blake  <ebb9@byu.net>
44959
44960         Warn, not fail, on stale version.
44961         * top/GNUmakefile (_curr-ver): Tone down previous patch.
44962
44963         Don't allow installation with stale devel version number.
44964         * top/GNUmakefile (_is-install-target): New macro.
44965         (_curr-ver): Forbid installation with stale version number.
44966
44967 2008-07-20  Bruno Haible  <bruno@clisp.org>
44968
44969         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
44970         TESTS_ENVIRONMENT.
44971         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
44972
44973 2008-07-20  Bruno Haible  <bruno@clisp.org>
44974
44975         * lib/c-stack.h (c_stack_action): Add documentation.
44976         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44977
44978 2008-07-20  Bruno Haible  <bruno@clisp.org>
44979
44980         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44981         * modules/readlink (License): Likewise.
44982
44983 2008-07-17  Eric Blake  <ebb9@byu.net>
44984
44985         * modules/c-stack (Link): Fix typo.
44986
44987         Make c-stack use libsigsegv, when available.
44988         * modules/c-stack (Depends-on): Add libsigsegv.
44989         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44990         needed.
44991         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44992         (segv_handler, overflow_handler, c_stack_action)
44993         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44994         implementation when libsigsegv is available, but only when using
44995         the library is necessary.
44996         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44997         comment, explaining why XSI check fails on Linux.
44998         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44999         * tests/test-c-stack2.sh: Tweak skip message.
45000         * NEWS: Document new link-time requirements.
45001
45002 2008-07-16  Eric Blake  <ebb9@byu.net>
45003
45004         c-stack: Expose false positives when not using libsigsegv.
45005         * modules/c-stack-tests (Files): Expand test.
45006         * tests/test-c-stack.c (main): Add means to conditionally trigger
45007         non-overflow SIGSEGV.
45008         * tests/test-c-stack2.sh: New file.
45009
45010 2008-07-14  Bruno Haible  <bruno@clisp.org>
45011
45012         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
45013         Reported by Eric Blake.
45014
45015 2008-07-14  Sam Steingold  <sds@gnu.org>
45016             Bruno Haible  <bruno@clisp.org>
45017
45018         New module libsigsegv.
45019         * modules/libsigsegv: New file.
45020         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
45021         modifications.
45022         * MODULES.html.sh (Signal handling): New section.
45023
45024 2008-07-14  Bruno Haible  <bruno@clisp.org>
45025
45026         * modules/unictype/ctype-* (Description): Add the word "function".
45027         Improves the resulting doc in MODULES.html.
45028
45029 2008-07-12  Ben Pfaff  <blp@gnu.org>
45030
45031         Add longlong module.
45032         * modules/longlong: New file.
45033
45034 2008-07-12  Bruno Haible  <bruno@clisp.org>
45035
45036         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
45037         to empty.
45038
45039 2008-07-10  Ben Pfaff  <blp@gnu.org>
45040
45041         Add isnan module.
45042         * doc/posix-functions/isnan.texi: Mention new module.
45043         * lib/math.in.h: Define isnan macro if we have decided to replace
45044         it.
45045         * m4/isnan.m4: New file.
45046         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
45047         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
45048         also.
45049         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
45050         redundancy.
45051         * m4/math_h.m4: Initialize and substitute variables for isnan
45052         module.
45053         * modules/isnan: New file.
45054         * modules/isnan-tests: New file.
45055         * modules/math: Add substitutions for new module.
45056         * tests/test-isnan.c: New file.
45057         * MODULES.html.sh: Mention new module.
45058
45059 2008-07-10  Ben Pfaff  <blp@gnu.org>
45060
45061         Add isnanf module.
45062         * lib/isnanf.m4: New file.
45063         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
45064         (gl_HAVE_ISNANF_IN_LIBM): New macro.
45065         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
45066         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
45067         * modules/isnanf: New file.
45068         * modules/isnanf-tests: New file.
45069         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
45070         files.
45071         * tests/test-isnanf-nolibm.c: factored most of its contents into
45072         new file tests/test-isnanf.h.
45073         * tests/test-isnanf.h: New file.
45074         * tests/test-isnanf.c: New file.
45075         * MODULES.html.sh: Mention new module.
45076         * doc/glibc-functions/isnanf.texi: Mention new module.
45077
45078 2008-07-10  Ben Pfaff  <blp@gnu.org>
45079
45080         Add isnand module.
45081         * lib/isnand.h: New file.
45082         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
45083         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
45084         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
45085         functionality also.
45086         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
45087         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
45088         (gl_HAVE_ISNAND_IN_LIBM): New macro.
45089         * modules/isnand: New file.
45090         * modules/isnand-tests: New file.
45091         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
45092         files.
45093         * tests/test-isnand-nolibm.c: factored most of its contents into
45094         new file tests/test-isnand.h.
45095         * tests/test-isnand.h: New file.
45096         * tests/test-isnand.c: New file.
45097         * MODULES.html.sh: Mention new module.
45098
45099 2008-07-10  Ben Pfaff  <blp@gnu.org>
45100
45101         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
45102         * lib/isnand.h: Rename lib/isnand-nolibm.h.
45103         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
45104         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
45105         * modules/isnanf-nolibm: Update references to renamed files.
45106         * modules/isnand-nolibm: Likewise.
45107         * modules/isnanf-nolibm-tests: Likewise.
45108         * modules/isnand-nolibm-tests: Likewise.
45109         * lib/frexp.c: Likewise.
45110         * lib/isfinite.c: Likewise.
45111         * lib/signbitd.c: Likewise.
45112         * lib/signbitf.c: Likewise.
45113         * lib/vasnprintf.c: Likewise.
45114         * tests/test-ceilf1.c: Likewise.
45115         * tests/test-ceilf2.c: Likewise.
45116         * tests/test-floorf1.c: Likewise.
45117         * tests/test-floorf2.c: Likewise.
45118         * tests/test-frexp.c: Likewise.
45119         * tests/test-round1.c: Likewise.
45120         * tests/test-round2.c: Likewise.
45121         * tests/test-roundf1.c: Likewise.
45122         * tests/test-strtod.c: Likewise.
45123         * tests/test-trunc1.c: Likewise.
45124         * tests/test-trunc2.c: Likewise.
45125         * tests/test-truncf1.c: Likewise.
45126         * tests/test-truncf2.c: Likewise.
45127         * NEWS: Mention the renamed header files.
45128
45129 2008-07-11  Jim Meyering  <meyering@redhat.com>
45130
45131         vc-list-files: make the last-resort awk code more portable
45132         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
45133         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
45134         does not support it.
45135
45136 2008-07-10  Eric Blake  <ebb9@byu.net>
45137
45138         Work with tar's bootstrap.
45139         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
45140         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
45141         an m4 comment.
45142
45143 2008-07-09  Jim Meyering  <meyering@redhat.com>
45144
45145         posix-shell.m4: fix typo that made this test malfunction
45146         * m4/posix-shell.m4: Remove capitalization in variable name.
45147
45148 2008-07-08  Bruno Haible  <bruno@clisp.org>
45149
45150         * m4/onceonly.m4: Update comments.
45151         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45152
45153 2008-07-04  Jim Meyering  <meyering@redhat.com>
45154
45155         * users.txt: Add vc-dwim.
45156         (bison, coreutils): Use the gitweb URL.
45157
45158 2008-07-03  Jim Meyering  <meyering@redhat.com>
45159
45160         * users.txt: Add libffcall.  From Sam Steingold.
45161
45162 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
45163
45164         getdate.y: do not ignore TZ with relative day, month or year offset
45165         * lib/getdate.y (get_date): Move the tz-handling block to follow the
45166         relative-date-handling, since otherwise, the latter would clobber the
45167         sole output (an updated Start value) of the tz-handling block.
45168         * tests/test-getdate.c: Tests for the fix
45169
45170 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45171
45172         Recognize 'foo_LIBRARIES += libgnu.a'.
45173         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
45174         makefile snippet has already specified an installation location,
45175         also using '+='.
45176
45177 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
45178
45179         getdate.y: factor out common actions
45180         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
45181         Use them in place of open-coded actions.
45182
45183 2008-07-01  Simon Josefsson  <simon@josefsson.org>
45184
45185         Add self-test for getdate module.
45186         * modules/getdate-tests: New file.
45187         * tests/test-getdate.c: New file.
45188
45189 2008-06-29  Bruno Haible  <bruno@clisp.org>
45190
45191         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
45192         .gitignore.
45193         Reported by Sylvain Beucler <beuc@beuc.net>.
45194
45195 2008-06-29  Bruno Haible  <bruno@clisp.org>
45196
45197         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
45198         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
45199
45200 2008-06-29  Bruno Haible  <bruno@clisp.org>
45201
45202         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
45203         EXTRA_DIST.
45204         Reported by Sylvain Beucler <beuc@beuc.net>.
45205
45206 2008-06-26  Jim Meyering  <meyering@redhat.com>
45207
45208         make several modules depend on the "open" module
45209         This provides slightly increased consistency when opening-for-write
45210         the name of a non-directory spelled with a trailing slash.
45211         * modules/chdir-safer: Likewise.
45212         * modules/chown: Likewise.
45213         * modules/clean-temp: Likewise.
45214         * modules/copy-file: Likewise.
45215         * modules/fchdir: Likewise.
45216         * modules/fcntl-safer: Likewise.
45217         * modules/pipe: Likewise.
45218         * modules/utime: Likewise.
45219         Prompted by Eric Blake and Bruno Haible.
45220
45221 2008-06-24  Andreas Schwab  <schwab@suse.de>
45222
45223         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
45224         literals can be used as initializers for global variables.
45225
45226 2008-06-23  Eric Blake  <ebb9@byu.net>
45227
45228         Make gnulib-cache.m4 easier to diff.
45229         * gnulib-tool (func_import): Allow newlines when reading cached
45230         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
45231
45232 2008-06-23  Bruno Haible  <bruno@clisp.org>
45233
45234         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
45235         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
45236         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
45237         m4/signalblocking.m4.
45238         (gl_PREREQ_SIGACTION): Don't invoke it.
45239         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
45240         gl_PREREQ_SIG_HANDLER_H.
45241         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45242         Don't check for sigaction here.
45243
45244 2008-06-23  Bruno Haible  <bruno@clisp.org>
45245
45246         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
45247         (install_handlers): Don't set the SA_RESETHAND flag.
45248
45249 2008-06-23  Bruno Haible  <bruno@clisp.org>
45250
45251         * m4/sigaction.m4: Comment fixes.
45252         * lib/signal.in.h: Likewise.
45253
45254 2008-06-23  Eric Blake  <ebb9@byu.net>
45255
45256         Fix typo.
45257         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
45258
45259         Avoid SA_ namespace.
45260         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
45261         Reported by Ralf Wildenhues.
45262
45263         Avoid test failure due to SA_RESTORER.
45264         * tests/test-sigaction.c (SA_MASK): New macro.
45265         (main): Avoid failing due to extension flags being set.
45266         Reported by Jim Meyering.
45267
45268         Revert use of sig-handler.h in sigprocmask.c.
45269         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
45270         it requires the existence of struct sigaction.
45271         * lib/sigprocmask.c (handler_t): Restore typedef.
45272         (rpl_signal, old_handlers): Use local type.
45273
45274 2008-06-22  Bruno Haible  <bruno@clisp.org>
45275
45276         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
45277         conditionally.
45278         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45279
45280 2008-06-22  Bruno Haible  <bruno@clisp.org>
45281
45282         * doc/posix-functions/siginterrupt.texi: Move note.
45283
45284         * lib/signal.in.h (SA_RESTART): New macro.
45285         * lib/sigaction.c: Update comment.
45286
45287         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
45288
45289         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
45290         (gl_PREREQ_SIGPROCMASK): Invoke it.
45291         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
45292
45293         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
45294
45295         * lib/sigprocmask.c: Update a comment.
45296
45297 2008-06-21  Eric Blake  <ebb9@byu.net>
45298
45299         Use sigaction module rather than signal().
45300         * modules/c-stack (Depends-on): Add sigaction.
45301         * modules/fatal-signal (Depends-on): Likewise.
45302         * modules/nanosleep (Depends-on): Likewise.
45303         * modules/sigprocmask (Files): Add sig-handler.h.
45304         * modules/sigaction (Files): Likewise.
45305         * lib/sig-handler.h (get_handler): New file, suggested by Paul
45306         Eggert.
45307         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
45308         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
45309         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
45310         (init_fatal_signals): Likewise.
45311         * lib/nanosleep.c (rpl_nanosleep): Likewise.
45312         (siginterrupt): Delete fallback.
45313         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
45314         instead.
45315         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
45316         siginterrupt.
45317
45318         New module sigaction, for mingw.
45319         * modules/sigaction: New module...
45320         * modules/sigaction-tests: ...and its test.
45321         * m4/sigaction.m4: New file.
45322         * lib/sigaction.c: Likewise.
45323         * tests/test-sigaction.c: Likewise.
45324         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
45325         * modules/signal (Makefile.am): Likewise.
45326         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
45327         needed.
45328         * doc/posix-headers/signal.texi (signal.h): Mention provided
45329         types.
45330         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
45331         that sigaction is preferable.
45332         * doc/posix-functions/sigaction.texi (sigaction): Mention new
45333         module.
45334         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45335         sigaction.
45336
45337         Improve robustness of sigprocmask by overriding signal.
45338         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
45339         is in use.
45340         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
45341         (SIGKILL, SIGSTOP): Provide fallbacks.
45342         (rpl_signal): Implement.
45343         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
45344         signal can be called inside handlers.
45345
45346         Fix nanosleep module on mingw.
45347         * modules/nanosleep (Depends-on): Add sys_select.
45348         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
45349
45350         Fix licensing of sigprocmask.
45351         * modules/raise (License): Relicense as LGPL.
45352
45353 2008-06-21  Bruno Haible  <bruno@clisp.org>
45354
45355         * lib/propername.c (proper_name_utf8): Don't use the transliterated
45356         result if it contains question marks.
45357         Reported by Michael Geng <linux@michaelgeng.de>.
45358
45359 2008-06-19  Bruno Haible  <bruno@clisp.org>
45360
45361         Fix CVS-ism.
45362         * doc/gnulib.texi: Include updated-stamp.texi.
45363         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
45364         (updated-stamp.texi): New rule.
45365         (gnulib.info): Depend on it.
45366         * doc/.gitignore: Add updated-stamp.texi.
45367         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
45368
45369 2008-06-19  Bruno Haible  <bruno@clisp.org>
45370
45371         * doc/Makefile (gnulib.info): Update and simplify dependencies.
45372         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45373
45374 2008-06-19  Eric Blake  <ebb9@byu.net>
45375
45376         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
45377         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
45378         Reported by Stepan Kasal.
45379
45380 2008-06-18  Bruno Haible  <bruno@clisp.org>
45381
45382         * lib/fatal-signal.c (init_fatal_signals): Add comment.
45383         Reported by Eric Blake.
45384
45385 2008-06-18  Eric Blake  <ebb9@byu.net>
45386
45387         Work around cygwin 1.5.25 strsignal bug.
45388         * tests/test-strsignal.c: Allow for const char *.
45389         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
45390
45391 2008-06-18  Simon Josefsson  <simon@josefsson.org>
45392
45393         * users.txt: Update URL to article and add author/date
45394         information.
45395
45396 2008-06-17  Bruno Haible  <bruno@clisp.org>
45397
45398         New macro gl_DISABLE_THREADS.
45399         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
45400         if the user did not pass --enable-threads or --disable-threads option.
45401         (gl_DISABLE_THREADS): New macro.
45402         Reported by Eric Blake <ebb9@byu.net>.
45403
45404 2008-06-17  Bruno Haible  <bruno@clisp.org>
45405
45406         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
45407         when the macro ignores it.
45408         Based on a patch by Eric Blake <ebb9@byu.net>.
45409
45410 2008-06-17  Bruno Haible  <bruno@clisp.org>
45411
45412         * modules/tls (License): Change to LGPLv2+.
45413         Reported by Eric Blake.
45414
45415 2008-06-17  Eric Blake  <ebb9@byu.net>
45416
45417         Simplify c-stack prerequisites.
45418         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
45419         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
45420         no longer requires <ucontext.h> to exist.  Optimize setrlimit
45421         check.
45422         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
45423         <sys/resource.h>.
45424
45425         Move c-stack test into testsuite.
45426         * modules/c-stack-tests: New file.
45427         * lib/c-stack.c [DEBUG]: Move test program...
45428         * tests/test-c-stack.c: ...into this new file.  Skip rather than
45429         fail test if sigaltstack is lacking.
45430         * tests/test-c-stack.sh: New driver file.
45431
45432 2008-06-16  Eric Blake  <ebb9@byu.net>
45433
45434         Use raise module consistently.
45435         * modules/fatal-signal (Depends-on): Add raise.
45436         * modules/sigprocmask (Depends-on): Likewise.
45437         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
45438         * lib/sigprocmask.c (sigprocmask): Likewise.
45439         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45440         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
45441
45442         Fix compliance bug in sigpending.
45443         * lib/sigprocmask.c (sigpending): Return pending array via
45444         parameter, not return value.
45445
45446 2008-06-14  Eric Blake  <ebb9@byu.net>
45447
45448         Improve obstack-printf test code.
45449         * tests/test-obstack-printf.c (test_function): Fix comment, and
45450         simplify usage of obstack_* in macros.  Add a test for coverage.
45451         Reported by Bruno Haible.
45452
45453 2008-06-14  Bruno Haible  <bruno@clisp.org>
45454
45455         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
45456         array size as a constant, not as a const variable.
45457         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
45458         AC_USE_SYSTEM_EXTENSIONS.
45459         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45460         Test whether the obstack_printf function actually exists.
45461         * modules/obstack-printf (Depends-on): Add extensions.
45462         (Include): Remove obstack.h.
45463         * modules/obstack-printf-posix (Depends-on): Add extensions.
45464         (Include): Remove obstack.h.
45465
45466 2008-06-13  Eric Blake  <ebb9@byu.net>
45467
45468         Add obstack-printf and obstack-printf-posix modules.
45469         * modules/obstack-printf: New file.
45470         * modules/obstack-printf-posix: Likewise.
45471         * MODULES.html.sh (Misc): Mention them.
45472         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
45473         Likewise.
45474         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
45475         Likewise.
45476         * modules/stdio (Makefile.am): Accomodate new modules.
45477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45478         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
45479         Declare.
45480         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
45481         functions.
45482         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
45483         (gl_REPLACE_OBSTACK_PRINTF): New macros
45484         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
45485         * tests/test-obstack-printf.c: New file.
45486         * modules/obstack-printf-tests: Likewise.
45487         * modules/obstack-printf-posix-tests: Likewise.
45488
45489 2008-06-11  Bruno Haible  <bruno@clisp.org>
45490
45491         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
45492         * lib/open.c: Include errno.h.
45493         (open): Fail when attempting to write to a file that has a trailing
45494         slash.
45495         * tests/test-open.c (main): Test against trailing slash bug.
45496         * doc/posix-functions/open.texi: Mention the trailing slash bug.
45497
45498 2008-06-10  Bruno Haible  <bruno@clisp.org>
45499
45500         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
45501         for $? to work inside the trap command, with various /bin/sh-s.
45502         * tests/test-vc-list-files-cvs.sh: Likewise.
45503
45504 2008-06-10  Bruno Haible  <bruno@clisp.org>
45505
45506         * lib/acl-internal.h: Don't include gettext.h here.
45507         * lib/set-mode-acl.c: Include gettext.h here.
45508         * lib/copy-acl.c: Likewise.
45509
45510 2008-06-10  Bruno Haible  <bruno@clisp.org>
45511
45512         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
45513         * lib/wait-process.c (wait_subprocess): Likewise.
45514         * lib/execute.h (execute): Add termsigp argument.
45515         * lib/execute.c (execute): Likewise.
45516         * lib/csharpcomp.c (compile_csharp_using_pnet,
45517         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
45518         * lib/csharpexec.c (execute_csharp_using_pnet,
45519         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
45520         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
45521         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
45522         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
45523         is_jikes_present): Update.
45524         * lib/javaexec.c (execute_java_class): Update.
45525         * lib/javaversion.c (execute_and_read_line): Update.
45526         * NEWS: Document the changes.
45527         Reported by Eric Blake.
45528
45529 2008-06-10  Eric Blake  <ebb9@byu.net>
45530
45531         Add missing include.
45532         * tests/test-strstr.c (includes): Add <signal.h>.
45533         * tests/test-strcasestr.c (includes): Likewise.
45534         * tests/test-memmem.c (includes): Likewise.
45535
45536 2008-06-10  Bruno Haible  <bruno@clisp.org>
45537
45538         * lib/wait-process.c (wait_subprocess): Add an assertion.
45539
45540 2008-06-10  Bruno Haible  <bruno@clisp.org>
45541
45542         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
45543
45544 2008-06-10  Bruno Haible  <bruno@clisp.org>
45545
45546         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
45547         using alarm().
45548         * tests/test-strcasestr.c (main): Likewise.
45549         * tests/test-strstr.c (main): Likewise.
45550
45551 2008-06-09  Bruno Haible  <bruno@clisp.org>
45552
45553         Work around the Solaris 10 ACE ACLs ABI change.
45554         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
45555         declare if ACL_NO_TRIVIAL is present.
45556         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
45557         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
45558         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
45559         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
45560         define if ACL_NO_TRIVIAL is present.
45561         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
45562         and use the current ABI.
45563         (file_has_acl): Use same #if condition as elsewhere.
45564         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
45565         in use, and use the current ABI.
45566         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
45567         Reported by Jim Meyering.
45568
45569 2008-06-09  Eric Blake  <ebb9@byu.net>
45570
45571         Work around environments that (stupidly) ignore SIGALRM.
45572         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
45573         before using alarm().
45574         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45575         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45576         Reported by Ian Beckwith <ianb@erislabs.net>.
45577
45578         Produce autobuild blurb earlier in log.
45579         * modules/autobuild (configure.ac-early): Move AB_INIT here.
45580
45581 2008-06-09  Jim Meyering  <meyering@redhat.com>
45582         and OndÅ™ej Vašík  <ovasik@redhat.com>
45583
45584         utimens.c: correct kernel bug work-around
45585         OndÅ™ej Vašík found that the invalid return value of 280 indicates
45586         failure, not success, and the kernel bug we're trying to work
45587         around affects not just the utimensat call, but also the fallback
45588         futimens call.
45589         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
45590         not success.
45591         [HAVE_FUTIMENS]: Use the same work-around, here.
45592
45593 2008-06-09  Jim Meyering  <meyering@redhat.com>
45594
45595         add more guards around definition of ACE_-related code
45596         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
45597         ALLOW and ACE_OWNER are also defined.
45598
45599 2008-06-08  Bruno Haible  <bruno@clisp.org>
45600
45601         * lib/acl-internal.h: Add me as co-author.
45602         * lib/file-has-acl.c: Likewise.
45603         * lib/set-mode-acl.c: Likewise.
45604         * lib/copy-acl.c: Likewise.
45605
45606 2008-06-08  Bruno Haible  <bruno@clisp.org>
45607
45608         Add support for AIX ACLs.
45609         * lib/acl-internal.h (acl_nontrivial): New declaration.
45610         * lib/file-has-acl.c (acl_nontrivial): New function.
45611         (file_has_acl): Add implementation using AIX 4 ACL API.
45612         * lib/set-mode-acl.c (qset_acl): Likewise.
45613         * lib/copy-acl.c (qcopy_acl): Likewise.
45614
45615 2008-06-08  Bruno Haible  <bruno@clisp.org>
45616
45617         Add support for HP-UX ACLs.
45618         * lib/acl-internal.h (acl_nontrivial): New declaration.
45619         * lib/file-has-acl.c (acl_nontrivial): New function.
45620         (file_has_acl): Add implementation using HP-UX 11 ACL API.
45621         * lib/set-mode-acl.c (qset_acl): Likewise.
45622         * lib/copy-acl.c (qcopy_acl): Likewise.
45623
45624 2008-06-08  Bruno Haible  <bruno@clisp.org>
45625
45626         Add support for Cygwin ACLs.
45627         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
45628         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
45629         the chmod_or_fchmod call.
45630         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
45631
45632 2008-06-08  Bruno Haible  <bruno@clisp.org>
45633
45634         Fix bug with setuid modes in Solaris 10+ code.
45635         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
45636         succeeded, when the mode contains some special bits.
45637
45638 2008-06-08  Bruno Haible  <bruno@clisp.org>
45639
45640         Add support for Solaris 7..10 ACLs.
45641         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
45642         declarations.
45643         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
45644         functions.
45645         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
45646         * lib/set-mode-acl.c (qset_acl): Likewise.
45647         * lib/copy-acl.c (qcopy_acl): Likewise.
45648
45649 2008-06-08  Bruno Haible  <bruno@clisp.org>
45650
45651         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
45652         declaration.
45653         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
45654         (acl_access_nontrivial): Remove MacOS X case.
45655         (file_has_acl): Use acl_extended_nontrivial.
45656         * lib/copy-acl.c (qcopy_acl): Likewise.
45657
45658 2008-06-08  Bruno Haible  <bruno@clisp.org>
45659
45660         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
45661
45662 2008-06-08  Jim Meyering  <meyering@redhat.com>
45663
45664         * modules/acl (Maintainer): Add Bruno Haible.
45665
45666 2008-06-07  Bruno Haible  <bruno@clisp.org>
45667
45668         Improve support for Tru64 ACLs.
45669         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
45670         ACL on OSF/1.
45671
45672 2008-06-07  Bruno Haible  <bruno@clisp.org>
45673
45674         Add support for MacOS X ACLs.
45675         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
45676         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
45677         * lib/set-mode-acl.c (qset_acl): Likewise.
45678         * lib/copy-acl.c (qcopy_acl): Likewise.
45679
45680 2008-06-07  Bruno Haible  <bruno@clisp.org>
45681
45682         Fix memory leak introduced on 2008-05-22.
45683         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
45684         use.
45685
45686 2008-06-07  Bruno Haible  <bruno@clisp.org>
45687
45688         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
45689         to construct an empty ACL.
45690
45691 2008-06-07  Bruno Haible  <bruno@clisp.org>
45692
45693         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
45694         precisely.
45695         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
45696
45697 2008-06-07  Bruno Haible  <bruno@clisp.org>
45698
45699         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
45700         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
45701
45702 2008-06-07  Bruno Haible  <bruno@clisp.org>
45703
45704         * doc/posix-functions/_setjmp.texi: Explain the use of this function
45705         regardless of POSIX.
45706         * doc/posix-functions/_longjmp.texi: Likewise.
45707         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
45708         SystemV platform in this case.
45709
45710 2008-06-06  Eric Blake  <ebb9@byu.net>
45711
45712         Document abort() bugs.
45713         * doc/posix-functions/abort.texi (abort): Mention anomalies.
45714
45715         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
45716         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
45717         sigsetjmp.
45718         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
45719         siglongjmp, but only as a macro.
45720         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
45721         is obsolete.
45722         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
45723
45724         Tweak documentation to cover cygwin argz bugs.
45725         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
45726         argz bug fix; no code change needed since no cygwin releases
45727         occurred between the last fix and the bug being tested.
45728         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
45729         module and recently fixed cygwin bugs.
45730         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
45731         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
45732         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
45733         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
45734         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
45735         Likewise.
45736         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
45737         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
45738         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
45739         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
45740         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
45741         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
45742         Likewise.
45743
45744         Avoid gcc warning on cygwin.
45745         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
45746         !ACL_NO_TRIVIAL]: Avoid unused variable.
45747
45748 2008-06-05  Eric Blake  <ebb9@byu.net>
45749
45750         Be tolerant of UNKNOWN version in gnulib-tool test dir.
45751         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
45752         git-version-gen fails to come up with a version.
45753         Reported by Simon Josefsson.
45754
45755 2008-06-05  Jim Meyering  <meyering@redhat.com>
45756             Paul Eggert  <eggert@cs.ucla.edu>
45757
45758         utimens.c: work around a probable Linux kernel bug
45759         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
45760         appears to be a kernel bug that causes utimensat to return 280
45761         instead of 0, indicating success.
45762
45763 2008-06-04  Bruno Haible  <bruno@clisp.org>
45764
45765         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
45766         2008-06-01 commit.
45767
45768 2008-06-04  Bruno Haible  <bruno@clisp.org>
45769
45770         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
45771         * lib/file-has-acl.c (acl_access_nontrivial): New function.
45772         (file_has_acl): Use it. Save errno afterwards.
45773         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
45774
45775 2008-06-03  Bruno Haible  <bruno@clisp.org>
45776
45777         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
45778         draft code. Simplify #ifs.
45779         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
45780         Put Solaris code after POSIX-draft code. Fix comments regarding
45781         Solaris 10, HP-UX. Mention Cygwin.
45782         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
45783
45784 2008-06-03  Eric Blake  <ebb9@byu.net>
45785
45786         Provide fallback for older kernels.
45787         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
45788         Provide runtime fallback if kernel lacks support.
45789         Reported by Mike Frysinger.
45790
45791 2008-06-02  Bruno Haible  <bruno@clisp.org>
45792
45793         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
45794         it exists.
45795
45796 2008-06-02  Bruno Haible  <bruno@clisp.org>
45797
45798         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
45799         * lib/copy-acl.c (qcopy_acl): Update comment.
45800
45801 2008-06-02  Bruno Haible  <bruno@clisp.org>
45802
45803         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
45804         like ACL APIs.
45805
45806 2008-06-02  Bruno Haible  <bruno@clisp.org>
45807
45808         * tests/test-file-has-acl.sh: Use different code for Cygwin.
45809         * tests/test-set-mode-acl.sh: Likewise.
45810         * tests/test-copy-acl.sh: Likewise.
45811         * tests/test-copy-file.sh: Likewise.
45812
45813 2008-06-02  Bruno Haible  <bruno@clisp.org>
45814
45815         * tests/test-file-has-acl.sh: Remove unused code.
45816
45817 2008-06-01  Bruno Haible  <bruno@clisp.org>
45818
45819         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
45820         (copy_acl): Just a wrapper around qcopy_acl that emits the error
45821         messages.
45822         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
45823
45824 2008-06-01  Bruno Haible  <bruno@clisp.org>
45825
45826         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
45827         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
45828         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
45829         APIs.
45830         * modules/acl-tests (configure.ac): Remove tests now contained in
45831         m4/acl.m4.
45832
45833 2008-06-02  Jim Meyering  <meyering@redhat.com>
45834
45835         announce-gen: use a better key-server host name
45836         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
45837         it may be more consistently reliable.  Suggested by Werner Koch
45838         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
45839
45840 2008-06-01  Bruno Haible  <bruno@clisp.org>
45841
45842         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
45843         Reported by Voroskoi Andras <voroskoi@gmail.com>.
45844
45845 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
45846
45847         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
45848
45849 2008-06-01  Bruno Haible  <bruno@clisp.org>
45850
45851         New ACL tests.
45852         * tests/test-file-has-acl.sh: New file.
45853         * tests/test-file-has-acl.c: New file.
45854         * tests/test-set-mode-acl.sh: New file.
45855         * tests/test-set-mode-acl.c: New file.
45856         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
45857         * tests/test-copy-acl.c: New file.
45858         * modules/acl-tests: New file, based on modules/copy-file-tests.
45859         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
45860         (Depends-on): Add acl-tests.
45861         (configure.ac): Remove checks.
45862         (Makefile.am): Don't create test-sameacls program here any more.
45863
45864 2008-06-01  Bruno Haible  <bruno@clisp.org>
45865
45866         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
45867         * tests/test-sameacls.c: Include progname.h.
45868         (main): Invoke set_program_name. Portability fixes for MacOS X,
45869         Solaris, HP-UX.
45870
45871 2008-06-01  Bruno Haible  <bruno@clisp.org>
45872
45873         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
45874         function.
45875         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
45876
45877 2008-06-01  Bruno Haible  <bruno@clisp.org>
45878
45879         * modules/rpmatch (Depends-on): Add strdup.
45880
45881 2008-06-01  Bruno Haible  <bruno@clisp.org>
45882
45883         * lib/pipe.c: Include unistd-safer.h.
45884         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
45885         * modules/pipe (Depends-on): Add unistd-safer.
45886
45887 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45888
45889         * modules/autobuild (configure.ac): Call AB_INIT.
45890
45891 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45892
45893         * tests/test-getaddrinfo.c: Don't print debug messages by default.
45894         Suggested by Bruno Haible <bruno@clisp.org>.
45895
45896 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45897
45898         * tests/test-base64.c: Cast size_t to unsigned long when invoking
45899         printf.  Use %lu instead of %d.  Reported by Bruno Haible
45900         <bruno@clisp.org>.
45901
45902 2008-05-29  Eric Blake  <ebb9@byu.net>
45903
45904         Prefer new POSIX 200x interfaces over futimesat.
45905         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
45906         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
45907         when available.
45908         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
45909
45910 2008-05-28  Bruno Haible  <bruno@clisp.org>
45911
45912         * modules/stpcpy (License): Change to LGPLv2+.
45913         Requested by David Lutterkort <dlutter@redhat.com>.
45914
45915 2008-05-27  Bruno Haible  <bruno@clisp.org>
45916
45917         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
45918         current mingw.
45919         Reported by Jose E. Marchesi <jemarch@gnu.org>.
45920
45921 2008-05-27  Bruno Haible  <bruno@clisp.org>
45922
45923         * modules/iconv_open (Link): New section, from module 'iconv'.
45924         * modules/striconv (Link): Likewise.
45925         * modules/striconveh (Link): Likewise.
45926         * modules/xstriconv (Link): Likewise.
45927         * modules/unicodeio (Link): Likewise.
45928         * modules/propername (Link): Likewise.
45929         Reported by Jim Meyering.
45930
45931 2008-05-26  Jim Meyering  <meyering@redhat.com>
45932
45933         sha256: do not artificially restrict buffer length to be < 2^32
45934         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
45935         uint32_t to size_t.
45936         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
45937         to match.
45938
45939         avoid unaligned access errors, e.g., on sparc
45940         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
45941         direct access through a possibly-unaligned uint64* pointer.
45942         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
45943         direct access through a possibly-unaligned uint32* pointer.
45944         Prompted by this patch from Tom "spot" Callaway:
45945         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
45946
45947         sha512.c: fix typo in comment
45948         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
45949
45950 2008-05-25  Bruno Haible  <bruno@clisp.org>
45951
45952         * lib/set-mode-acl.c: Renamed from lib/acl.c.
45953         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
45954         (Makefile.am): Update lib_SOURCES.
45955
45956 2008-05-25  Bruno Haible  <bruno@clisp.org>
45957
45958         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
45959
45960 2008-05-25  Jim Meyering  <meyering@redhat.com>
45961
45962         useless-if-before-free: freed expr may have white-space differences
45963         * build-aux/useless-if-before-free: Recognize cases in which the
45964         freed expression differs from the tested one in embedded white
45965         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
45966         $1 was used, so we can't make any regexp shy.  Improved tests now
45967         detect this.
45968
45969         useless-if-before-free: accept white space in the expression.
45970         * build-aux/useless-if-before-free: For now, any white space
45971         in the expression must be identical in the free argument.
45972
45973         useless-if-before-free: efficiency tweak
45974         * build-aux/useless-if-before-free: Make the expression-matching
45975         regexp "shy".
45976         Make the *outer* regexp shy, not the expr-matching one.
45977
45978         update code-in-comment to accept cast of free arg
45979         * build-aux/useless-if-before-free: Update regexp.
45980
45981 2008-05-25  Bruno Haible  <bruno@clisp.org>
45982
45983         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45984         * modules/copy-file-tests (Files, Makefile.am): Update.
45985         * tests/test-copy-file.c (func_test_copy): Update.
45986
45987 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45988
45989         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45990
45991 2008-05-23  Bruno Haible  <bruno@clisp.org>
45992
45993         Improve support for ACLs on OSF/1.
45994         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45995         Remove fallback for unknown flavors of ACLs.
45996
45997 2008-05-22  Bruno Haible  <bruno@clisp.org>
45998
45999         Add support for ACLs on OSF/1.
46000         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
46001         replacements.
46002         (acl_free_text): New macro fallback.
46003         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
46004         acl_free.
46005         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
46006         acl_free_text function. Require AC_C_INLINE.
46007
46008 2008-05-22  Bruno Haible  <bruno@clisp.org>
46009
46010         Make copy_acl work on MacOS X 10.5.
46011         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
46012         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
46013         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
46014         If MODE_INSIDE_ACL, don't assume that every system has the same text
46015         representation for ACLs as FreeBSD.
46016         * lib/copy-acl.c (copy_acl): Add support for platforms with
46017         !MODE_INSIDE_ACL.
46018         * lib/file-has-acl.c (file_has_acl): Likewise.
46019         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
46020         FreeBSD, MacOS X, or IRIX, respectively.
46021
46022 2008-05-22  Bruno Haible  <bruno@clisp.org>
46023
46024         * lib/acl.h: Don't include <sys/acl.h>.
46025         (GETACLCNT): Move fallback to lib/acl-internal.h.
46026         * lib/acl-internal.h: Include <sys/acl.h> here.
46027         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
46028
46029 2008-05-22  Bruno Haible  <bruno@clisp.org>
46030
46031         Split off copy_acl function to separate file.
46032         * lib/copy-acl.c: New file, extracted from lib/acl.c.
46033         * lib/acl.c (copy_acl): Moved function to separate file.
46034         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
46035         * modules/acl (Files): Add lib/copy-acl.c.
46036         (Makefiles.am): Augment lib_SOURCES.
46037
46038 2008-05-22  Bruno Haible  <bruno@clisp.org>
46039
46040         * modules/copy-file-tests: New file.
46041         * tests/test-copy-file.sh: New file.
46042         * tests/test-copy-file.c: New file.
46043         * tests/test-copy-file-sameacls.c: New file.
46044
46045 2008-05-22  Eric Blake  <ebb9@byu.net>
46046
46047         Avoid gcc warning.
46048         * tests/test-memcmp.c (main): Pass NULL indirectly.
46049
46050 2008-05-21  Bruno Haible  <bruno@clisp.org>
46051
46052         Add reference doc about ACLs.
46053         * doc/acl-resources.txt: New file.
46054         * doc/acl-cygwin.txt: New file.
46055
46056 2008-05-21  Bruno Haible  <bruno@clisp.org>
46057
46058         Avoid one more warning from gcc.
46059         * lib/vasnprintf.c (IF_LINT): Update comments.
46060         (VASNPRINTF): Use it also for the 'prefix' array initializer.
46061
46062 2008-05-21  Jim Meyering  <meyering@redhat.com>
46063
46064         avoid a warning from gcc
46065         * lib/vasnprintf.c (IF_LINT): Define.
46066         (scale10_round_decimal_long_double):
46067         Use it to avoid a "may be used uninitialized" warning.
46068         (scale10_round_decimal_double): Likewise.
46069
46070 2008-05-21  Simon Josefsson  <simon@josefsson.org>
46071
46072         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
46073         declared.
46074
46075 2008-05-20  Bruno Haible  <bruno@clisp.org>
46076
46077         * tests/test-memcmp.c (main): Test also the sign of the result. Test
46078         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
46079
46080 2008-05-20  Simon Josefsson  <simon@josefsson.org>
46081
46082         * modules/memcmp-tests: New file.
46083         * tests/test-memcmp.c: New file.
46084
46085 2008-05-19  Bruno Haible  <bruno@clisp.org>
46086
46087         * modules/propername (Notice, configure.ac): Put quoted "..." into
46088         --keyword option.
46089         * lib/propername.h: Update comments accordingly.
46090         Reported by Eric Blake.
46091
46092 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
46093
46094         * modules/getpass-gnu (Depends-on): Add fseeko.
46095
46096 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46097
46098         * modules/base64-tests: New file.
46099
46100 2008-05-19  Bo Borgerson <gigabo@gmail.com>
46101
46102         * lib/base64.c (base64_decode_ctx): If a decode context structure
46103         was passed in use it to ignore newlines.  If a context structure
46104         was _not_ passed in, continue to treat newlines as garbage (this
46105         is the historical behavior).  Formerly base64_decode.
46106         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46107         takes a decode context structure.
46108         * lib/base64.h (base64_decode): Macro for four-argument calls.
46109         (base64_decode_alloc): Likewise.
46110         * lib/base64.c (base64_decode_ctx): If a decode context structure
46111         was passed in use it to ignore newlines.  If a context structure
46112         was _not_ passed in, continue to treat newlines as garbage (this
46113         is the historical behavior).  Formerly base64_decode.
46114         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46115         takes a decode context structure.
46116         * lib/base64.h (base64_decode): Macro for four-argument calls.
46117         (base64_decode_alloc): Likewise.
46118
46119 2008-05-19  Jim Meyering  <meyering@redhat.com>
46120
46121         avoid a warning from gcc
46122         * lib/trim.c (IF_LINT): Define.
46123         (trim2): Use it to avoid a "may be used uninitialized" warning.
46124
46125         Fix doc typo.
46126         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
46127
46128 2008-05-19  Bruno Haible  <bruno@clisp.org>
46129
46130         * doc/glibc-functions/getpass.texi: Document limits of other
46131         implementations.
46132
46133 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46134             Bruno Haible <bruno@clisp.org>
46135
46136         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
46137
46138 2008-05-18  Bruno Haible  <bruno@clisp.org>
46139
46140         * modules/propername: New file, from GNU gettext.
46141         * lib/propername.h: New file, from GNU gettext.
46142         * lib/propername.c: New file, from GNU gettext.
46143         * MODULES.html.sh (Internationalization functions): Add propername.
46144
46145 2008-05-16  Jim Meyering  <meyering@redhat.com>
46146             Bruno Haible  <bruno@clisp.org>
46147
46148         Avoid some warnings from "gcc -Wshadow".
46149         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
46150
46151 2008-05-15  Eric Blake  <ebb9@byu.net>
46152
46153         Extend previous patch to cygwin 1.7.0.
46154         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
46155         fast implementation in cygwin >= 1.7.0.
46156         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46157         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46158
46159 2008-05-15  Bruno Haible  <bruno@clisp.org>
46160
46161         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
46162         implementation in glibc >= 2.9.
46163         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46164         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46165
46166 2008-05-15  Bruno Haible  <bruno@clisp.org>
46167
46168         * MODULES.html.sh (Internationalization functions): Remove linebreak.
46169         (Unicode string functions): Add unilbrk/*.
46170         Reported by Karl Berry.
46171
46172 2008-05-15  Eric Blake  <ebb9@byu.net>
46173
46174         Fix violation of <stdbool.h> replacement in regex.
46175         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
46176         * lib/regexec.c (re_search_internal): Likewise.
46177         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
46178
46179 2008-05-15  Jim Meyering  <meyering@redhat.com>
46180
46181         avoid distracting test output when git or cvs is not found
46182         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
46183         * tests/test-vc-list-files-git.sh: Likewise.
46184
46185 2008-05-15  Eric Blake  <ebb9@byu.net>
46186
46187         Glibc finally accepted the memmem speedup code, bugzilla #5514.
46188         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
46189         glibc version.
46190         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46191         * doc/posix-functions/strstr.texi (strstr): Likewise.
46192         * lib/str-two-way.h (MAX): Sychronize with glibc.
46193
46194 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
46195
46196         * lib/regcomp.c (optimize_utf8): Add a note on why we test
46197         opr.ctx_type.
46198         (calc_first): Initialize constraint field.
46199         (duplicate_node_closure): Use it instead of special casing ANCHORS.
46200         Fix grammar.
46201         (duplicate_node): Merge constraint field for all node types.
46202         (calc_eclosure_iter): Look at constraint field for all node types.
46203         * lib/regex_internal.c (create_cd_newstate): Don't look at
46204         opr.ctx_type.
46205
46206 2008-05-14  Bruno Haible  <bruno@clisp.org>
46207
46208         Help GCC to do better code generation.
46209         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
46210         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
46211         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
46212         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
46213         Declare with attribute 'malloc' if supported.
46214
46215 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
46216
46217         use "echo STR|wc -c" rather than unportable "expr length STR"
46218         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
46219         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
46220
46221 2008-05-14  Jim Meyering  <meyering@redhat.com>
46222
46223         use dd ibs=$n count=1 ... rather than less-portable head -c$n
46224         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
46225         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
46226         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
46227         via Collin Lasse.
46228
46229 2008-05-14  Eric Blake  <ebb9@byu.net>
46230
46231         Avoid quadratic growth in gl_LIBSOURCES.
46232         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
46233         Suggested by Bruno Haible.
46234
46235         Test xmemdup0.
46236         * modules/xmemdup0-tests: New file.
46237         * tests/test-xmemdup0.c: Likewise.
46238
46239 2008-05-13  Eric Blake  <ebb9@byu.net>
46240
46241         Split xmemdup0 into its own module.
46242         * modules/xmemdup0: New file.
46243         * lib/xmemdup0.h: Likewise.
46244         * lib/xmemdup0.c: Likewise.
46245         * MODULES.html.sh (Memory management functions): Add xmemdup0.
46246         * lib/xalloc.h (xmemdup0): Remove.
46247         * lib/xmalloc.c (xmemdup0): Likewise.
46248
46249 2008-05-13  Eric Blake  <ebb9@byu.net>
46250             Bruno Haible  <bruno@clisp.org>
46251
46252         Reduce number of forks required during autoconf.
46253         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
46254         and gl_LIBSOURCES_DIR.
46255         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
46256         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
46257         m4_syscmd per file.
46258         <m4_foreach_w>: Move...
46259         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
46260
46261 2008-05-13  Eric Blake  <ebb9@byu.net>
46262
46263         * gnulib-tool: Fix various comment typos.
46264
46265 2008-05-12  Bruno Haible  <bruno@clisp.org>
46266
46267         Tailor the linebreaking algorithm.
46268         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
46269
46270 2008-05-12  Bruno Haible  <bruno@clisp.org>
46271
46272         Update to Unicode 5.0.0.
46273         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46274         LBP_JV, LBP_JT. Redistribute values.
46275         (unilbrk_table): Change size.
46276         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
46277         Unicode TR#14 rev. 22.
46278         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46279         LBP_JV, LBP_JT. Redistribute values.
46280         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
46281         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
46282         Update.
46283         * lib/unilbrk/lbrkprop1.h: Regenerated.
46284         * lib/unilbrk/lbrkprop2.h: Regenerated.
46285         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
46286         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
46287         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
46288         Likewise.
46289         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
46290         Likewise.
46291         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
46292         result.
46293         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
46294         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
46295         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
46296         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
46297         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
46298         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
46299
46300 2008-05-11  Bruno Haible  <bruno@clisp.org>
46301
46302         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
46303
46304 2008-05-11  Bruno Haible  <bruno@clisp.org>
46305
46306         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
46307         * modules/unilbrk/gen-lbrk: New file.
46308
46309 2008-05-11  Bruno Haible  <bruno@clisp.org>
46310
46311         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
46312         * m4/sha512.m4 (gl_SHA512): Likewise.
46313
46314 2008-05-11  Jim Meyering  <meyering@redhat.com>
46315
46316         New modules: crypto/sha256, crypto/sha512 (from coreutils)
46317         * modules/crypto/sha256: New file.
46318         * modules/crypto/sha512: Likewise.
46319         * lib/sha256.c: Likewise.
46320         * lib/sha256.h: Likewise.
46321         * lib/sha512.c: Likewise.
46322         * lib/sha512.h: Likewise.
46323         * lib/u64.h: Likewise.
46324         * m4/sha256.m4: Likewise.
46325         * m4/sha512.m4: Likewise.
46326         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
46327
46328 2008-05-10  Bruno Haible  <bruno@clisp.org>
46329
46330         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
46331         (Input/Output <stdio.h>): Add xprintf.
46332         (Signal handling <signal.h>): Add strsignal.
46333         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
46334         (Core language properties): Add func.
46335         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
46336         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
46337         strings.
46338         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
46339         (Input/output): New section.
46340         (File system functions): Add openat-die, stat-macros.
46341         (Networking functions): Add sockets.
46342         (Unicode string functions): Add unictype/*.
46343         (Support for building libraries and executables): Add gperf.
46344         (Support for building documentation): Add agpl-3.0.
46345         (Misc): Add nocrash.
46346
46347 2008-05-10  Bruno Haible  <bruno@clisp.org>
46348
46349         * modules/unictype/gen-ctype: New file.
46350
46351 2008-05-10  Jim Meyering  <meyering@redhat.com>
46352
46353         Make chdir-safer.c more efficient on a system with no symlinks.
46354         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
46355         also if ELOOP is zero.  Suggested by Bruno Haible.
46356
46357         Make chdir-safer.c slightly safer.
46358         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
46359         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
46360
46361         Avoid compile failure on systems without ELOOP (like mingw).
46362         * lib/chdir-safer.c (ELOOP): Define if not already defined.
46363         Reported by Bruno Haible.
46364
46365 2008-05-10  Bruno Haible  <bruno@clisp.org>
46366
46367         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
46368         (is_utf8_encoding): Use a case-insensitive comparison.
46369         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
46370         streq.
46371
46372 2008-05-10  Bruno Haible  <bruno@clisp.org>
46373
46374         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
46375         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
46376         * lib/unilbrk/ulc-common.h (iconv_string_length,
46377         iconv_string_keeping_offsets): Remove declarations.
46378         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
46379         Don't include <iconv.h>, streq.h, xsize.h.
46380         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
46381         conversion.
46382         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
46383         <iconv.h>, streq.h, xsize.h.
46384         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
46385         conversion.
46386         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
46387         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
46388         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
46389         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
46390
46391 2008-05-10  Bruno Haible  <bruno@clisp.org>
46392
46393         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
46394         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
46395
46396         * modules/unilbrk/u32-width-linebreaks-tests: New file.
46397         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
46398
46399         * modules/unilbrk/u16-width-linebreaks-tests: New file.
46400         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
46401
46402         * modules/unilbrk/u8-width-linebreaks-tests: New file.
46403         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
46404
46405         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
46406         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
46407
46408         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
46409         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
46410
46411         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
46412         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
46413
46414         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
46415         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
46416
46417 2008-05-10  Bruno Haible  <bruno@clisp.org>
46418
46419         Split up 'linebreak' module.
46420         * lib/unilbrk.h: New file, based on lib/linebreak.h.
46421         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
46422         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
46423         modifications.
46424         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
46425         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
46426         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
46427         lib/linebreak.c.
46428         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
46429         lib/linebreak.c.
46430         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
46431         lib/linebreak.c.
46432         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
46433         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
46434         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
46435         lib/linebreak.c.
46436         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
46437         lib/linebreak.c.
46438         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
46439         lib/linebreak.c.
46440         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
46441         lib/linebreak.c.
46442         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
46443         lib/linebreak.c.
46444         * modules/unilbrk/base: New file.
46445         * modules/unilbrk/tables: New file.
46446         * modules/unilbrk/u8-possible-linebreaks: New file.
46447         * modules/unilbrk/u16-possible-linebreaks: New file.
46448         * modules/unilbrk/u32-possible-linebreaks: New file.
46449         * modules/unilbrk/ulc-common: New file.
46450         * modules/unilbrk/ulc-possible-linebreaks: New file.
46451         * modules/unilbrk/u8-width-linebreaks: New file.
46452         * modules/unilbrk/u16-width-linebreaks: New file.
46453         * modules/unilbrk/u32-width-linebreaks: New file.
46454         * modules/unilbrk/ulc-width-linebreaks: New file.
46455         * lib/linebreak.h: Remove file.
46456         * lib/linebreak.c: Remove file.
46457         * m4/linebreak.m4: Remove file.
46458         * modules/linebreak: Remove file.
46459         * NEWS: Mention the changes.
46460
46461 2008-05-09  Eric Blake  <ebb9@byu.net>
46462
46463         Add xmemdup0.
46464         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
46465         implementation.
46466         * lib/xmalloc.c (xmemdup0): New C implementation.
46467
46468 2008-05-08  Bruno Haible  <bruno@clisp.org>
46469
46470         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
46471
46472 2008-05-07  Eric Blake  <ebb9@byu.net>
46473
46474         Support cross-compilation of <wctype.h>.
46475         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
46476         AC_CACHE_CHECK.
46477
46478 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
46479
46480         * build-aux/vc-list-files: Add support for bzr.
46481
46482 2008-05-03  Jim Meyering  <meyering@redhat.com>
46483
46484         avoid failed assertion with tight malloc
46485         * tests/test-getndelim2.c: Correct an off-by-one assertion.
46486
46487 2008-05-03  Simon Josefsson  <simon@josefsson.org>
46488
46489         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
46490         are needed from arpa/inet.h.
46491         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
46492         Reported by Bruno Haible.
46493
46494 2008-05-02  Jim Meyering  <meyering@redhat.com>
46495
46496         avoid compilation error on FreeBSD 6
46497         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
46498
46499 2008-05-01  Jim Meyering  <meyering@redhat.com>
46500
46501         useless-if-before-free: correct --help's exit status description
46502         * build-aux/useless-if-before-free (usage): Like grep, exit 0
46503         for one or more matches, etc.  Reported by Bruno Haible.
46504
46505         vc-list-files: make the stand-alone gnulib test work
46506         * modules/vc-list-files-tests (configure.ac):
46507         Define and AC_SUBST abs_aux_dir.
46508         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
46509         $(abs_top_srcdir) to each script and having each of them
46510         duplicate the work of setting PATH, set PATH here, using
46511         the new variable, abs_aux_dir instead.
46512         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
46513         * tests/test-vc-list-files-git.sh: Likewise.
46514         Reported by Bruno Haible.
46515
46516 2008-05-01  Bruno Haible  <bruno@clisp.org>
46517
46518         * lib/getndelim2.c (getndelim2): Fix newsize computation during
46519         reallocation. Rename 'done' to 'found_delimiter'.
46520
46521 2008-05-01  Jim Meyering  <meyering@redhat.com>
46522
46523         vc-list-files: accommodate /bin/sh like the one from Solaris 10
46524         * build-aux/vc-list-files: Use `...`, not $(...).
46525
46526 2008-04-30  Jim Meyering  <meyering@redhat.com>
46527
46528         add tests for vc-list-files
46529         * modules/vc-list-files-tests: New module.
46530         * tests/test-vc-list-files-cvs.sh: New file.
46531         * tests/test-vc-list-files-git.sh: New file.
46532
46533         avoid a warning from gcc
46534         * lib/getndelim2.c (IF_LINT): Define.
46535         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
46536
46537         vc-list-files: work properly with build-aux/cvsu, too
46538         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
46539         to all cvs-based clauses.
46540
46541         vc-list-files: work properly in the CVS+awk case, too
46542         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
46543
46544         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
46545         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
46546         take more than one file argument, so .  Add quotes, just in case $dir
46547         ever contains a shell meta-character.  Prompted by Soren Hansen in
46548         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
46549
46550 2008-04-29  Eric Blake  <ebb9@byu.net>
46551
46552         Optimize getndelim2 to use block operations when possible.
46553         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
46554         freadseek, and memchr2.
46555         * lib/getndelim2.c (getndelim2): Use them for block reads.
46556
46557 2008-04-29  Bruno Haible  <bruno@clisp.org>
46558
46559         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
46560         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46561         * modules/inet_ntop (Depends-on): Add extensions.
46562         * modules/inet_pton (Depends-on): Likewise.
46563         Reported by Simon Josefsson.
46564
46565 2008-04-29  Jim Meyering  <meyering@redhat.com>
46566
46567         When the is more than one match in a block, match all of them.
46568         * build-aux/useless-if-before-free: Iterate through each block
46569         until there are no more matches.
46570
46571         Fix broken useless-if-before-free script.
46572         * build-aux/useless-if-before-free: Fix typo: missing "?" after
46573         the expression to match cast of argument to free-like function.
46574
46575 2008-04-29  Eric Blake  <ebb9@byu.net>
46576
46577         Use new header.
46578         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
46579
46580 2008-04-29  Jim Meyering  <meyering@redhat.com>
46581
46582         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
46583         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
46584         by gnulib to exist and to declare e.g., inet_ntop.
46585         Don't include "inet_ntop.h", now removed.
46586
46587         * m4/arpa_inet_h.m4: Remove trailing blanks.
46588
46589 2008-04-29  Eric Blake  <ebb9@byu.net>
46590
46591         Silence valgrind on safe reads beyond potential array bounds.
46592         * lib/rawmemchr.valgrind: New file.
46593         * lib/strchrnul.valgrind: Likewise.
46594         * modules/rawmemchr (Files): Distribute new file.
46595         * modules/strchrnul (Files): Likewise.
46596         Suggested by Bruno Haible.
46597
46598 2008-04-29  Bruno Haible  <bruno@clisp.org>
46599
46600         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
46601         (inet_ntop, inet_pton): Change portability warning's wording.
46602         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
46603         Invoke gl_CHECK_NEXT_HEADERS.
46604         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
46605         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
46606         set ARPA_INET_H.
46607         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46608         * modules/arpa_inet (Description): No longer only for systems that
46609         lack it.
46610         (Depends-on): Add include_next.
46611         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
46612         HAVE_ARPA_INET_H.
46613
46614 2008-04-29  Jim Meyering  <meyering@redhat.com>
46615
46616         * modules/mkdir (License): Re-license as LGPLv2+.
46617
46618 2008-04-29  Bruno Haible  <bruno@clisp.org>
46619
46620         * modules/rawmemchr (Maintainer): Set to Eric.
46621         * modules/strchrnul (Maintainer): Likewise.
46622
46623 2008-04-29  Simon Josefsson  <simon@josefsson.org>
46624
46625         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
46626         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
46627
46628         * modules/arpa_inet (arpa/inet.h): Use them.
46629
46630 2008-04-28  Eric Blake  <ebb9@byu.net>
46631
46632         Test getndelim2.
46633         * modules/getndelim2-tests: New file.
46634         * tests/test-getndelim2.c: Likewise.
46635         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
46636         stream.
46637         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
46638
46639         * MODULES.html.sh: Document new module.
46640
46641 2008-04-20  Bruno Haible  <bruno@clisp.org>
46642
46643         * lib/c-stack.c (die): Use raise.
46644         * modules/c-stack (Depends-on): Add raise.
46645
46646 2008-04-28  Bruno Haible  <bruno@clisp.org>
46647
46648         Expect rpmatch to be declared.
46649         * lib/yesno.c (rpmatch): Remove declaration.
46650
46651         Declare rpmatch.
46652         * lib/stdlib.in.h (rpmatch): New declaration.
46653         * lib/rpmatch.c: Include <stdlib.h> first.
46654         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
46655         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
46656         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
46657         HAVE_RPMATCH.
46658         * modules/rpmatch (Depends-on): Add stdlib, extensions.
46659         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46660         (Include): Set to <stdlib.h>.
46661         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
46662         HAVE_RPMATCH.
46663         * NEWS: Document the change.
46664
46665 2008-04-28  Bruno Haible  <bruno@clisp.org>
46666
46667         Change rpmatch to use nl_langinfo when appropriate.
46668         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
46669         (N_): New macro.
46670         (localized_pattern): New function/macro.
46671         (try): Remove match, nomatch arguments. Copy the pattern into safe
46672         memory before caching it.
46673         (rpmatch): Use localized_pattern. Add translator comments.
46674         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
46675         Suggested by Eric Blake.
46676         * modules/rpmatch (Depends-on): Add stdbool.
46677
46678 2008-04-28  Eric Blake  <ebb9@byu.net>
46679
46680         Add rawmemchr module, matching glibc.
46681         * modules/string (Makefile.am): New indicator.
46682         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
46683         * lib/string.in.h (rawmemchr): Declare when appropriate.
46684         * modules/rawmemchr: New file.
46685         * m4/rawmemchr.m4: Likewise.
46686         * lib/rawmemchr.c: Likewise.
46687         * modules/rawmemchr-tests: Likewise.
46688         * tests/test-rawmemchr.c: Likewise.
46689         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
46690         module.
46691         * modules/strchrnul (Depends-on): Add rawmemchr.
46692         * lib/strchrnul.c (strchrnul): Optimize a corner case.
46693
46694         Whitespace cleanup.
46695         * tests/test-strchrnul.c: Reindent.
46696         * lib/strchrnul.c: Likewise.
46697
46698         Optimize and test strchrnul.
46699         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
46700         * modules/strchrnul-tests: New file.
46701         * tests/test-strchrnul.c: Likewise.
46702
46703         Remove intprops dependency.
46704         * modules/memchr (Depends-on): Remove intprops.
46705         * modules/memrchr (Depends-on): Likewise.
46706         * modules/memchr2 (Depends-on): Likewise.
46707         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
46708         * lib/memrchr.c (__memrchr): Likewise.
46709         * lib/memrchr2.c (memchr2): Likewise.
46710         Reported by Simon Josefsson.
46711
46712 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46713
46714         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
46715         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46716
46717 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46718
46719         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
46720
46721         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
46722
46723         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
46724
46725         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
46726         declarations.
46727         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
46728
46729         * m4/inet_pton.m4: Don't check for header files.
46730
46731         * m4/inet_ntop.m4: Don't check for header files.
46732
46733 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46734
46735         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
46736         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
46737         trigger for cygwin).
46738         Reported by Bruno Haible  <bruno@clisp.org>.
46739
46740 2008-04-28  Bruno Haible  <bruno@clisp.org>
46741
46742         * doc/posix-functions/strdup.texi: Mention mingw problem.
46743
46744 2008-04-27  Bruno Haible  <bruno@clisp.org>
46745
46746         * modules/stat-time-tests (Depends-on): Add sleep.
46747         * tests/test-stat-time.c (force_unlink): New function.
46748         (cleanup): Use it.
46749         (test_mtime): Remove the ctime related tests.
46750         (test_ctime): New function, containing the ctime related tests.
46751         (main): Call test_ctime, except on native Windows platforms.
46752
46753 2008-04-27  Bruno Haible  <bruno@clisp.org>
46754
46755         * lib/rpmatch.c (rpmatch): Add some comments.
46756         Reported by James Youngman <jay@gnu.org>.
46757
46758 2008-04-27  Bruno Haible  <bruno@clisp.org>
46759
46760         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
46761         quiet NaNs.
46762
46763 2008-04-27  Bruno Haible  <bruno@clisp.org>
46764
46765         Make test-yesno.sh work on mingw.
46766         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
46767         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
46768         (main): Set stdin to binary mode.
46769         * modules/yesno-tests (Depends-on): Add binary-io.
46770
46771 2008-04-27  Bruno Haible  <bruno@clisp.org>
46772
46773         Fix 'isfinite' on x86, x86_64, ia64 platforms.
46774         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
46775         argument that lie outside the IEEE 854 domain.
46776         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
46777         (gl_ISFINITE): Use it.
46778         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
46779
46780 2008-04-27  Bruno Haible  <bruno@clisp.org>
46781
46782         Allow local renaming in config.h.
46783         * lib/memrchr.c (memrchr): Don't undefine outside libc.
46784
46785 2008-04-27  Bruno Haible  <bruno@clisp.org>
46786
46787         * lib/memchr.c (__memchr): Change type of 'i'.
46788         * lib/memchr2.c (memchr2): Likewise.
46789
46790 2008-04-26  Eric Blake  <ebb9@byu.net>
46791         and Bruno Haible  <bruno@clisp.org>
46792
46793         Optimize and test memrchr.
46794         * modules/memrchr (Depends-on): Add intprops.
46795         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
46796         * modules/memrchr-tests: New file.
46797         * tests/test-memrchr.c: New file.
46798
46799 2008-04-26  Bruno Haible  <bruno@clisp.org>
46800
46801         Add tentative support for DragonFly BSD.
46802         * lib/stdio-impl.h: Add macros for DragonFly BSD.
46803         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
46804         fp.
46805         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46806         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
46807         * lib/fpurge.c (fpurge): Likewise.
46808         * lib/freadable.c (freaadable): Likewise.
46809         * lib/freadahead.c (freadahead): Likewise.
46810         * lib/freading.c (freading): Likewise.
46811         * lib/freadptr.c (freadptr): Likewise.
46812         * lib/freadseek.c (freadptrinc): Likewise.
46813         * lib/fseeko.c (fseeko): Likewise.
46814         * lib/fseterr.c (fseterr): Likewise.
46815         * lib/fwritable.c (fwritable): Likewise.
46816         * lib/fwriting.c (fwriting): Likewise.
46817
46818 2008-04-26  Bruno Haible  <bruno@clisp.org>
46819
46820         * lib/stdio-impl.h: New file.
46821         * lib/fbufmode.c: Include stdio-impl.h.
46822         (fbufmode): Use fp_, remove redundant #defines.
46823         * lib/fflush.c: Include stdio-impl.h.
46824         (clear_ungetc_buffer): Remove redundant #defines.
46825         * lib/fpurge.c: Include stdio-impl.h.
46826         (fpurge): Remove redundant #defines.
46827         * lib/freadable.c: Include stdio-impl.h.
46828         (freadable): Remove redundant #defines.
46829         * lib/freadahead.c: Include stdio-impl.h.
46830         (freadahead): Remove redundant #defines.
46831         * lib/freading.c: Include stdio-impl.h.
46832         (freading): Remove redundant #defines.
46833         * lib/freadptr.c: Include stdio-impl.h.
46834         (freadptr): Remove redundant #defines.
46835         * lib/freadseek.c: Include stdio-impl.h.
46836         (freadptrinc): Remove redundant #defines.
46837         * lib/fseeko.c: Include stdio-impl.h.
46838         (rpl_fseeko): Remove redundant #defines.
46839         * lib/fseterr.c: Include stdio-impl.h.
46840         (fseterr): Remove redundant #defines.
46841         * lib/fwritable.c: Include stdio-impl.h.
46842         (fwritable: Remove redundant #defines.
46843         * lib/fwriting.c: Include stdio-impl.h.
46844         (fwriting): Remove redundant #defines.
46845         * modules/fbufmode (Files): Add lib/stdio-impl.h.
46846         * modules/fflush (Files): Likewise.
46847         * modules/fpurge (Files): Likewise.
46848         * modules/freadable (Files): Likewise.
46849         * modules/freadahead (Files): Likewise.
46850         * modules/freading (Files): Likewise.
46851         * modules/freadptr (Files): Likewise.
46852         * modules/freadseek (Files): Likewise.
46853         * modules/fseeko (Files): Likewise.
46854         * modules/fseterr (Files): Likewise.
46855         * modules/fwritable (Files): Likewise.
46856         * modules/fwriting (Files): Likewise.
46857
46858 2008-04-26  Bruno Haible  <bruno@clisp.org>
46859
46860         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46861         restore_seek_optimization, update_fpos_cache): New functions, extracted
46862         from rpl_fflush.
46863         (rpl_fflush): Use them.
46864         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
46865         (gl_REPLACE_FFLUSH): Use it.
46866
46867 2008-04-26  Bruno Haible  <bruno@clisp.org>
46868
46869         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
46870         on Solaris.
46871         * tests/test-xstrtoimax.sh: Likewise.
46872         * tests/test-xstrtoumax.sh: Likewise.
46873         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46874
46875 2008-04-26  Bruno Haible  <bruno@clisp.org>
46876
46877         * modules/memchr-tests: New file.
46878         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
46879
46880 2008-04-26  Eric Blake  <ebb9@byu.net>
46881             Bruno Haible  <bruno@clisp.org>
46882
46883         * lib/memchr.c: Include intprops.h.
46884         (__memchr): Optimize parallel detection of matching bytes. Rename local
46885         variables. Add explanatory comments.
46886
46887 2008-04-26  Bruno Haible  <bruno@clisp.org>
46888
46889         Fix module 'memchr', broken since 2000-10-28.
46890         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
46891
46892 2008-04-26  Bruno Haible  <bruno@clisp.org>
46893
46894         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
46895         comments.
46896
46897 2008-04-25  Eric Blake  <ebb9@byu.net>
46898
46899         Use native fstatat on cygwin 1.7.0.
46900         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
46901         first.
46902
46903 2008-04-23  Eric Blake  <ebb9@byu.net>
46904
46905         Improve memchr2 performance.
46906         * lib/memchr2.c (memchr2): Further optimize parallel detection of
46907         NUL bytes.
46908         * modules/memchr2 (Depends-on): Use intprops.h.
46909
46910 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46911
46912         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
46913         an inline function instead of a CPP macro.  Patch by Ben Pfaff
46914         <blp@cs.stanford.edu>.
46915
46916 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46917
46918         * lib/arpa_inet.in.h: New file.
46919
46920         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
46921         (Makefile.am): Sed in substitute header file.
46922
46923         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
46924         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
46925
46926         * modules/inet_ntop (configure.ac): Use
46927         gl_ARPA_INET_MODULE_INDICATOR.
46928
46929         * modules/inet_pton (configure.ac): Use
46930         gl_ARPA_INET_MODULE_INDICATOR.
46931
46932 2008-04-22  Jim Meyering  <meyering@redhat.com>
46933
46934         * modules/verify (License): Re-license as LGPLv2+.
46935
46936 2008-04-22  Simon Josefsson  <simon@josefsson.org>
46937
46938         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
46939         parameter to void* as per POSIX standard (MinGW uses char*).
46940
46941 2008-04-21  Bruno Haible  <bruno@clisp.org>
46942
46943         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46944         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46945         Define to replacements if REPLACE_ISWCNTRL is 1.
46946         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
46947         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
46948         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
46949         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
46950         what it fixes.
46951         * doc/posix-functions/iswalpha.texi: Likewise.
46952         * doc/posix-functions/iswblank.texi: Likewise.
46953         * doc/posix-functions/iswcntrl.texi: Likewise.
46954         * doc/posix-functions/iswdigit.texi: Likewise.
46955         * doc/posix-functions/iswgraph.texi: Likewise.
46956         * doc/posix-functions/iswlower.texi: Likewise.
46957         * doc/posix-functions/iswprint.texi: Likewise.
46958         * doc/posix-functions/iswpunct.texi: Likewise.
46959         * doc/posix-functions/iswspace.texi: Likewise.
46960         * doc/posix-functions/iswupper.texi: Likewise.
46961         * doc/posix-functions/iswxdigit.texi: Likewise.
46962         Reported by Alain Guibert.
46963
46964 2008-04-21  Bruno Haible  <bruno@clisp.org>
46965
46966         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
46967         Patch by Alain Guibert.
46968
46969 2008-04-21  Bruno Haible  <bruno@clisp.org>
46970
46971         Fix test failures on mingw.
46972         * tests/test-xstrtol.c (print_no_progname): New function.
46973         (main): Install it in error_print_progname hook.
46974         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46975         * tests/test-xstrtoimax.sh: Likewise.
46976         * tests/test-xstrtoumax.sh: Likewise.
46977
46978 2008-04-21  Bruno Haible  <bruno@clisp.org>
46979
46980         Fix test failure on mingw.
46981         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46982
46983 2008-04-21  Bruno Haible  <bruno@clisp.org>
46984
46985         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46986         Actually assign a value.
46987
46988 2008-04-20  Bruno Haible  <bruno@clisp.org>
46989
46990         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46991         take 2.
46992         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46993         'canonicalize-lgpl' module is also used.
46994         * lib/canonicalize-lgpl.c: Undo last change.
46995         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46996
46997 2008-04-20  Bruno Haible  <bruno@clisp.org>
46998
46999         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
47000         config.h. Provide _mkdir based fallback for mingw.
47001         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
47002         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
47003         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
47004         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
47005         rather than defining mkdir in config.h.
47006         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
47007         (gl_SYS_STAT_H_DEFAULTS): New macro.
47008         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
47009         HAVE_IO_H any more.
47010         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
47011         HAVE_DECL_MKDIR and HAVE_IO_H.
47012
47013 2008-04-20  Bruno Haible  <bruno@clisp.org>
47014
47015         * lib/isapipe.c: Port to native Windows platforms.
47016
47017 2008-04-20  Bruno Haible  <bruno@clisp.org>
47018
47019         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
47020
47021 2008-04-21  Eric Blake  <ebb9@byu.net>
47022
47023         Work around preprocessors that don't handle UINTMAX_MAX.
47024         * lib/memchr2.c (memchr2): Avoid embedded #if.
47025         Reported by Alain Guibert, fix suggested by Bruno Haible.
47026
47027 2008-04-21  Simon Josefsson  <simon@josefsson.org>
47028
47029         * doc/posix-functions/strftime.texi (strftime): Explain better
47030         Windows incompatibility.  Suggested by Micah Cowan
47031         <micah@cowan.name>.
47032
47033 2008-04-20  Bruno Haible  <bruno@clisp.org>
47034
47035         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
47036         unistr/u8-mblen.
47037
47038 2008-04-20  Bruno Haible  <bruno@clisp.org>
47039
47040         Fix test failure on platforms with non-GNU iconv.
47041         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
47042         (U_TO_U8): Use it, rather than u16_to_u8.
47043         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
47044         units at the end of the input string.
47045         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
47046
47047 2008-04-20  Bruno Haible  <bruno@clisp.org>
47048
47049         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
47050         when the resulting length is 0.
47051         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
47052
47053 2008-04-20  Bruno Haible  <bruno@clisp.org>
47054
47055         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
47056         works.
47057         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
47058
47059 2008-04-20  Bruno Haible  <bruno@clisp.org>
47060
47061         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
47062         * modules/tsearch-tests (configure.ac): Test for initstate function.
47063
47064 2008-04-20  Bruno Haible  <bruno@clisp.org>
47065
47066         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
47067         for nlink_t if missing.
47068         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
47069
47070 2008-04-19  Bruno Haible  <bruno@clisp.org>
47071
47072         Work around snprintf bug on Linux libc5.
47073         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
47074         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47075         gl_SNPRINTF_SIZE1.
47076         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47077         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
47078         that test failed.
47079         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
47080         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
47081         * modules/snprintf (Files): Add m4/printf.m4.
47082         * modules/vsnprintf (Files): Likewise.
47083         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
47084         * doc/posix-functions/vsnprintf.texi: Likewise.
47085
47086 2008-04-19  Bruno Haible  <bruno@clisp.org>
47087
47088         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
47089         from 0.0058 to less than 10^-7.
47090
47091 2008-04-19  Bruno Haible  <bruno@clisp.org>
47092
47093         Fix rounding when a precision is given.
47094         * lib/vasnprintf.c (is_borderline): New function.
47095         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
47096         9...9x.
47097         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
47098         %e, %g.
47099         * tests/test-vasprintf-posix.c (test_function): Likewise.
47100         * tests/test-snprintf-posix.h (test_function): Likewise.
47101         * tests/test-sprintf-posix.h (test_function): Likewise.
47102         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
47103         * tests/test-printf-posix.h (test_function): Likewise.
47104         * tests/test-printf-posix.output: Update.
47105         Reported by John Darrington <john@darrington.wattle.id.au> via
47106         Ben Pfaff <blp@cs.stanford.edu>.
47107
47108 2008-04-18  Simon Josefsson  <simon@josefsson.org>
47109
47110         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
47111         Suggested by Bruno Haible <bruno@clisp.org>.
47112
47113 2008-04-17  Bruno Haible  <bruno@clisp.org>
47114
47115         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
47116         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
47117         implementation.
47118         Patch by Bruce Merry <bmerry@gmail.com>.
47119
47120 2008-04-17  Simon Josefsson  <simon@josefsson.org>
47121
47122         * doc/posix-functions/strftime.texi (strftime): Mention that %e
47123         doesn't work under Windows.
47124
47125 2008-04-16  Bruno Haible  <bruno@clisp.org>
47126
47127         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
47128         New macros.
47129         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
47130         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
47131         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
47132         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
47133         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
47134         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
47135         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
47136         macros.
47137         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
47138         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
47139         Northern Sotho, Uighur.
47140
47141 2008-04-16  Bruno Haible  <bruno@clisp.org>
47142
47143         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
47144         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
47145         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
47146         Reported by Daniel Bergström <daniel@octocode.com>.
47147
47148 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
47149             Bruno Haible  <bruno@clisp.org>
47150
47151         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
47152         function.
47153         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
47154         New functions, mostly extracted from gl_locale_name_default.
47155         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
47156
47157 2008-04-16  Eric Blake  <ebb9@byu.net>
47158
47159         Adjust strtod detection to catch glibc 2.7 bug.
47160         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
47161         Reported by John Gatewood Ham.
47162
47163 2008-04-16  Bruno Haible  <bruno@clisp.org>
47164
47165         Add tentative support for Linux libc5.
47166         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
47167         * lib/fpurge.c (fpurge): Likewise.
47168         * lib/freadable.c (freadable): Likewise.
47169         * lib/freadahead.c (freadahead): Likewise.
47170         * lib/freading.c (freading): Likewise.
47171         * lib/freadptr.c (freadptr): Likewise.
47172         * lib/freadseek.c (freadptrinc): Likewise.
47173         * lib/fseeko.c (rpl_fseeko): Likewise.
47174         * lib/fseterr.c (fseterr): Likewise.
47175         * lib/fwritable.c (fwritable): Likewise.
47176         * lib/fwriting.c (fwriting): Likewise.
47177         Reported by Alain Guibert <alguibert+bts@free.fr>.
47178
47179 2008-04-15  Bruno Haible  <bruno@clisp.org>
47180
47181         * modules/mathl (configure.ac): Define module indicator.
47182
47183 2008-04-15  Bruno Haible  <bruno@clisp.org>
47184
47185         * lib/logl.c (logl): Remove unused variables.
47186
47187 2008-04-15  Bruno Haible  <bruno@clisp.org>
47188
47189         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
47190         fails.
47191
47192 2008-04-15  Bruno Haible  <bruno@clisp.org>
47193
47194         * lib/trim.c (trim2): Fix argument of isspace() macro.
47195
47196 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
47197
47198         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
47199         to 0.
47200         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
47201
47202 2008-04-14  Bruno Haible  <bruno@clisp.org>
47203
47204         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
47205         AC_LANG_PROGRAM argument.
47206         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
47207         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
47208         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
47209         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47210         * m4/math_h.m4 (gl_MATH_H): Likewise.
47211         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
47212         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47213         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47214         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
47215         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47216         * m4/regex.m4 (gl_REGEX): Likewise.
47217         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
47218         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
47219         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47220         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
47221         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47222         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47223         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47224         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47225
47226 2008-04-14  Jim Meyering  <meyering@redhat.com>
47227
47228         test-strtod: fix typos: s/abs/fabs/
47229         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
47230
47231 2008-04-13  Bruno Haible  <bruno@clisp.org>
47232
47233         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
47234         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
47235         module is also used and while not building the reloc-wrapper.
47236
47237 2008-04-13  Bruno Haible  <bruno@clisp.org>
47238
47239         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
47240
47241 2008-04-13  Bruno Haible  <bruno@clisp.org>
47242
47243         Fix AIX compilation failure introduced on 2008-04-02.
47244         * tests/test-frexp.c (exp): Undefine before redefining.
47245         * tests/test-frexpl.c (exp): Likewise.
47246
47247 2008-04-13  Bruno Haible  <bruno@clisp.org>
47248
47249         Work around a HP-UX stdio bug.
47250         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
47251         * tests/test-ftello.c (main): Likewise.
47252         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
47253         * doc/posix-functions/ftello.texi: Likewise.
47254
47255 2008-04-13  Bruno Haible  <bruno@clisp.org>
47256
47257         Make test-signbit pass on HP-UX/hppa.
47258         * tests/test-signbit.c (minus_zerol): New variable.
47259         (test_signbitl): Use it.
47260
47261 2008-04-13  Bruno Haible  <bruno@clisp.org>
47262
47263         Make truncl work on OSF/1 4.0.
47264         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
47265         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47266         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
47268         HAVE_DECL_TRUNCL.
47269         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
47270         HAVE_DECL_TRUNCL.
47271         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
47272
47273 2008-04-13  Bruno Haible  <bruno@clisp.org>
47274
47275         * lib/unictype.h: Remove trailing comma from enumeration definitions.
47276
47277 2008-04-13  Bruno Haible  <bruno@clisp.org>
47278
47279         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
47280         expression, so as to avoid HP-UX 11 cc compiler bug.
47281
47282 2008-04-13  Bruno Haible  <bruno@clisp.org>
47283
47284         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
47285
47286 2008-04-13  Bruno Haible  <bruno@clisp.org>
47287
47288         * lib/git-merge-changelog.c: Remove empty declaration outside of
47289         functions.
47290
47291 2008-04-13  Bruno Haible  <bruno@clisp.org>
47292
47293         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
47294
47295 2008-04-13  Bruno Haible  <bruno@clisp.org>
47296
47297         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
47298         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
47299         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
47300         also if it exists but lacks definitions of the SHUT_* macros.
47301         * modules/sys_socket (Description): Update.
47302         Reported by Elbert Pol <e.pol@chello.nl>.
47303
47304 2008-04-13  Bruno Haible  <bruno@clisp.org>
47305
47306         * lib/localcharset.c (OS2): Don't redefine if already defined.
47307         Reported by Elbert Pol <e.pol@chello.nl>.
47308
47309 2008-04-13  Bruno Haible  <bruno@clisp.org>
47310
47311         * lib/binary-io.h [__EMX__]: Include <io.h>.
47312         Reported by Elbert Pol <e.pol@chello.nl>.
47313
47314 2008-04-12  Bruno Haible  <bruno@clisp.org>
47315
47316         * lib/fpucw.h: Enable the definitions also for x86_64.
47317         Needed for NetBSD/x86_64.
47318         Reported by Thomas Klausner <tk@giga.or.at>.
47319
47320 2008-04-12  Bruno Haible  <bruno@clisp.org>
47321
47322         * tests/test-strtod.c: Include isnand.h.
47323         (main): Use isnand instead of isnan.
47324         Reported by Jim Meyering.
47325
47326 2008-04-12  Bruno Haible  <bruno@clisp.org>
47327
47328         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
47329         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
47330
47331 2008-04-12  Jim Meyering  <meyering@redhat.com>
47332
47333         * m4/math_h.m4 (gl_MATH_H): Fix typos.
47334
47335 2008-04-12  Bruno Haible  <bruno@clisp.org>
47336
47337         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
47338         Reported by Elbert Pol <e.pol@chello.nl>.
47339
47340 2008-04-12  Eric Blake  <ebb9@byu.net>
47341
47342         Work around Solaris 10 math.h bug.
47343         * m4/math_h.m4 (gl_MATH_H): Check for bug.
47344         (gl_MATH_H_DEFAULTS): Set up default.
47345         * modules/math (Makefile.am): Replace new indicators.
47346         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
47347         * tests/test-math.c (main): Test this.
47348         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
47349         * doc/posix-headers/math.texi (math.h): Mention bug.
47350         Reported by Nelson H. F. Beebe and Jim Meyering.
47351
47352 2008-04-11  Bruno Haible  <bruno@clisp.org>
47353
47354         Adapt to future versions of Apple GCC.
47355         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
47356         Reported by Peter O'Gorman <peter@pogma.com>.
47357
47358 2008-04-11  Bruno Haible  <bruno@clisp.org>
47359
47360         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
47361
47362 2008-04-11  Bruno Haible  <bruno@clisp.org>
47363
47364         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
47365
47366         * modules/getaddrinfo-tests (Makefile.am): Define
47367         test_getaddrinfo_LDADD.
47368
47369 2008-04-11  Bruno Haible  <bruno@clisp.org>
47370
47371         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
47372         (init): Fix syntax error.
47373         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
47374         is declared.
47375
47376 2008-04-11  Bruno Haible  <bruno@clisp.org>
47377
47378         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
47379         * modules/glob (Depends-on): Add stdbool.
47380
47381 2008-04-11  Bruno Haible  <bruno@clisp.org>
47382
47383         * lib/trim.c: Include <string.h>.
47384
47385 2008-04-11  Eric Blake  <ebb9@byu.net>
47386
47387         Avoid compile failure on OS/2.
47388         * lib/regex_internal.h (internal_function): Disable optimization
47389         on OS/2 (__EMX__), where it caused compiler error.
47390         Reported by Elbert Pol.
47391
47392 2008-04-11  Bruno Haible  <bruno@clisp.org>
47393
47394         Flush the standard error stream before aborting. Needed on mingw.
47395         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
47396         * tests/test-array_list.c (ASSERT): Likewise.
47397         * tests/test-array_oset.c (ASSERT): Likewise.
47398         * tests/test-avltree_list.c (ASSERT): Likewise.
47399         * tests/test-avltree_oset.c (ASSERT): Likewise.
47400         * tests/test-avltreehash_list.c (ASSERT): Likewise.
47401         * tests/test-binary-io.c (ASSERT): Likewise.
47402         * tests/test-byteswap.c (ASSERT): Likewise.
47403         * tests/test-c-ctype.c (ASSERT): Likewise.
47404         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
47405         * tests/test-c-strcasestr.c (ASSERT): Likewise.
47406         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
47407         * tests/test-c-strstr.c (ASSERT): Likewise.
47408         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
47409         * tests/test-canonicalize.c (ASSERT): Likewise.
47410         * tests/test-carray_list.c (ASSERT): Likewise.
47411         * tests/test-ceilf1.c (ASSERT): Likewise.
47412         * tests/test-ceilf2.c (ASSERT): Likewise.
47413         * tests/test-ceill.c (ASSERT): Likewise.
47414         * tests/test-count-one-bits.c (ASSERT): Likewise.
47415         * tests/test-fbufmode.c (ASSERT): Likewise.
47416         * tests/test-fflush2.c (ASSERT): Likewise.
47417         * tests/test-floorf1.c (ASSERT): Likewise.
47418         * tests/test-floorf2.c (ASSERT): Likewise.
47419         * tests/test-floorl.c (ASSERT): Likewise.
47420         * tests/test-fopen.c (ASSERT): Likewise.
47421         * tests/test-fpending.c (ASSERT): Likewise.
47422         * tests/test-fprintf-posix.c (ASSERT): Likewise.
47423         * tests/test-fpurge.c (ASSERT): Likewise.
47424         * tests/test-freadable.c (ASSERT): Likewise.
47425         * tests/test-freadahead.c (ASSERT): Likewise.
47426         * tests/test-freading.c (ASSERT): Likewise.
47427         * tests/test-freadptr.c (ASSERT): Likewise.
47428         * tests/test-freadptr2.c (ASSERT): Likewise.
47429         * tests/test-freadseek.c (ASSERT): Likewise.
47430         * tests/test-freopen.c (ASSERT): Likewise.
47431         * tests/test-frexp.c (ASSERT): Likewise.
47432         * tests/test-frexpl.c (ASSERT): Likewise.
47433         * tests/test-fseek.c (ASSERT): Likewise.
47434         * tests/test-fseeko.c (ASSERT): Likewise.
47435         * tests/test-fstrcmp.c (ASSERT): Likewise.
47436         * tests/test-ftell.c (ASSERT): Likewise.
47437         * tests/test-ftello.c (ASSERT): Likewise.
47438         * tests/test-func.c (ASSERT): Likewise.
47439         * tests/test-fwritable.c (ASSERT): Likewise.
47440         * tests/test-fwriting.c (ASSERT): Likewise.
47441         * tests/test-getdelim.c (ASSERT): Likewise.
47442         * tests/test-getline.c (ASSERT): Likewise.
47443         * tests/test-i-ring.c (ASSERT): Likewise.
47444         * tests/test-iconv-utf.c (ASSERT): Likewise.
47445         * tests/test-iconv.c (ASSERT): Likewise.
47446         * tests/test-isfinite.c (ASSERT): Likewise.
47447         * tests/test-isnand.c (ASSERT): Likewise.
47448         * tests/test-isnanf.c (ASSERT): Likewise.
47449         * tests/test-isnanl.h (ASSERT): Likewise.
47450         * tests/test-ldexpl.c (ASSERT): Likewise.
47451         * tests/test-linked_list.c (ASSERT): Likewise.
47452         * tests/test-linkedhash_list.c (ASSERT): Likewise.
47453         * tests/test-localename.c (ASSERT): Likewise.
47454         * tests/test-lseek.c (ASSERT): Likewise.
47455         * tests/test-mbscasecmp.c (ASSERT): Likewise.
47456         * tests/test-mbscasestr1.c (ASSERT): Likewise.
47457         * tests/test-mbscasestr2.c (ASSERT): Likewise.
47458         * tests/test-mbscasestr3.c (ASSERT): Likewise.
47459         * tests/test-mbscasestr4.c (ASSERT): Likewise.
47460         * tests/test-mbschr.c (ASSERT): Likewise.
47461         * tests/test-mbscspn.c (ASSERT): Likewise.
47462         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
47463         * tests/test-mbspbrk.c (ASSERT): Likewise.
47464         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
47465         * tests/test-mbsrchr.c (ASSERT): Likewise.
47466         * tests/test-mbsspn.c (ASSERT): Likewise.
47467         * tests/test-mbsstr1.c (ASSERT): Likewise.
47468         * tests/test-mbsstr2.c (ASSERT): Likewise.
47469         * tests/test-mbsstr3.c (ASSERT): Likewise.
47470         * tests/test-memchr2.c (ASSERT): Likewise.
47471         * tests/test-memmem.c (ASSERT): Likewise.
47472         * tests/test-open.c (ASSERT): Likewise.
47473         * tests/test-printf-frexp.c (ASSERT): Likewise.
47474         * tests/test-printf-frexpl.c (ASSERT): Likewise.
47475         * tests/test-printf-posix.c (ASSERT): Likewise.
47476         * tests/test-quotearg.c (ASSERT): Likewise.
47477         * tests/test-rbtree_list.c (ASSERT): Likewise.
47478         * tests/test-rbtree_oset.c (ASSERT): Likewise.
47479         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
47480         * tests/test-round1.c (ASSERT): Likewise.
47481         * tests/test-roundf1.c (ASSERT): Likewise.
47482         * tests/test-roundl.c (ASSERT): Likewise.
47483         * tests/test-signbit.c (ASSERT): Likewise.
47484         * tests/test-sleep.c (ASSERT): Likewise.
47485         * tests/test-snprintf-posix.c (ASSERT): Likewise.
47486         * tests/test-snprintf.c (ASSERT): Likewise.
47487         * tests/test-sprintf-posix.c (ASSERT): Likewise.
47488         * tests/test-stat-time.c (ASSERT): Likewise.
47489         * tests/test-strcasestr.c (ASSERT): Likewise.
47490         * tests/test-strerror.c (ASSERT): Likewise.
47491         * tests/test-striconv.c (ASSERT): Likewise.
47492         * tests/test-striconveh.c (ASSERT): Likewise.
47493         * tests/test-striconveha.c (ASSERT): Likewise.
47494         * tests/test-strsignal.c (ASSERT): Likewise.
47495         * tests/test-strstr.c (ASSERT): Likewise.
47496         * tests/test-strtod.c (ASSERT): Likewise.
47497         * tests/test-trunc1.c (ASSERT): Likewise.
47498         * tests/test-trunc2.c (ASSERT): Likewise.
47499         * tests/test-truncf1.c (ASSERT): Likewise.
47500         * tests/test-truncf2.c (ASSERT): Likewise.
47501         * tests/test-truncl.c (ASSERT): Likewise.
47502         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
47503         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
47504         * tests/test-vasnprintf.c (ASSERT): Likewise.
47505         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
47506         * tests/test-vasprintf.c (ASSERT): Likewise.
47507         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
47508         * tests/test-vprintf-posix.c (ASSERT): Likewise.
47509         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
47510         * tests/test-vsnprintf.c (ASSERT): Likewise.
47511         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
47512         * tests/test-wcwidth.c (ASSERT): Likewise.
47513         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
47514         * tests/test-xprintf-posix.c (ASSERT): Likewise.
47515         * tests/test-xvasprintf.c (ASSERT): Likewise.
47516         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
47517         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
47518         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
47519         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
47520         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
47521         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
47522         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
47523         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
47524         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
47525         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
47526         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
47527         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
47528         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
47529         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
47530         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
47531         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
47532         * tests/unictype/test-block_list.c (ASSERT): Likewise.
47533         * tests/unictype/test-block_of.c (ASSERT): Likewise.
47534         * tests/unictype/test-block_test.c (ASSERT): Likewise.
47535         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
47536         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
47537         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
47538         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
47539         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
47540         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
47541         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
47542         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
47543         * tests/unictype/test-combining.c (ASSERT): Likewise.
47544         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
47545         * tests/unictype/test-digit.c (ASSERT): Likewise.
47546         * tests/unictype/test-mirror.c (ASSERT): Likewise.
47547         * tests/unictype/test-numeric.c (ASSERT): Likewise.
47548         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
47549         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
47550         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
47551         * tests/unictype/test-scripts.c (ASSERT): Likewise.
47552         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
47553         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
47554         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
47555         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
47556         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
47557         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
47558         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
47559         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
47560         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
47561         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
47562         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
47563         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
47564         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
47565         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
47566         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
47567         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
47568         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
47569         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
47570         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
47571         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
47572         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
47573         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
47574         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
47575         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
47576         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
47577         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
47578         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
47579         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
47580         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
47581         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
47582         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
47583         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
47584         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
47585         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
47586         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
47587         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
47588         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
47589         Reported by Eric Blake.
47590
47591 2008-04-11  Bruno Haible  <bruno@clisp.org>
47592
47593         * lib/wchar.in.h: Tweak comment.
47594
47595 2008-04-11  Bruno Haible  <bruno@clisp.org>
47596
47597         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
47598         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
47599         gl_COMMON.
47600         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
47601
47602 2008-04-11  Bruno Haible  <bruno@clisp.org>
47603
47604         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
47605
47606 2008-04-11  Simon Josefsson  <simon@josefsson.org>
47607
47608         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
47609         of attempting to use non-existing /dev/*random.  Based on patch
47610         from Adam Strzelecki <ono@java.pl> in
47611         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
47612
47613 2008-04-08  Bruno Haible  <bruno@clisp.org>
47614
47615         Add tentative support for emx+gcc.
47616         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
47617         * lib/fpurge.c (fpurge): Likewise.
47618         * lib/freadable.c (freadable): Likewise.
47619         * lib/freadahead.c (freadahead): Likewise.
47620         * lib/freading.c (freading): Likewise.
47621         * lib/freadptr.c (freadptr): Likewise.
47622         * lib/freadseek.c (freadptrinc): Likewise.
47623         * lib/fseeko.c (rpl_fseeko): Likewise.
47624         * lib/fseterr.c (fseterr): Likewise.
47625         * lib/fwritable.c (fwritable): Likewise.
47626         * lib/fwriting.c (fwriting): Likewise.
47627         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
47628
47629 2008-04-09  Eric Blake  <ebb9@byu.net>
47630
47631         Avoid some autoconf warnings.
47632         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
47633         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
47634         * m4/afs.m4 (gl_AFS): Likewise.
47635         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
47636         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
47637         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47638         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
47639         (gl_INTEGER_TYPE_SUFFIX): Likewise.
47640         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
47641         (AC_CHECK_DECLS_ONCE): Likewise.
47642         Rename file...
47643         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
47644         gnulib-tool requires autoconf 2.59 or better.
47645         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
47646
47647 2008-04-08  Eric Blake  <ebb9@byu.net>
47648
47649         Use 'git describe --match' if present (added in git 1.5.5).
47650         * build-aux/git-version-gen: Limit result to tags that match 'v*'
47651         if possible.
47652
47653 2008-04-08  Bruno Haible  <bruno@clisp.org>
47654
47655         Add tentative support for OpenServer.
47656         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
47657         _ptr, _cnt.
47658         * lib/fpurge.c (fpurge): Likewise.
47659         * lib/freadable.c (freadable): Likewise.
47660         * lib/freadahead.c (freadahead): Likewise.
47661         * lib/freading.c (freading): Likewise.
47662         * lib/freadptr.c (freadptr): Likewise.
47663         * lib/freadseek.c (freadptrinc): Likewise.
47664         * lib/fseeko.c (rpl_fseeko): Likewise.
47665         * lib/fseterr.c (fseterr): Likewise.
47666         * lib/fwritable.c (fwritable): Likewise.
47667         * lib/fwriting.c (fwriting): Likewise.
47668         Reported by Roger Cornelius <rac@tenzing.org> and
47669         Brian K. White <brian@aljex.com>.
47670
47671 2008-04-06  Jim Meyering  <meyering@redhat.com>
47672
47673         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
47674
47675 2008-04-06  Bruno Haible  <bruno@clisp.org>
47676
47677         Avoid possible error with non-ASCII bytes in UTF-8 locales.
47678         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
47679         * tests/test-printf-posix.sh: Likewise.
47680         * tests/test-vfprintf-posix.sh: Likewise.
47681         * tests/test-vprintf-posix.sh: Likewise.
47682         * tests/test-xprintf-posix.sh: Likewise.
47683
47684 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47685
47686         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
47687         hide error from 'ls', needed on OS/2.
47688         Report by Elbert Pol <elbert.pol@gmail.com>.
47689
47690 2008-04-04  Eric Blake  <ebb9@byu.net>
47691
47692         Make test-fseeko.c failures meaningful.
47693         * tests/test-fseeko.c: Print line number on failure.
47694         * tests/test-fseek.c: Likewise.
47695         Reported by Nelson H. F. Beebe.
47696
47697         Improve strtod bug detection check.
47698         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
47699         required for Solaris 10.
47700         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
47701
47702 2008-04-04  Bruno Haible  <bruno@clisp.org>
47703
47704         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
47705         by m4/setenv.m4.
47706
47707 2008-04-03  Eric Blake  <ebb9@byu.net>
47708
47709         Ensure sane .version contents.
47710         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
47711         version string.
47712         * build-aux/git-version-gen: Improve documentation.
47713
47714         Make GNU make output nicer.
47715         * top/GNUmakefile [!_have-Makefile]: Add dependency on
47716         MAKECMDGOALS to enforce message for all command line targets.  Set
47717         srcdir for use in maint.mk.
47718
47719         Another maintainer tweak.
47720         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
47721         a target that regenerates version.
47722
47723 2008-04-03  Jim Meyering  <meyering@redhat.com>
47724
47725         vc-list-files: don't cause coreutils "make po-check" failure
47726         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
47727
47728 2008-04-03  Eric Blake  <ebb9@byu.net>
47729
47730         Allow VPATH usage of vc-list-files.
47731         * build-aux/vc-list-files (scriptversion): Add timestamp.
47732         (options): Add --help, --version, -C.
47733         (CVS): Support installed cvsu.
47734
47735 2008-04-02  Bruno Haible  <bruno@clisp.org>
47736
47737         Avoid some "statement with no effect" warnings from gcc.
47738         * tests/test-wctype.c (main): Explicitly ignore unused values.
47739         Reported by Jim Meyering.
47740
47741 2008-04-02  Jim Meyering  <meyering@redhat.com>
47742
47743         Avoid some warnings from "gcc -Wshadow".
47744         * tests/test-frexp.c (exp): Define to a different identifier.
47745         * tests/test-frexpl.c (exp): Likewise.
47746
47747 2008-04-03  Jim Meyering  <meyering@redhat.com>
47748
47749         bootstrap: remove dangling *.[ch] symlinks from lib
47750         * build-aux/bootstrap [dangling symlink removal]: Move find's
47751         -depth option to precede all others, to avoid a warning.
47752         Remove *.[ch] files too, and from "$source_base" (usually lib/).
47753
47754 2008-04-02  Bruno Haible  <bruno@clisp.org>
47755
47756         Avoid some warnings from "gcc -Wshadow".
47757         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
47758         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
47759         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
47760         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
47761         Reported by Jim Meyering.
47762
47763 2008-04-01  Bruno Haible  <bruno@clisp.org>
47764
47765         Fix test to work on IRIX 6.5 with cc.
47766         * tests/test-math.c (numeric_equal): New function.
47767         (main): Use it.
47768
47769 2008-04-01  Bruno Haible  <bruno@clisp.org>
47770
47771         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
47772
47773 2008-04-01  Bruno Haible  <bruno@clisp.org>
47774
47775         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
47776         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47777         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
47778         (Depends-on): Remove math.
47779
47780         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
47781         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47782         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
47783         (Depends-on): Remove math.
47784
47785         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
47786         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47787         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
47788         (Depends-on): Remove math.
47789         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
47790         (Depends-on): Remove math.
47791
47792         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
47793         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47794         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
47795         (Depends-on): Remove math.
47796         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
47797         (Depends-on): Remove math.
47798
47799         * tests/test-round1.c: Include nan.h.
47800         (main): Use NaNd instead of NAN.
47801         * modules/round-tests (Files): Add tests/nan.h.
47802
47803         * tests/test-trunc1.c: Include nan.h.
47804         (main): Use NaNd instead of NAN.
47805         * modules/trunc-tests (Files): Add tests/nan.h.
47806
47807         * tests/test-roundf1.c: Include nan.h.
47808         (main): Use NaNf instead of NAN.
47809         * modules/roundf-tests (Files): Add tests/nan.h.
47810
47811         * tests/test-truncf1.c: Include nan.h.
47812         (main): Use NaNf instead of NAN.
47813         * modules/truncf-tests (Files): Add tests/nan.h.
47814
47815         * tests/test-ceilf1.c: Include nan.h.
47816         (main): Use NaNf instead of NAN.
47817         * modules/ceilf-tests (Files): Add tests/nan.h.
47818
47819         * tests/test-floorf1.c: Include nan.h.
47820         (main): Use NaNf instead of NAN.
47821         * modules/floorf-tests (Files): Add tests/nan.h.
47822
47823         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
47824         (main): Use NaNf instead of NAN.
47825         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
47826
47827         * tests/test-isnand.c: Include nan.h instead of <math.h>.
47828         (main): Use NaNd instead of NAN.
47829         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
47830
47831         * tests/test-frexp.c: Include nan.h.
47832         (main): Use NaNd instead of NAN.
47833         * modules/frexp-tests (Files): Add tests/nan.h.
47834
47835         * lib/isnan.c: Don't include <math.h>.
47836         (FUNC): Don't use NAN macro.
47837         * modules/isnand-nolibm (Depends-on): Remove math.
47838         * modules/isnanf-nolibm (Depends-on): Remove math.
47839         * modules/isnanl (Depends-on): Remove math.
47840         * modules/isnanl-nolibm (Depends-on): Remove math.
47841
47842         * tests/nan.h: New file.
47843
47844 2008-04-01  Eric Blake  <ebb9@byu.net>
47845
47846         Fix typos.
47847         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
47848         values to be the right type.
47849
47850         For now, cater to gnulib strtod inaccuracies.
47851         * tests/test-strtod.c (main): Allow 1-ulp error on expected
47852         fractional results.  While not as nice from a QoI perspective, it
47853         is a quicker patch than correctly implementing decimal to binary
47854         rounding.
47855
47856 2008-03-31  Eric Blake  <ebb9@byu.net>
47857
47858         Guarantee a definition of NAN.
47859         * lib/math.in.h (NAN): Define if missing.
47860         * tests/test-math.c (main): Test it.
47861         * doc/posix-headers/math.texi (math.h): Document this.
47862         * lib/isnan.c (rpl_isnand): Use it.
47863         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
47864         * tests/test-floorf1.c (NaN): Likewise.
47865         * tests/test-frexp.c (NaN): Likewise.
47866         * tests/test-isnand.c (NaN): Likewise.
47867         * tests/test-isnanf.c (NaN): Likewise.
47868         * tests/test-round1.c (NaN): Likewise.
47869         * tests/test-roundf1.c (NaN): Likewise.
47870         * tests/test-snprintf-posix.h (NaN): Likewise.
47871         * tests/test-sprintf-posix.h (NaN): Likewise.
47872         * tests/test-trunc1.c (NaN): Likewise.
47873         * tests/test-truncf1.c (NaN): Likewise.
47874         * tests/test-vasnprintf-posix.c (NaN): Likewise.
47875         * tests/test-vasprintf-posix.c (NaN): Likewise.
47876         * modules/isnand-nolibm (Depends-on): Add math.
47877         * modules/isnanf-nolibm (Depends-on): Likewise.
47878         * modules/isnanl (Depends-on): Likewise.
47879         * modules/isnanl-nolibm (Depends-on): Likewise.
47880         * modules/snprintf-posix-tests (Depends-on): Likewise.
47881         * modules/sprintf-posix-tests (Depends-on): Likewise.
47882         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
47883         * modules/vsprintf-posix-tests (Depends-on): Likewise.
47884         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
47885         * modules/vasprintf-posix-tests (Depends-on): Likewise.
47886
47887 2008-03-31  Bruno Haible  <bruno@clisp.org>
47888
47889         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
47890         * doc/posix-functions/strtod.texi: Likewise.
47891
47892 2008-03-31  Bruno Haible  <bruno@clisp.org>
47893
47894         * tests/test-strtod.c (main): Don't use C99 syntax.
47895
47896 2008-03-31  Bruno Haible  <bruno@clisp.org>
47897
47898         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
47899         Reported by Eric Blake.
47900
47901 2008-03-31  Jim Meyering  <meyering@redhat.com>
47902
47903         Don't compare actual signbit return values.
47904         * tests/test-strtod.c (main): Rather, compare only their
47905         zero/non-zero nature.
47906
47907 2008-03-31  Eric Blake  <ebb9@byu.net>
47908
47909         More strtod documentation.
47910         * doc/posix-functions/strtod.texi (strtod): Interpret more test
47911         failures as distinct bugs.
47912
47913 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47914
47915         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
47916         Problem reported by Erik Benada in
47917         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
47918
47919 2008-03-30  Bruno Haible  <bruno@clisp.org>
47920
47921         * tests/test-strtod.c: Add comments about which assertion fails on which
47922         platform.
47923         * doc/posix-functions/strtod.texi: Add info about many more platforms.
47924
47925 2008-03-30  Eric Blake  <ebb9@byu.net>
47926
47927         Test signbit behavior on zeros.
47928         * tests/test-signbit.c (test_signbitf): Add tests for zero.
47929         (test_signbitd, test_signbitl): Likewise.
47930
47931         More strtod touchups.
47932         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
47933         sign of negative underflow, for now.  Use .5, not .1.
47934         * doc/posix-functions/strtod.texi (strtod): Mention these
47935         limitations.
47936         Reported by Jim Meyering.
47937
47938 2008-03-30  Bruno Haible  <bruno@clisp.org>
47939
47940         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
47941         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
47942
47943 2008-03-30  Bruno Haible  <bruno@clisp.org>
47944
47945         Avoid failure when attempting to return empty iconv results on some
47946         platforms.
47947         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
47948         allocation, don't report ENOMEM when the resulting string is empty.
47949
47950 2008-03-30  Bruno Haible  <bruno@clisp.org>
47951
47952         Fix buffer overrun.
47953         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
47954         Don't consider the width for tmp_length. Check count against tmp_length
47955         before doing the padding. Ensure enough allocation during padding.
47956
47957 2008-03-30  Eric Blake  <ebb9@byu.net>
47958
47959         strtod touchups.
47960         * lib/strtod.c (strtod): Avoid compiler warnings.
47961         Reported by Jim Meyering.
47962
47963 2008-03-30  Bruno Haible  <bruno@clisp.org>
47964
47965         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
47966         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
47967         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
47968         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
47969         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
47970         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
47971         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
47972         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
47973
47974         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47975         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47976         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47977         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47978         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47979         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47980         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47981         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47982
47983         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47984         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47985         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47986         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47987         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47988         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47989         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47990         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47991
47992         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47993         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47994
47995         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47996         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47997
47998         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47999         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
48000
48001         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
48002         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
48003         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
48004
48005         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
48006         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
48007         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
48008
48009         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
48010         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
48011         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
48012
48013         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
48014         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
48015         * modules/vasprintf (Depends-on): Add EOVERFLOW.
48016
48017         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
48018         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
48019         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
48020         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
48021         (Depends-on): Add EOVERFLOW.
48022         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
48023         (Depends-on): Add EOVERFLOW.
48024         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
48025         (Depends-on): Add EOVERFLOW.
48026         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
48027         (Depends-on): Add EOVERFLOW.
48028         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
48029         (Depends-on): Add EOVERFLOW.
48030         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
48031         (Depends-on): Add EOVERFLOW.
48032         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
48033         (Depends-on): Add EOVERFLOW.
48034         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
48035         (Depends-on): Add EOVERFLOW.
48036
48037         * lib/sprintf.c (EOVERFLOW): Remove fallback.
48038         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
48039         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
48040
48041         * lib/snprintf.c (EOVERFLOW): Remove fallback.
48042         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
48043         * modules/snprintf (Depends-on): Add EOVERFLOW.
48044
48045         * lib/poll.c (EOVERFLOW): Remove fallback.
48046         * modules/poll (Depends-on): Add EOVERFLOW.
48047
48048         * lib/getugroups.c (EOVERFLOW): Remove fallback.
48049         * modules/getugroups (Depends-on): Add EOVERFLOW.
48050
48051         * lib/getdelim.c (EOVERFLOW): Remove fallback.
48052         * modules/getdelim (Depends-on): Add EOVERFLOW.
48053
48054         * lib/ftell.c (EOVERFLOW): Remove fallback.
48055         * modules/ftell (Depends-on): Add EOVERFLOW.
48056
48057         * lib/fprintf.c (EOVERFLOW): Remove fallback.
48058         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
48059         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
48060
48061         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
48062
48063         * modules/EOVERFLOW-tests: New file.
48064         * tests/test-EOVERFLOW.c: New file.
48065
48066         * modules/EOVERFLOW: New file.
48067         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
48068
48069 2008-03-30  Bruno Haible  <bruno@clisp.org>
48070
48071         Fix bug introduced on 2007-06-10.
48072         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
48073         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
48074
48075 2008-03-30  Bruno Haible  <bruno@clisp.org>
48076
48077         Improve freadseek's efficiency after ungetc.
48078         * lib/freadseek.c: Include freadahead.h.
48079         (freadptrinc): New function, extracted from freadseek.
48080         (freadseek): Use it in a loop. Use freadahead to determine the number
48081         of loop iterations.
48082         * modules/freadseek (Depends-on): Add freadahead.
48083         (configure.ac): Require AC_C_INLINE.
48084
48085 2008-03-30  Bruno Haible  <bruno@clisp.org>
48086
48087         * lib/freadseek.c (freadseek): Don't ignore the return value of
48088         freadptr.
48089
48090 2008-03-29  Eric Blake  <ebb9@byu.net>
48091
48092         Add hex float support.
48093         * modules/strtod (Depends-on): Add c-ctype.
48094         (Link): Mention POW_LIB.
48095         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
48096         whitespace between 'e' and exponent.
48097         * tests/test-strtod.c (main): Enable hex float tests.
48098         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
48099         now provides.
48100
48101         Document various strtod bugs, with some fixes.
48102         * doc/posix-functions/strtod.texi (strtod): Document bugs with
48103         "-0x", "inf", "nan", and hex constants.
48104         * doc/posix-functions/atof.texi (atof): Likewise.
48105         * modules/stdlib (Makefile.am): Support strtod.
48106         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
48107         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
48108         detect additional strtod bugs.
48109         * lib/stdlib.in.h (rpl_strtod): Add declarations.
48110         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
48111         bool where appropriate.  Parse 'inf' and 'nan'.
48112         * tests/test-strtod.c: New file.
48113         * modules/strtod (Depends-on): Add stdbool, stdlib.
48114         (configure.ac): Turn on module indicator.
48115         * modules/strtod-tests: New module.
48116
48117 2008-03-29  Eric Blake  <ebb9@byu.net>
48118
48119         Fix ftell on mingw.
48120         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
48121         * modules/ftell-tests (Depends-on): Add binary-io.
48122         * modules/ftello-tests (Depends-on): Likewise.
48123         * tests/test-ftell.c (main): Enhance test to cover behavior after
48124         ungetc.  Enforce binary mode.
48125         * tests/test-ftello.c (main): Likewise.
48126
48127         Pass test-freadseek on cygwin.
48128         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
48129         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
48130         ungetc buffer.
48131
48132         * tests/test-fflush2.c (main): Fix typo.
48133
48134 2008-03-29  Bruno Haible  <bruno@clisp.org>
48135
48136         * tests/test-fflush2.c (main): Temporarily disable the contents of
48137         this test.
48138         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
48139         Reported by Eric Blake.
48140
48141 2008-03-28  Simon Josefsson  <simon@josefsson.org>
48142
48143         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
48144         (GC_SHA224_DIGEST_SIZE): Add.
48145
48146         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
48147         (gc_hash_digest_length): Likewise.
48148         (gc_hash_buffer): Likewise.
48149
48150 2008-03-25  Bruno Haible  <bruno@clisp.org>
48151
48152         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
48153         detail which gettext release to use.
48154         Reported by Simon Josefsson.
48155
48156 2008-03-26  Jim Meyering  <meyering@redhat.com>
48157
48158         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
48159         * modules/gnumakefile (clean-GNUmakefile): Also, use
48160         test ... && ... || : syntax rather than if-then ... fi.
48161
48162         gnumakefile: Don't double-quote-expand $(VPATH) value.
48163         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
48164
48165 2008-03-24  Eric Blake  <ebb9@byu.net>
48166
48167         Alter GNUmakefile to install into top directory.
48168         * modules/maintainer-makefile: Split, and add dependency...
48169         * modules/gnumakefile: to this new module.
48170         * build-aux/GNUmakefile: Move...
48171         * top/GNUmakefile: ...here.
48172         * build-aux/maint.mk: Move...
48173         * top/maint.mk: ...here.
48174         * MODULES.html.sh (Support for maintaining...): Document new
48175         module.
48176
48177 2008-03-23  Bruno Haible  <bruno@clisp.org>
48178
48179         * gnulib-tool: New options --vc-files, --no-vc-files.
48180         (func_usage): Document them.
48181         (vc_files): New variable.
48182         (func_import): Consider vc_files.
48183         (func_create_testdir): Set vc_files to empty.
48184         Suggested by Jim Meyering and Karl Berry.
48185
48186 2008-03-23  Bruno Haible  <bruno@clisp.org>
48187
48188         Fix regex compilation error on HP-UX 11.
48189         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
48190         * modules/regex (Files): Add m4/mbstate_t.m4.
48191         Reported by Ton Voon <ton.voon@altinity.com>.
48192
48193 2008-03-23  Bruno Haible  <bruno@clisp.org>
48194
48195         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
48196
48197 2008-03-23  Eric Blake  <ebb9@byu.net>
48198             Bruno Haible  <bruno@clisp.org>
48199
48200         Install files from top/ in the destination directory.
48201         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48202         augmentation also for the files from top/.
48203         (func_import, func_create_testdir): Rewrite file names:
48204         top/filename -> filename.
48205
48206 2008-03-23  Bruno Haible  <bruno@clisp.org>
48207
48208         Tweak "gnulib --version" output.
48209         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
48210
48211 2008-03-23  Bruno Haible  <bruno@clisp.org>
48212
48213         Tweak "gnulib --version" output.
48214         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
48215         rather than contents of ChangeLog, when possible.
48216
48217 2008-03-21  Eric Blake  <ebb9@byu.net>
48218
48219         More --version tweaks.
48220         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
48221         date of last ChangeLog entry.
48222
48223 2008-03-21  Jim Meyering  <meyering@redhat.com>
48224
48225         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
48226
48227 2008-03-20  Eric Blake  <ebb9@byu.net>
48228
48229         VPATH fix.
48230         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
48231
48232 2008-03-20  Simon Josefsson  <simon@josefsson.org>
48233
48234         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
48235         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
48236
48237 2008-03-20  Eric Blake  <ebb9@byu.net>
48238
48239         Sync GNUmakefile with coreutils.
48240         * build-aux/GNUmakefile (have-Makefile): Rename...
48241         (_have-Makefile): ...to this, for namespace consideration.
48242         (GNUmakefile.cfg): Include, if present.
48243         (_autoreconf): Define a default.
48244         (_is-dist-target): New rule for rebuilds to pick up intra-release
48245         version.
48246         (maint-cfg.mk): Rename...
48247         (cfg.mk): ...to this.
48248
48249 2008-03-18  Jim Meyering  <meyering@redhat.com>
48250
48251         New script and module: mktempd
48252         * MODULES.html.sh (maint+release support): Add mktempd.
48253         * build-aux/mktempd: New file.
48254         * modules/mktempd: New file.
48255
48256 2008-03-15  Jim Meyering  <meyering@redhat.com>
48257
48258         Undo last change.
48259         * lib/sha1.c, lib/md5.c: 63 != ~63.
48260         Reported by Andreas Schwab.
48261
48262         sha1.c, md5.c: Hoist a redundant expression.
48263         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
48264         "ctx->buflen" only once, before calling *_process_block.
48265         * lib/md5.c (md5_process_bytes): Likewise.
48266
48267 2008-03-14  Eric Blake  <ebb9@byu.net>
48268
48269         Bump copyright year in files generated by gnulib-tool.
48270         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
48271         gnulib-tool, rather than hard-coding it.
48272
48273         Fix 'gnulib-tool --version' output to work with git.
48274         * gnulib-tool (func_gnulib_dir): New function, extracted from...
48275         (startup): ...here.
48276         (func_version): Use it to invoke git-version-gen, rather than
48277         relying on CVS keyword expansion.  Modernize wording.
48278         (cvsdatestamp, last_checkin_date, version): Kill unused
48279         variables.
48280
48281 2008-03-12  Jim Meyering  <meyering@redhat.com>
48282
48283         Recognize optional cast of the argument to free.
48284         * build-aux/useless-if-before-free: Update regexps.
48285
48286         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
48287
48288 2008-03-11  Bruno Haible  <bruno@clisp.org>
48289
48290         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
48291         by a single package.
48292         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
48293         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
48294         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
48295         Reported by Sam Steingold <sds@gnu.org>.
48296
48297 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48298
48299         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
48300         repositories.
48301
48302 2008-03-11  Bruno Haible  <bruno@clisp.org>
48303
48304         Avoid conflicts between local macro definitions.
48305         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48306         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
48307
48308 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
48309             Bruno Haible  <bruno@clisp.org>
48310
48311         Make va_copy work with some version of xlc on AIX 5.1.
48312         * lib/stdarg.in.h: New file.
48313         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
48314         On AIX, use a <stdarg.h> file substitute.
48315         * modules/stdarg (Files): Add lib/stdarg.in.h.
48316         (Depends-on): Add include_next.
48317         (Makefile.am): Build a stdarg.h substitute if requested.
48318         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
48319
48320 2008-03-10  Bruno Haible  <bruno@clisp.org>
48321
48322         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
48323         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48324         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48325
48326 2008-03-10  Bruno Haible  <bruno@clisp.org>
48327
48328         * modules/stdlib (Depends-on): Add include_next, remove
48329         absolute-header.
48330
48331 2008-03-09  Bruno Haible  <bruno@clisp.org>
48332
48333         * lib/freadahead.h (freadahead): Document more precisely.
48334         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
48335         the sum of both buffer sizes.
48336         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
48337         * NEWS: Document the change.
48338
48339 2008-03-09  Bruno Haible  <bruno@clisp.org>
48340
48341         Extend freadptr to return also the buffer size.
48342         * lib/freadptr.h (freadptr): Add sizep argument.
48343         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
48344         (freadptr): Add sizep argument. Determine buffer size like freadahead
48345         does.
48346         * tests/test-freadptr.c: Don't include freadahead.h.
48347         (main): Adapt for new calling convention of freadptr.
48348         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
48349         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
48350         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
48351         tests/test-freadptr2.sh.
48352         (Depends): Remove freadahead.
48353         (TESTS): Add test-freadptr2.sh.
48354         (check_PROGRAMS): Add test-freadptr2.
48355
48356 2008-03-09  Bruno Haible  <bruno@clisp.org>
48357
48358         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
48359         Report and solution by Simon Josefsson.
48360
48361 2008-03-06  Bruno Haible  <bruno@clisp.org>
48362
48363         Make fflush after ungetc work on BSD platforms.
48364         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
48365         * tests/test-fflush2.c: New file.
48366         * tests/test-fflush2.sh: New file.
48367         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
48368         tests/test-fflush2.c.
48369         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
48370         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
48371
48372 2008-03-06  Eric Blake  <ebb9@byu.net>
48373
48374         Likewise for ftello.
48375         * modules/ftello (Dependencies): Add extensions.
48376         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
48377
48378 2008-03-06  Bruno Haible  <bruno@clisp.org>
48379
48380         * modules/fseeko (Dependencies): Add extensions.
48381         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
48382         Needed on glibc systems.
48383
48384 2008-03-06  Bruno Haible  <bruno@clisp.org>
48385
48386         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
48387         email address.
48388         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48389
48390 2008-03-06  Bruno Haible  <bruno@clisp.org>
48391
48392         * users.txt: Add libgnupdf.
48393
48394 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48395
48396         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
48397         (Header File Substitutes, Function Substitutes,
48398         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
48399         (Build robot for gnulib): Fix typo.
48400
48401 2008-03-06  Bruno Haible  <bruno@clisp.org>
48402
48403         * doc/gnulib-tool.texi (VCS Issues): Small updates.
48404         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48405
48406 2008-03-06  Bruno Haible  <bruno@clisp.org>
48407
48408         * doc/func.texi: New file, extracted from doc/gnulib.texi.
48409         * doc/gnulib.texi: Include it.
48410
48411 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48412
48413         * modules/func (License): Change license to unlimited; there was
48414         no LGPL parts in the module anyway.
48415
48416 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48417
48418         * modules/__func__: Renamed to modules/func.
48419         * modules/__func__-tests: Renamed to modules/func-tests.
48420         * tests/test-__func__.c: Renamed to tests/test-func.c.
48421         * m4/__func__.m4: Renamed to m4/func.m4.
48422         * doc/gnulib.texi (__func__): Section renamed to func.
48423         Suggested by Eric Blake <ebb9@byu.net>.
48424
48425 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48426
48427         * doc/gnulib.texi (__func__): Use C99 terminology when talking
48428         about __func__.  Make example self-contained.  Suggested by Eric
48429         Blake <ebb9@byu.net>.
48430
48431         * tests/test-__func__.c (main): Avoid extraneous () around __func.
48432         Suggested by Eric Blake <ebb9@byu.net>.
48433
48434 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48435
48436         * modules/__func__: New file.
48437         * modules/__func__-tests: New file.
48438         * tests/test-__func__.c: New file.
48439         * m4/__func__.m4: New file.
48440         * doc/gnulib.texi (__func__): Document __func__ module.
48441
48442 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48443
48444         * modules/byteswap (License): Re-license as LGPLv2+.
48445
48446 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48447
48448         * doc/Makefile: Add pdf target.
48449
48450 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48451
48452         * modules/inline (License): Use 'unlimited', since there are only
48453         *.m4 files in this module.
48454
48455 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48456             Bruno Haible  <bruno@clisp.org>
48457
48458         Add support for HP C 7.1 on OpenVMS 8.3.
48459         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
48460
48461 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48462
48463         Update VMS specifics.
48464         * lib/getopt.c [VMS]: Remove include of unixlib.h.
48465
48466 2008-03-02  Jim Meyering  <meyering@redhat.com>
48467
48468         Remove the last dependency on the "free" module.
48469         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
48470         Reported by Bob Proulx.
48471
48472         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
48473
48474         Remove useless "if" tests before free.  Deprecate "free" module.
48475         * doc/posix-functions/free.texi: Mention that this
48476         module is no longer useful.
48477         * modules/free (Notice): Say this module is obsolete.
48478         * modules/readutmp (Depends-on): Remove free.
48479         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
48480         * lib/putenv.c (putenv): Likewise.
48481         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
48482         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
48483         * tests/test-c-strcasestr.c (main): Likewise.
48484         * tests/test-c-strstr.c (main): Likewise.
48485         * tests/test-mbscasestr1.c (main): Likewise.
48486         * tests/test-mbscasestr2.c (main): Likewise.
48487         * tests/test-mbsstr1.c (main): Likewise.
48488         * tests/test-mbsstr2.c (main): Likewise.
48489         * tests/test-memmem.c (main): Likewise.
48490         * tests/test-strcasestr.c (main): Likewise.
48491         * tests/test-striconv.c (main): Likewise.
48492         * tests/test-striconveh.c (main): Likewise.
48493         * tests/test-striconveha.c (main): Likewise.
48494         * tests/test-strstr.c (main): Likewise.
48495
48496         * build-aux/git-version-gen: Adjust a comment and the Usage string.
48497
48498         bootstrap: sync from coreutils again
48499         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
48500
48501 2008-03-01  Jim Meyering  <meyering@redhat.com>
48502
48503         bootstrap: sync from coreutils
48504         * build-aux/bootstrap (update_po_files): Copy a .po file into place
48505         also when the target doesn't exist.
48506
48507 2008-03-01  Eric Blake  <ebb9@byu.net>
48508
48509         Fix bugs in last patch.
48510         * lib/memchr2.c (memchr2): Fix typo.
48511         * tests/test-memchr2.c: Test previous bug, and don't use GNU
48512         extension.
48513         Reported by Bruce Korb.
48514
48515         New module 'memchr2'.
48516         * modules/memchr2: New file.
48517         * modules/memchr2-tests: Likewise.
48518         * lib/memchr2.h: Likewise.
48519         * lib/memchr2.c: Likewise, based on memchr.c.
48520         * tests/test-memchr2.c: New test.
48521         * MODULES.html.sh (String handling): Add memchr2.
48522
48523 2008-02-29  Bruno Haible  <bruno@clisp.org>
48524
48525         * modules/freadseek-tests: New file.
48526         * tests/test-freadseek.sh: New file.
48527         * tests/test-freadseek.c: New file.
48528
48529         New module 'freadseek'.
48530         * modules/freadseek: New file.
48531         * lib/freadseek.h: New file.
48532         * lib/freadseek.c: New file.
48533         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
48534
48535 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48536
48537         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
48538         wydawca.
48539
48540         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
48541         program_invocation_name and program_invocation_short_name are
48542         present.
48543
48544 2008-02-28  Bruno Haible  <bruno@clisp.org>
48545
48546         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
48547         * tests/test-freadptr.sh: Also test non-seekable stdin.
48548
48549 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
48550
48551         * build-aux/bootstrap (source_base, m4_base)
48552         (doc_base, tests_base): New variables.
48553         (gnulib_tool_options): Do not hardcode base directories, use
48554         the above variables instead.
48555
48556 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
48557
48558         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
48559
48560 2008-02-28  Bruno Haible  <bruno@clisp.org>
48561
48562         * modules/freadptr-tests: New file.
48563         * tests/test-freadptr.sh: New file.
48564         * tests/test-freadptr.c: New file.
48565
48566         New module 'freadptr'.
48567         * modules/freadptr: New file.
48568         * lib/freadptr.h: New file.
48569         * lib/freadptr.c: New file.
48570         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
48571
48572 2008-02-26  Karl Berry  <karl@freefriends.org>
48573
48574         Sync from Libtool:
48575         * libltdl/argz.c (argz_add, argz_count): New functions.
48576         * libltdl/argz.in.h: Declare them.
48577         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
48578
48579 2008-02-22  Bruno Haible  <bruno@clisp.org>
48580
48581         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
48582         is a pointer type.  Needed for HP-UX 10.
48583         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
48584         * doc/posix-functions/gmtime_r.texi: Likewise.
48585         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48586
48587 2008-02-24  Bruno Haible  <bruno@clisp.org>
48588
48589         * modules/environ-tests: New file.
48590         * tests/test-environ.c: New file.
48591
48592         New module 'environ'.
48593         * modules/environ: New file.
48594         * lib/unistd.in.h (environ): New declaration.
48595         * m4/environ.m4: New file.
48596         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
48597         after use.
48598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
48599         HAVE_DECL_ENVIRON.
48600         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
48601         HAVE_DECL_ENVIRON.
48602         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
48603         wrong claim that 'environ' is missing on some systems.
48604         * modules/execute (Depends-on): Add environ.
48605         * lib/execute.c (environ): Remove fallback declaration.
48606         * modules/pipe (Depends-on): Add environ.
48607         * lib/pipe.c (environ): Remove fallback declaration.
48608         * modules/setenv (Depends-on): Add environ.
48609         * lib/setenv.c (environ): Remove fallback declaration.
48610         * modules/unsetenv (Depends-on): Add environ.
48611         * lib/unsetenv.c (environ): Remove fallback declaration.
48612         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
48613         m4/environ.m4.
48614         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
48615         (gl_PREREQ_UNSETENV): Likewise.
48616
48617 2008-02-24  Bruno Haible  <bruno@clisp.org>
48618
48619         * doc/posix-functions/environ.texi: Document the MacOS X problem.
48620
48621 2008-02-20  Bob Proulx  <bob@proulx.com>
48622
48623         Enable use of older two part flavor 'git describe'.
48624         * build-aux/git-version-gen: If using the older two part flavor of
48625         git version then recreate the third part now present in the
48626         newer three part flavor of git describe.
48627
48628 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
48629
48630         * lib/fts.c (fts_build): Typo correction to comment.
48631
48632 2008-02-17  Bruno Haible  <bruno@clisp.org>
48633
48634         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
48635         generating no-op conflicts.
48636
48637 2008-02-17  Bruno Haible  <bruno@clisp.org>
48638
48639         Speed up by 10%.
48640         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
48641         result_entries, rather than an index-based loop.
48642
48643 2008-02-17  Bruno Haible  <bruno@clisp.org>
48644
48645         Speed up by 25%.
48646         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
48647         'hashcode_cached'.
48648         (entry_create): New function.
48649         (entry_hashcode): Use the cached hashcode if possible.
48650         (read_changelog_file, try_split_merged_entry): Use entry_create.
48651
48652 2008-02-17  Bruno Haible  <bruno@clisp.org>
48653
48654         Speed up from O(n^2) to O(n) for long ChangeLog files.
48655         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
48656         (read_changelog_file): Change implementation of entries_reversed list
48657         to rbtreehash.
48658         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
48659
48660 2008-02-17  Bruno Haible  <bruno@clisp.org>
48661
48662         New option --split-merged-entry.
48663         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
48664         (find_paragraph_end, try_split_merged_entry): New functions.
48665         (long_options): Add option --split-merged-entry.
48666         (usage): Document option --split-merged-entry.
48667         (main): Implement option --split-merged-entry.
48668         Reported by Eric Blake.
48669
48670 2008-02-17  Bruno Haible  <bruno@clisp.org>
48671
48672         * lib/git-merge-changelog.c: Include c-strstr.h.
48673         (main): Support the "git pull --rebase" situation.
48674         * modules/git-merge-changelog (Depends-on): Add c-strstr.
48675         Reported by Eric Blake.
48676
48677 2008-02-16  Eric Blake  <ebb9@byu.net>
48678
48679         Avoid doubling \ in common case of "c-maybe" quoting style.
48680         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
48681         eliding outer quotes.
48682         * lib/quotearg.h: Document this.
48683         * tests/test-quotearg.c (result_strings, inputs, results_g)
48684         (flag_results, locale_results): Test it by adding a new string to
48685         each test group.
48686         (compare_strings): Test new string.
48687
48688 2008-02-13  Eric Blake  <ebb9@byu.net>
48689
48690         Avoid trigraph quoting in default output.
48691         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
48692         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
48693         unless explicitly requested.
48694         * tests/test-quotearg.c (flag_results, main): Add additional tests.
48695
48696 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
48697
48698         Don't rely on signed integer overflowing to negative value.
48699         * lib/getugroups.c (getugroups): Include <limits.h>.
48700         Instead, compare against INT_MAX, and increment only if the test passes.
48701
48702 2008-02-13  Jim Meyering  <meyering@redhat.com>
48703         and Eric Blake  <ebb9@byu.net>
48704
48705         Avoid shadowing warning and compile errors on Linux.
48706         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
48707         forwarding macros on Linux.
48708         (dcgettext): Define a stub, for Linux.
48709         (results_g, main): Avoid warnings.
48710
48711 2008-02-12  Eric Blake  <ebb9@byu.net>
48712
48713         Silence warning in last patch.
48714         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
48715
48716         Quotearg part 4: add tests, fix c-maybe colon quoting.
48717         * lib/quotearg.h: Improve documentation.
48718         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
48719         escapes when adding outer quotes.  When quoting trigraphs, use
48720         valid C notation.  When quoting NUL, omit extra characters if next
48721         character is not digit.  Alter prototype.
48722         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
48723         callers.
48724         * modules/quotearg-tests: New module.
48725         * tests/test-quotearg.c: New test.
48726
48727 2008-02-07  Eric Blake  <ebb9@byu.net>
48728
48729         Quotearg part 3: add flag to control outer quote elision.
48730         * lib/quotearg.h (c_maybe_quoting_style): New style.
48731         (enum quoting_flags): Better documentation of flags.
48732         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
48733         c-maybe style.
48734         (quotearg_buffer_restyled): Handle new flag to elide outer
48735         quotes.
48736
48737         Quotearg part 2: add flag that can control NUL elision.
48738         * lib/quotearg.h (set_quoting_flags): New prototype.
48739         * lib/quotearg.c (struct quoting_options): Add flag field.
48740         (set_quoting_flags): New function.
48741         (quotearg_buffer_restyled): Add flags parameter.
48742         (quotearg_alloc_mem): Set the flag if length cannot be returned.
48743         (quotearg_n_options): Set the flag, since length cannot be
48744         returned.
48745         (quoting_options_from_style): Default flags correctly.
48746
48747         Quotearg part 1: more wrappers, restore quotearg_char state.
48748         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
48749         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
48750         (quotearg_colon_mem): New wrappers.
48751         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
48752         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
48753         functions.
48754         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
48755         (quotearg_colon_mem): New functions.
48756
48757 2008-02-11  Bruno Haible  <bruno@clisp.org>
48758
48759         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
48760         library in the current directory: it does not work with parallel make.
48761         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48762
48763 2008-02-11  Bruno Haible  <bruno@clisp.org>
48764
48765         * .gitattributes: New file.
48766
48767 2008-02-11  Jim Meyering  <meyering@redhat.com>
48768
48769         useless-if-before-free: Fix reversed exit values.
48770         * build-aux/useless-if-before-free: Use correct values
48771         for EXIT_MATCH and EXIT_NO_MATCH.
48772
48773         * build-aux/useless-if-before-free: Close stdout carefully.
48774
48775 2008-02-10  Bruno Haible  <bruno@clisp.org>
48776
48777         New module 'git-merge-changelog'.
48778         * modules/git-merge-changelog: New file.
48779         * lib/git-merge-changelog.c: New file.
48780
48781 2008-02-10  Jim Meyering  <meyering@redhat.com>
48782
48783         useless-if-before-free: New option: --list (-l).
48784
48785         useless-if-before-free: Don't exit immediately upon open failure.
48786         * build-aux/useless-if-before-free: Exit 2 for errors.
48787         Upon failure to open a file, don't exit immediately.
48788         Rather, just warn and continue with any remaining files.
48789
48790 2008-02-10  Bruno Haible  <bruno@clisp.org>
48791
48792         New abstract list operation 'node_set_value'.
48793         * lib/gl_list.h (gl_list_node_set_value): New function.
48794         (struct gl_list_implementation): New field node_set_value.
48795         * lib/gl_list.c (gl_list_node_set_value): New function.
48796         * lib/gl_array_list.c (gl_array_node_set_value): New function.
48797         (gl_array_list_implementation): Update.
48798         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
48799         (gl_carray_list_implementation): Update.
48800         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
48801         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48802         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48803         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
48804         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48805         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48806         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48807         Update.
48808         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48809         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
48810         (gl_sublist_list_implementation): Update.
48811
48812 2008-02-10  Bruno Haible  <bruno@clisp.org>
48813
48814         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
48815         Needed when ELEMENT is #defined to 'some_type *'.
48816
48817 2008-02-10  Jim Meyering  <meyering@redhat.com>
48818
48819         New script and module: useless-if-before-free
48820         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
48821         * build-aux/useless-if-before-free: New file.
48822         * modules/useless-if-before-free: New file.
48823
48824         * build-aux/gitlog-to-changelog: Use committer date, not author date.
48825
48826         xstrtol_error: Fix typo.
48827         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
48828         s/exit_failure/exit_status/.
48829
48830 2008-02-09  Jim Meyering  <meyering@redhat.com>
48831
48832         New script and module: gitlog-to-changelog
48833         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
48834         * modules/gitlog-to-changelog: New file.
48835         * build-aux/gitlog-to-changelog: New file.
48836
48837 2008-02-08  Jim Meyering  <meyering@redhat.com>
48838
48839         Avoid two "parameter unused" warnings.
48840         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
48841         Mark "st" as used.
48842
48843         Use "git COMMAND", not "git-COMMAND".
48844         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
48845         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
48846         * build-aux/git-version-gen: Use "git status", not "git-status".
48847
48848 2008-02-07  Bruno Haible  <bruno@clisp.org>
48849
48850         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
48851         Avoids a crash on Windows Vista.
48852         Reported by Adam Strzelecki <ono@java.pl> via
48853         Simon Josefsson <simon@josefsson.org>.
48854
48855 2008-02-06  Bruno Haible  <bruno@clisp.org>
48856
48857         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
48858         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
48859         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
48860         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
48861         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48862         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48863         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
48864         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
48865         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48866         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48867         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48868         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48869         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48870         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48871         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48872         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
48873         left-adjust flag.
48874         * tests/test-snprintf-posix.h (test_function): Likewise.
48875         * tests/test-sprintf-posix.h (test_function): Likewise.
48876         * tests/test-vasprintf-posix.c (test_function): Likewise.
48877         * doc/posix-functions/fprintf.texi: Update.
48878         * doc/posix-functions/printf.texi: Update.
48879         * doc/posix-functions/snprintf.texi: Update.
48880         * doc/posix-functions/sprintf.texi: Update.
48881         * doc/posix-functions/vfprintf.texi: Update.
48882         * doc/posix-functions/vprintf.texi: Update.
48883         * doc/posix-functions/vsnprintf.texi: Update.
48884         * doc/posix-functions/vsprintf.texi: Update.
48885         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48886
48887 2008-02-06  Bruno Haible  <bruno@clisp.org>
48888
48889         Fix bug introduced on 2008-01-26.
48890         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
48891
48892 2008-02-06  Bruno Haible  <bruno@clisp.org>
48893
48894         Fix bug introduced on 2007-06-10.
48895         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
48896         !NEED_PRINTF_FLAG_ZERO.
48897
48898 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
48899
48900         getloadavg: use libperfstat on AIX5
48901         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
48902
48903 2008-02-03  Bruno Haible  <bruno@clisp.org>
48904
48905         * lib/diffseq.h: Add comments about required #includes.
48906         Reported by Michael Biggs <gnulib@doubleplum.net>.
48907
48908 2008-02-01  Bruno Haible  <bruno@clisp.org>
48909
48910         * users.txt: Add gnuit.
48911
48912 2008-01-31  Bruno Haible  <bruno@clisp.org>
48913
48914         * lib/md4.c (set_uint32): Mark as inline.
48915         * lib/md5.c (set_uint32): Likewise.
48916         * lib/sha1.c (set_uint32): Likewise.
48917         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
48918         * m4/md5.m4 (gl_MD5): Likewise.
48919         * m4/sha1.m4 (gl_SHA1): Likewise.
48920
48921 2008-01-31  Jim Meyering  <meyering@redhat.com>
48922
48923         Use "sizeof VAR", rather than a literal "4".
48924         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
48925         * lib/md4.c (md4_read_ctx): Likewise.
48926         * lib/sha1.c (sha1_read_ctx): Likewise.
48927
48928 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48929
48930         * tests/test-sha1.c: New file, based on test-md5.c.
48931
48932         * modules/crypto/sha1-tests: New file.
48933
48934 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48935
48936         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
48937
48938 2008-01-31  Jim Meyering  <meyering@redhat.com>
48939
48940         Prefer "sizeof v" over the equivalent "4".
48941         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
48942         * lib/md5.c (set_uint32): Likewise.
48943         * lib/sha1.c (set_uint32): Likewise.
48944
48945 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48946
48947         * lib/sha1.c (set_uint32): Mark function as static.
48948
48949 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48950
48951         md2: clarify comments to say that alignment is not required.
48952         * lib/md2.h: Remove warning about alignment in comment.
48953         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
48954         never been required.
48955
48956 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48957
48958         md4: adapt alignment constraint fix from sha1.
48959         * lib/md4.c (set_uint32): New function, from sha1.c
48960         (md4_read_ctx): Use it.
48961         (md4_finish_ctx): Doc fix.
48962         * lib/md4.h: Doc fix.
48963
48964 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48965
48966         md5: adapt alignment constraint fix from sha1.
48967         * lib/md5.c (set_uint32): New function, from sha1.c
48968         (md5_read_ctx): Use it.
48969         (md5_finish_ctx): Doc fix.
48970         * lib/md5.h: Doc fix.
48971
48972 2008-01-30  Peter Palfrader  <weasel@debian.org>
48973
48974         sha1: remove the result buffer alignment constraint
48975         * lib/sha1.c (set_uint32): New function.
48976         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48977         constraint.
48978         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48979         * lib/sha1.h: Likewise.
48980
48981 2008-01-30  Andreas Schwab  <schwab@suse.de>
48982             Bruno Haible  <bruno@clisp.org>
48983
48984         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48985         correct definition of LDBL_MIN_EXP.
48986
48987 2008-01-30  Karl Berry  <karl@gnu.org>
48988
48989         * config/srclist-update: try to preserve x bit on updates.
48990         * config/srclistvars.sh: update for karl.
48991
48992 2008-01-29  Jim Meyering  <meyering@redhat.com>
48993
48994         vasnprintf.c: Avoid warning about unused label
48995         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48996         "overflow" label definition and associated code with the
48997         same cpp condition that guards the sole use of that label.
48998
48999 2008-01-26  Bruno Haible  <bruno@clisp.org>
49000
49001         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
49002         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
49003         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
49004         * lib/isnanl-nolibm.h (isnanl): Likewise.
49005         Reported by Paul Eggert <eggert@cs.ucla.edu>.
49006
49007 2008-01-26  Bruno Haible  <bruno@clisp.org>
49008
49009         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
49010         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
49011
49012 2008-01-26  Bruno Haible  <bruno@clisp.org>
49013
49014         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
49015         GCC >= 4.0 built-in.
49016         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
49017
49018 2008-01-26  Bruno Haible  <bruno@clisp.org>
49019
49020         Rename isnan, applicable to 'double' only, to isnand.
49021         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
49022         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
49023         (configure.ac): Update.
49024         (Include): Replace "isnan.h" with "isnand.h".
49025         * m4/isnand.m4: Renamed from m4/isnan.m4.
49026         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
49027         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
49028         instead of isnan.c.
49029         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
49030         instead of HAVE_ISNAN_IN_LIBC.
49031         (isnand): Renamed from isnan.
49032         * lib/isnand.c: New file.
49033         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
49034         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
49035         (Makefile.am): Update.
49036         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
49037         Include isnand.h instead of isnan.h.
49038         (main): Test isnand instead of isnan.
49039         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
49040         isnan-nolibm.
49041         * modules/frexp (Depends-on): Likewise.
49042         * modules/frexp-tests (Depends-on): Likewise.
49043         * modules/frexp-nolibm (Depends-on): Likewise.
49044         * modules/frexp-nolibm-tests (Depends-on): Likewise.
49045         * modules/isfinite (Depends-on): Likewise.
49046         * modules/round-tests (Depends-on): Likewise.
49047         * modules/signbit (Depends-on): Likewise.
49048         * modules/signbit-tests (Depends-on): Likewise.
49049         * modules/snprintf-posix (Depends-on): Likewise.
49050         * modules/sprintf-posix (Depends-on): Likewise.
49051         * modules/trunc-tests (Depends-on): Likewise.
49052         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49053         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49054         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49055         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49056         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49057         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49058         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49059         * modules/vasnprintf-posix (Depends-on): Likewise.
49060         * modules/vasprintf-posix (Depends-on): Likewise.
49061         * modules/vfprintf-posix (Depends-on): Likewise.
49062         * modules/vsnprintf-posix (Depends-on): Likewise.
49063         * modules/vsprintf-posix (Depends-on): Likewise.
49064         * lib/frexp.c: Include isnand.h instead of isnan.h.
49065         (ISNAN): Set to isnand instead of isnan.
49066         * lib/isfinite.c: Include isnand.h instead of isnan.h.
49067         (gl_isfinited): Use isnand instead of isnan.
49068         * lib/signbitd.c: Include isnand.h instead of isnan.h.
49069         (gl_signbitd): Use isnand instead of isnan.
49070         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
49071         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
49072         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
49073         (main): Use isnand instead of isnan.
49074         * tests/test-round1.c: Include isnand.h.
49075         (main): Use isnand instead of isnan.
49076         * tests/test-round2.c: Include isnand.h instead of isnan.h.
49077         (ISNAN): Set to isnand instead of isnan.
49078         * tests/test-trunc1.c: Include isnand.h.
49079         (main): Use isnand instead of isnan.
49080         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
49081         (equal): Use isnand instead of isnan.
49082         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
49083         isnand-nolibm.
49084         * NEWS: Mention the change.
49085
49086 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
49087             Bruno Haible  <bruno@clisp.org>
49088
49089         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
49090         the GCC builtins for signbits are present and set
49091         REPLACE_SIGNBIT_USING_GCC if so.
49092         * lib/math.in.h (signbit): Define using GCC builtins if
49093         REPLACE_SIGNBIT_USING_GCC is set.
49094         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
49095         REPLACE_SIGNBIT_USING_GCC.
49096         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
49097
49098 2008-01-25  Jim Meyering  <meyering@redhat.com>
49099
49100         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
49101         * lib/poll.c: Include <config.h>, not "config.h".
49102         * tests/test-getaddrinfo.c: Likewise.
49103
49104 2008-01-25  Simon Josefsson  <simon@josefsson.org>
49105
49106         * modules/sockets-tests: New file.
49107
49108 2008-01-24  Simon Josefsson  <simon@josefsson.org>
49109
49110         * modules/sockets: New module, can be used to call WSA_Startup and
49111         WSA_Cleanup when needed.
49112
49113         * lib/sockets.h, lib/sockets.c: New files.
49114
49115         * m4/sockets.m4: New file.
49116
49117         * tests/test-sockets.c: New file.
49118
49119 2008-01-19  Bruno Haible  <bruno@clisp.org>
49120
49121         * doc/posix-headers: Renamed from doc/headers.
49122         * doc/posix-functions: Renamed from doc/functions.
49123         * doc/gnulib.texi: Update.
49124
49125 2008-01-19  Bruno Haible  <bruno@clisp.org>
49126
49127         * doc/glibc-functions/strcasestr.texi: Include contents of
49128         doc/functions/strcasestr.texi, fixing the list of platforms.
49129         * doc/functions/strcasestr.texi: Remove file.
49130
49131 2008-01-19  Bruno Haible  <bruno@clisp.org>
49132
49133         * doc/glibc-functions/memmem.texi: Include contents of
49134         doc/functions/memmem.texi.
49135         * doc/functions/memmem.texi: Remove file.
49136
49137 2008-01-18  Bruno Haible  <bruno@clisp.org>
49138
49139         * doc/glibc-functions/*.texi: New files.
49140         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
49141         to use the new files.
49142
49143 2008-01-17  Bruno Haible  <bruno@clisp.org>
49144
49145         * tests/test-gethostname.c (main): Fix printf statement.
49146
49147 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49148
49149         * modules/gethostname-tests: New file.
49150
49151         * tests/test-gethostname.c: New file.
49152
49153 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49154
49155         * lib/gethostname.c: Include string.h unconditionally, strncpy is
49156         used by the UNAME case.  Reported by Bruno Haible
49157         <bruno@clisp.org>.
49158
49159 2008-01-17  Eric Blake  <ebb9@byu.net>
49160
49161         Convert c-strcasestr to be more efficient.
49162         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
49163         (Depends-on): Add c-strcase, remove malloca, strnlen.
49164         * tests/test-c-strcasestr.c (main): Enhance test.
49165         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
49166
49167 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49168
49169         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
49170         Use it in creating po/Makevars.
49171
49172 2008-01-15  Simon Josefsson  <simon@josefsson.org>
49173
49174         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
49175         Applications that requires it should initialize libgcrypt
49176         manually.
49177
49178 2008-01-16  Simon Josefsson  <simon@josefsson.org>
49179
49180         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
49181
49182 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
49183
49184         Fix problem with getdate on mingw32 reported by Simon Josefsson
49185         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
49186         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
49187         tzname", when deciding whether to declare tzname.
49188         * lib/strftime.c (tzname): Likewise.
49189
49190 2008-01-15  Bruno Haible  <bruno@clisp.org>
49191
49192         Work around a MacOS X 10.5 bug in frexpl().
49193         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
49194         * doc/functions/frexpl.texi: Document the bug.
49195         Reported by Elias Pipping <pipping@gentoo.org>.
49196
49197 2008-01-14  Eric Blake  <ebb9@byu.net>
49198
49199         Touch up previous patch.
49200         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
49201         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
49202
49203         Convert strcasestr module to use Two-Way algorithm.
49204         * modules/strcasestr-simple: New module, based on the old
49205         strcasestr, but with Two-Way rather than KMP.
49206         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
49207         * lib/string.in.h (rpl_strcasestr): Declare.
49208         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
49209         performance.
49210         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
49211         * modules/string (Makefile.am): Support strcasestr.
49212         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49213         * modules/strcasestr-tests (Depends-on): Check for alarm.
49214         * tests/test-strcasestr.c: Augment test.
49215         * lib/str-two-way.h: Clean up stray macro.
49216         * NEWS: Document new module.
49217         * MODULES.html.sh (string handling): Likewise.
49218         * doc/functions/strcasestr.texi: New file.
49219         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
49220         here, since it is not a POSIX function.
49221
49222 2008-01-14  Colin Watson  <cjwatson@debian.org>
49223             Bruno Haible  <bruno@clisp.org>
49224
49225         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
49226         works fine; if not, set REPLACE_STRSIGNAL.
49227         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
49228         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49229         REPLACE_STRSIGNAL.
49230         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
49231         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
49232         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
49233
49234 2008-01-14  Bruno Haible  <bruno@clisp.org>
49235
49236         * modules/strsignal (Include): Change to <string.h>.
49237
49238 2008-01-14  Colin Watson  <cjwatson@debian.org>
49239
49240         * modules/argp (Notice): Add a notice recommending to change
49241         XGETTEXT_OPTIONS.
49242         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
49243
49244 2008-01-13  Colin Watson  <cjwatson@debian.org>
49245
49246         * modules/strsignal-tests: New file.
49247         * tests/test-strsignal.c: New file.
49248
49249         * lib/strsignal.c: New file, from glibc with modifications.
49250         * lib/siglist.h: New file, from glibc with modifications.
49251         * lib/string.in.h (strsignal): New declaration.
49252         * m4/strsignal.m4: New file.
49253         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49254         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
49255         * modules/strsignal: New file.
49256         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
49257         HAVE_DECL_STRSIGNAL.
49258
49259 2008-01-13  Bruno Haible  <bruno@clisp.org>
49260
49261         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
49262         locale encoding is not ASCII. Needed for OpenBSD 4.0.
49263         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49264         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49265
49266 2008-01-13  Bruno Haible  <bruno@clisp.org>
49267
49268         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
49269         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
49270         * lib/argp.h (__attribute__): Likewise.
49271         * lib/c-stack.c (__attribute__): Likewise.
49272         * lib/error.h (__attribute__): Likewise.
49273         * lib/fts.c (__attribute__): Likewise.
49274         * lib/openat.h (__attribute__): Likewise.
49275         * lib/stdio.in.h (__attribute__): Likewise.
49276         * lib/string.in.h (__attribute__): Likewise.
49277         * lib/utimens.c (__attribute__): Likewise.
49278         * lib/vasnprintf.h (__attribute__): Likewise.
49279         * lib/xalloc.h (__attribute__): Likewise.
49280         * lib/xprintf.h (__attribute__): Likewise.
49281         * lib/xstrtol.h (__attribute__): Likewise.
49282         * lib/xvasprintf.h (__attribute__): Likewise.
49283
49284 2008-01-12  Bruno Haible  <bruno@clisp.org>
49285
49286         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
49287         * doc/glibc-headers/a.out.texi: New file.
49288         * doc/glibc-headers/aliases.texi: New file.
49289         * doc/glibc-headers/alloca.texi: New file.
49290         * doc/glibc-headers/ar.texi: New file.
49291         * doc/glibc-headers/argp.texi: New file.
49292         * doc/glibc-headers/argz.texi: New file.
49293         * doc/glibc-headers/byteswap.texi: New file.
49294         * doc/glibc-headers/crypt.texi: New file.
49295         * doc/glibc-headers/endian.texi: New file.
49296         * doc/glibc-headers/envz.texi: New file.
49297         * doc/glibc-headers/err.texi: New file.
49298         * doc/glibc-headers/error.texi: New file.
49299         * doc/glibc-headers/execinfo.texi: New file.
49300         * doc/glibc-headers/fpu_control.texi: New file.
49301         * doc/glibc-headers/fstab.texi: New file.
49302         * doc/glibc-headers/fts.texi: New file.
49303         * doc/glibc-headers/getopt.texi: New file.
49304         * doc/glibc-headers/ieee754.texi: New file.
49305         * doc/glibc-headers/ifaddrs.texi: New file.
49306         * doc/glibc-headers/libintl.texi: New file.
49307         * doc/glibc-headers/mcheck.texi: New file.
49308         * doc/glibc-headers/mntent.texi: New file.
49309         * doc/glibc-headers/obstack.texi: New file.
49310         * doc/glibc-headers/paths.texi: New file.
49311         * doc/glibc-headers/printf.texi: New file.
49312         * doc/glibc-headers/pty.texi: New file.
49313         * doc/glibc-headers/resolv.texi: New file.
49314         * doc/glibc-headers/shadow.texi: New file.
49315         * doc/glibc-headers/sysexits.texi: New file.
49316         * doc/glibc-headers/ttyent.texi: New file.
49317
49318 2008-01-12  Jim Meyering  <meyering@redhat.com>
49319
49320         announce-gen: emit Gnulib's git-based version string.
49321         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
49322         New option --gnulib-version=V, where V is expected to be
49323         the output of running git describe in the gnulib directory.
49324         (get_tool_versions): Request feedback on xdelta.  I suspect it's
49325         not useful, and plan to stop publishing an xdelta file with each
49326         coreutils release.
49327
49328         * build-aux/announce-gen: Also check for lzma-compressed files.
49329
49330 2008-01-11  Bruno Haible  <bruno@clisp.org>
49331
49332         * tests/test-memmem.c (main): Increase maximum allowed time.
49333         * tests/test-strstr.c (main): Likewise.
49334
49335 2008-01-11  Bruno Haible  <bruno@clisp.org>
49336
49337         * doc/functions/memmem.texi: Add more precisions about platforms.
49338         * doc/functions/strstr.texi: Likewise.
49339
49340 2008-01-10  Eric Blake  <ebb9@byu.net>
49341
49342         * m4/strstr.m4: Delete cruft from copy-n-paste.
49343         Reported by Bruno Haible.
49344
49345 2008-01-10  Bruno Haible  <bruno@clisp.org>
49346
49347         Make c-strstr rely on strstr.
49348         * lib/c-strstr.c: Don't include str-kmp.h.
49349         (c_strstr): Define in terms of strstr.
49350         * modules/c-strstr (Files): Remove lib/str-kmp.h.
49351         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
49352
49353 2008-01-10  Bruno Haible  <bruno@clisp.org>
49354
49355         * doc/gnulib.texi (String Functions in C Locale): New section.
49356         * doc/c-ctype.texi: New file.
49357         * doc/c-strcase.texi: New file.
49358         * doc/c-strcaseeq.texi: New file.
49359         * doc/c-strcasestr.texi: New file.
49360         * doc/c-strstr.texi: New file.
49361         * doc/c-strtod.texi: New file.
49362         * doc/c-strtold.texi: New file.
49363
49364 2008-01-10  Eric Blake  <ebb9@byu.net>
49365
49366         * lib/relocatable.h: Fix a comment.
49367
49368 2008-01-10  Eric Blake  <ebb9@byu.net>
49369
49370         Share two-way algorithm.
49371         * lib/str-two-way.h: New file, merged from...
49372         * lib/memmem.c: ...here...
49373         * lib/strstr.c: ...and here.
49374         * modules/memmem (Files): Use it.
49375         * modules/strstr (Files): Likewise.
49376
49377         Avoid quadratic strstr implementations.
49378         * lib/strstr.c: New file.
49379         * m4/strstr.m4: Likewise.
49380         * modules/strstr: Likewise.
49381         * modules/strstr-tests: Likewise.
49382         * tests/test-strstr.c: Likewise.
49383         * lib/string.in.h (rpl_strstr): Declare.
49384         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
49385         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
49386         * modules/string (Makefile.am): Likewise.
49387         * MODULES.html.sh (string handling): Mention new module.
49388         * doc/functions/strstr.texi (strstr): Document the bug.
49389
49390 2008-01-10  Bruno Haible  <bruno@clisp.org>
49391
49392         * lib/relocatable.h (relocate): State whether result is freshly
49393         allocated or not.
49394         * lib/relocatable.c (relocate): Return a freshly allocated string
49395         instead of a pointer to a privately held string.
49396         Reported by Sylvain Beucler <beuc@gnu.org>.
49397
49398 2008-01-10  Colin Watson  <cjwatson@debian.org>
49399
49400         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
49401         s/S_ISNLK/S_ISLNK/.
49402
49403 2008-01-09  Bruno Haible  <bruno@clisp.org>
49404
49405         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
49406         and other files.
49407         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
49408         if it's only a guess.
49409         * modules/memmem: Simplify by depending on memmem-simple.
49410
49411 2008-01-09  Bruno Haible  <bruno@clisp.org>
49412
49413         Work around OpenBSD 4.0 tdelete() bug.
49414         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
49415         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
49416         macros and don't redefine the enum values.
49417         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
49418         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
49419         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
49420
49421 2008-01-09  Bruno Haible  <bruno@clisp.org>
49422
49423         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
49424         (main): Don't perform the tests if setlocale did not install a UTF-8
49425         locale. Needed on OpenBSD 4.0.
49426         * modules/wcwidth-tests (Depends-on): Add localcharset.
49427
49428 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49429
49430         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
49431         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
49432         * NEWS: announce this.
49433         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
49434
49435 2008-01-09  Simon Josefsson  <simon@josefsson.org>
49436         and Eric Blake  <ebb9@byu.net>
49437
49438         Add memmem-simple module.
49439         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
49440         (gl_FUNC_MEMMEM): Separate performance from presence checks.
49441         * modules/memmem-simple: New file.
49442         * modules/memmem (Description): Tweak.
49443         * MODULES.html.sh (string handling): Mention new module.
49444         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
49445         addressed by memmem-simple.
49446         * NEWS: Document the difference.
49447
49448 2008-01-09  Eric Blake  <ebb9@byu.net>
49449
49450         Give gcc some memmem optimization hints.
49451         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
49452         (strcasestr): Declare as pure.
49453         * modules/memmem (Maintainer): Claim my implementation.
49454
49455 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49456
49457         Support AIX 6.1 and higher.
49458         * build-aux/config.libpath: Likewise.
49459         * build-aux/config.rpath: Likewise.
49460
49461 2008-01-08  Jim Meyering  <meyering@redhat.com>
49462             Bruno Haible  <bruno@clisp.org>
49463
49464         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
49465         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
49466         Reported by Peter Fales in
49467         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
49468
49469 2008-01-08  Bruno Haible  <bruno@clisp.org>
49470
49471         * modules/unictype/category-of (Depends-on): Add
49472         unictype/category-none.
49473         * modules/unictype/category-and-tests (Depends-on): Add
49474         unictype/category-{L,N,Lu,Nd}.
49475         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
49476         * modules/unictype/category-or-tests (Depends-on): Add
49477         unictype/category-{L,N}.
49478         * modules/unictype/category-name-tests (Depends-on): Add
49479         unictype/category-{Z,Nl}.
49480         Reported by Simon Josefsson.
49481
49482 2008-01-08  Bruno Haible  <bruno@clisp.org>
49483
49484         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
49485         convention better.
49486         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
49487         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
49488         Reported by Peter Miller <millerp@canb.auug.org.au>.
49489
49490 2008-01-08  Eric Blake  <ebb9@byu.net>
49491
49492         Rewrite memmem to guarantee linear complexity without malloc.
49493         * lib/memmem.c (memmem): Use Two-Way rather than
49494         Knuth-Morris-Pratt, to allow O(1) space usage.
49495         (critical_factorization, two_way_short_needle)
49496         (two_way_long_needle): New functions.
49497         (knuth_morris_pratt): Delete.
49498         * modules/memmem (Depends-on): No longer need malloca or stdbool.
49499         Add stdint.
49500         * tests/test-memmem.c (main): Add tests for periodic needle and
49501         sublinear performance.
49502         * doc/functions/memmem.texi (memmem): Document other deficiencies
49503         in cygwin and older glibc.
49504
49505 2008-01-08  Bruno Haible  <bruno@clisp.org>
49506
49507         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
49508         augmentation.
49509
49510 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
49511
49512         Add a configure time option: --disable-acl.
49513         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
49514         AC_ARG_ENABLE(acl).
49515
49516 2008-01-06  Simon Josefsson  <simon@josefsson.org>
49517
49518         * tests/test-localename.c: Don't include obsolete "setenv.h".
49519
49520         * modules/localename-tests (Depends-on): Need unsetenv.
49521
49522 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49523
49524         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
49525
49526 2008-01-06  Colin Watson  <cjwatson@debian.org>
49527
49528         * users.txt: Add man-db.
49529
49530 2008-01-07  Bruno Haible  <bruno@clisp.org>
49531
49532         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
49533         previous section name.
49534
49535 2008-01-07  Bruno Haible  <bruno@clisp.org>
49536
49537         * lib/progname.c (set_program_name): Don't strip off a leading
49538         "lt-" prefix outside a .libs directory.
49539         Suggested by Paul Eggert.
49540
49541 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
49542             Bruno Haible  <bruno@clisp.org>
49543
49544         Improve memory cleanup in 'relocatable' module.
49545         * lib/relocatable.h (compute_curr_prefix): Change return type to
49546         'char *'.
49547         * lib/relocatable.c (compute_curr_prefix): Change return type to
49548         'char *'. Free curr_installdir after use.
49549         (relocate): Free curr_prefix_better after use.
49550         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
49551
49552 2008-01-01  Bruno Haible  <bruno@clisp.org>
49553
49554         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
49555         failure on older glibc systems.
49556         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49557
49558 2008-01-05  Eric Blake  <ebb9@byu.net>
49559
49560         Avoid quadratic system memmem.
49561         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
49562         Reported by Ralf Wildenhues.
49563
49564         Fix memmem test for mingw.
49565         * modules/memmem-tests (configure.ac): Check for alarm.
49566         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
49567         it.
49568         * doc/functions/memmem.texi: New file.
49569         * doc/gnulib.texi (Function Substitutes): Add memmem.
49570         Reported by Bruno Haible.
49571
49572 2008-01-04  Bruno Haible  <bruno@clisp.org>
49573
49574         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
49575         Require gl_HEADER_STRINGS_H_DEFAULTS, not
49576         gl_HEADER_STRING_H_DEFAULTS.
49577
49578 2008-01-04  Eric Blake  <ebb9@byu.net>
49579
49580         Shorten duration of memmem test.
49581         * tests/test-memmem.c (main): Use alarm to declare failure if test
49582         is taking too long.
49583         Reported by Ralf Wildenhues.
49584
49585 2007-12-21  Simon Josefsson  <simon@josefsson.org>
49586
49587         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
49588         string, needed by strerror.
49589
49590 2008-01-03  Colin Watson  <cjwatson@debian.org>
49591             Bruno Haible  <bruno@clisp.org>
49592
49593         * doc/gnulib-tool.texi (Localization): New section.
49594
49595 2008-01-02  Bruno Haible  <bruno@clisp.org>
49596
49597         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
49598         variables to 'unsigned char *' type.
49599         Reported by Paul Eggert.
49600
49601 2008-01-02  Jim Meyering  <jim@meyering.net>
49602
49603         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
49604
49605 2007-12-31  Jim Meyering  <jim@meyering.net>
49606
49607         Avoid use of private FTS type name.
49608         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
49609
49610 2007-12-30  Karl Berry  <karl@gnu.org>
49611
49612         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
49613         work around defect in Texinfo and/or the standalone Info browser.
49614
49615 2007-12-30  Bruno Haible  <bruno@clisp.org>
49616
49617         Unify 5 copies of the KMP code.
49618         * lib/str-kmp.h: New file.
49619         * lib/c-strcasestr.c: Include str-kmp.h.
49620         (knuth_morris_pratt): Remove function.
49621         (c_strcasestr): Update.
49622         * lib/c-strstr.c: Include str-kmp.h.
49623         (knuth_morris_pratt): Remove function.
49624         (c_strcasestr): Update.
49625         * lib/mbscasestr.c: Include str-kmp.h.
49626         (knuth_morris_pratt_unibyte): Remove function.
49627         * lib/mbsstr.c: Include str-kmp.h.
49628         (knuth_morris_pratt_unibyte): Remove function.
49629         * lib/strcasestr.c: Include str-kmp.h.
49630         (knuth_morris_pratt): Remove function.
49631         (strcasestr): Update.
49632         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
49633         * modules/c-strstr (Files): Likewise.
49634         * modules/mbscasestr (Files): Likewise.
49635         * modules/mbsstr (Files): Likewise.
49636         * modules/strcasestr (Files): Likewise.
49637         Suggested by Paul Eggert.
49638
49639 2007-12-30  Bruno Haible  <bruno@clisp.org>
49640
49641         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
49642         defined.
49643
49644 2007-12-30  Bruno Haible  <bruno@clisp.org>
49645
49646         * lib/xmalloca.h: Include xalloc.h.
49647         (xnmalloca): New macro.
49648
49649 2007-12-30  Bruno Haible  <bruno@clisp.org>
49650
49651         * lib/malloca.h (nmalloca): New macro.
49652         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
49653         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
49654         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
49655         knuth_morris_pratt_multibyte): Likewise.
49656         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
49657         knuth_morris_pratt_multibyte): Likewise.
49658         * lib/memmem.c (knuth_morris_pratt): Likewise.
49659         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
49660
49661 2007-12-25  Bruno Haible  <bruno@clisp.org>
49662
49663         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
49664         * lib/glob.c: Don't include openat.h.
49665         (link_exists2_p): Add back the code that deals with the
49666         !GLOB_ALTDIRFUNC case.
49667         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
49668         let it do the filename concatenation.
49669         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
49670         * modules/glob (Depends-on): Remove openat.
49671
49672 2007-12-31  Bruno Haible  <bruno@clisp.org>
49673
49674         * modules/dirfd (License): Change to LGPLv2+.
49675         Approved by Jim Meyering.
49676
49677 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49678
49679         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
49680         when multiplying M by sizeof (size_t).
49681
49682 2007-12-10  Martin Lambers  <marlam@marlam.de>
49683
49684         Override getpagesize on mingw.
49685         * lib/getpagesize.c: New file.
49686         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
49687         * modules/getpagesize (Files): Add lib/getpagesize.c.
49688         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
49689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49690         REPLACE_GETPAGESIZE.
49691         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
49692
49693 2007-12-25  Bruno Haible  <bruno@clisp.org>
49694
49695         * modules/localcharset (Notice): New field.
49696         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
49697         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
49698
49699 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
49700             Bruno Haible  <bruno@clisp.org>
49701
49702         Avoid using the syntax symbol() in formatted documentation.
49703         * MODULES.html.sh (func_module): When replacing symbol() with a
49704         hyperlink, remove the parentheses. Show an error if some remain.
49705         Recognize and render the '...' syntax.
49706         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
49707         Rework. Add paragraph about GCC's inlining.
49708         * doc/alloca.texi: Likewise.
49709         * doc/error.texi: Remove parentheses from symbol reference.
49710         * doc/gnulib-intro.texi: Likewise.
49711         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
49712         * modules/fnmatch (Description): Reword to say "the ... function".
49713         * modules/full-read (Description): Likewise.
49714         * modules/full-write (Description): Likewise.
49715         * modules/safe-read (Description): Likewise.
49716         * modules/safe-write (Description): Likewise.
49717         * modules/strchrnul (Description): Likewise.
49718         * modules/trim (Description): Likewise.
49719         * modules/error (Description): Remove parentheses from symbol
49720         references.
49721         * modules/verror (Description): Likewise.
49722         Reported by Karl Berry.
49723
49724 2007-12-25  Bruno Haible  <bruno@clisp.org>
49725
49726         Fixup after 2007-10-16 commit.
49727         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
49728
49729 2007-12-24  Bruno Haible  <bruno@clisp.org>
49730
49731         Make --enable-relocatable work with DESTDIR.
49732         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
49733         to compute installdir from destprog.
49734         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
49735         also set the RELOC_DESTDIR variable.
49736         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49737
49738 2007-12-24  Bruno Haible  <bruno@clisp.org>
49739
49740         Fix link error due to xalloc_die().
49741         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
49742         of xreadlink.
49743         * lib/relocwrapper.c: Update comments.
49744         * build-aux/install-reloc: Remove xreadlink.c from file list.
49745         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
49746         xreadlink.c.
49747         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49748
49749 2007-12-24  Bruno Haible  <bruno@clisp.org>
49750
49751         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
49752         * lib/setenv.h: Remove file.
49753         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
49754         lib/setenv.h.
49755         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
49756         (Depends-on): Add stdlib.
49757         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
49758         gl_FUNC_UNSETENV.
49759         (Include): Replace setenv.h with <stdlib.h>.
49760         * modules/unsetenv: New file.
49761         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
49762         * lib/unsetenv.c: Include <stdlib.h> first.
49763         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
49764         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
49765         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
49766         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
49767         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
49768         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49769         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
49770         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49771         * doc/functions/unsetenv.texi: Update.
49772         * modules/xsetenv (Depends-on): Add unsetenv.
49773         * modules/getdate (Depends-on): Likewise.
49774         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
49775         * lib/xsetenv.c: Don't include setenv.h.
49776         * lib/getdate.y: Likewise.
49777         * lib/relocwrapper.c: Likewise.
49778         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
49779         (Depends-on): Add stdlib.
49780         * NEWS: Mention the changes.
49781         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49782
49783 2007-12-23  Bruno Haible  <bruno@clisp.org>
49784
49785         * lib/memmem.c (memmem): Use lowercase variable names. Tab
49786         indentation.
49787
49788 2007-12-23  Bruno Haible  <bruno@clisp.org>
49789
49790         * lib/c-strcasestr.c: Add more comments.
49791         * lib/c-strstr.c: Likewise.
49792         * lib/mbscasestr.c: Likewise.
49793         * lib/mbsstr.c: Likewise.
49794         * lib/strcasestr.c: Likewise.
49795         * lib/memmem.c: Likewise.
49796
49797 2007-12-23  Bruno Haible  <bruno@clisp.org>
49798
49799         * tests/test-memmem.c: Include <string.h> first.
49800
49801 2007-12-22  Bruno Haible  <bruno@clisp.org>
49802
49803         * gnulib-tool (func_create_testdir): Change $auxdir while generating
49804         the contents of $testsbase.
49805         Reported by Ralf Wildenhues.
49806
49807 2007-12-22  Bruno Haible  <bruno@clisp.org>
49808
49809         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
49810         two variables local_ldadd_before, local_ldadd_last.
49811
49812 2007-12-20  Eric Blake  <ebb9@byu.net>
49813
49814         Work around circular library issue when cross-compiling.
49815         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
49816         that progname.o does not need to pull in rpl_memcmp.
49817
49818 2007-12-19  Eric Blake  <ebb9@byu.net>
49819
49820         Fix memmem to avoid O(n^2) worst-case complexity.
49821         * lib/memmem.c (knuth_morris_pratt): New function.
49822         (memmem): Use it if first few naive iterations fail.
49823         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
49824         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
49825         * modules/memchr (License): Likewise.
49826         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
49827         malloca.
49828         * tests/test-memmem.c: Rewrite, borrowing ideas from
49829         test-mbsstr1.c; the old version wouldn't even compile!
49830         * modules/memmem-tests: New file.
49831         * lib/string.in.h (rpl_memmem): Add declaration.
49832         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
49833         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
49834         REPLACE_MEMMEM.
49835
49836 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49837
49838         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
49839         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
49840         before any system include files, and undef after them all.  This
49841         should fix a problem on VMS reported by John E. Malmberg in
49842         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
49843
49844 2007-12-17  Eric Blake  <ebb9@byu.net>
49845
49846         Revert addition of verify, for BSD/OS.
49847         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
49848         can't handle large files, for the sake of obsolete platforms.
49849         * modules/fseeko (Depends-on): Remove verify.
49850         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
49851         * doc/functions/ftello.texi (ftello): Likewise.
49852         * doc/functions/fgetpos.texi (fgetpos): Likewise.
49853         Reported by Larry Jones.
49854
49855 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
49856
49857         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
49858         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
49859
49860 2007-12-17  Jim Meyering  <meyering@redhat.com>
49861
49862         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
49863         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
49864         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
49865         * modules/getcwd (Depends-on): Add openat.
49866         Reported by Petr Salinger.
49867
49868 2007-12-17  Bruno Haible  <bruno@clisp.org>
49869
49870         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
49871         avoid a segmentation fault of the configure test on x86_64 systems.
49872
49873 2007-12-15  Jim Meyering  <meyering@redhat.com>
49874
49875         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
49876
49877 2007-12-13  Eric Blake  <ebb9@byu.net>
49878
49879         Another fseek test.
49880         * tests/test-fseek.c (main): Also test ungetc handling.
49881         * tests/test-fseeko.c (main): Likewise.
49882         * modules/fseeko (Depends-on): Add verify.
49883         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
49884         large.
49885         Reported by Larry Jones.
49886
49887         Fix fseeko on mingw.
49888         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
49889         seek.
49890
49891         Beef up fseek tests.
49892         * tests/test-fseek.c (main): Also test eof handling.
49893         * tests/test-fseeko.c (main): Likewise.
49894         Reported by Larry Jones.
49895
49896 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
49897
49898         Fix fseeko on BSD-based platforms.
49899         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
49900         successful seek.
49901
49902 2007-12-12  Eric Blake  <ebb9@byu.net>
49903
49904         Allow circular dependency of separate libtests.a
49905         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
49906         when use_libtests.
49907
49908 2007-12-11  Eric Blake  <ebb9@byu.net>
49909
49910         Fix bug with -0.0L in previous patch.
49911         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
49912         * tests/test-isnan.c (main): Also test on zeroes.
49913         * tests/test-isnanf.c (main): Likewise.
49914         * tests/test-isnanl.h (main): Likewise.
49915
49916         Detect pseudo-denormals on x86 even when cross-compiling.
49917         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
49918         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
49919         invalid bit patterns that happen to satisfy ==.
49920
49921         Avoid link failures with separate libtests.a.
49922         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
49923         last, to satisfy circular dependencies.
49924
49925 2007-12-11  Eric Blake  <ebb9@byu.net>
49926         and Bruno Haible  <bruno@clisp.org>
49927
49928         Fix OpenBSD 4.0 <float.h> handling of long double.
49929         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
49930         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
49931         * doc/headers/float.texi (float.h): Document OpenBSD bug.
49932
49933 2007-12-11  Jim Meyering  <meyering@redhat.com>
49934
49935         * users.txt: Add libvirt.
49936
49937         Support versions of autoconf prior to 2.59c.
49938         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
49939         if it is not already defined.
49940
49941 2007-12-09  Bruno Haible  <bruno@clisp.org>
49942
49943         Let 'gnulib-tool --import' collect sources needed for the tests in
49944         tests/ rather than in lib/.
49945         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
49946         argument. If true, add rules to generate libtests.a, and put libtests.a
49947         into $(LDADD). Consider source files in subdirectories and set
49948         uses_subdirs.
49949         (func_emit_initmacro_start, func_emit_initmacro_end,
49950         func_emit_initmacro_done): Pass all arguments explicitly.
49951         (func_import): Determine two module lists main_modules,
49952         testsrelated_modules. Determine use_libtests. Determine two variables
49953         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
49954         instead of just sed_transform_lib_file. Determine two variables
49955         main_files and testsrelated_files. Compute 'files' as the union of
49956         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
49957         func_add_or_update. In the generated gnulib-comp.m4, collect the
49958         object files for tests/ in different variables than those for lib/.
49959         Substitute LIBTESTS_LIBDEPS.
49960         (func_create_testdir): Combine the uses_subdirs results from
49961         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
49962
49963 2007-12-09  Bruno Haible  <bruno@clisp.org>
49964
49965         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
49966         the build-aux directory.
49967
49968 2007-12-09  Bruno Haible  <bruno@clisp.org>
49969
49970         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
49971         introduced on 2006-09-09.
49972
49973 2007-12-07  Jim Meyering  <meyering@redhat.com>
49974
49975         Let these macros work also with autoconf-2.59.
49976         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49977         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49978         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49979
49980 2007-12-06  Jim Meyering  <meyering@redhat.com>
49981
49982         Avoid a configure-time syntax error in gl_FUNC_ACL.
49983         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49984         function in each branch, before testing the cache variable.
49985
49986 2007-12-04  Eric Blake  <ebb9@byu.net>
49987
49988         Make scripts executable.
49989         * build-aux/config.guess: Add execute permissions.
49990         * build-aux/config.sub: Likewise.
49991         * build-aux/gendocs.sh: Likewise.
49992
49993         Fix frexp on mingw.
49994         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49995         cross-compiling.
49996         * doc/functions/frexp.texi (frexp): Document the bug.
49997
49998         Make cygwin fseeko check more reliable.
49999         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
50000         version numbers, rather than unrelated feature check.
50001         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
50002         * doc/functions/ftello.texi (ftello): Likewise.
50003         Reported by Bruno Haible.
50004
50005         * m4/strerror.m4: Bump version number.
50006
50007 2007-12-03  Bruno Haible  <bruno@clisp.org>
50008
50009         * doc/functions/mprotect.texi: Mention the mingw problem.
50010
50011 2007-12-03  Eric Blake  <ebb9@byu.net>
50012
50013         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
50014         REPLACE_STRERROR is initialized before this macro.
50015
50016 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
50017
50018         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
50019         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
50020         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
50021         put -lsec in even for programs other than 'ls'.  This fixes a problem
50022         for gettext reported by Bruno Haible in
50023         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
50024         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
50025         Add support for Solaris 10.  This isn't efficient, but should get the
50026         job done for now.
50027
50028 2007-12-03  James Youngman  <jay@gnu.org>
50029
50030         * doc/regexprops-generic.texi: change "an close-group" to "a
50031         close-group" and "illegal" to "not allowed".
50032
50033 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50034
50035         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
50036         pr_byname.h. Needed for the rare case when the maintainer has done
50037         "make maintainer-clean" in the source directory and then attempts a
50038         build outside the source directory.
50039         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
50040         scripts_byname.h.
50041
50042 2007-12-02  Martin Lambers <marlam@marlam.de>
50043             Bruno Haible  <bruno@clisp.org>
50044
50045         * lib/getpagesize.h: Remove file.
50046         * lib/unistd.in.h: Include declaration of getpagesize here.
50047         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
50048         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
50049         HAVE_SYS_PARAM_H.
50050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
50051         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
50052         * modules/getpagesize (Files): Remove lib/getpagesize.h.
50053         (Depends-on): Add unistd.
50054         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50055         (Include): Use <unistd.h> instead of getpagesize.h.
50056         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
50057         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
50058         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
50059         gl_GETPAGESIZE invocation, already handled by module dependency.
50060         * lib/pagealign_alloc.c: Don't include getpagesize.h.
50061
50062 2007-12-02  Bruno Haible  <bruno@clisp.org>
50063
50064         * modules/strings-tests: New file.
50065         * tests/test-strings.c: New file.
50066
50067         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
50068         * lib/strings.in.h: New file.
50069         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
50070         * m4/strings_h.m4: New file.
50071         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
50072         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
50073         * modules/strings: New file.
50074         * modules/string (Makefile.am): Update.
50075         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
50076         Reported by Karl Berry.
50077
50078 2007-12-01  Eric Blake  <ebb9@byu.net>
50079
50080         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
50081         accomodate fix in cygwin 1.5.25.
50082
50083 2007-12-01  Jim Meyering  <meyering@redhat.com>
50084
50085         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
50086         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
50087         that would inhibit utf8-optimization of a regexp containing line-
50088         or buffer-anchors, e.g., `^', `$'.
50089
50090 2007-11-30  Bruno Haible  <bruno@clisp.org>
50091
50092         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
50093         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
50094         glthread_recursive_lock_init.
50095         * lib/lock.c (glthread_recursive_lock_init)
50096         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
50097         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50098
50099 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
50100
50101         New function qset_acl, like set_acl but with syscall semantics.
50102         * lib/acl.h (qset_acl): New decl.
50103         * lib/acl.c (qset_acl): New function.
50104         (set_acl): Use new function.  Use more-consistent diagnostics.
50105
50106 2007-11-28  Jim Meyering  <meyering@redhat.com>
50107
50108         * modules/physmem (License): Change from GPL to LGPLv2+.
50109
50110 2007-11-26  Bruno Haible  <bruno@clisp.org>
50111
50112         * lib/vasnprintf.c (decode_long_double): Don't abort if the
50113         'long double' type has excess precision.
50114         Reported by Jim Meyering in
50115         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
50116
50117 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50118
50119         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
50120         Sync from <http://gnu.org/licenses>.
50121         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
50122         with license text from same location.
50123         * doc/maintain.texi, doc/standards.texi:  Sync from
50124         <http://savannah.gnu.org/projects/gnustandards>.
50125
50126 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
50127         and Jim Meyering  <meyering@redhat.com>
50128
50129         Adjust getdate' grammar to accept a slightly more regular language.
50130         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
50131         Before, the former was rejected.
50132         * lib/getdate.y (digits_to_date_time): New function, factored
50133         out of ...
50134         (number): ...here.  Just call digits_to_date_time.
50135         (hybrid): New non-terminal to handle an <unsigned number,
50136         signed relative offset> sequence consistently.
50137
50138 2007-11-18  Jim Meyering  <meyering@redhat.com>
50139
50140         Pull my changes from coreutils:
50141         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
50142         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
50143         use of $gnulib_tool_option_extras, so that it's separated from the
50144         preceding argument.
50145
50146         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
50147         * build-aux/bootstrap (cp_mark_as_generated): Create any required
50148         parent destination directories before copying a file into place.
50149
50150 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
50151
50152         bootstrap: work also with 4-argument variant of AC_INIT
50153         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
50154
50155 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50156
50157         Port test-getaddrinfo to Solaris.
50158         Problem reported by Bruno Haible in
50159         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
50160         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
50161         explanation of setting 'hints'.
50162         Don't reject an implementation merely because it returns EAI_SERVICE.
50163         (EAI_SERVICE): Define to 0 if not defined.
50164
50165 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
50166
50167         The license of gnu-make and posix-shell is now "GPLed build tool".
50168         * modules/gnu-make (License): Likewise.
50169         * modules/posix-shell (License): Likewise.
50170
50171         New module posix-shell, for determining a POSIX shell
50172         or perhaps something that is close enough to a POSIX shell.
50173         * m4/posix-shell.m4: New file.
50174         * modules/posix-shell: New file.
50175
50176         * MODULES.html.sh: Mention new module.
50177
50178         New module gnu-make, for determining whether we're using GNU Make.
50179         * m4/gnu-make.m4: New file.
50180         * modules/gnu-make: New file.
50181         * MODULES.html.sh: Mention new module.
50182
50183 2007-11-14  Jim Meyering  <meyering@redhat.com>
50184
50185         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
50186         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
50187         use this macro to create a function _definition_.
50188         Remove useless "#undef ARGMATCH_DIE".
50189
50190 2007-11-14  Bruno Haible  <bruno@clisp.org>
50191
50192         * lib/config.charset: Update for OpenBSD 4.1.
50193         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
50194
50195 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
50196
50197         Document 64-bit #if problems in stdint.texi.
50198         * doc/headers/stdint.texi (stdint.h): Mention problems with
50199         64-bit-#if, and how to work around them.
50200
50201         Don't insist on 'long long int' support in the preprocessor.  It
50202         breaks too many things.  For example, PRIdMAX still uses a 'long
50203         long int' format with the latest Sun compiler, even though
50204         HAVE_LONG_LONG_INT isn't defined due to that compiler's
50205         preprocessor problem.  This causes the latest coreutils to dump
50206         core on Solaris 10 sparc with the Sun C compiler.
50207         Instead, fix the 2007-10-16 problem in a different way, by evaluating
50208         the troublesome expressions at configure-time, not at #if-time.
50209         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
50210         preprocessor.
50211         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
50212         compile-time C checks, done at 'configure'-time.
50213         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
50214         * modules/inttypes (Makefile): Substitute the new symbols that
50215         gl_INTTYPES_H now generates.
50216         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
50217
50218 2007-11-12  Bruno Haible  <bruno@clisp.org>
50219
50220         Tests for Unicode character classification functions.
50221
50222         * modules/unictype/bidicategory-byname-tests: New file.
50223         * modules/unictype/bidicategory-name-tests: New file.
50224         * modules/unictype/bidicategory-of-tests: New file.
50225         * modules/unictype/bidicategory-test-tests: New file.
50226         * modules/unictype/block-list-tests: New file.
50227         * modules/unictype/block-of-tests: New file.
50228         * modules/unictype/block-test-tests: New file.
50229         * modules/unictype/category-C-tests: New file.
50230         * modules/unictype/category-Cc-tests: New file.
50231         * modules/unictype/category-Cf-tests: New file.
50232         * modules/unictype/category-Cn-tests: New file.
50233         * modules/unictype/category-Co-tests: New file.
50234         * modules/unictype/category-Cs-tests: New file.
50235         * modules/unictype/category-L-tests: New file.
50236         * modules/unictype/category-Ll-tests: New file.
50237         * modules/unictype/category-Lm-tests: New file.
50238         * modules/unictype/category-Lo-tests: New file.
50239         * modules/unictype/category-Lt-tests: New file.
50240         * modules/unictype/category-Lu-tests: New file.
50241         * modules/unictype/category-M-tests: New file.
50242         * modules/unictype/category-Mc-tests: New file.
50243         * modules/unictype/category-Me-tests: New file.
50244         * modules/unictype/category-Mn-tests: New file.
50245         * modules/unictype/category-N-tests: New file.
50246         * modules/unictype/category-Nd-tests: New file.
50247         * modules/unictype/category-Nl-tests: New file.
50248         * modules/unictype/category-No-tests: New file.
50249         * modules/unictype/category-P-tests: New file.
50250         * modules/unictype/category-Pc-tests: New file.
50251         * modules/unictype/category-Pd-tests: New file.
50252         * modules/unictype/category-Pe-tests: New file.
50253         * modules/unictype/category-Pf-tests: New file.
50254         * modules/unictype/category-Pi-tests: New file.
50255         * modules/unictype/category-Po-tests: New file.
50256         * modules/unictype/category-Ps-tests: New file.
50257         * modules/unictype/category-S-tests: New file.
50258         * modules/unictype/category-Sc-tests: New file.
50259         * modules/unictype/category-Sk-tests: New file.
50260         * modules/unictype/category-Sm-tests: New file.
50261         * modules/unictype/category-So-tests: New file.
50262         * modules/unictype/category-Z-tests: New file.
50263         * modules/unictype/category-Zl-tests: New file.
50264         * modules/unictype/category-Zp-tests: New file.
50265         * modules/unictype/category-Zs-tests: New file.
50266         * modules/unictype/category-and-not-tests: New file.
50267         * modules/unictype/category-and-tests: New file.
50268         * modules/unictype/category-byname-tests: New file.
50269         * modules/unictype/category-name-tests: New file.
50270         * modules/unictype/category-none-tests: New file.
50271         * modules/unictype/category-of-tests: New file.
50272         * modules/unictype/category-or-tests: New file.
50273         * modules/unictype/category-test-withtable-tests: New file.
50274         * modules/unictype/combining-class-tests: New file.
50275         * modules/unictype/ctype-alnum-tests: New file.
50276         * modules/unictype/ctype-alpha-tests: New file.
50277         * modules/unictype/ctype-blank-tests: New file.
50278         * modules/unictype/ctype-cntrl-tests: New file.
50279         * modules/unictype/ctype-digit-tests: New file.
50280         * modules/unictype/ctype-graph-tests: New file.
50281         * modules/unictype/ctype-lower-tests: New file.
50282         * modules/unictype/ctype-print-tests: New file.
50283         * modules/unictype/ctype-punct-tests: New file.
50284         * modules/unictype/ctype-space-tests: New file.
50285         * modules/unictype/ctype-upper-tests: New file.
50286         * modules/unictype/ctype-xdigit-tests: New file.
50287         * modules/unictype/decimal-digit-tests: New file.
50288         * modules/unictype/digit-tests: New file.
50289         * modules/unictype/mirror-tests: New file.
50290         * modules/unictype/numeric-tests: New file.
50291         * modules/unictype/property-alphabetic-tests: New file.
50292         * modules/unictype/property-ascii-hex-digit-tests: New file.
50293         * modules/unictype/property-bidi-arabic-digit-tests: New file.
50294         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
50295         * modules/unictype/property-bidi-block-separator-tests: New file.
50296         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
50297         * modules/unictype/property-bidi-common-separator-tests: New file.
50298         * modules/unictype/property-bidi-control-tests: New file.
50299         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
50300         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
50301         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
50302         * modules/unictype/property-bidi-european-digit-tests: New file.
50303         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
50304         * modules/unictype/property-bidi-left-to-right-tests: New file.
50305         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
50306         * modules/unictype/property-bidi-other-neutral-tests: New file.
50307         * modules/unictype/property-bidi-pdf-tests: New file.
50308         * modules/unictype/property-bidi-segment-separator-tests: New file.
50309         * modules/unictype/property-bidi-whitespace-tests: New file.
50310         * modules/unictype/property-byname-tests: New file.
50311         * modules/unictype/property-combining-tests: New file.
50312         * modules/unictype/property-composite-tests: New file.
50313         * modules/unictype/property-currency-symbol-tests: New file.
50314         * modules/unictype/property-dash-tests: New file.
50315         * modules/unictype/property-decimal-digit-tests: New file.
50316         * modules/unictype/property-default-ignorable-code-point-tests: New file.
50317         * modules/unictype/property-deprecated-tests: New file.
50318         * modules/unictype/property-diacritic-tests: New file.
50319         * modules/unictype/property-extender-tests: New file.
50320         * modules/unictype/property-format-control-tests: New file.
50321         * modules/unictype/property-grapheme-base-tests: New file.
50322         * modules/unictype/property-grapheme-extend-tests: New file.
50323         * modules/unictype/property-grapheme-link-tests: New file.
50324         * modules/unictype/property-hex-digit-tests: New file.
50325         * modules/unictype/property-hyphen-tests: New file.
50326         * modules/unictype/property-id-continue-tests: New file.
50327         * modules/unictype/property-id-start-tests: New file.
50328         * modules/unictype/property-ideographic-tests: New file.
50329         * modules/unictype/property-ids-binary-operator-tests: New file.
50330         * modules/unictype/property-ids-trinary-operator-tests: New file.
50331         * modules/unictype/property-ignorable-control-tests: New file.
50332         * modules/unictype/property-iso-control-tests: New file.
50333         * modules/unictype/property-join-control-tests: New file.
50334         * modules/unictype/property-left-of-pair-tests: New file.
50335         * modules/unictype/property-line-separator-tests: New file.
50336         * modules/unictype/property-logical-order-exception-tests: New file.
50337         * modules/unictype/property-lowercase-tests: New file.
50338         * modules/unictype/property-math-tests: New file.
50339         * modules/unictype/property-non-break-tests: New file.
50340         * modules/unictype/property-not-a-character-tests: New file.
50341         * modules/unictype/property-numeric-tests: New file.
50342         * modules/unictype/property-other-alphabetic-tests: New file.
50343         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
50344         * modules/unictype/property-other-grapheme-extend-tests: New file.
50345         * modules/unictype/property-other-id-continue-tests: New file.
50346         * modules/unictype/property-other-id-start-tests: New file.
50347         * modules/unictype/property-other-lowercase-tests: New file.
50348         * modules/unictype/property-other-math-tests: New file.
50349         * modules/unictype/property-other-uppercase-tests: New file.
50350         * modules/unictype/property-paired-punctuation-tests: New file.
50351         * modules/unictype/property-paragraph-separator-tests: New file.
50352         * modules/unictype/property-pattern-syntax-tests: New file.
50353         * modules/unictype/property-pattern-white-space-tests: New file.
50354         * modules/unictype/property-private-use-tests: New file.
50355         * modules/unictype/property-punctuation-tests: New file.
50356         * modules/unictype/property-quotation-mark-tests: New file.
50357         * modules/unictype/property-radical-tests: New file.
50358         * modules/unictype/property-sentence-terminal-tests: New file.
50359         * modules/unictype/property-soft-dotted-tests: New file.
50360         * modules/unictype/property-space-tests: New file.
50361         * modules/unictype/property-terminal-punctuation-tests: New file.
50362         * modules/unictype/property-test-tests: New file.
50363         * modules/unictype/property-titlecase-tests: New file.
50364         * modules/unictype/property-unassigned-code-value-tests: New file.
50365         * modules/unictype/property-unified-ideograph-tests: New file.
50366         * modules/unictype/property-uppercase-tests: New file.
50367         * modules/unictype/property-variation-selector-tests: New file.
50368         * modules/unictype/property-white-space-tests: New file.
50369         * modules/unictype/property-xid-continue-tests: New file.
50370         * modules/unictype/property-xid-start-tests: New file.
50371         * modules/unictype/property-zero-width-tests: New file.
50372         * modules/unictype/scripts-tests: New file.
50373         * modules/unictype/syntax-c-ident-tests: New file.
50374         * modules/unictype/syntax-c-whitespace-tests: New file.
50375         * modules/unictype/syntax-java-ident-tests: New file.
50376         * modules/unictype/syntax-java-whitespace-tests: New file.
50377         * tests/unictype/test-bidi_byname.c: New file.
50378         * tests/unictype/test-bidi_name.c: New file.
50379         * tests/unictype/test-bidi_of.c: New file.
50380         * tests/unictype/test-bidi_test.c: New file.
50381         * tests/unictype/test-block_list.c: New file.
50382         * tests/unictype/test-block_of.c: New file.
50383         * tests/unictype/test-block_test.c: New file.
50384         * tests/unictype/test-categ_and.c: New file.
50385         * tests/unictype/test-categ_and_not.c: New file.
50386         * tests/unictype/test-categ_byname.c: New file.
50387         * tests/unictype/test-categ_name.c: New file.
50388         * tests/unictype/test-categ_none.c: New file.
50389         * tests/unictype/test-categ_of.c: New file.
50390         * tests/unictype/test-categ_or.c: New file.
50391         * tests/unictype/test-categ_test_withtable.c: New file.
50392         * tests/unictype/test-combining.c: New file.
50393         * tests/unictype/test-decdigit.c: New file.
50394         * tests/unictype/test-digit.c: New file.
50395         * tests/unictype/test-mirror.c: New file.
50396         * tests/unictype/test-numeric.c: New file.
50397         * tests/unictype/test-pr_byname.c: New file.
50398         * tests/unictype/test-pr_test.c: New file.
50399         * tests/unictype/test-predicate-part1.h: New file.
50400         * tests/unictype/test-predicate-part2.h: New file.
50401         * tests/unictype/test-scripts.c: New file.
50402         * tests/unictype/test-sy_c_ident.c: New file.
50403         * tests/unictype/test-sy_java_ident.c: New file.
50404
50405         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
50406         for Unicode 5.0.0.
50407         * tests/unictype/test-categ_Cc.c: Likewise.
50408         * tests/unictype/test-categ_Cf.c: Likewise.
50409         * tests/unictype/test-categ_Cn.c: Likewise.
50410         * tests/unictype/test-categ_Co.c: Likewise.
50411         * tests/unictype/test-categ_Cs.c: Likewise.
50412         * tests/unictype/test-categ_L.c: Likewise.
50413         * tests/unictype/test-categ_Ll.c: Likewise.
50414         * tests/unictype/test-categ_Lm.c: Likewise.
50415         * tests/unictype/test-categ_Lo.c: Likewise.
50416         * tests/unictype/test-categ_Lt.c: Likewise.
50417         * tests/unictype/test-categ_Lu.c: Likewise.
50418         * tests/unictype/test-categ_M.c: Likewise.
50419         * tests/unictype/test-categ_Mc.c: Likewise.
50420         * tests/unictype/test-categ_Me.c: Likewise.
50421         * tests/unictype/test-categ_Mn.c: Likewise.
50422         * tests/unictype/test-categ_N.c: Likewise.
50423         * tests/unictype/test-categ_Nd.c: Likewise.
50424         * tests/unictype/test-categ_Nl.c: Likewise.
50425         * tests/unictype/test-categ_No.c: Likewise.
50426         * tests/unictype/test-categ_P.c: Likewise.
50427         * tests/unictype/test-categ_Pc.c: Likewise.
50428         * tests/unictype/test-categ_Pd.c: Likewise.
50429         * tests/unictype/test-categ_Pe.c: Likewise.
50430         * tests/unictype/test-categ_Pf.c: Likewise.
50431         * tests/unictype/test-categ_Pi.c: Likewise.
50432         * tests/unictype/test-categ_Po.c: Likewise.
50433         * tests/unictype/test-categ_Ps.c: Likewise.
50434         * tests/unictype/test-categ_S.c: Likewise.
50435         * tests/unictype/test-categ_Sc.c: Likewise.
50436         * tests/unictype/test-categ_Sk.c: Likewise.
50437         * tests/unictype/test-categ_Sm.c: Likewise.
50438         * tests/unictype/test-categ_So.c: Likewise.
50439         * tests/unictype/test-categ_Z.c: Likewise.
50440         * tests/unictype/test-categ_Zl.c: Likewise.
50441         * tests/unictype/test-categ_Zp.c: Likewise.
50442         * tests/unictype/test-categ_Zs.c: Likewise.
50443         * tests/unictype/test-ctype_alnum.c: Likewise.
50444         * tests/unictype/test-ctype_alpha.c: Likewise.
50445         * tests/unictype/test-ctype_blank.c: Likewise.
50446         * tests/unictype/test-ctype_cntrl.c: Likewise.
50447         * tests/unictype/test-ctype_digit.c: Likewise.
50448         * tests/unictype/test-ctype_graph.c: Likewise.
50449         * tests/unictype/test-ctype_lower.c: Likewise.
50450         * tests/unictype/test-ctype_print.c: Likewise.
50451         * tests/unictype/test-ctype_punct.c: Likewise.
50452         * tests/unictype/test-ctype_space.c: Likewise.
50453         * tests/unictype/test-ctype_upper.c: Likewise.
50454         * tests/unictype/test-ctype_xdigit.c: Likewise.
50455         * tests/unictype/test-decdigit.h: Likewise.
50456         * tests/unictype/test-digit.h: Likewise.
50457         * tests/unictype/test-numeric.h: Likewise.
50458         * tests/unictype/test-pr_alphabetic.c: Likewise.
50459         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
50460         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
50461         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
50462         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
50463         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
50464         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
50465         * tests/unictype/test-pr_bidi_control.c: Likewise.
50466         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
50467         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
50468         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
50469         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
50470         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
50471         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
50472         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
50473         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
50474         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
50475         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
50476         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
50477         * tests/unictype/test-pr_combining.c: Likewise.
50478         * tests/unictype/test-pr_composite.c: Likewise.
50479         * tests/unictype/test-pr_currency_symbol.c: Likewise.
50480         * tests/unictype/test-pr_dash.c: Likewise.
50481         * tests/unictype/test-pr_decimal_digit.c: Likewise.
50482         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
50483         * tests/unictype/test-pr_deprecated.c: Likewise.
50484         * tests/unictype/test-pr_diacritic.c: Likewise.
50485         * tests/unictype/test-pr_extender.c: Likewise.
50486         * tests/unictype/test-pr_format_control.c: Likewise.
50487         * tests/unictype/test-pr_grapheme_base.c: Likewise.
50488         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
50489         * tests/unictype/test-pr_grapheme_link.c: Likewise.
50490         * tests/unictype/test-pr_hex_digit.c: Likewise.
50491         * tests/unictype/test-pr_hyphen.c: Likewise.
50492         * tests/unictype/test-pr_id_continue.c: Likewise.
50493         * tests/unictype/test-pr_id_start.c: Likewise.
50494         * tests/unictype/test-pr_ideographic.c: Likewise.
50495         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
50496         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
50497         * tests/unictype/test-pr_ignorable_control.c: Likewise.
50498         * tests/unictype/test-pr_iso_control.c: Likewise.
50499         * tests/unictype/test-pr_join_control.c: Likewise.
50500         * tests/unictype/test-pr_left_of_pair.c: Likewise.
50501         * tests/unictype/test-pr_line_separator.c: Likewise.
50502         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
50503         * tests/unictype/test-pr_lowercase.c: Likewise.
50504         * tests/unictype/test-pr_math.c: Likewise.
50505         * tests/unictype/test-pr_non_break.c: Likewise.
50506         * tests/unictype/test-pr_not_a_character.c: Likewise.
50507         * tests/unictype/test-pr_numeric.c: Likewise.
50508         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
50509         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
50510         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
50511         * tests/unictype/test-pr_other_id_continue.c: Likewise.
50512         * tests/unictype/test-pr_other_id_start.c: Likewise.
50513         * tests/unictype/test-pr_other_lowercase.c: Likewise.
50514         * tests/unictype/test-pr_other_math.c: Likewise.
50515         * tests/unictype/test-pr_other_uppercase.c: Likewise.
50516         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
50517         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
50518         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
50519         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
50520         * tests/unictype/test-pr_private_use.c: Likewise.
50521         * tests/unictype/test-pr_punctuation.c: Likewise.
50522         * tests/unictype/test-pr_quotation_mark.c: Likewise.
50523         * tests/unictype/test-pr_radical.c: Likewise.
50524         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
50525         * tests/unictype/test-pr_soft_dotted.c: Likewise.
50526         * tests/unictype/test-pr_space.c: Likewise.
50527         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
50528         * tests/unictype/test-pr_titlecase.c: Likewise.
50529         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
50530         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
50531         * tests/unictype/test-pr_uppercase.c: Likewise.
50532         * tests/unictype/test-pr_variation_selector.c: Likewise.
50533         * tests/unictype/test-pr_white_space.c: Likewise.
50534         * tests/unictype/test-pr_xid_continue.c: Likewise.
50535         * tests/unictype/test-pr_xid_start.c: Likewise.
50536         * tests/unictype/test-pr_zero_width.c: Likewise.
50537         * tests/unictype/test-sy_c_whitespace.c: Likewise.
50538         * tests/unictype/test-sy_java_whitespace.c: Likewise.
50539
50540 2007-11-12  Bruno Haible  <bruno@clisp.org>
50541
50542         Unicode character classification functions.
50543         * lib/unictype.h: New file.
50544         * modules/unictype/base: New file.
50545         * modules/unictype/category-L: New file.
50546         * modules/unictype/category-Lu: New file.
50547         * modules/unictype/category-Ll: New file.
50548         * modules/unictype/category-Lt: New file.
50549         * modules/unictype/category-Lm: New file.
50550         * modules/unictype/category-Lo: New file.
50551         * modules/unictype/category-M: New file.
50552         * modules/unictype/category-Mn: New file.
50553         * modules/unictype/category-Mc: New file.
50554         * modules/unictype/category-Me: New file.
50555         * modules/unictype/category-N: New file.
50556         * modules/unictype/category-Nd: New file.
50557         * modules/unictype/category-Nl: New file.
50558         * modules/unictype/category-No: New file.
50559         * modules/unictype/category-P: New file.
50560         * modules/unictype/category-Pc: New file.
50561         * modules/unictype/category-Pd: New file.
50562         * modules/unictype/category-Ps: New file.
50563         * modules/unictype/category-Pe: New file.
50564         * modules/unictype/category-Pi: New file.
50565         * modules/unictype/category-Pf: New file.
50566         * modules/unictype/category-Po: New file.
50567         * modules/unictype/category-S: New file.
50568         * modules/unictype/category-Sm: New file.
50569         * modules/unictype/category-Sc: New file.
50570         * modules/unictype/category-Sk: New file.
50571         * modules/unictype/category-So: New file.
50572         * modules/unictype/category-Z: New file.
50573         * modules/unictype/category-Zs: New file.
50574         * modules/unictype/category-Zl: New file.
50575         * modules/unictype/category-Zp: New file.
50576         * modules/unictype/category-C: New file.
50577         * modules/unictype/category-Cc: New file.
50578         * modules/unictype/category-Cf: New file.
50579         * modules/unictype/category-Cs: New file.
50580         * modules/unictype/category-Co: New file.
50581         * modules/unictype/category-Cn: New file.
50582         * modules/unictype/category-or: New file.
50583         * modules/unictype/category-of: New file.
50584         * modules/unictype/category-test: New file.
50585         * modules/unictype/category-test-withtable: New file.
50586         * modules/unictype/category-byname: New file.
50587         * modules/unictype/category-none: New file.
50588         * modules/unictype/category-and: New file.
50589         * modules/unictype/category-and-not: New file.
50590         * modules/unictype/category-name: New file.
50591         * modules/unictype/combining-class: New file.
50592         * modules/unictype/category-all: New file.
50593         * modules/unictype/bidicategory-all: New file.
50594         * modules/unictype/bidicategory-byname: New file.
50595         * modules/unictype/bidicategory-name: New file.
50596         * modules/unictype/bidicategory-of: New file.
50597         * modules/unictype/bidicategory-test: New file.
50598         * modules/unictype/decimal-digit: New file.
50599         * modules/unictype/digit: New file.
50600         * modules/unictype/numeric: New file.
50601         * modules/unictype/mirror: New file.
50602         * modules/unictype/property-white-space: New file.
50603         * modules/unictype/property-alphabetic: New file.
50604         * modules/unictype/property-other-alphabetic: New file.
50605         * modules/unictype/property-not-a-character: New file.
50606         * modules/unictype/property-default-ignorable-code-point: New file.
50607         * modules/unictype/property-other-default-ignorable-code-point: New
50608         file.
50609         * modules/unictype/property-deprecated: New file.
50610         * modules/unictype/property-logical-order-exception: New file.
50611         * modules/unictype/property-variation-selector: New file.
50612         * modules/unictype/property-private-use: New file.
50613         * modules/unictype/property-unassigned-code-value: New file.
50614         * modules/unictype/property-uppercase: New file.
50615         * modules/unictype/property-other-uppercase: New file.
50616         * modules/unictype/property-lowercase: New file.
50617         * modules/unictype/property-other-lowercase: New file.
50618         * modules/unictype/property-titlecase: New file.
50619         * modules/unictype/property-soft-dotted: New file.
50620         * modules/unictype/property-id-start: New file.
50621         * modules/unictype/property-other-id-start: New file.
50622         * modules/unictype/property-id-continue: New file.
50623         * modules/unictype/property-other-id-continue: New file.
50624         * modules/unictype/property-xid-start: New file.
50625         * modules/unictype/property-xid-continue: New file.
50626         * modules/unictype/property-pattern-white-space: New file.
50627         * modules/unictype/property-pattern-syntax: New file.
50628         * modules/unictype/property-join-control: New file.
50629         * modules/unictype/property-grapheme-base: New file.
50630         * modules/unictype/property-grapheme-extend: New file.
50631         * modules/unictype/property-other-grapheme-extend: New file.
50632         * modules/unictype/property-grapheme-link: New file.
50633         * modules/unictype/property-bidi-control: New file.
50634         * modules/unictype/property-bidi-left-to-right: New file.
50635         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
50636         * modules/unictype/property-bidi-arabic-right-to-left: New file.
50637         * modules/unictype/property-bidi-european-digit: New file.
50638         * modules/unictype/property-bidi-eur-num-separator: New file.
50639         * modules/unictype/property-bidi-eur-num-terminator: New file.
50640         * modules/unictype/property-bidi-arabic-digit: New file.
50641         * modules/unictype/property-bidi-common-separator: New file.
50642         * modules/unictype/property-bidi-block-separator: New file.
50643         * modules/unictype/property-bidi-segment-separator: New file.
50644         * modules/unictype/property-bidi-whitespace: New file.
50645         * modules/unictype/property-bidi-non-spacing-mark: New file.
50646         * modules/unictype/property-bidi-boundary-neutral: New file.
50647         * modules/unictype/property-bidi-pdf: New file.
50648         * modules/unictype/property-bidi-embedding-or-override: New file.
50649         * modules/unictype/property-bidi-other-neutral: New file.
50650         * modules/unictype/property-hex-digit: New file.
50651         * modules/unictype/property-ascii-hex-digit: New file.
50652         * modules/unictype/property-ideographic: New file.
50653         * modules/unictype/property-unified-ideograph: New file.
50654         * modules/unictype/property-radical: New file.
50655         * modules/unictype/property-ids-binary-operator: New file.
50656         * modules/unictype/property-ids-trinary-operator: New file.
50657         * modules/unictype/property-zero-width: New file.
50658         * modules/unictype/property-space: New file.
50659         * modules/unictype/property-non-break: New file.
50660         * modules/unictype/property-iso-control: New file.
50661         * modules/unictype/property-format-control: New file.
50662         * modules/unictype/property-dash: New file.
50663         * modules/unictype/property-hyphen: New file.
50664         * modules/unictype/property-punctuation: New file.
50665         * modules/unictype/property-line-separator: New file.
50666         * modules/unictype/property-paragraph-separator: New file.
50667         * modules/unictype/property-quotation-mark: New file.
50668         * modules/unictype/property-sentence-terminal: New file.
50669         * modules/unictype/property-terminal-punctuation: New file.
50670         * modules/unictype/property-currency-symbol: New file.
50671         * modules/unictype/property-math: New file.
50672         * modules/unictype/property-other-math: New file.
50673         * modules/unictype/property-paired-punctuation: New file.
50674         * modules/unictype/property-left-of-pair: New file.
50675         * modules/unictype/property-combining: New file.
50676         * modules/unictype/property-composite: New file.
50677         * modules/unictype/property-decimal-digit: New file.
50678         * modules/unictype/property-numeric: New file.
50679         * modules/unictype/property-diacritic: New file.
50680         * modules/unictype/property-extender: New file.
50681         * modules/unictype/property-ignorable-control: New file.
50682         * modules/unictype/property-test: New file.
50683         * modules/unictype/property-byname: New file.
50684         * modules/unictype/property-all: New file.
50685         * modules/unictype/scripts: New file.
50686         * modules/unictype/scripts-all: New file.
50687         * modules/unictype/block-of: New file.
50688         * modules/unictype/block-test: New file.
50689         * modules/unictype/block-list: New file.
50690         * modules/unictype/block-all: New file.
50691         * modules/unictype/syntax-c-whitespace: New file.
50692         * modules/unictype/syntax-java-whitespace: New file.
50693         * modules/unictype/syntax-c-ident: New file.
50694         * modules/unictype/syntax-java-ident: New file.
50695         * modules/unictype/ctype-alnum: New file.
50696         * modules/unictype/ctype-alpha: New file.
50697         * modules/unictype/ctype-cntrl: New file.
50698         * modules/unictype/ctype-digit: New file.
50699         * modules/unictype/ctype-graph: New file.
50700         * modules/unictype/ctype-lower: New file.
50701         * modules/unictype/ctype-print: New file.
50702         * modules/unictype/ctype-punct: New file.
50703         * modules/unictype/ctype-space: New file.
50704         * modules/unictype/ctype-upper: New file.
50705         * modules/unictype/ctype-xdigit: New file.
50706         * modules/unictype/ctype-blank: New file.
50707         * lib/unictype/bidi_byname.c: New file.
50708         * lib/unictype/bidi_name.c: New file.
50709         * lib/unictype/bidi_of.c: New file.
50710         * lib/unictype/bidi_test.c: New file.
50711         * lib/unictype/bitmap.h: New file.
50712         * lib/unictype/block_test.c: New file.
50713         * lib/unictype/blocks.c: New file.
50714         * lib/unictype/categ_C.c: New file.
50715         * lib/unictype/categ_Cc.c: New file.
50716         * lib/unictype/categ_Cf.c: New file.
50717         * lib/unictype/categ_Cn.c: New file.
50718         * lib/unictype/categ_Co.c: New file.
50719         * lib/unictype/categ_Cs.c: New file.
50720         * lib/unictype/categ_L.c: New file.
50721         * lib/unictype/categ_Ll.c: New file.
50722         * lib/unictype/categ_Lm.c: New file.
50723         * lib/unictype/categ_Lo.c: New file.
50724         * lib/unictype/categ_Lt.c: New file.
50725         * lib/unictype/categ_Lu.c: New file.
50726         * lib/unictype/categ_M.c: New file.
50727         * lib/unictype/categ_Mc.c: New file.
50728         * lib/unictype/categ_Me.c: New file.
50729         * lib/unictype/categ_Mn.c: New file.
50730         * lib/unictype/categ_N.c: New file.
50731         * lib/unictype/categ_Nd.c: New file.
50732         * lib/unictype/categ_Nl.c: New file.
50733         * lib/unictype/categ_No.c: New file.
50734         * lib/unictype/categ_P.c: New file.
50735         * lib/unictype/categ_Pc.c: New file.
50736         * lib/unictype/categ_Pd.c: New file.
50737         * lib/unictype/categ_Pe.c: New file.
50738         * lib/unictype/categ_Pf.c: New file.
50739         * lib/unictype/categ_Pi.c: New file.
50740         * lib/unictype/categ_Po.c: New file.
50741         * lib/unictype/categ_Ps.c: New file.
50742         * lib/unictype/categ_S.c: New file.
50743         * lib/unictype/categ_Sc.c: New file.
50744         * lib/unictype/categ_Sk.c: New file.
50745         * lib/unictype/categ_Sm.c: New file.
50746         * lib/unictype/categ_So.c: New file.
50747         * lib/unictype/categ_Z.c: New file.
50748         * lib/unictype/categ_Zl.c: New file.
50749         * lib/unictype/categ_Zp.c: New file.
50750         * lib/unictype/categ_Zs.c: New file.
50751         * lib/unictype/categ_and.c: New file.
50752         * lib/unictype/categ_and_not.c: New file.
50753         * lib/unictype/categ_byname.c: New file.
50754         * lib/unictype/categ_name.c: New file.
50755         * lib/unictype/categ_none.c: New file.
50756         * lib/unictype/categ_of.c: New file.
50757         * lib/unictype/categ_or.c: New file.
50758         * lib/unictype/categ_test.c: New file.
50759         * lib/unictype/combining.c: New file.
50760         * lib/unictype/ctype_alnum.c: New file.
50761         * lib/unictype/ctype_alpha.c: New file.
50762         * lib/unictype/ctype_blank.c: New file.
50763         * lib/unictype/ctype_cntrl.c: New file.
50764         * lib/unictype/ctype_digit.c: New file.
50765         * lib/unictype/ctype_graph.c: New file.
50766         * lib/unictype/ctype_lower.c: New file.
50767         * lib/unictype/ctype_print.c: New file.
50768         * lib/unictype/ctype_punct.c: New file.
50769         * lib/unictype/ctype_space.c: New file.
50770         * lib/unictype/ctype_upper.c: New file.
50771         * lib/unictype/ctype_xdigit.c: New file.
50772         * lib/unictype/decdigit.c: New file.
50773         * lib/unictype/digit.c: New file.
50774         * lib/unictype/identsyntaxmap.h: New file.
50775         * lib/unictype/mirror.c: New file.
50776         * lib/unictype/numeric.c: New file.
50777         * lib/unictype/pr_alphabetic.c: New file.
50778         * lib/unictype/pr_ascii_hex_digit.c: New file.
50779         * lib/unictype/pr_bidi_arabic_digit.c: New file.
50780         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
50781         * lib/unictype/pr_bidi_block_separator.c: New file.
50782         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
50783         * lib/unictype/pr_bidi_common_separator.c: New file.
50784         * lib/unictype/pr_bidi_control.c: New file.
50785         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
50786         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
50787         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
50788         * lib/unictype/pr_bidi_european_digit.c: New file.
50789         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
50790         * lib/unictype/pr_bidi_left_to_right.c: New file.
50791         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
50792         * lib/unictype/pr_bidi_other_neutral.c: New file.
50793         * lib/unictype/pr_bidi_pdf.c: New file.
50794         * lib/unictype/pr_bidi_segment_separator.c: New file.
50795         * lib/unictype/pr_bidi_whitespace.c: New file.
50796         * lib/unictype/pr_byname.c: New file.
50797         * lib/unictype/pr_byname.gperf: New file.
50798         * lib/unictype/pr_combining.c: New file.
50799         * lib/unictype/pr_composite.c: New file.
50800         * lib/unictype/pr_currency_symbol.c: New file.
50801         * lib/unictype/pr_dash.c: New file.
50802         * lib/unictype/pr_decimal_digit.c: New file.
50803         * lib/unictype/pr_default_ignorable_code_point.c: New file.
50804         * lib/unictype/pr_deprecated.c: New file.
50805         * lib/unictype/pr_diacritic.c: New file.
50806         * lib/unictype/pr_extender.c: New file.
50807         * lib/unictype/pr_format_control.c: New file.
50808         * lib/unictype/pr_grapheme_base.c: New file.
50809         * lib/unictype/pr_grapheme_extend.c: New file.
50810         * lib/unictype/pr_grapheme_link.c: New file.
50811         * lib/unictype/pr_hex_digit.c: New file.
50812         * lib/unictype/pr_hyphen.c: New file.
50813         * lib/unictype/pr_id_continue.c: New file.
50814         * lib/unictype/pr_id_start.c: New file.
50815         * lib/unictype/pr_ideographic.c: New file.
50816         * lib/unictype/pr_ids_binary_operator.c: New file.
50817         * lib/unictype/pr_ids_trinary_operator.c: New file.
50818         * lib/unictype/pr_ignorable_control.c: New file.
50819         * lib/unictype/pr_iso_control.c: New file.
50820         * lib/unictype/pr_join_control.c: New file.
50821         * lib/unictype/pr_left_of_pair.c: New file.
50822         * lib/unictype/pr_line_separator.c: New file.
50823         * lib/unictype/pr_logical_order_exception.c: New file.
50824         * lib/unictype/pr_lowercase.c: New file.
50825         * lib/unictype/pr_math.c: New file.
50826         * lib/unictype/pr_non_break.c: New file.
50827         * lib/unictype/pr_not_a_character.c: New file.
50828         * lib/unictype/pr_numeric.c: New file.
50829         * lib/unictype/pr_other_alphabetic.c: New file.
50830         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
50831         * lib/unictype/pr_other_grapheme_extend.c: New file.
50832         * lib/unictype/pr_other_id_continue.c: New file.
50833         * lib/unictype/pr_other_id_start.c: New file.
50834         * lib/unictype/pr_other_lowercase.c: New file.
50835         * lib/unictype/pr_other_math.c: New file.
50836         * lib/unictype/pr_other_uppercase.c: New file.
50837         * lib/unictype/pr_paired_punctuation.c: New file.
50838         * lib/unictype/pr_paragraph_separator.c: New file.
50839         * lib/unictype/pr_pattern_syntax.c: New file.
50840         * lib/unictype/pr_pattern_white_space.c: New file.
50841         * lib/unictype/pr_private_use.c: New file.
50842         * lib/unictype/pr_punctuation.c: New file.
50843         * lib/unictype/pr_quotation_mark.c: New file.
50844         * lib/unictype/pr_radical.c: New file.
50845         * lib/unictype/pr_sentence_terminal.c: New file.
50846         * lib/unictype/pr_soft_dotted.c: New file.
50847         * lib/unictype/pr_space.c: New file.
50848         * lib/unictype/pr_terminal_punctuation.c: New file.
50849         * lib/unictype/pr_test.c: New file.
50850         * lib/unictype/pr_titlecase.c: New file.
50851         * lib/unictype/pr_unassigned_code_value.c: New file.
50852         * lib/unictype/pr_unified_ideograph.c: New file.
50853         * lib/unictype/pr_uppercase.c: New file.
50854         * lib/unictype/pr_variation_selector.c: New file.
50855         * lib/unictype/pr_white_space.c: New file.
50856         * lib/unictype/pr_xid_continue.c: New file.
50857         * lib/unictype/pr_xid_start.c: New file.
50858         * lib/unictype/pr_zero_width.c: New file.
50859         * lib/unictype/scripts.c: New file.
50860         * lib/unictype/sy_c_ident.c: New file.
50861         * lib/unictype/sy_c_whitespace.c: New file.
50862         * lib/unictype/sy_java_ident.c: New file.
50863         * lib/unictype/sy_java_whitespace.c: New file.
50864
50865         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
50866         Unicode 5.0.0.
50867         * lib/unictype/blocks.h: Likewise.
50868         * lib/unictype/categ_C.h: Likewise.
50869         * lib/unictype/categ_Cc.h: Likewise.
50870         * lib/unictype/categ_Cf.h: Likewise.
50871         * lib/unictype/categ_Cn.h: Likewise.
50872         * lib/unictype/categ_Co.h: Likewise.
50873         * lib/unictype/categ_Cs.h: Likewise.
50874         * lib/unictype/categ_L.h: Likewise.
50875         * lib/unictype/categ_Ll.h: Likewise.
50876         * lib/unictype/categ_Lm.h: Likewise.
50877         * lib/unictype/categ_Lo.h: Likewise.
50878         * lib/unictype/categ_Lt.h: Likewise.
50879         * lib/unictype/categ_Lu.h: Likewise.
50880         * lib/unictype/categ_M.h: Likewise.
50881         * lib/unictype/categ_Mc.h: Likewise.
50882         * lib/unictype/categ_Me.h: Likewise.
50883         * lib/unictype/categ_Mn.h: Likewise.
50884         * lib/unictype/categ_N.h: Likewise.
50885         * lib/unictype/categ_Nd.h: Likewise.
50886         * lib/unictype/categ_Nl.h: Likewise.
50887         * lib/unictype/categ_No.h: Likewise.
50888         * lib/unictype/categ_P.h: Likewise.
50889         * lib/unictype/categ_Pc.h: Likewise.
50890         * lib/unictype/categ_Pd.h: Likewise.
50891         * lib/unictype/categ_Pe.h: Likewise.
50892         * lib/unictype/categ_Pf.h: Likewise.
50893         * lib/unictype/categ_Pi.h: Likewise.
50894         * lib/unictype/categ_Po.h: Likewise.
50895         * lib/unictype/categ_Ps.h: Likewise.
50896         * lib/unictype/categ_S.h: Likewise.
50897         * lib/unictype/categ_Sc.h: Likewise.
50898         * lib/unictype/categ_Sk.h: Likewise.
50899         * lib/unictype/categ_Sm.h: Likewise.
50900         * lib/unictype/categ_So.h: Likewise.
50901         * lib/unictype/categ_Z.h: Likewise.
50902         * lib/unictype/categ_Zl.h: Likewise.
50903         * lib/unictype/categ_Zp.h: Likewise.
50904         * lib/unictype/categ_Zs.h: Likewise.
50905         * lib/unictype/categ_of.h: Likewise.
50906         * lib/unictype/combining.h: Likewise.
50907         * lib/unictype/ctype_alnum.h: Likewise.
50908         * lib/unictype/ctype_alpha.h: Likewise.
50909         * lib/unictype/ctype_blank.h: Likewise.
50910         * lib/unictype/ctype_cntrl.h: Likewise.
50911         * lib/unictype/ctype_digit.h: Likewise.
50912         * lib/unictype/ctype_graph.h: Likewise.
50913         * lib/unictype/ctype_lower.h: Likewise.
50914         * lib/unictype/ctype_print.h: Likewise.
50915         * lib/unictype/ctype_punct.h: Likewise.
50916         * lib/unictype/ctype_space.h: Likewise.
50917         * lib/unictype/ctype_upper.h: Likewise.
50918         * lib/unictype/ctype_xdigit.h: Likewise.
50919         * lib/unictype/decdigit.h: Likewise.
50920         * lib/unictype/digit.h: Likewise.
50921         * lib/unictype/mirror.h: Likewise.
50922         * lib/unictype/numeric.h: Likewise.
50923         * lib/unictype/pr_alphabetic.h: Likewise.
50924         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50925         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50926         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50927         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50928         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50929         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50930         * lib/unictype/pr_bidi_control.h: Likewise.
50931         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50932         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50933         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50934         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50935         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50936         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50937         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50938         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50939         * lib/unictype/pr_bidi_pdf.h: Likewise.
50940         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50941         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50942         * lib/unictype/pr_combining.h: Likewise.
50943         * lib/unictype/pr_composite.h: Likewise.
50944         * lib/unictype/pr_currency_symbol.h: Likewise.
50945         * lib/unictype/pr_dash.h: Likewise.
50946         * lib/unictype/pr_decimal_digit.h: Likewise.
50947         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50948         * lib/unictype/pr_deprecated.h: Likewise.
50949         * lib/unictype/pr_diacritic.h: Likewise.
50950         * lib/unictype/pr_extender.h: Likewise.
50951         * lib/unictype/pr_format_control.h: Likewise.
50952         * lib/unictype/pr_grapheme_base.h: Likewise.
50953         * lib/unictype/pr_grapheme_extend.h: Likewise.
50954         * lib/unictype/pr_grapheme_link.h: Likewise.
50955         * lib/unictype/pr_hex_digit.h: Likewise.
50956         * lib/unictype/pr_hyphen.h: Likewise.
50957         * lib/unictype/pr_id_continue.h: Likewise.
50958         * lib/unictype/pr_id_start.h: Likewise.
50959         * lib/unictype/pr_ideographic.h: Likewise.
50960         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50961         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50962         * lib/unictype/pr_ignorable_control.h: Likewise.
50963         * lib/unictype/pr_iso_control.h: Likewise.
50964         * lib/unictype/pr_join_control.h: Likewise.
50965         * lib/unictype/pr_left_of_pair.h: Likewise.
50966         * lib/unictype/pr_line_separator.h: Likewise.
50967         * lib/unictype/pr_logical_order_exception.h: Likewise.
50968         * lib/unictype/pr_lowercase.h: Likewise.
50969         * lib/unictype/pr_math.h: Likewise.
50970         * lib/unictype/pr_non_break.h: Likewise.
50971         * lib/unictype/pr_not_a_character.h: Likewise.
50972         * lib/unictype/pr_numeric.h: Likewise.
50973         * lib/unictype/pr_other_alphabetic.h: Likewise.
50974         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50975         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50976         * lib/unictype/pr_other_id_continue.h: Likewise.
50977         * lib/unictype/pr_other_id_start.h: Likewise.
50978         * lib/unictype/pr_other_lowercase.h: Likewise.
50979         * lib/unictype/pr_other_math.h: Likewise.
50980         * lib/unictype/pr_other_uppercase.h: Likewise.
50981         * lib/unictype/pr_paired_punctuation.h: Likewise.
50982         * lib/unictype/pr_paragraph_separator.h: Likewise.
50983         * lib/unictype/pr_pattern_syntax.h: Likewise.
50984         * lib/unictype/pr_pattern_white_space.h: Likewise.
50985         * lib/unictype/pr_private_use.h: Likewise.
50986         * lib/unictype/pr_punctuation.h: Likewise.
50987         * lib/unictype/pr_quotation_mark.h: Likewise.
50988         * lib/unictype/pr_radical.h: Likewise.
50989         * lib/unictype/pr_sentence_terminal.h: Likewise.
50990         * lib/unictype/pr_soft_dotted.h: Likewise.
50991         * lib/unictype/pr_space.h: Likewise.
50992         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50993         * lib/unictype/pr_titlecase.h: Likewise.
50994         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50995         * lib/unictype/pr_unified_ideograph.h: Likewise.
50996         * lib/unictype/pr_uppercase.h: Likewise.
50997         * lib/unictype/pr_variation_selector.h: Likewise.
50998         * lib/unictype/pr_white_space.h: Likewise.
50999         * lib/unictype/pr_xid_continue.h: Likewise.
51000         * lib/unictype/pr_xid_start.h: Likewise.
51001         * lib/unictype/pr_zero_width.h: Likewise.
51002         * lib/unictype/scripts.h: Likewise.
51003         * lib/unictype/scripts_byname.gperf: Likewise.
51004         * lib/unictype/sy_c_ident.h: Likewise.
51005         * lib/unictype/sy_c_whitespace.h: Likewise.
51006         * lib/unictype/sy_java_ident.h: Likewise.
51007         * lib/unictype/sy_java_whitespace.h: Likewise.
51008
51009         * lib/unictype/Makefile: New file.
51010         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
51011         glibc.
51012         * lib/unictype/3level.h: New file, copied from glibc.
51013         * lib/unictype/3levelbit.h: New file.
51014
51015 2007-11-11  Bruno Haible  <bruno@clisp.org>
51016
51017         * modules/gperf: New file.
51018         * modules/iconv_open (Depends-on): Add it.
51019         (Makefile.am): Remove the GPERF definition.
51020
51021 2007-11-11  Bruno Haible  <bruno@clisp.org>
51022
51023         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
51024         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
51025
51026 2007-11-11  Bruno Haible  <bruno@clisp.org>
51027
51028         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
51029         (usage): Remove function.
51030
51031 2007-11-11  Bruno Haible  <bruno@clisp.org>
51032
51033         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
51034         gl_FUNC_CEILF_LIBS.
51035         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
51036         gl_FUNC_CEIL_LIBS.
51037         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
51038         gl_FUNC_CEILL_LIBS.
51039         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
51040         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
51041         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
51042
51043 2007-11-11  Bruno Haible  <bruno@clisp.org>
51044
51045         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
51046         roundf were declared but do not exist on functions.
51047         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
51048         roundl were declared but do not exist on functions.
51049         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
51050         HAVE_FLOORL_AND_CEILL, respectively.
51051         Needed for Sun C on Solaris 10.
51052
51053 2007-11-11  Bruno Haible  <bruno@clisp.org>
51054
51055         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
51056         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
51057         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
51058         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
51059         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
51060         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
51061         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
51062         HAVE_DECL_ROUNDF.
51063         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
51064         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
51065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
51066         of HAVE_DECL_ROUND*.
51067         * modules/math (Makefile.am): Update.
51068
51069 2007-11-10  Bruno Haible  <bruno@clisp.org>
51070
51071         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
51072         ptrdiff_t as m4/intl.m4.
51073
51074 2007-11-10  Jim Meyering  <meyering@redhat.com>
51075
51076         Avoid link failure for the argmatch test.
51077         * tests/test-argmatch.c (usage): Define function to avoid a link
51078         failure: argmatch_die requires a usage function.
51079
51080 2007-11-09  Bruno Haible  <bruno@clisp.org>
51081
51082         * doc/functions/snprintf.texi: Mention BeOS deficiency.
51083         * doc/functions/vsnprintf.texi: Likewise.
51084         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
51085         with a size argument < 2.
51086
51087 2007-11-09  Bruno Haible  <bruno@clisp.org>
51088
51089         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
51090         buffer. Fixes an inefficiency introduced on 2007-11-03.
51091
51092 2007-11-09  Bruno Haible  <bruno@clisp.org>
51093
51094         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
51095         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
51096
51097 2007-11-08  Jim Meyering  <meyering@redhat.com>
51098
51099         Change cache variable name prefix "jm_" to "gl_" everywhere.
51100         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
51101         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
51102         * m4/uptime.m4: s/gl_/jm_/
51103
51104 2007-11-07  Bruno Haible  <bruno@clisp.org>
51105
51106         Update to GNU gettext 0.17.
51107         * m4/intl.m4: Update to GNU gettext 0.17.
51108         * m4/po.m4: Likewise.
51109         * modules/gettext (Files): Remove m4/ulonglong.m4.
51110         (configure.ac): Require gettext infrastructure from version 0.17.
51111
51112 2007-11-06  Bruno Haible  <bruno@clisp.org>
51113
51114         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
51115         symbolic values are not defined in a public header.
51116         * lib/freadable.c (freadable) [QNX]: Likewise.
51117         * lib/freadahead.c (freadahead) [QNX]: Likewise.
51118         * lib/freading.c (freading) [QNX]: Likewise.
51119         * lib/fseterr.c (fseterr) [QNX]: Likewise.
51120         * lib/fwritable.c (fwritable) [QNX]: Likewise.
51121         * lib/fwriting.c (fwriting) [QNX]: Likewise.
51122         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
51123         Reported by Alain Magloire.
51124
51125         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
51126
51127 2007-11-05  Bruno Haible  <bruno@clisp.org>
51128
51129         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
51130         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
51131         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
51132         Reported by Eric Blake.
51133
51134 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51135             Bruno Haible  <bruno@clisp.org>
51136
51137         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
51138         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
51139         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
51140         (malloc): Undefine also before including <stdlib.h>.
51141         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
51142         Needed on OSF/1 4.0.
51143
51144 2007-11-05  Jim Meyering  <meyering@redhat.com>
51145
51146         git-version-gen: sync from coreutils.
51147         * build-aux/git-version-gen: Add comments.
51148         Change the first '-' to '.' in the snapshot version string,
51149         e.g., 6.9-377-08144 -> 6.9.377-08144
51150         Remove first parameter.
51151         Don't declare a version "-dirty" merely because a time
51152         stamp has changed.
51153
51154 2007-11-04  Bruno Haible  <bruno@clisp.org>
51155
51156         * lib/lock.h: Protect all macro definitions containing an 'if'
51157         statement through a "do { ... } while (0)".
51158         * lib/tls.h: Likewise.
51159
51160 2007-11-04  Bruno Haible  <bruno@clisp.org>
51161
51162         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
51163
51164 2007-11-04  Bruno Haible  <bruno@clisp.org>
51165
51166         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
51167         * modules/fprintf-posix (Depends-on): Add nocrash.
51168         * modules/snprintf-posix (Depends-on): Likewise.
51169         * modules/sprintf-posix (Depends-on): Likewise.
51170         * modules/vasnprintf-posix (Depends-on): Likewise.
51171         * modules/vasprintf-posix (Depends-on): Likewise.
51172         * modules/vfprintf-posix (Depends-on): Likewise.
51173         * modules/vsnprintf-posix (Depends-on): Likewise.
51174         * modules/vsprintf-posix (Depends-on): Likewise.
51175         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51176         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51177         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51178         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51179         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51180         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51181         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51182
51183 2007-11-04  Bruno Haible  <bruno@clisp.org>
51184
51185         * modules/nocrash: New file.
51186         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
51187         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
51188
51189 2007-11-04  Bruno Haible  <bruno@clisp.org>
51190
51191         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
51192         precision handling.
51193         * tests/test-vasprintf-posix.c (test_function): Likewise.
51194         * tests/test-snprintf-posix.h (test_function): Likewise.
51195         * tests/test-sprintf-posix.h (test_function): Likewise.
51196
51197         Fix *printf behaviour for large precisions on mingw and BeOS.
51198         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
51199         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
51200         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
51201         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51202         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51203         gl_PRINTF_PRECISION and test its result. Invoke
51204         gl_PREREQ_VASNPRINTF_PRECISION.
51205         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51206         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51207         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51208         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51209         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51210         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51211         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51212         * doc/functions/fprintf.texi: Update.
51213         * doc/functions/printf.texi: Update.
51214         * doc/functions/snprintf.texi: Update.
51215         * doc/functions/sprintf.texi: Update.
51216         * doc/functions/vfprintf.texi: Update.
51217         * doc/functions/vprintf.texi: Update.
51218         * doc/functions/vsnprintf.texi: Update.
51219         * doc/functions/vsprintf.texi: Update.
51220
51221 2007-11-04  Bruno Haible  <bruno@clisp.org>
51222
51223         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
51224
51225 2007-11-04  Bruno Haible  <bruno@clisp.org>
51226
51227         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
51228         Reported by Sylvain Beucler <beuc@gnu.org>.
51229
51230 2007-11-03  Bruno Haible  <bruno@clisp.org>
51231
51232         * tests/test-fprintf-posix2.sh: New file.
51233         * tests/test-fprintf-posix2.c: New file.
51234         * modules/fprintf-posix-tests (Files): Add them.
51235         (TESTS): Add test-fprintf-posix2.sh.
51236         (configure.ac): Check for getrlimit and setrlimit.
51237         (check_PROGRAMS): Add test-fprintf-posix2.
51238
51239         * tests/test-printf-posix2.sh: New file.
51240         * tests/test-printf-posix2.c: New file.
51241         * modules/printf-posix-tests (Files): Add them.
51242         (TESTS): Add test-printf-posix2.sh.
51243         (configure.ac): Check for getrlimit and setrlimit.
51244         (check_PROGRAMS): Add test-printf-posix2.
51245
51246         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
51247         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
51248         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
51249         (decode_double): New function, copied from decode_long_double.
51250         (scale10_round_decimal_decoded): New function, extracted from
51251         scale10_round_decimal_long_double.
51252         (scale10_round_decimal_long_double): Use it.
51253         (scale10_round_decimal_double): New function.
51254         (floorlog10): New function.
51255         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
51256         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
51257         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51258         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51259         gl_PRINTF_ENOMEM and test its result. Invoke
51260         gl_PREREQ_VASNPRINTF_ENOMEM.
51261         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51262         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51263         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51264         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51265         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51266         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51267         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51268         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
51269         * modules/snprintf-posix (Depends-on): Likewise.
51270         * modules/sprintf-posix (Depends-on): Likewise.
51271         * modules/vasnprintf-posix (Depends-on): Likewise.
51272         * modules/vasprintf-posix (Depends-on): Likewise.
51273         * modules/vfprintf-posix (Depends-on): Likewise.
51274         * modules/vsnprintf-posix (Depends-on): Likewise.
51275         * modules/vsprintf-posix (Depends-on): Likewise.
51276         * doc/functions/fprintf.texi: Update.
51277         * doc/functions/printf.texi: Update.
51278         * doc/functions/snprintf.texi: Update.
51279         * doc/functions/sprintf.texi: Update.
51280         * doc/functions/vfprintf.texi: Update.
51281         * doc/functions/vprintf.texi: Update.
51282         * doc/functions/vsnprintf.texi: Update.
51283         * doc/functions/vsprintf.texi: Update.
51284
51285 2007-11-03  Bruno Haible  <bruno@clisp.org>
51286
51287         * modules/frexp-nolibm-tests: New file.
51288
51289         * modules/frexp-nolibm: New file.
51290         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
51291
51292 2007-11-03  Bruno Haible  <bruno@clisp.org>
51293
51294         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
51295         value is C99 compliant.
51296         Needed for OSF/1 5.1.
51297
51298 2007-11-03  Bruno Haible  <bruno@clisp.org>
51299
51300         Fix out-of-memory handling of vasnprintf.
51301         * lib/printf-parse.c: Include <errno.h>.
51302         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
51303         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
51304         is already set.
51305
51306 2007-11-02  Eric Blake  <ebb9@byu.net>
51307
51308         Fix tests on cygwin.
51309         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
51310
51311 2007-11-01  Bruno Haible  <bruno@clisp.org>
51312
51313         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
51314         warning.
51315         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
51316         needed for POSIX compatibility.
51317
51318 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
51319
51320         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
51321         for compatibility with GNU.
51322
51323 2007-11-01  Bruno Haible  <bruno@clisp.org>
51324
51325         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
51326         (putenv): Renamed from rpl_putenv. Change argument type from
51327         'const char *' to 'char *'.
51328         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
51329         of defining putenv in config.h, just set REPLACE_PUTENV.
51330         * modules/putenv (Depends-on): Add stdlib.
51331         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51332         (Include): Use <stdlib.h>.
51333         * lib/stdlib.in.h (putenv): New declaration.
51334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
51335         REPLACE_PUTENV.
51336         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
51337         REPLACE_PUTENV.
51338         Needed for MacOS X 10.5.0.
51339         Reported by Peter O'Gorman <peter@pogma.com>.
51340
51341 2007-11-01  Jim Meyering  <meyering@redhat.com>
51342
51343         Treat an empty date string exactly like "0".
51344         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
51345         if the remaining date string (to be parsed) is empty, use "0".
51346         Reported by Mischa Molhoek and discussed in this thread:
51347         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
51348
51349 2007-10-31  Bruno Haible  <bruno@clisp.org>
51350
51351         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
51352         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
51353         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
51354         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
51355         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
51356         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
51357
51358 2007-10-31  Bruno Haible  <bruno@clisp.org>
51359
51360         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
51361         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
51362         (AC_TYPE_LONG_LONG_INT): Use it.
51363         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
51364         it as well.
51365         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
51366         to m4/longlong.m4.
51367         * modules/stdint (Files): Remove m4/ulonglong.m4.
51368         * modules/strtoull (Files): Use m4/longlong.m4 instead of
51369         m4/ulonglong.m4.
51370         * modules/strtoumax (Files): Likewise.
51371
51372 2007-10-30  Bruno Haible  <bruno@clisp.org>
51373
51374         * modules/xvasprintf-posix: New file.
51375         Suggested by Eric Blake.
51376
51377 2007-10-30  Bruno Haible  <bruno@clisp.org>
51378
51379         * modules/xprintf-posix-tests: New file.
51380         * tests/test-xprintf-posix.sh: New file.
51381         * tests/test-xprintf-posix.c: New file.
51382         * tests/test-xfprintf-posix.c: New file.
51383
51384         * modules/xprintf-posix: New file.
51385
51386 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51387
51388         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
51389         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
51390         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
51391
51392 2007-10-29  Bruno Haible  <bruno@clisp.org>
51393
51394         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
51395         contain the special marker '_cv_'.
51396         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51397         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51398         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51399         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
51400         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51401         Reported by Ralf Wildenhues.
51402
51403 2007-10-29  Bruno Haible  <bruno@clisp.org>
51404
51405         * gnulib-tool (func_import): When --lgpl is not specified, set
51406         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
51407         GPLv3.
51408         Reported by Simon Josefsson.
51409
51410 2007-10-28  Bruno Haible  <bruno@clisp.org>
51411
51412         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
51413         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
51414         HAVE_DECL_ISFINITE.
51415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51416         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
51417         HAVE_DECL_ISFINITE.
51418
51419 2007-10-28  Bruno Haible  <bruno@clisp.org>
51420
51421         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
51422         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
51423
51424 2007-10-28  Bruno Haible  <bruno@clisp.org>
51425
51426         Fix link errors with Sun C 5.0 on Solaris 10.
51427         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
51428         function is declared but not present in the compiler's libm.
51429         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
51430         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51431         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
51432         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
51433         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
51434         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
51435         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
51436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51437         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
51438         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
51439         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
51440         HAVE_DECL_FLOORL.
51441
51442 2007-10-28  Bruno Haible  <bruno@clisp.org>
51443
51444         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
51445         gl_FUNC_FLOORL. Cache the result.
51446         (gl_FUNC_FLOORL): Use it.
51447         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
51448         gl_FUNC_CEILL. Cache the result.
51449         (gl_FUNC_CEILL): Use it.
51450
51451         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
51452         gl_FUNC_FLOOR. Cache the result.
51453         (gl_FUNC_FLOOR): Use it.
51454         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
51455         gl_FUNC_CEIL. Cache the result.
51456         (gl_FUNC_CEIL): Use it.
51457
51458         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
51459         gl_FUNC_FLOORF. Cache the result.
51460         (gl_FUNC_FLOORF): Use it.
51461         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
51462         gl_FUNC_CEILF. Cache the result.
51463         (gl_FUNC_CEILF): Use it.
51464
51465 2007-10-28  Bruno Haible  <bruno@clisp.org>
51466
51467         * gnulib-tool: Allow specifying the LGPL version number through
51468         --lgpl=2 or --lgpl=3.
51469         (func_usage): Document --lgpl with argument.
51470         Handle --lgpl=... arguments.
51471         (func_import): Recognize also gl_LGPL calls with an argument. When
51472         --lgpl=2 is used and the module's license is just LGPL, report an
51473         error. Set sed_transform_lib_file according to the lgpl variable. In
51474         the generated files, use --lgpl or gl_LGPL invocations with argument,
51475         if necessary.
51476         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
51477         an LGPv2+ license.
51478         * doc/gnulib-tool.texi (Modified imports): Update explanation of
51479         gl_LGPL macro.
51480
51481 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51482             Bruno Haible  <bruno@clisp.org>
51483
51484         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
51485         (u16_uctomb_aux): Likewise.
51486         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
51487         !HAVE_INLINE.
51488         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
51489
51490 2007-10-28  Bruno Haible  <bruno@clisp.org>
51491
51492         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
51493         Invoke AM_GETTEXT_OPTION if it exists.
51494         * modules/vasprintf: Likewise.
51495         * modules/verror: Likewise.
51496         * modules/xprintf: Likewise.
51497         * modules/xvasprintf: Likewise.
51498
51499 2007-10-27  Ben Pfaff  <blp@gnu.org>
51500
51501         * lib/math.in.h: Define isfinite macro and prototypes for
51502         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
51503         implementations.
51504         * m4/math_h.m4: New substitutions for isfinite module.
51505         * lib/isfinite.c: New file.
51506         * m4/isfinite.m4: New file.
51507         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
51508         * modules/isfinite: New file.
51509         * modules/isfinite-tests: New file.
51510         * tests/tests-isfinite.c: New file.
51511         * doc/functions/isfinite.texi: Mention isfinite module.
51512         * MODULES.html.sh: Mention new module.
51513
51514 2007-10-27  Ben Pfaff  <blp@gnu.org>
51515
51516         Ralf Wildenhues reported that Tru64 4.0D declares the round
51517         functions but does not have definitions.
51518         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
51519         cannot be found in any library, set the output variable to
51520         "missing" instead of "".
51521         * m4/round.m4: Also use our substitute if we cannot find round in
51522         any library, even if it is declared.
51523         * m4/roundf.m4: Likewise for roundf.
51524         * m4/roundl.m4: Likewise for roundl.
51525         * lib/math.in.h: Undefine roundf, round, roundl before defining
51526         their replacements, to allow for hypothetical systems where these
51527         may be defined as macros but not available in libraries.
51528
51529 2007-10-27  Bruno Haible  <bruno@clisp.org>
51530
51531         * doc/gnulib.texi: Invoke @firstparagraphindent.
51532         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
51533         changes in gnulib.
51534         (Source changes): New section.
51535
51536 2007-10-26  Bruno Haible  <bruno@clisp.org>
51537
51538         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
51539         borrowed from autoconf.
51540
51541 2007-10-26  Bruno Haible  <bruno@clisp.org>
51542
51543         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
51544         strerror returned the empty string. Needed on HP-UX 11.00.
51545
51546 2007-10-24  Micah Cowan  <micah@cowan.name>
51547
51548         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
51549         * build-aux/bootstrap: Remove support for now-unnecessary option,
51550         --cvs-user, and envvars CVS_USER, CVS_RSH.
51551
51552 2007-10-24  Jim Meyering  <meyering@redhat.com>
51553
51554         Avoid diagnostics from sha1sum when there is no cached checksum.
51555         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
51556         if the po.s1 file hasn't been created yet.
51557
51558         * build-aux/bootstrap: Sync from coreutils:
51559         2007-10-24  Jim Meyering  <meyering@redhat.com>
51560         Get gnulib from the git repository, not from an obsolete cvs one.
51561         * build-aux/bootstrap: Suggestion from Micah Cowan.
51562         2007-10-04  Jim Meyering  <jim@meyering.net>
51563         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
51564         (update_po_files): Work also when there are no .po files in po/.
51565
51566 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51567
51568         * README: Append ".git" to git and cg examples.
51569         Problem reported by Benoit Sigoure.
51570
51571 2007-10-23  Micah Cowan  <micah@cowan.name>
51572
51573         * users.txt: Add wget.
51574
51575 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51576
51577         Fix linking of some unistdio tests on FreeBSD.
51578         * modules/unistdio/u16-vsnprintf-tests
51579         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
51580         * modules/unistdio/u16-vsprintf-tests
51581         (test_u16_vsnprintf1_LDADD): Likewise.
51582         * modules/unistdio/u32-vsnprintf-tests
51583         (test_u32_vsnprintf1_LDADD): Likewise.
51584         * modules/unistdio/u32-vsprintf-tests
51585         (test_u32_vsprintf1_LDADD): Likewise.
51586         * modules/unistdio/u8-vsnprintf-tests
51587         (test_u8_vsnprintf1_LDADD): Likewise.
51588         * modules/unistdio/u8-vsprintf-tests
51589         (test_u8_vsprintf1_LDADD): Likewise.
51590         * modules/unistdio/ulc-vsnprintf-tests
51591         (test_ulc_vsnprintf1_LDADD): Likewise.
51592         * modules/unistdio/ulc-vsprintf-tests
51593         (test_ulc_vsprintf1_LDADD): Likewise.
51594
51595         Fix linking of some uniconv tests on FreeBSD.
51596         * modules/uniconv/u16-conv-from-enc-tests
51597         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
51598         * modules/uniconv/u16-conv-to-enc-tests
51599         (test_u16_conv_to_enc_LDADD): Likewise.
51600         * modules/uniconv/u16-strconv-from-enc-tests
51601         (test_u16_strconv_from_enc_LDADD): Likewise.
51602         * modules/uniconv/u16-strconv-to-enc-tests
51603         (test_u16_strconv_to_enc_LDADD): Likewise.
51604         * modules/uniconv/u32-conv-from-enc-tests
51605         (test_u32_conv_from_enc_LDADD): Likewise.
51606         * modules/uniconv/u32-conv-to-enc-tests
51607         (test_u32_conv_to_enc_LDADD): Likewise.
51608         * modules/uniconv/u32-strconv-from-enc-tests
51609         (test_u32_strconv_from_enc_LDADD): Likewise.
51610         * modules/uniconv/u32-strconv-to-enc-tests
51611         (test_u32_strconv_to_enc_LDADD): Likewise.
51612         * modules/uniconv/u8-conv-from-enc-tests
51613         (test_u8_conv_from_enc_LDADD): Likewise.
51614         * modules/uniconv/u8-conv-to-enc-tests
51615         (test_u8_conv_to_enc_LDADD): Likewise.
51616         * modules/uniconv/u8-strconv-from-enc-tests
51617         (test_u8_strconv_from_enc_LDADD): Likewise.
51618         * modules/uniconv/u8-strconv-to-enc-tests
51619         (test_u8_strconv_to_enc_LDADD): Likewise.
51620
51621 2007-10-22  Bruno Haible  <bruno@clisp.org>
51622
51623         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
51624         size.
51625
51626 2007-10-22  Eric Blake  <ebb9@byu.net>
51627
51628         Tweak x*printf documentation.
51629         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
51630         variable name and comments.
51631         Suggested by Bruno Haible.
51632
51633 2007-10-22  Bruno Haible  <bruno@clisp.org>
51634
51635         * lib/acl.c (copy_acl): Fix file name in comment.
51636
51637 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51638
51639         Fix Tru64 problem with stdbool.h.
51640         * lib/stdbool.in.h (false, true):
51641         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
51642         Don't declare as an enum in this situation; it runs afoul of Tru64.
51643         Problem reported by Steven M. Schweda in
51644         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
51645
51646 2007-10-22  Eric Blake  <ebb9@byu.net>
51647
51648         Also wrap vf?printf.
51649         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
51650         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
51651         (xvprintf, xvfprintf): New functions.
51652
51653 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51654
51655         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
51656         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
51657
51658         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
51659         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
51660
51661 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51662
51663         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
51664         by Bruno Haible.
51665
51666 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51667
51668         * lib/getloadavg.c
51669         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
51670         Undef `sys' after including sys/table.h, for Tru64 4.0D.
51671
51672         * tests/test-i-ring.c: Work for C89.
51673
51674 2007-10-22  Bruno Haible  <bruno@clisp.org>
51675
51676         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
51677         -1u, in preprocessor expression, so that we don't test for the bug
51678         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
51679         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
51680
51681 2007-10-22  Eric Blake  <ebb9@byu.net>
51682
51683         * tests/test-yesno.sh: Silence stderr during test.
51684
51685 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51686
51687         * modules/crypto/gc-camellia: New file.
51688
51689         * m4/gc-camellia.m4: New file.
51690
51691         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
51692
51693         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
51694
51695 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51696
51697         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
51698         --help to stdout.  Reported by sms@antinode.org (Steven
51699         M. Schweda).
51700
51701 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51702
51703         * users.txt: Fix link to libksba.
51704
51705 2007-10-21  Ben Pfaff  <blp@gnu.org>
51706
51707         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
51708         round.c roundf implementation that depends on floorf and ceilf to
51709         be tested unconditionally.
51710
51711 2007-10-21  Ben Pfaff  <blp@gnu.org>
51712
51713         * m4/check-libm-func.m4: Removed.
51714         * m4/check-math-lib.m4: New file.
51715         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
51716         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
51717         definition and lack of AC_LIBOBJ([roundf]).
51718         * m4/roundl.m4: Ditto, and similarly for roundl.
51719         * modules/round: Reference new m4 file.
51720         * modules/roundf: Ditto.
51721         * modules/roundl: Ditto.
51722         * tests/test-round2.c (main): Use ROUND instead of round.
51723         Bug report from Bruno Haible.
51724
51725 2007-10-21  Bruno Haible  <bruno@clisp.org>
51726
51727         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
51728         context.
51729
51730 2007-10-21  Bruno Haible  <bruno@clisp.org>
51731
51732         * tests/test-wcwidth.c (main): Allow negative result for some control
51733         characters.
51734
51735         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
51736         Needed on OSF/1 5.1.
51737
51738 2007-10-21  Bruno Haible  <bruno@clisp.org>
51739
51740         * tests/test-floorf1.c: Include isnanf.h.
51741         (main): Use isnanf() instead of isnan().
51742         * tests/test-ceilf1.c: Include isnanf.h.
51743         (main): Use isnanf() instead of isnan().
51744         * tests/test-truncf1.c: Include isnanf.h.
51745         (main): Use isnanf() instead of isnan().
51746         * tests/test-roundf1.c: Include isnanf.h.
51747         (main): Use isnanf() instead of isnan().
51748
51749 2007-10-21  Eric Blake  <ebb9@byu.net>
51750
51751         * users.txt: Update URL for m4.
51752
51753 2007-10-21  Bruno Haible  <bruno@clisp.org>
51754
51755         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
51756
51757 2007-10-21  Bruno Haible  <bruno@clisp.org>
51758
51759         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
51760         Git's management files if the CVS files are not present.
51761
51762 2007-10-20  Bruno Haible  <bruno@clisp.org>
51763
51764         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
51765         gcc-3.4.x.
51766
51767 2007-10-20  Ben Pfaff  <blp@gnu.org>
51768
51769         * lib/math.in.h: Declare round, roundf, roundl if we are providing
51770         implementations.
51771         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
51772         * lib/round.c: New file.
51773         * lib/roundf.c: New file.
51774         * lib/roundl.c: New file.
51775         * m4/round.m4: New file.
51776         * m4/roundf.m4: New file.
51777         * m4/roundl.m4: New file.
51778         * m4/check-libm-func-m4: New file.
51779         * modules/math: Replace round, roundf, roundl related @VARS@ in
51780         math.in.h.
51781         * modules/round: New file.
51782         * modules/round-tests: New file.
51783         * modules/roundf: New file.
51784         * modules/roundf-tests: New file.
51785         * modules/roundl: New file.
51786         * modules/roundl-tests: New file.
51787         * tests/test-round1.c: New file.
51788         * tests/test-round2.c: New file.
51789         * tests/test-roundf1.c: New file.
51790         * tests/test-roundf2.c: New file.
51791         * tests/test-roundl.c: New file.
51792         * doc/functions/round.texi: Mention round module.
51793         * doc/functions/roundf.texi: Mention roundf module.
51794         * doc/functions/roundl.texi: Mention roundl module.
51795         * MODULES.html.sh: Mention new modules.
51796         Thanks to Bruno Haible for suggestions.
51797
51798 2007-10-20  Jim Meyering  <meyering@redhat.com>
51799
51800         * lib/xprintf.c: Include <config.h> unconditionally.
51801
51802         Change xprintf's license to GPL.
51803         * modules/xprintf (License): s/LGPL/GPL/, since this module
51804         depends on modules (exit and exitfail) which are GPL.
51805         Suggestion from Bruno Haible.
51806
51807         xprintf fixes.
51808         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
51809         Use a clearer diagnostic.
51810         Patch from Bruno Haible.
51811
51812 2007-10-20  Bruno Haible  <bruno@clisp.org>
51813
51814         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
51815         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
51816         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51817
51818 2007-10-20  Bruno Haible  <bruno@clisp.org>
51819
51820         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
51821         precision in the comparison result > x - 1 or similar.
51822         * tests/test-ceilf2.c (correct_result_p): Likewise.
51823         * tests/test-truncf2.c (correct_result_p): Likewise.
51824         * tests/test-trunc2.c (correct_result_p): Likewise.
51825         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51826
51827 2007-10-20  Bruno Haible  <bruno@clisp.org>
51828
51829         * modules/ceil: New file.
51830         * m4/ceil.m4: New file.
51831         * doc/functions/ceil.texi: Mention the 'ceil' module.
51832
51833 2007-10-20  Bruno Haible  <bruno@clisp.org>
51834
51835         * modules/floor: New file.
51836         * m4/floor.m4: New file.
51837         * doc/functions/floor.texi: Mention the 'floor' module.
51838
51839 2007-10-20  Bruno Haible  <bruno@clisp.org>
51840
51841         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
51842         of %a.
51843         * modules/floorf-tests (Depends-on): Likewise.
51844         * modules/truncf-tests (Depends-on): Likewise.
51845         * modules/trunc-tests (Depends-on): Likewise.
51846         Reported by Ben Pfaff.
51847
51848 2007-10-19  Jim Meyering  <meyering@redhat.com>
51849
51850         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
51851         Don't bother testing specific errno values.  Just test ferror.
51852
51853         New module: xprintf
51854         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
51855
51856 2007-10-19  Bruno Haible  <bruno@clisp.org>
51857
51858         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
51859         syntax.
51860         * modules/javaexec (Makefile.am): Likewise.
51861         * modules/relocatable-prog (Makefile.am): Likewise.
51862         Suggested by Jim Meyering.
51863
51864 2007-10-18  Bruno Haible  <bruno@clisp.org>
51865
51866         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
51867         Reported by Jim Meyering.
51868
51869 2007-10-18  Eric Blake  <ebb9@byu.net>
51870
51871         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
51872
51873 2007-10-18  Bruno Haible  <bruno@clisp.org>
51874
51875         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
51876         the format string into writable memory. Needed in Fortify conditions.
51877
51878 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
51879             Bruno Haible  <bruno@clisp.org>
51880
51881         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
51882         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
51883         * modules/trim (Depends-on): Add mbchar.
51884         (configure.ac): Add gl_FUNC_MBRTOWC.
51885         (Makefile.am): Augment lib_SOURCES.
51886
51887 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51888
51889         Modify glob.c to use fstatat and dirfd, to simplify it.
51890         Suggested by Eric Blake.
51891         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
51892         Don't include <stdbool.h>; not used.
51893         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
51894         (link_exists_p): Simplify implementation, since we can now assume
51895         dirfd and fstatat.
51896         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
51897
51898 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51899
51900         * gnulib-tool (func_get_dependencies): Fix sed script to
51901         match only tests.
51902
51903 2007-10-17  Bruno Haible  <bruno@clisp.org>
51904
51905         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
51906         allow locale names without encoding suffix.
51907         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51908         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51909
51910 2007-10-16  Bruno Haible  <bruno@clisp.org>
51911
51912         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
51913         * lib/getgroups.c (getgroups): Likewise.
51914         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
51915
51916 2007-10-16  Bruno Haible  <bruno@clisp.org>
51917
51918         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
51919         * modules/malloc-posix (License): Likewise.
51920         * modules/realloc-posix (License): Likewise.
51921         * modules/calloc-posix (License): Likewise.
51922         * modules/intprops (License): Change from GPL to LGPL, with
51923         Paul Eggert's approval.
51924
51925 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51926
51927         Merge glibc changes into lib/glob.c.
51928
51929         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
51930         2007-10-15 04:59:03 UTC.  Here are the changes:
51931
51932         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
51933
51934         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
51935
51936         * lib/glob.c: Add some branch prediction throughout.
51937
51938         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
51939
51940         [BZ #5103]
51941         * lib/glob.c (glob): Recognize patterns starting \/.
51942
51943         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
51944
51945         [BZ #3996]
51946         * lib/glob.c (attribute_hidden): Define if not defined.
51947         (glob): Unescape dirname, filename or username when needed and not
51948         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
51949         is NULL.  Handle unescaped [ in pattern without closing ].
51950         Don't pass GLOB_CHECK down to recursive glob for directories.
51951         (__glob_pattern_type): New function.
51952         (__glob_pattern_p): Implement using __glob_pattern_type.
51953         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
51954         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
51955         Remove unreachable code.
51956
51957         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
51958
51959         * lib/glob.c (glob_in_dir): Add some comments and asserts to
51960         explain why there are no leaks.
51961
51962         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
51963
51964         [BZ #3253]
51965         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
51966         time, rather allocate increasingly bigger arrays of pointers, if
51967         possible with alloca, if too large with malloc.
51968
51969 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51970
51971         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
51972         Problem reported by H.Merijn Brand in
51973         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51974         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51975         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51976
51977 2007-10-15  Bruno Haible  <bruno@clisp.org>
51978
51979         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51980         with explicit rpl_ prefix.
51981         * lib/fopen.c (fopen): Likewise.
51982         * lib/freopen.c (freopen): Likewise.
51983         * lib/iconv.c (iconv): Likewise.
51984         * lib/iconv_close.c (iconv_close): Likewise.
51985
51986 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51987
51988         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51989
51990 2007-10-15  Bruno Haible  <bruno@clisp.org>
51991
51992         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51993         <stddef.h> instead of <stdlib.h> since we only need NULL.
51994         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51995
51996 2007-10-15  Bruno Haible  <bruno@clisp.org>
51997
51998         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51999         Replace paragraph talking about LIBOBJS.
52000         Reported by Colin Watson <cjwatson@debian.org>.
52001
52002 2007-10-15  Bruno Haible  <bruno@clisp.org>
52003
52004         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
52005         <stdlib.h> before using NULL.
52006
52007 2007-10-15  Simon Josefsson  <simon@josefsson.org>
52008
52009         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
52010         Reported by Albert Chin <china@thewrittenword.com>.
52011
52012 2007-10-14  Bruno Haible  <bruno@clisp.org>
52013
52014         * modules/iconv_open-utf-tests: New file.
52015         * tests/test-iconv-utf.c: New file.
52016
52017         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
52018         * modules/iconv_open-utf: New file.
52019         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
52020         (iconv, iconv_close): New declarations.
52021         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
52022         be defined.
52023         (iconv_open): Add special handling of conversion between UTF-8 and
52024         UTF-{16,32}{BE,LE}.
52025         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
52026         * lib/iconv_close.c: New file.
52027         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
52028         gl_FUNC_ICONV_OPEN.
52029         (gl_FUNC_ICONV_OPEN): Use it.
52030         (gl_FUNC_ICONV_OPEN_UTF): New macro.
52031         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
52032         and REPLACE_ICONV_UTF.
52033         * modules/iconv_open (Depends-on): Add c-strcase.
52034         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
52035         ICONV_CONST.
52036         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
52037
52038 2007-10-13  Albert Chin  <china@thewrittenword.com>
52039             Bruno Haible  <bruno@clisp.org>
52040
52041         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
52042         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
52043
52044 2007-10-13  Bruno Haible  <bruno@clisp.org>
52045
52046         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
52047         defined, use the ISO C99 inline semantics.
52048         * lib/argp.h (ARGP_EI): Likewise.
52049
52050 2007-10-13  Bruno Haible  <bruno@clisp.org>
52051
52052         Handle 'inline' change in gcc 4.3.0.
52053         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
52054         argp_fmtstream_write, argp_fmtstream_set_lmargin,
52055         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
52056         argp_fmtstream_point): Disable 'extern' declaration if the function
52057         definition is going to be provided inline.
52058         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
52059         semantics, not the ISO C99 inline semantics.
52060         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
52061         'extern' declaration if the function definition is going to be provided
52062         inline.
52063         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
52064         the GNU C inline semantics, not the ISO C99 inline semantics. With
52065         GCC 4.2, avoid a warning.
52066
52067 2007-10-13  Bruno Haible  <bruno@clisp.org>
52068
52069         * lib/freading.h (freading): Enable the use of __freading for
52070         glibc >= 2.7.
52071         * lib/freading.c (freading): Likewise.
52072
52073 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52074
52075         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
52076         "warning: C99 inline functions are not supported; using GNU89".
52077
52078 2007-10-12  Bruno Haible  <bruno@clisp.org>
52079
52080         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
52081         of 2.
52082         * tests/test-ceilf2.c: New file.
52083         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
52084
52085         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
52086         * modules/ceilf-tests: Update.
52087
52088 2007-10-12  Bruno Haible  <bruno@clisp.org>
52089
52090         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
52091         of 2.
52092         * tests/test-floorf2.c: New file.
52093         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
52094
52095         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
52096         * modules/floorf-tests: Update.
52097
52098 2007-10-12  Bruno Haible  <bruno@clisp.org>
52099
52100         * tests/test-trunc2.c: New file.
52101         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
52102
52103         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
52104         * modules/trunc-tests: Update.
52105
52106 2007-10-12  Bruno Haible  <bruno@clisp.org>
52107
52108         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
52109         of 2.
52110         * tests/test-truncf2.c: New file.
52111         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
52112
52113         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
52114         * modules/truncf-tests: Update.
52115
52116 2007-10-11  Eric Blake  <ebb9@byu.net>
52117
52118         Don't claim strerror is broken on Interix.
52119         * doc/functions/strerror.texi (strerror): Known broken systems are
52120         now Solaris 8, and not Interix.
52121         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
52122         Interix on cross-compile.
52123         Reported by Martin Koeppe in
52124         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
52125
52126 2007-10-11  Bruno Haible  <bruno@clisp.org>
52127
52128         * modules/i-ring-tests: New file.
52129         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
52130         instead of assert.
52131
52132 2007-10-11  Bruno Haible  <bruno@clisp.org>
52133
52134         * modules/filenamecat-tests: New file.
52135         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
52136         * lib/filenamecat.c: Remove test code.
52137
52138 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52139
52140         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
52141
52142         * lib/strerror.c: Include <string.h> always, to test interface,
52143         and to remove the need for the dummy.
52144         Include intprops.h to compute width instead of doing it ourselves
52145         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
52146         (strerror): Define it to return NULL if there's no system strerror.
52147         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
52148         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
52149         ancient pre-strerror Unix systems well any more.  Saying "unknown
52150         system error" is enough.
52151         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
52152         simpler strerror.c implementation.
52153         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
52154         Simplify the tests to reflect the simpler strerror implementation.
52155         * modules/strerror (Depends-on): Add intprops.
52156
52157 2007-10-09  Eric Blake  <ebb9@byu.net>
52158
52159         Silence test-fpending.
52160         * modules/fpending-tests (Files): Add wrapper script.
52161         * tests/test-fpending.sh: New file.
52162
52163 2007-10-09  Bruno Haible  <bruno@clisp.org>
52164
52165         * MODULES.html.sh (func_module): Don't create a hyperlink for
52166         function names like 'printf_frexp'.
52167         (Misc): Add crc, memxor.
52168         (Characteristics of floating types): New section.
52169         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
52170         isnanf-nolibm, signbit, trunc, truncf, truncl.
52171         (Enhancements for ISO C 99 functions): New subsection Input/output.
52172         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
52173         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
52174         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
52175         (Compatibility checks for POSIX:2001 functions): Add clock-time.
52176         (Enhancements for POSIX:2001 functions): Add chdir-long.
52177         (File system functions): Add areadlink, chdir-safer, read-file.
52178         Remove cycle-check.
52179         (File system as inode set): New section.
52180         (Date and time): Add gethrxtime.
52181         (Multithreading): Add openmp.
52182         (Internationalization functions): Add localename.
52183         (Unicode string functions): Add unistr/u*-mbsnlen.
52184         (Support for maintaining and releasing projects): Add git-version-gen.
52185         (Lone files): Remove directories.
52186
52187 2007-10-08  Ben Pfaff  <blp@gnu.org>
52188
52189         * lib/xmalloca.h: Fix typo in comment.
52190
52191 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52192
52193         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
52194         when avoiding problems with integer overflow.  Use a portable test
52195         instead.
52196
52197 2007-10-08  Simon Josefsson  <simon@josefsson.org>
52198
52199         * modules/dummy (License): Change to LGPLv2+.
52200         * modules/float (License): Likewise
52201         * modules/realloc (License): Likewise
52202         * modules/stdlib (License): Likewise
52203
52204 2007-10-07  Bruno Haible  <bruno@clisp.org>
52205
52206         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
52207         * floor.c (TWO_MANT_DIG): Likewise.
52208         * ceil.c (TWO_MANT_DIG): Likewise.
52209         Reported by Ben Pfaff.
52210
52211 2007-10-07  Bruno Haible  <bruno@clisp.org>
52212
52213         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
52214         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
52215         * lib/frexp.c (FUNC): Likewise.
52216         * lib/printf-frexp.h (printf_frexp): Likewise.
52217         * lib/printf-frexpl.h (printf_frexpl): Likewise.
52218         * lib/printf-frexp.c (FUNC): Likewise.
52219         Suggested by Jim Meyering.
52220
52221 2007-10-07  Jim Meyering  <meyering@redhat.com>
52222
52223         Make xnanosleep's integer overflow test more robust.
52224         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
52225         so that gcc-4.3.0 doesn't optimize away this test for overflow.
52226
52227 2007-10-07  Bruno Haible  <bruno@clisp.org>
52228
52229         * NEWS: Mention the license change.
52230
52231         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
52232         abbreviations in the modules files.
52233
52234         Change copyright notice from GPLv2+ to GPLv3+.
52235         * README: Change copyright notice.
52236         * MODULES.html.sh: Likewise.
52237         * build-aux/bootstrap.conf: Likewise.
52238         * build-aux/config.libpath: Likewise.
52239         * build-aux/csharpcomp.sh.in: Likewise.
52240         * build-aux/csharpexec.sh.in: Likewise.
52241         * build-aux/install-reloc: Likewise.
52242         * build-aux/javacomp.sh.in: Likewise.
52243         * build-aux/javaexec.sh.in: Likewise.
52244         * build-aux/ldd.sh.in: Likewise.
52245         * build-aux/reloc-ldflags: Likewise.
52246         * build-aux/relocatable.sh.in: Likewise.
52247         * build-aux/x-to-1.in: Likewise.
52248         * check-module: Likewise.
52249         * config/srclistvars.sh: Likewise.
52250         * gnulib-tool: Likewise.
52251         * lib/acl-internal.h: Likewise.
52252         * lib/acl.c: Likewise.
52253         * lib/acl.h: Likewise.
52254         * lib/acl_entries.c: Likewise.
52255         * lib/areadlink-with-size.c: Likewise.
52256         * lib/areadlink.c: Likewise.
52257         * lib/areadlink.h: Likewise.
52258         * lib/argmatch.c: Likewise.
52259         * lib/argmatch.h: Likewise.
52260         * lib/argp-ba.c: Likewise.
52261         * lib/argp-eexst.c: Likewise.
52262         * lib/argp-fmtstream.c: Likewise.
52263         * lib/argp-fmtstream.h: Likewise.
52264         * lib/argp-fs-xinl.c: Likewise.
52265         * lib/argp-help.c: Likewise.
52266         * lib/argp-namefrob.h: Likewise.
52267         * lib/argp-parse.c: Likewise.
52268         * lib/argp-pin.c: Likewise.
52269         * lib/argp-pv.c: Likewise.
52270         * lib/argp-pvh.c: Likewise.
52271         * lib/argp-xinl.c: Likewise.
52272         * lib/argp.h: Likewise.
52273         * lib/at-func.c: Likewise.
52274         * lib/atanl.c: Likewise.
52275         * lib/backupfile.c: Likewise.
52276         * lib/backupfile.h: Likewise.
52277         * lib/basename.c: Likewise.
52278         * lib/binary-io.h: Likewise.
52279         * lib/byteswap.in.h: Likewise.
52280         * lib/c-stack.c: Likewise.
52281         * lib/c-stack.h: Likewise.
52282         * lib/c-strcasestr.c: Likewise.
52283         * lib/c-strcasestr.h: Likewise.
52284         * lib/c-strstr.c: Likewise.
52285         * lib/c-strstr.h: Likewise.
52286         * lib/c-strtod.c: Likewise.
52287         * lib/calloc.c: Likewise.
52288         * lib/canon-host.c: Likewise.
52289         * lib/canon-host.h: Likewise.
52290         * lib/canonicalize-lgpl.c: Likewise.
52291         * lib/canonicalize.c: Likewise.
52292         * lib/canonicalize.h: Likewise.
52293         * lib/ceil.c: Likewise.
52294         * lib/ceilf.c: Likewise.
52295         * lib/ceill.c: Likewise.
52296         * lib/chdir-long.c: Likewise.
52297         * lib/chdir-long.h: Likewise.
52298         * lib/chdir-safer.c: Likewise.
52299         * lib/chdir-safer.h: Likewise.
52300         * lib/chown.c: Likewise.
52301         * lib/classpath.c: Likewise.
52302         * lib/classpath.h: Likewise.
52303         * lib/clean-temp.c: Likewise.
52304         * lib/clean-temp.h: Likewise.
52305         * lib/cloexec.c: Likewise.
52306         * lib/close-stream.c: Likewise.
52307         * lib/closein.c: Likewise.
52308         * lib/closein.h: Likewise.
52309         * lib/closeout.c: Likewise.
52310         * lib/closeout.h: Likewise.
52311         * lib/concat-filename.c: Likewise.
52312         * lib/copy-file.c: Likewise.
52313         * lib/copy-file.h: Likewise.
52314         * lib/count-one-bits.h: Likewise.
52315         * lib/crc.c: Likewise.
52316         * lib/crc.h: Likewise.
52317         * lib/creat-safer.c: Likewise.
52318         * lib/csharpcomp.c: Likewise.
52319         * lib/csharpcomp.h: Likewise.
52320         * lib/csharpexec.c: Likewise.
52321         * lib/csharpexec.h: Likewise.
52322         * lib/cycle-check.c: Likewise.
52323         * lib/cycle-check.h: Likewise.
52324         * lib/diacrit.c: Likewise.
52325         * lib/diacrit.h: Likewise.
52326         * lib/diffseq.h: Likewise.
52327         * lib/dirchownmod.c: Likewise.
52328         * lib/dirent.in.h: Likewise.
52329         * lib/dirfd.c: Likewise.
52330         * lib/dirfd.h: Likewise.
52331         * lib/dirname.c: Likewise.
52332         * lib/dirname.h: Likewise.
52333         * lib/dummy.c: Likewise.
52334         * lib/dup-safer.c: Likewise.
52335         * lib/dup2.c: Likewise.
52336         * lib/eealloc.h: Likewise.
52337         * lib/error.c: Likewise.
52338         * lib/error.h: Likewise.
52339         * lib/euidaccess.c: Likewise.
52340         * lib/exclude.c: Likewise.
52341         * lib/exclude.h: Likewise.
52342         * lib/execute.c: Likewise.
52343         * lib/execute.h: Likewise.
52344         * lib/exitfail.c: Likewise.
52345         * lib/exitfail.h: Likewise.
52346         * lib/expl.c: Likewise.
52347         * lib/fatal-signal.c: Likewise.
52348         * lib/fatal-signal.h: Likewise.
52349         * lib/fbufmode.c: Likewise.
52350         * lib/fbufmode.h: Likewise.
52351         * lib/fchdir.c: Likewise.
52352         * lib/fchmodat.c: Likewise.
52353         * lib/fchownat.c: Likewise.
52354         * lib/fcntl--.h: Likewise.
52355         * lib/fcntl-safer.h: Likewise.
52356         * lib/fcntl.in.h: Likewise.
52357         * lib/fd-safer.c: Likewise.
52358         * lib/fflush.c: Likewise.
52359         * lib/file-has-acl.c: Likewise.
52360         * lib/file-set.c: Likewise.
52361         * lib/file-type.c: Likewise.
52362         * lib/file-type.h: Likewise.
52363         * lib/fileblocks.c: Likewise.
52364         * lib/filemode.c: Likewise.
52365         * lib/filemode.h: Likewise.
52366         * lib/filename.h: Likewise.
52367         * lib/filenamecat.c: Likewise.
52368         * lib/filenamecat.h: Likewise.
52369         * lib/findprog.c: Likewise.
52370         * lib/findprog.h: Likewise.
52371         * lib/float.in.h: Likewise.
52372         * lib/floor.c: Likewise.
52373         * lib/floorf.c: Likewise.
52374         * lib/floorl.c: Likewise.
52375         * lib/fopen-safer.c: Likewise.
52376         * lib/fopen.c: Likewise.
52377         * lib/fpending.c: Likewise.
52378         * lib/fpending.h: Likewise.
52379         * lib/fprintf.c: Likewise.
52380         * lib/fprintftime.h: Likewise.
52381         * lib/fpucw.h: Likewise.
52382         * lib/fpurge.c: Likewise.
52383         * lib/fpurge.h: Likewise.
52384         * lib/freadable.c: Likewise.
52385         * lib/freadable.h: Likewise.
52386         * lib/freadahead.c: Likewise.
52387         * lib/freadahead.h: Likewise.
52388         * lib/freading.c: Likewise.
52389         * lib/freading.h: Likewise.
52390         * lib/free.c: Likewise.
52391         * lib/freopen.c: Likewise.
52392         * lib/frexp.c: Likewise.
52393         * lib/frexpl.c: Likewise.
52394         * lib/fseek.c: Likewise.
52395         * lib/fseterr.c: Likewise.
52396         * lib/fseterr.h: Likewise.
52397         * lib/fstatat.c: Likewise.
52398         * lib/fstrcmp.c: Likewise.
52399         * lib/fstrcmp.h: Likewise.
52400         * lib/fsusage.c: Likewise.
52401         * lib/fsusage.h: Likewise.
52402         * lib/ftell.c: Likewise.
52403         * lib/ftello.c: Likewise.
52404         * lib/fts-cycle.c: Likewise.
52405         * lib/fts.c: Likewise.
52406         * lib/fts_.h: Likewise.
52407         * lib/full-read.c: Likewise.
52408         * lib/full-read.h: Likewise.
52409         * lib/full-write.c: Likewise.
52410         * lib/full-write.h: Likewise.
52411         * lib/fwritable.c: Likewise.
52412         * lib/fwritable.h: Likewise.
52413         * lib/fwriteerror.c: Likewise.
52414         * lib/fwriteerror.h: Likewise.
52415         * lib/fwriting.c: Likewise.
52416         * lib/fwriting.h: Likewise.
52417         * lib/gcd.c: Likewise.
52418         * lib/gcd.h: Likewise.
52419         * lib/getcwd.c: Likewise.
52420         * lib/getdate.h: Likewise.
52421         * lib/getdate.y: Likewise.
52422         * lib/getdomainname.c: Likewise.
52423         * lib/getdomainname.h: Likewise.
52424         * lib/getgroups.c: Likewise.
52425         * lib/gethostname.c: Likewise.
52426         * lib/gethrxtime.c: Likewise.
52427         * lib/gethrxtime.h: Likewise.
52428         * lib/getloadavg.c: Likewise.
52429         * lib/getndelim2.c: Likewise.
52430         * lib/getndelim2.h: Likewise.
52431         * lib/getnline.c: Likewise.
52432         * lib/getnline.h: Likewise.
52433         * lib/getopt.c: Likewise.
52434         * lib/getopt.in.h: Likewise.
52435         * lib/getopt1.c: Likewise.
52436         * lib/getopt_int.h: Likewise.
52437         * lib/getpagesize.h: Likewise.
52438         * lib/getsubopt.c: Likewise.
52439         * lib/gettime.c: Likewise.
52440         * lib/getugroups.c: Likewise.
52441         * lib/getugroups.h: Likewise.
52442         * lib/getusershell.c: Likewise.
52443         * lib/gl_anyavltree_list1.h: Likewise.
52444         * lib/gl_anyavltree_list2.h: Likewise.
52445         * lib/gl_anyhash_list1.h: Likewise.
52446         * lib/gl_anyhash_list2.h: Likewise.
52447         * lib/gl_anylinked_list1.h: Likewise.
52448         * lib/gl_anylinked_list2.h: Likewise.
52449         * lib/gl_anyrbtree_list1.h: Likewise.
52450         * lib/gl_anyrbtree_list2.h: Likewise.
52451         * lib/gl_anytree_list1.h: Likewise.
52452         * lib/gl_anytree_list2.h: Likewise.
52453         * lib/gl_anytree_oset.h: Likewise.
52454         * lib/gl_anytreehash_list1.h: Likewise.
52455         * lib/gl_anytreehash_list2.h: Likewise.
52456         * lib/gl_array_list.c: Likewise.
52457         * lib/gl_array_list.h: Likewise.
52458         * lib/gl_array_oset.c: Likewise.
52459         * lib/gl_array_oset.h: Likewise.
52460         * lib/gl_avltree_list.c: Likewise.
52461         * lib/gl_avltree_list.h: Likewise.
52462         * lib/gl_avltree_oset.c: Likewise.
52463         * lib/gl_avltree_oset.h: Likewise.
52464         * lib/gl_avltreehash_list.c: Likewise.
52465         * lib/gl_avltreehash_list.h: Likewise.
52466         * lib/gl_carray_list.c: Likewise.
52467         * lib/gl_carray_list.h: Likewise.
52468         * lib/gl_linked_list.c: Likewise.
52469         * lib/gl_linked_list.h: Likewise.
52470         * lib/gl_linkedhash_list.c: Likewise.
52471         * lib/gl_linkedhash_list.h: Likewise.
52472         * lib/gl_list.c: Likewise.
52473         * lib/gl_list.h: Likewise.
52474         * lib/gl_oset.c: Likewise.
52475         * lib/gl_oset.h: Likewise.
52476         * lib/gl_rbtree_list.c: Likewise.
52477         * lib/gl_rbtree_list.h: Likewise.
52478         * lib/gl_rbtree_oset.c: Likewise.
52479         * lib/gl_rbtree_oset.h: Likewise.
52480         * lib/gl_rbtreehash_list.c: Likewise.
52481         * lib/gl_rbtreehash_list.h: Likewise.
52482         * lib/gl_sublist.c: Likewise.
52483         * lib/gl_sublist.h: Likewise.
52484         * lib/group-member.c: Likewise.
52485         * lib/group-member.h: Likewise.
52486         * lib/hard-locale.c: Likewise.
52487         * lib/hard-locale.h: Likewise.
52488         * lib/hash-pjw.c: Likewise.
52489         * lib/hash-pjw.h: Likewise.
52490         * lib/hash-triple.c: Likewise.
52491         * lib/hash.c: Likewise.
52492         * lib/hash.h: Likewise.
52493         * lib/human.c: Likewise.
52494         * lib/human.h: Likewise.
52495         * lib/i-ring.c: Likewise.
52496         * lib/i-ring.h: Likewise.
52497         * lib/idcache.c: Likewise.
52498         * lib/imaxabs.c: Likewise.
52499         * lib/imaxdiv.c: Likewise.
52500         * lib/inet_pton.c: Likewise.
52501         * lib/inet_pton.h: Likewise.
52502         * lib/intprops.h: Likewise.
52503         * lib/inttostr.c: Likewise.
52504         * lib/inttostr.h: Likewise.
52505         * lib/inttypes.in.h: Likewise.
52506         * lib/isapipe.c: Likewise.
52507         * lib/isdir.c: Likewise.
52508         * lib/isnan.c: Likewise.
52509         * lib/isnan.h: Likewise.
52510         * lib/isnanf.c: Likewise.
52511         * lib/isnanf.h: Likewise.
52512         * lib/isnanl-nolibm.h: Likewise.
52513         * lib/isnanl.c: Likewise.
52514         * lib/isnanl.h: Likewise.
52515         * lib/javacomp.c: Likewise.
52516         * lib/javacomp.h: Likewise.
52517         * lib/javaexec.c: Likewise.
52518         * lib/javaexec.h: Likewise.
52519         * lib/javaversion.c: Likewise.
52520         * lib/javaversion.h: Likewise.
52521         * lib/javaversion.java: Likewise.
52522         * lib/lbrkprop.h: Likewise.
52523         * lib/lchmod.h: Likewise.
52524         * lib/lchown.c: Likewise.
52525         * lib/ldexpl.c: Likewise.
52526         * lib/linebreak.c: Likewise.
52527         * lib/linebreak.h: Likewise.
52528         * lib/linebuffer.c: Likewise.
52529         * lib/linebuffer.h: Likewise.
52530         * lib/locale.in.h: Likewise.
52531         * lib/logl.c: Likewise.
52532         * lib/long-options.c: Likewise.
52533         * lib/long-options.h: Likewise.
52534         * lib/lstat.c: Likewise.
52535         * lib/lstat.h: Likewise.
52536         * lib/math.in.h: Likewise.
52537         * lib/mbchar.c: Likewise.
52538         * lib/mbchar.h: Likewise.
52539         * lib/mbfile.h: Likewise.
52540         * lib/mbiter.h: Likewise.
52541         * lib/mbscasecmp.c: Likewise.
52542         * lib/mbscasestr.c: Likewise.
52543         * lib/mbschr.c: Likewise.
52544         * lib/mbscspn.c: Likewise.
52545         * lib/mbslen.c: Likewise.
52546         * lib/mbsncasecmp.c: Likewise.
52547         * lib/mbsnlen.c: Likewise.
52548         * lib/mbspbrk.c: Likewise.
52549         * lib/mbspcasecmp.c: Likewise.
52550         * lib/mbsrchr.c: Likewise.
52551         * lib/mbssep.c: Likewise.
52552         * lib/mbsspn.c: Likewise.
52553         * lib/mbsstr.c: Likewise.
52554         * lib/mbstok_r.c: Likewise.
52555         * lib/mbswidth.c: Likewise.
52556         * lib/mbswidth.h: Likewise.
52557         * lib/mbuiter.h: Likewise.
52558         * lib/memcasecmp.c: Likewise.
52559         * lib/memcasecmp.h: Likewise.
52560         * lib/memchr.c: Likewise.
52561         * lib/memcmp.c: Likewise.
52562         * lib/memcoll.c: Likewise.
52563         * lib/memcoll.h: Likewise.
52564         * lib/memcpy.c: Likewise.
52565         * lib/memrchr.c: Likewise.
52566         * lib/mkancesdirs.c: Likewise.
52567         * lib/mkdir-p.c: Likewise.
52568         * lib/mkdir-p.h: Likewise.
52569         * lib/mkdir.c: Likewise.
52570         * lib/mkdirat.c: Likewise.
52571         * lib/mkdtemp.c: Likewise.
52572         * lib/mkstemp-safer.c: Likewise.
52573         * lib/mkstemp.c: Likewise.
52574         * lib/modechange.c: Likewise.
52575         * lib/modechange.h: Likewise.
52576         * lib/mountlist.c: Likewise.
52577         * lib/mountlist.h: Likewise.
52578         * lib/mpsort.c: Likewise.
52579         * lib/nanosleep.c: Likewise.
52580         * lib/obstack.c: Likewise.
52581         * lib/obstack.h: Likewise.
52582         * lib/open-safer.c: Likewise.
52583         * lib/open.c: Likewise.
52584         * lib/openat-die.c: Likewise.
52585         * lib/openat-priv.h: Likewise.
52586         * lib/openat-proc.c: Likewise.
52587         * lib/openat.c: Likewise.
52588         * lib/openat.h: Likewise.
52589         * lib/pagealign_alloc.c: Likewise.
52590         * lib/pagealign_alloc.h: Likewise.
52591         * lib/physmem.c: Likewise.
52592         * lib/physmem.h: Likewise.
52593         * lib/pipe-safer.c: Likewise.
52594         * lib/pipe.c: Likewise.
52595         * lib/pipe.h: Likewise.
52596         * lib/posixtm.c: Likewise.
52597         * lib/posixtm.h: Likewise.
52598         * lib/posixver.c: Likewise.
52599         * lib/printf-frexp.c: Likewise.
52600         * lib/printf-frexp.h: Likewise.
52601         * lib/printf-frexpl.c: Likewise.
52602         * lib/printf-frexpl.h: Likewise.
52603         * lib/printf.c: Likewise.
52604         * lib/progname.c: Likewise.
52605         * lib/progname.h: Likewise.
52606         * lib/progreloc.c: Likewise.
52607         * lib/putenv.c: Likewise.
52608         * lib/quote.c: Likewise.
52609         * lib/quote.h: Likewise.
52610         * lib/quotearg.c: Likewise.
52611         * lib/quotearg.h: Likewise.
52612         * lib/raise.c: Likewise.
52613         * lib/readline.c: Likewise.
52614         * lib/readline.h: Likewise.
52615         * lib/readlink.c: Likewise.
52616         * lib/readtokens.c: Likewise.
52617         * lib/readtokens.h: Likewise.
52618         * lib/readtokens0.c: Likewise.
52619         * lib/readtokens0.h: Likewise.
52620         * lib/readutmp.c: Likewise.
52621         * lib/readutmp.h: Likewise.
52622         * lib/realloc.c: Likewise.
52623         * lib/relocwrapper.c: Likewise.
52624         * lib/rename-dest-slash.c: Likewise.
52625         * lib/rename.c: Likewise.
52626         * lib/rmdir.c: Likewise.
52627         * lib/rpmatch.c: Likewise.
52628         * lib/safe-read.c: Likewise.
52629         * lib/safe-read.h: Likewise.
52630         * lib/safe-write.c: Likewise.
52631         * lib/safe-write.h: Likewise.
52632         * lib/same-inode.h: Likewise.
52633         * lib/same.c: Likewise.
52634         * lib/same.h: Likewise.
52635         * lib/save-cwd.c: Likewise.
52636         * lib/save-cwd.h: Likewise.
52637         * lib/savedir.c: Likewise.
52638         * lib/savedir.h: Likewise.
52639         * lib/savewd.c: Likewise.
52640         * lib/savewd.h: Likewise.
52641         * lib/search.in.h: Likewise.
52642         * lib/setenv.c: Likewise.
52643         * lib/setenv.h: Likewise.
52644         * lib/settime.c: Likewise.
52645         * lib/sh-quote.c: Likewise.
52646         * lib/sh-quote.h: Likewise.
52647         * lib/sig2str.c: Likewise.
52648         * lib/sig2str.h: Likewise.
52649         * lib/signal.in.h: Likewise.
52650         * lib/signbitd.c: Likewise.
52651         * lib/signbitf.c: Likewise.
52652         * lib/signbitl.c: Likewise.
52653         * lib/sigprocmask.c: Likewise.
52654         * lib/sincosl.c: Likewise.
52655         * lib/sleep.c: Likewise.
52656         * lib/sprintf.c: Likewise.
52657         * lib/sqrtl.c: Likewise.
52658         * lib/stat-time.h: Likewise.
52659         * lib/stdio--.h: Likewise.
52660         * lib/stdio-safer.h: Likewise.
52661         * lib/stdlib--.h: Likewise.
52662         * lib/stdlib-safer.h: Likewise.
52663         * lib/stdlib.in.h: Likewise.
52664         * lib/stpcpy.c: Likewise.
52665         * lib/stpncpy.c: Likewise.
52666         * lib/strchrnul.c: Likewise.
52667         * lib/strcspn.c: Likewise.
52668         * lib/strerror.c: Likewise.
52669         * lib/strftime.c: Likewise.
52670         * lib/strftime.h: Likewise.
52671         * lib/striconveh.c: Likewise.
52672         * lib/striconveh.h: Likewise.
52673         * lib/striconveha.c: Likewise.
52674         * lib/striconveha.h: Likewise.
52675         * lib/stripslash.c: Likewise.
52676         * lib/strnlen1.c: Likewise.
52677         * lib/strnlen1.h: Likewise.
52678         * lib/strtod.c: Likewise.
52679         * lib/strtoimax.c: Likewise.
52680         * lib/strtok_r.c: Likewise.
52681         * lib/strtol.c: Likewise.
52682         * lib/strtoll.c: Likewise.
52683         * lib/strtoul.c: Likewise.
52684         * lib/strtoull.c: Likewise.
52685         * lib/sysexits.in.h: Likewise.
52686         * lib/tempname.c: Likewise.
52687         * lib/tempname.h: Likewise.
52688         * lib/timespec.h: Likewise.
52689         * lib/tls.c: Likewise.
52690         * lib/tls.h: Likewise.
52691         * lib/tmpdir.c: Likewise.
52692         * lib/tmpdir.h: Likewise.
52693         * lib/tmpfile-safer.c: Likewise.
52694         * lib/tmpfile.c: Likewise.
52695         * lib/trigl.c: Likewise.
52696         * lib/trigl.h: Likewise.
52697         * lib/trim.c: Likewise.
52698         * lib/trim.h: Likewise.
52699         * lib/trunc.c: Likewise.
52700         * lib/truncf.c: Likewise.
52701         * lib/truncl.c: Likewise.
52702         * lib/tsearch.c: Likewise.
52703         * lib/unicodeio.c: Likewise.
52704         * lib/unicodeio.h: Likewise.
52705         * lib/unistd--.h: Likewise.
52706         * lib/unistd-safer.h: Likewise.
52707         * lib/unistdio/ulc-fprintf.c: Likewise.
52708         * lib/unistdio/ulc-vfprintf.c: Likewise.
52709         * lib/unlinkdir.c: Likewise.
52710         * lib/unlinkdir.h: Likewise.
52711         * lib/unlocked-io.h: Likewise.
52712         * lib/unsetenv.c: Likewise.
52713         * lib/userspec.c: Likewise.
52714         * lib/utime.c: Likewise.
52715         * lib/utimecmp.c: Likewise.
52716         * lib/utimecmp.h: Likewise.
52717         * lib/utimens.c: Likewise.
52718         * lib/verify.h: Likewise.
52719         * lib/verror.c: Likewise.
52720         * lib/verror.h: Likewise.
52721         * lib/version-etc-fsf.c: Likewise.
52722         * lib/version-etc.c: Likewise.
52723         * lib/version-etc.h: Likewise.
52724         * lib/vfprintf.c: Likewise.
52725         * lib/vprintf.c: Likewise.
52726         * lib/vsprintf.c: Likewise.
52727         * lib/w32spawn.h: Likewise.
52728         * lib/wait-process.c: Likewise.
52729         * lib/wait-process.h: Likewise.
52730         * lib/wcwidth.c: Likewise.
52731         * lib/write-any-file.c: Likewise.
52732         * lib/xalloc-die.c: Likewise.
52733         * lib/xalloc.h: Likewise.
52734         * lib/xasprintf.c: Likewise.
52735         * lib/xgetcwd.c: Likewise.
52736         * lib/xgetcwd.h: Likewise.
52737         * lib/xgetdomainname.c: Likewise.
52738         * lib/xgetdomainname.h: Likewise.
52739         * lib/xgethostname.c: Likewise.
52740         * lib/xmalloc.c: Likewise.
52741         * lib/xmalloca.c: Likewise.
52742         * lib/xmalloca.h: Likewise.
52743         * lib/xmemcoll.c: Likewise.
52744         * lib/xnanosleep.c: Likewise.
52745         * lib/xreadlink.c: Likewise.
52746         * lib/xreadlink.h: Likewise.
52747         * lib/xsetenv.c: Likewise.
52748         * lib/xsetenv.h: Likewise.
52749         * lib/xstriconv.c: Likewise.
52750         * lib/xstriconv.h: Likewise.
52751         * lib/xstrndup.c: Likewise.
52752         * lib/xstrndup.h: Likewise.
52753         * lib/xstrtod.c: Likewise.
52754         * lib/xstrtod.h: Likewise.
52755         * lib/xstrtol-error.c: Likewise.
52756         * lib/xstrtol.c: Likewise.
52757         * lib/xstrtol.h: Likewise.
52758         * lib/xtime.h: Likewise.
52759         * lib/xvasprintf.c: Likewise.
52760         * lib/xvasprintf.h: Likewise.
52761         * lib/yesno.c: Likewise.
52762         * lib/yesno.h: Likewise.
52763         * posix-modules: Likewise.
52764         * tests/test-alloca-opt.c: Likewise.
52765         * tests/test-arcfour.c: Likewise.
52766         * tests/test-arctwo.c: Likewise.
52767         * tests/test-argmatch.c: Likewise.
52768         * tests/test-argp-2.sh: Likewise.
52769         * tests/test-argp.c: Likewise.
52770         * tests/test-arpa_inet.c: Likewise.
52771         * tests/test-array_list.c: Likewise.
52772         * tests/test-array_oset.c: Likewise.
52773         * tests/test-atexit.c: Likewise.
52774         * tests/test-avltree_list.c: Likewise.
52775         * tests/test-avltree_oset.c: Likewise.
52776         * tests/test-avltreehash_list.c: Likewise.
52777         * tests/test-base64.c: Likewise.
52778         * tests/test-binary-io.c: Likewise.
52779         * tests/test-byteswap.c: Likewise.
52780         * tests/test-c-ctype.c: Likewise.
52781         * tests/test-c-strcasecmp.c: Likewise.
52782         * tests/test-c-strcasestr.c: Likewise.
52783         * tests/test-c-strncasecmp.c: Likewise.
52784         * tests/test-c-strstr.c: Likewise.
52785         * tests/test-canonicalize-lgpl.c: Likewise.
52786         * tests/test-canonicalize.c: Likewise.
52787         * tests/test-carray_list.c: Likewise.
52788         * tests/test-ceilf.c: Likewise.
52789         * tests/test-ceill.c: Likewise.
52790         * tests/test-count-one-bits.c: Likewise.
52791         * tests/test-crc.c: Likewise.
52792         * tests/test-dirname.c: Likewise.
52793         * tests/test-fbufmode.c: Likewise.
52794         * tests/test-fcntl.c: Likewise.
52795         * tests/test-fflush.c: Likewise.
52796         * tests/test-floorf.c: Likewise.
52797         * tests/test-floorl.c: Likewise.
52798         * tests/test-fopen.c: Likewise.
52799         * tests/test-fprintf-posix.c: Likewise.
52800         * tests/test-fprintf-posix.h: Likewise.
52801         * tests/test-fpurge.c: Likewise.
52802         * tests/test-freadable.c: Likewise.
52803         * tests/test-freadahead.c: Likewise.
52804         * tests/test-freading.c: Likewise.
52805         * tests/test-freopen.c: Likewise.
52806         * tests/test-frexp.c: Likewise.
52807         * tests/test-frexpl.c: Likewise.
52808         * tests/test-fseek.c: Likewise.
52809         * tests/test-fseeko.c: Likewise.
52810         * tests/test-fseterr.c: Likewise.
52811         * tests/test-fstrcmp.c: Likewise.
52812         * tests/test-ftell.c: Likewise.
52813         * tests/test-ftello.c: Likewise.
52814         * tests/test-fwritable.c: Likewise.
52815         * tests/test-fwriting.c: Likewise.
52816         * tests/test-getaddrinfo.c: Likewise.
52817         * tests/test-getpass.c: Likewise.
52818         * tests/test-gettimeofday.c: Likewise.
52819         * tests/test-hmac-md5.c: Likewise.
52820         * tests/test-hmac-sha1.c: Likewise.
52821         * tests/test-iconv.c: Likewise.
52822         * tests/test-iconvme.c: Likewise.
52823         * tests/test-inttypes.c: Likewise.
52824         * tests/test-isnan.c: Likewise.
52825         * tests/test-isnanf.c: Likewise.
52826         * tests/test-isnanl-nolibm.c: Likewise.
52827         * tests/test-isnanl.c: Likewise.
52828         * tests/test-isnanl.h: Likewise.
52829         * tests/test-ldexpl.c: Likewise.
52830         * tests/test-linked_list.c: Likewise.
52831         * tests/test-linkedhash_list.c: Likewise.
52832         * tests/test-locale.c: Likewise.
52833         * tests/test-localename.c: Likewise.
52834         * tests/test-lock.c: Likewise.
52835         * tests/test-lseek.c: Likewise.
52836         * tests/test-malloca.c: Likewise.
52837         * tests/test-math.c: Likewise.
52838         * tests/test-mbscasecmp.c: Likewise.
52839         * tests/test-mbscasestr1.c: Likewise.
52840         * tests/test-mbscasestr2.c: Likewise.
52841         * tests/test-mbscasestr3.c: Likewise.
52842         * tests/test-mbscasestr4.c: Likewise.
52843         * tests/test-mbschr.c: Likewise.
52844         * tests/test-mbscspn.c: Likewise.
52845         * tests/test-mbsncasecmp.c: Likewise.
52846         * tests/test-mbspbrk.c: Likewise.
52847         * tests/test-mbspcasecmp.c: Likewise.
52848         * tests/test-mbsrchr.c: Likewise.
52849         * tests/test-mbsspn.c: Likewise.
52850         * tests/test-mbsstr1.c: Likewise.
52851         * tests/test-mbsstr2.c: Likewise.
52852         * tests/test-mbsstr3.c: Likewise.
52853         * tests/test-md5.c: Likewise.
52854         * tests/test-memmem.c: Likewise.
52855         * tests/test-netinet_in.c: Likewise.
52856         * tests/test-open.c: Likewise.
52857         * tests/test-printf-frexp.c: Likewise.
52858         * tests/test-printf-frexpl.c: Likewise.
52859         * tests/test-printf-posix.c: Likewise.
52860         * tests/test-printf-posix.h: Likewise.
52861         * tests/test-rbtree_list.c: Likewise.
52862         * tests/test-rbtree_oset.c: Likewise.
52863         * tests/test-rbtreehash_list.c: Likewise.
52864         * tests/test-read-file.c: Likewise.
52865         * tests/test-rijndael.c: Likewise.
52866         * tests/test-search.c: Likewise.
52867         * tests/test-signbit.c: Likewise.
52868         * tests/test-sleep.c: Likewise.
52869         * tests/test-snprintf-posix.c: Likewise.
52870         * tests/test-snprintf-posix.h: Likewise.
52871         * tests/test-snprintf.c: Likewise.
52872         * tests/test-sprintf-posix.c: Likewise.
52873         * tests/test-sprintf-posix.h: Likewise.
52874         * tests/test-stat-time.c: Likewise.
52875         * tests/test-stdbool.c: Likewise.
52876         * tests/test-stdint.c: Likewise.
52877         * tests/test-stdio.c: Likewise.
52878         * tests/test-stdlib.c: Likewise.
52879         * tests/test-stpncpy.c: Likewise.
52880         * tests/test-strcasestr.c: Likewise.
52881         * tests/test-striconv.c: Likewise.
52882         * tests/test-striconveh.c: Likewise.
52883         * tests/test-striconveha.c: Likewise.
52884         * tests/test-string.c: Likewise.
52885         * tests/test-sys_select.c: Likewise.
52886         * tests/test-sys_socket.c: Likewise.
52887         * tests/test-sys_stat.c: Likewise.
52888         * tests/test-sys_time.c: Likewise.
52889         * tests/test-sysexits.c: Likewise.
52890         * tests/test-time.c: Likewise.
52891         * tests/test-tls.c: Likewise.
52892         * tests/test-trunc.c: Likewise.
52893         * tests/test-truncf.c: Likewise.
52894         * tests/test-truncl.c: Likewise.
52895         * tests/test-unistd.c: Likewise.
52896         * tests/test-vasnprintf-posix.c: Likewise.
52897         * tests/test-vasnprintf-posix2.c: Likewise.
52898         * tests/test-vasnprintf.c: Likewise.
52899         * tests/test-vasprintf-posix.c: Likewise.
52900         * tests/test-vasprintf.c: Likewise.
52901         * tests/test-verify.c: Likewise.
52902         * tests/test-vfprintf-posix.c: Likewise.
52903         * tests/test-vprintf-posix.c: Likewise.
52904         * tests/test-vsnprintf-posix.c: Likewise.
52905         * tests/test-vsnprintf.c: Likewise.
52906         * tests/test-vsprintf-posix.c: Likewise.
52907         * tests/test-wchar.c: Likewise.
52908         * tests/test-wctype.c: Likewise.
52909         * tests/test-wcwidth.c: Likewise.
52910         * tests/test-xstrtol.c: Likewise.
52911         * tests/test-xvasprintf.c: Likewise.
52912         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
52913         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
52914         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52915         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52916         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52917         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
52918         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52919         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52920         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52921         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
52922         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52923         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52924         * tests/uniname/test-uninames.c: Likewise.
52925         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
52926         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
52927         * tests/unistdio/test-u16-printf1.h: Likewise.
52928         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
52929         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
52930         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
52931         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
52932         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
52933         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
52934         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
52935         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
52936         * tests/unistdio/test-u32-printf1.h: Likewise.
52937         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
52938         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52939         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52940         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52941         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52942         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52943         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52944         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
52945         * tests/unistdio/test-u8-printf1.h: Likewise.
52946         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52947         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52948         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52949         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52950         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52951         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52952         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52953         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
52954         * tests/unistdio/test-ulc-printf1.h: Likewise.
52955         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52956         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52957         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52958         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52959         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52960         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52961         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52962         * tests/uniwidth/test-u16-width.c: Likewise.
52963         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52964         * tests/uniwidth/test-u32-width.c: Likewise.
52965         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52966         * tests/uniwidth/test-u8-width.c: Likewise.
52967         * tests/uniwidth/test-uc_width.c: Likewise.
52968         * config/srclist-update: Likewise.
52969         (fixlicense): Update to GPLv3+.
52970
52971         Change copyright notice from LGPLv2.1+ to LGPLv3+.
52972         * tests/test-tsearch.c: Change copyright notice.
52973
52974         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52975         * lib/c-strcaseeq.h: Change copyright notice.
52976         * lib/streq.h: Likewise.
52977         * lib/uniconv.h: Likewise.
52978         * lib/uniconv/u-conv-from-enc.h: Likewise.
52979         * lib/uniconv/u-conv-to-enc.h: Likewise.
52980         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52981         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52982         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52983         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52984         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52985         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52986         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52987         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52988         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52989         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52990         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52991         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52992         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52993         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52994         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52995         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52996         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52997         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52998         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52999         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
53000         * lib/uniname.h: Likewise.
53001         * lib/uniname/uniname.c: Likewise.
53002         * lib/unistdio.h: Likewise.
53003         * lib/unistdio/u-asnprintf.h: Likewise.
53004         * lib/unistdio/u-asprintf.h: Likewise.
53005         * lib/unistdio/u-printf-args.c: Likewise.
53006         * lib/unistdio/u-printf-args.h: Likewise.
53007         * lib/unistdio/u-printf-parse.h: Likewise.
53008         * lib/unistdio/u-snprintf.h: Likewise.
53009         * lib/unistdio/u-sprintf.h: Likewise.
53010         * lib/unistdio/u-vasprintf.h: Likewise.
53011         * lib/unistdio/u-vsnprintf.h: Likewise.
53012         * lib/unistdio/u-vsprintf.h: Likewise.
53013         * lib/unistdio/u16-asnprintf.c: Likewise.
53014         * lib/unistdio/u16-asprintf.c: Likewise.
53015         * lib/unistdio/u16-printf-parse.c: Likewise.
53016         * lib/unistdio/u16-snprintf.c: Likewise.
53017         * lib/unistdio/u16-sprintf.c: Likewise.
53018         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
53019         * lib/unistdio/u16-u16-asprintf.c: Likewise.
53020         * lib/unistdio/u16-u16-snprintf.c: Likewise.
53021         * lib/unistdio/u16-u16-sprintf.c: Likewise.
53022         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
53023         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
53024         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
53025         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
53026         * lib/unistdio/u16-vasnprintf.c: Likewise.
53027         * lib/unistdio/u16-vasprintf.c: Likewise.
53028         * lib/unistdio/u16-vsnprintf.c: Likewise.
53029         * lib/unistdio/u16-vsprintf.c: Likewise.
53030         * lib/unistdio/u32-asnprintf.c: Likewise.
53031         * lib/unistdio/u32-asprintf.c: Likewise.
53032         * lib/unistdio/u32-printf-parse.c: Likewise.
53033         * lib/unistdio/u32-snprintf.c: Likewise.
53034         * lib/unistdio/u32-sprintf.c: Likewise.
53035         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
53036         * lib/unistdio/u32-u32-asprintf.c: Likewise.
53037         * lib/unistdio/u32-u32-snprintf.c: Likewise.
53038         * lib/unistdio/u32-u32-sprintf.c: Likewise.
53039         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
53040         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
53041         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
53042         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
53043         * lib/unistdio/u32-vasnprintf.c: Likewise.
53044         * lib/unistdio/u32-vasprintf.c: Likewise.
53045         * lib/unistdio/u32-vsnprintf.c: Likewise.
53046         * lib/unistdio/u32-vsprintf.c: Likewise.
53047         * lib/unistdio/u8-asnprintf.c: Likewise.
53048         * lib/unistdio/u8-asprintf.c: Likewise.
53049         * lib/unistdio/u8-printf-parse.c: Likewise.
53050         * lib/unistdio/u8-snprintf.c: Likewise.
53051         * lib/unistdio/u8-sprintf.c: Likewise.
53052         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
53053         * lib/unistdio/u8-u8-asprintf.c: Likewise.
53054         * lib/unistdio/u8-u8-snprintf.c: Likewise.
53055         * lib/unistdio/u8-u8-sprintf.c: Likewise.
53056         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
53057         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
53058         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
53059         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
53060         * lib/unistdio/u8-vasnprintf.c: Likewise.
53061         * lib/unistdio/u8-vasprintf.c: Likewise.
53062         * lib/unistdio/u8-vsnprintf.c: Likewise.
53063         * lib/unistdio/u8-vsprintf.c: Likewise.
53064         * lib/unistdio/ulc-asnprintf.c: Likewise.
53065         * lib/unistdio/ulc-asprintf.c: Likewise.
53066         * lib/unistdio/ulc-printf-parse.c: Likewise.
53067         * lib/unistdio/ulc-snprintf.c: Likewise.
53068         * lib/unistdio/ulc-sprintf.c: Likewise.
53069         * lib/unistdio/ulc-vasnprintf.c: Likewise.
53070         * lib/unistdio/ulc-vasprintf.c: Likewise.
53071         * lib/unistdio/ulc-vsnprintf.c: Likewise.
53072         * lib/unistdio/ulc-vsprintf.c: Likewise.
53073         * lib/unistr.h: Likewise.
53074         * lib/unistr/u-cpy-alloc.h: Likewise.
53075         * lib/unistr/u-cpy.h: Likewise.
53076         * lib/unistr/u-endswith.h: Likewise.
53077         * lib/unistr/u-move.h: Likewise.
53078         * lib/unistr/u-set.h: Likewise.
53079         * lib/unistr/u-startswith.h: Likewise.
53080         * lib/unistr/u-stpcpy.h: Likewise.
53081         * lib/unistr/u-stpncpy.h: Likewise.
53082         * lib/unistr/u-strcat.h: Likewise.
53083         * lib/unistr/u-strcpy.h: Likewise.
53084         * lib/unistr/u-strcspn.h: Likewise.
53085         * lib/unistr/u-strdup.h: Likewise.
53086         * lib/unistr/u-strlen.h: Likewise.
53087         * lib/unistr/u-strncat.h: Likewise.
53088         * lib/unistr/u-strncpy.h: Likewise.
53089         * lib/unistr/u-strnlen.h: Likewise.
53090         * lib/unistr/u-strpbrk.h: Likewise.
53091         * lib/unistr/u-strspn.h: Likewise.
53092         * lib/unistr/u-strstr.h: Likewise.
53093         * lib/unistr/u-strtok.h: Likewise.
53094         * lib/unistr/u16-check.c: Likewise.
53095         * lib/unistr/u16-chr.c: Likewise.
53096         * lib/unistr/u16-cmp.c: Likewise.
53097         * lib/unistr/u16-cpy-alloc.c: Likewise.
53098         * lib/unistr/u16-cpy.c: Likewise.
53099         * lib/unistr/u16-endswith.c: Likewise.
53100         * lib/unistr/u16-mblen.c: Likewise.
53101         * lib/unistr/u16-mbsnlen.c: Likewise.
53102         * lib/unistr/u16-mbtouc-aux.c: Likewise.
53103         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
53104         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
53105         * lib/unistr/u16-mbtouc.c: Likewise.
53106         * lib/unistr/u16-mbtoucr.c: Likewise.
53107         * lib/unistr/u16-move.c: Likewise.
53108         * lib/unistr/u16-next.c: Likewise.
53109         * lib/unistr/u16-prev.c: Likewise.
53110         * lib/unistr/u16-set.c: Likewise.
53111         * lib/unistr/u16-startswith.c: Likewise.
53112         * lib/unistr/u16-stpcpy.c: Likewise.
53113         * lib/unistr/u16-stpncpy.c: Likewise.
53114         * lib/unistr/u16-strcat.c: Likewise.
53115         * lib/unistr/u16-strchr.c: Likewise.
53116         * lib/unistr/u16-strcmp.c: Likewise.
53117         * lib/unistr/u16-strcpy.c: Likewise.
53118         * lib/unistr/u16-strcspn.c: Likewise.
53119         * lib/unistr/u16-strdup.c: Likewise.
53120         * lib/unistr/u16-strlen.c: Likewise.
53121         * lib/unistr/u16-strmblen.c: Likewise.
53122         * lib/unistr/u16-strmbtouc.c: Likewise.
53123         * lib/unistr/u16-strncat.c: Likewise.
53124         * lib/unistr/u16-strncmp.c: Likewise.
53125         * lib/unistr/u16-strncpy.c: Likewise.
53126         * lib/unistr/u16-strnlen.c: Likewise.
53127         * lib/unistr/u16-strpbrk.c: Likewise.
53128         * lib/unistr/u16-strrchr.c: Likewise.
53129         * lib/unistr/u16-strspn.c: Likewise.
53130         * lib/unistr/u16-strstr.c: Likewise.
53131         * lib/unistr/u16-strtok.c: Likewise.
53132         * lib/unistr/u16-to-u32.c: Likewise.
53133         * lib/unistr/u16-to-u8.c: Likewise.
53134         * lib/unistr/u16-uctomb-aux.c: Likewise.
53135         * lib/unistr/u16-uctomb.c: Likewise.
53136         * lib/unistr/u32-check.c: Likewise.
53137         * lib/unistr/u32-chr.c: Likewise.
53138         * lib/unistr/u32-cmp.c: Likewise.
53139         * lib/unistr/u32-cpy-alloc.c: Likewise.
53140         * lib/unistr/u32-cpy.c: Likewise.
53141         * lib/unistr/u32-endswith.c: Likewise.
53142         * lib/unistr/u32-mblen.c: Likewise.
53143         * lib/unistr/u32-mbsnlen.c: Likewise.
53144         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
53145         * lib/unistr/u32-mbtouc.c: Likewise.
53146         * lib/unistr/u32-mbtoucr.c: Likewise.
53147         * lib/unistr/u32-move.c: Likewise.
53148         * lib/unistr/u32-next.c: Likewise.
53149         * lib/unistr/u32-prev.c: Likewise.
53150         * lib/unistr/u32-set.c: Likewise.
53151         * lib/unistr/u32-startswith.c: Likewise.
53152         * lib/unistr/u32-stpcpy.c: Likewise.
53153         * lib/unistr/u32-stpncpy.c: Likewise.
53154         * lib/unistr/u32-strcat.c: Likewise.
53155         * lib/unistr/u32-strchr.c: Likewise.
53156         * lib/unistr/u32-strcmp.c: Likewise.
53157         * lib/unistr/u32-strcpy.c: Likewise.
53158         * lib/unistr/u32-strcspn.c: Likewise.
53159         * lib/unistr/u32-strdup.c: Likewise.
53160         * lib/unistr/u32-strlen.c: Likewise.
53161         * lib/unistr/u32-strmblen.c: Likewise.
53162         * lib/unistr/u32-strmbtouc.c: Likewise.
53163         * lib/unistr/u32-strncat.c: Likewise.
53164         * lib/unistr/u32-strncmp.c: Likewise.
53165         * lib/unistr/u32-strncpy.c: Likewise.
53166         * lib/unistr/u32-strnlen.c: Likewise.
53167         * lib/unistr/u32-strpbrk.c: Likewise.
53168         * lib/unistr/u32-strrchr.c: Likewise.
53169         * lib/unistr/u32-strspn.c: Likewise.
53170         * lib/unistr/u32-strstr.c: Likewise.
53171         * lib/unistr/u32-strtok.c: Likewise.
53172         * lib/unistr/u32-to-u16.c: Likewise.
53173         * lib/unistr/u32-to-u8.c: Likewise.
53174         * lib/unistr/u32-uctomb.c: Likewise.
53175         * lib/unistr/u8-check.c: Likewise.
53176         * lib/unistr/u8-chr.c: Likewise.
53177         * lib/unistr/u8-cmp.c: Likewise.
53178         * lib/unistr/u8-cpy-alloc.c: Likewise.
53179         * lib/unistr/u8-cpy.c: Likewise.
53180         * lib/unistr/u8-endswith.c: Likewise.
53181         * lib/unistr/u8-mblen.c: Likewise.
53182         * lib/unistr/u8-mbsnlen.c: Likewise.
53183         * lib/unistr/u8-mbtouc-aux.c: Likewise.
53184         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
53185         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
53186         * lib/unistr/u8-mbtouc.c: Likewise.
53187         * lib/unistr/u8-mbtoucr.c: Likewise.
53188         * lib/unistr/u8-move.c: Likewise.
53189         * lib/unistr/u8-next.c: Likewise.
53190         * lib/unistr/u8-prev.c: Likewise.
53191         * lib/unistr/u8-set.c: Likewise.
53192         * lib/unistr/u8-startswith.c: Likewise.
53193         * lib/unistr/u8-stpcpy.c: Likewise.
53194         * lib/unistr/u8-stpncpy.c: Likewise.
53195         * lib/unistr/u8-strcat.c: Likewise.
53196         * lib/unistr/u8-strchr.c: Likewise.
53197         * lib/unistr/u8-strcmp.c: Likewise.
53198         * lib/unistr/u8-strcpy.c: Likewise.
53199         * lib/unistr/u8-strcspn.c: Likewise.
53200         * lib/unistr/u8-strdup.c: Likewise.
53201         * lib/unistr/u8-strlen.c: Likewise.
53202         * lib/unistr/u8-strmblen.c: Likewise.
53203         * lib/unistr/u8-strmbtouc.c: Likewise.
53204         * lib/unistr/u8-strncat.c: Likewise.
53205         * lib/unistr/u8-strncmp.c: Likewise.
53206         * lib/unistr/u8-strncpy.c: Likewise.
53207         * lib/unistr/u8-strnlen.c: Likewise.
53208         * lib/unistr/u8-strpbrk.c: Likewise.
53209         * lib/unistr/u8-strrchr.c: Likewise.
53210         * lib/unistr/u8-strspn.c: Likewise.
53211         * lib/unistr/u8-strstr.c: Likewise.
53212         * lib/unistr/u8-strtok.c: Likewise.
53213         * lib/unistr/u8-to-u16.c: Likewise.
53214         * lib/unistr/u8-to-u32.c: Likewise.
53215         * lib/unistr/u8-uctomb-aux.c: Likewise.
53216         * lib/unistr/u8-uctomb.c: Likewise.
53217         * lib/unitypes.h: Likewise.
53218         * lib/uniwidth.h: Likewise.
53219         * lib/uniwidth/cjk.h: Likewise.
53220         * lib/uniwidth/u16-strwidth.c: Likewise.
53221         * lib/uniwidth/u16-width.c: Likewise.
53222         * lib/uniwidth/u32-strwidth.c: Likewise.
53223         * lib/uniwidth/u32-width.c: Likewise.
53224         * lib/uniwidth/u8-strwidth.c: Likewise.
53225         * lib/uniwidth/u8-width.c: Likewise.
53226         * lib/uniwidth/width.c: Likewise.
53227
53228 2007-10-07  Bruno Haible  <bruno@clisp.org>
53229
53230         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
53231         The file is still under LGPL (see modules/inttypes).
53232
53233 2007-10-06  Bruno Haible  <bruno@clisp.org>
53234
53235         * modules/trunc (Dependencies): Add 'extensions'.
53236         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
53237         Reported by Ben Pfaff <blp@gnu.org>.
53238
53239 2007-10-06  Bruno Haible  <bruno@clisp.org>
53240
53241         * modules/freopen-tests: New file.
53242         * tests/test-freopen.c: New file.
53243
53244         * modules/fopen-tests: New file.
53245         * tests/test-fopen.c: New file.
53246
53247         * modules/fopen: New file.
53248         * lib/fopen.c: New file.
53249         * m4/fopen.m4: New file.
53250         * modules/freopen: New file.
53251         * lib/freopen.c: New file.
53252         * m4/freopen.m4: New file.
53253         * lib/stdio.in.h (fopen, freopen): New declarations.
53254         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
53255         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53256         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
53257         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53258         * doc/functions/fopen.texi: Mention the 'fopen' module.
53259         * doc/functions/freopen.texi: Mention the 'freopen' module.
53260
53261 2007-10-06  Bruno Haible  <bruno@clisp.org>
53262
53263         * modules/open-tests: New file.
53264         * tests/test-open.c: New file.
53265
53266         * modules/open: New file.
53267         * lib/open.c: New file.
53268         * m4/open.m4: New file.
53269         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
53270         lib/open.c does.
53271         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
53272         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
53273         macros.
53274         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
53275         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
53276         REPLACE_OPEN.
53277         * doc/functions/open.texi: Mention the 'open' module.
53278
53279 2007-10-04  Bruno Haible  <bruno@clisp.org>
53280
53281         * modules/ceill-tests: New file.
53282         * tests/test-ceill.c: New file.
53283
53284         * modules/ceill: New file.
53285         * lib/ceill.c: Replace entire file.
53286         * m4/ceill.m4: New file.
53287         * lib/math.in.h (ceill): Replace declaration.
53288         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
53289         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
53290         * doc/functions/ceill.texi: Mention the 'ceill' module.
53291         * modules/mathl (Files): Remove lib/ceill.c.
53292         (Depends-on): Add ceill.
53293
53294 2007-10-04  Bruno Haible  <bruno@clisp.org>
53295
53296         * modules/ceilf-tests: New file.
53297         * tests/test-ceilf.c: New file.
53298
53299         * modules/ceilf: New file.
53300         * lib/ceil.c: New file.
53301         * lib/ceilf.c: New file.
53302         * m4/ceilf.m4: New file.
53303         * lib/math.in.h (ceilf): New declaration.
53304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
53305         HAVE_DECL_CEILF.
53306         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
53307         HAVE_DECL_CEILF.
53308         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
53309
53310 2007-10-04  Bruno Haible  <bruno@clisp.org>
53311
53312         * modules/floorl-tests: New file.
53313         * tests/test-floorl.c: New file.
53314
53315         * modules/floorl: New file.
53316         * lib/floorl.c: Replace entire file.
53317         * m4/floorl.m4: New file.
53318         * lib/math.in.h (floorl): Replace declaration.
53319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
53320         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
53321         * doc/functions/floorl.texi: Mention the 'floorl' module.
53322         * modules/mathl (Files): Remove lib/floorl.c.
53323         (Depends-on): Add floorl.
53324
53325 2007-10-04  Bruno Haible  <bruno@clisp.org>
53326
53327         * modules/floorf-tests: New file.
53328         * tests/test-floorf.c: New file.
53329
53330         * modules/floorf: New file.
53331         * lib/floor.c: New file.
53332         * lib/floorf.c: New file.
53333         * m4/floorf.m4: New file.
53334         * lib/math.in.h (floorf): New declaration.
53335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
53336         HAVE_DECL_FLOORF.
53337         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
53338         HAVE_DECL_FLOORF.
53339         * doc/functions/floorf.texi: Mention the 'floorf' module.
53340
53341 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
53342             Bruno Haible  <bruno@clisp.org>
53343
53344         Advertise for the Git server instead of the CVS server.
53345         * doc/gnulib-intro.texi (Steady Development): Mention the Git
53346         repository instead of the CVS one.
53347         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
53348         about all VCS systems generically.
53349         * doc/gnulib.texi (Introduction): Capitalize `Git'.
53350
53351 2007-10-04  Bruno Haible  <bruno@clisp.org>
53352
53353         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
53354         means.
53355         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
53356
53357 2007-10-04  Bruno Haible  <bruno@clisp.org>
53358
53359         * modules/truncl-tests: New file.
53360         * tests/test-truncl.c: New file.
53361
53362         * modules/truncl: New file.
53363         * lib/truncl.c: New file.
53364         * m4/truncl.m4: New file.
53365         * lib/math.in.h (truncl): New declaration.
53366         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
53367         HAVE_DECL_TRUNCL.
53368         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
53369         HAVE_DECL_TRUNCL.
53370         * doc/functions/truncl.texi: Mention the 'truncl' module.
53371
53372 2007-10-04  Bruno Haible  <bruno@clisp.org>
53373
53374         * modules/truncf-tests: New file.
53375         * tests/test-truncf.c: New file.
53376
53377         * modules/truncf: New file.
53378         * lib/trunc.c: Make paramerizable through USE_* macros.
53379         * lib/truncf.c: New file.
53380         * m4/truncf.m4: New file.
53381         * lib/math.in.h (truncf): New declaration.
53382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
53383         HAVE_DECL_TRUNCF.
53384         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
53385         HAVE_DECL_TRUNCF.
53386         * doc/functions/truncf.texi: Mention the 'truncf' module.
53387
53388 2007-10-03  Bruno Haible  <bruno@clisp.org>
53389
53390         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53391         augmentation also for tests modules.
53392         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
53393         * modules/atexit-tests (Makefile.am): Likewise.
53394         * modules/binary-io-tests (Makefile.am): Likewise.
53395         * modules/c-strcase-tests (Makefile.am): Likewise.
53396         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
53397         * modules/canonicalize-tests (Makefile.am): Likewise.
53398         * modules/closein-tests (Makefile.am): Likewise.
53399         * modules/fprintf-posix-tests (Makefile.am): Likewise.
53400         * modules/freadahead-tests (Makefile.am): Likewise.
53401         * modules/fseek-tests (Makefile.am): Likewise.
53402         * modules/fseeko-tests (Makefile.am): Likewise.
53403         * modules/ftell-tests (Makefile.am): Likewise.
53404         * modules/ftello-tests (Makefile.am): Likewise.
53405         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
53406         * modules/isnanl-tests (Makefile.am): Likewise.
53407         * modules/lseek-tests (Makefile.am): Likewise.
53408         * modules/mbscasecmp-tests (Makefile.am): Likewise.
53409         * modules/mbscasestr-tests (Makefile.am): Likewise.
53410         * modules/mbschr-tests (Makefile.am): Likewise.
53411         * modules/mbscspn-tests (Makefile.am): Likewise.
53412         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
53413         * modules/mbspbrk-tests (Makefile.am): Likewise.
53414         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
53415         * modules/mbsrchr-tests (Makefile.am): Likewise.
53416         * modules/mbsspn-tests (Makefile.am): Likewise.
53417         * modules/mbsstr-tests (Makefile.am): Likewise.
53418         * modules/printf-posix-tests (Makefile.am): Likewise.
53419         * modules/snprintf-posix-tests (Makefile.am): Likewise.
53420         * modules/sprintf-posix-tests (Makefile.am): Likewise.
53421         * modules/tsearch-tests (Makefile.am): Likewise.
53422         * modules/uniname/uniname-tests (Makefile.am): Likewise.
53423         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
53424         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
53425         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
53426         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
53427         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
53428         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
53429         * modules/vprintf-posix-tests (Makefile.am): Likewise.
53430         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
53431         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
53432         * modules/xstrtoimax-tests (Makefile.am): Likewise.
53433         * modules/xstrtol-tests (Makefile.am): Likewise.
53434         * modules/xstrtoumax-tests (Makefile.am): Likewise.
53435         * modules/yesno-tests (Makefile.am): Likewise.
53436
53437 2007-10-03  Bruno Haible  <bruno@clisp.org>
53438
53439         * modules/trunc-tests: New file.
53440         * tests/test-trunc.c: New file.
53441
53442         * modules/trunc: New file.
53443         * lib/trunc.c: New file.
53444         * m4/trunc.m4: New file.
53445         * lib/math.in.h (trunc): New declaration.
53446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
53447         HAVE_DECL_TRUNC.
53448         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
53449         HAVE_DECL_TRUNC.
53450         * doc/functions/trunc.texi: Mention the 'trunc' module.
53451
53452 2007-10-03  Bruno Haible  <bruno@clisp.org>
53453
53454         * tests/test-fpending.c: New file, mostly copied
53455         from coreutils/lib/t-fpending.c.
53456         * modules/fpending-tests: New file.
53457
53458 2007-10-03  Bruno Haible  <bruno@clisp.org>
53459
53460         Port the stdio extensions to QNX (untested).
53461         * lib/fseterr.c (fseterr): Add support for QNX.
53462         * lib/fbufmode.c (fbufmode): Likewise.
53463         * lib/freadable.c (freadable): Likewise.
53464         * lib/fwritable.c (fwritable): Likewise.
53465         * lib/freading.c (freading): Likewise.
53466         * lib/fwriting.c (fwriting): Likewise.
53467         * lib/freadahead.c (freadahed): Likewise.
53468         * lib/fpurge.c (fpurge): Likewise.
53469         * lib/fseeko.c (rpl_fseeko): Likewise.
53470
53471 2007-10-03  Bruno Haible  <bruno@clisp.org>
53472             Jim Meyering  <jim@meyering.net>
53473             Eric Blake  <ebb9@byu.net>
53474
53475         * doc/relocatable.texi: Use @command instead of @program.
53476
53477 2007-10-02  Jim Meyering  <jim@meyering.net>
53478
53479         Perform one more "_.h" -> ".in.h" substitution.
53480         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
53481         instead of unistd_.h here, too.
53482
53483 2007-10-01  Bruno Haible  <bruno@clisp.org>
53484
53485         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
53486         Needed for the alloca-opt module.
53487
53488 2007-09-30  Bruno Haible  <bruno@clisp.org>
53489
53490         * lib/alloca.in.h: Renamed from lib/alloca_.h.
53491         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
53492         alloca_.h.
53493         * lib/argz.in.h: Renamed from lib/argz_.h.
53494         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
53495         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
53496         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
53497         byteswap_.h.
53498         * lib/dirent.in.h: Renamed from lib/dirent_.h.
53499         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
53500         dirent_.h.
53501         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
53502         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
53503         fcntl_.h.
53504         * lib/float.in.h: Renamed from lib/float_.h.
53505         * modules/float (Files, Makefile.am): Use float.in.h instead of
53506         float_.h.
53507         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
53508         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
53509         fnmatch_.h.
53510         * lib/getopt.in.h: Renamed from lib/getopt_.h.
53511         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
53512         getopt_.h.
53513         * lib/glob.in.h: Renamed from lib/glob_.h.
53514         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
53515         * lib/iconv.in.h: Renamed from lib/iconv_.h.
53516         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
53517         iconv_.h.
53518         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
53519         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
53520         inttypes_.h.
53521         * lib/locale.in.h: Renamed from lib/locale_.h.
53522         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
53523         locale_.h.
53524         * lib/math.in.h: Renamed from lib/math_.h.
53525         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
53526         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
53527         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
53528         of netinet_in_.h. Add dependency.
53529         * lib/poll.in.h: Renamed from lib/poll_.h.
53530         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
53531         * lib/search.in.h: Renamed from lib/search_.h.
53532         * modules/search (Files, Makefile.am): Use search.in.h instead of
53533         search_.h.
53534         * lib/signal.in.h: Renamed from lib/signal_.h.
53535         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
53536         _signal.h.
53537         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
53538         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
53539         stdbool_.h.
53540         * lib/stdint.in.h: Renamed from lib/stdint_.h.
53541         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
53542         stdint_.h.
53543         * lib/stdio.in.h: Renamed from lib/stdio_.h.
53544         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
53545         stdio_.h.
53546         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
53547         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
53548         stdlib_.h.
53549         * lib/string.in.h: Renamed from lib/string_.h.
53550         * modules/string (Files, Makefile.am): Use string.in.h instead of
53551         string_.h.
53552         * doc/gnulib-tool.texi (Initial import): Update.
53553         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
53554         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
53555         of sys_select_.h. Add dependency.
53556         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
53557         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
53558         of sys_socket_.h.
53559         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
53560         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
53561         sys_stat_.h.
53562         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
53563         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
53564         sys_time_.h.
53565         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
53566         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
53567         sysexits_.h.
53568         * lib/time.in.h: Renamed from lib/time_.h.
53569         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
53570         * lib/unistd.in.h: Renamed from lib/unistd_.h.
53571         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
53572         unistd_.h.
53573         * lib/wchar.in.h: Renamed from lib/wchar_.h.
53574         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
53575         wchar_.h.
53576         * lib/wctype.in.h: Renamed from lib/wctype_.h.
53577         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
53578         wctype_.h.
53579         * build-aux/bootstrap (slurp): Update.
53580         * lib/.cppi-disable: Update.
53581
53582 2007-09-30  Bruno Haible  <bruno@clisp.org>
53583
53584         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
53585         Needed on BeOS.
53586
53587 2007-09-30  Bruno Haible  <bruno@clisp.org>
53588
53589         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
53590
53591 2007-09-29  Bruno Haible  <bruno@clisp.org>
53592
53593         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
53594
53595 2007-09-29  Bruno Haible  <bruno@clisp.org>
53596
53597         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
53598         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
53599         * build-aux/install-reloc: Compile also areadlink.c.
53600         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
53601
53602 2007-09-29  Bruno Haible  <bruno@clisp.org>
53603
53604         * gnulib-tool (func_emit_initmacro_done): Indentation.
53605
53606 2007-09-29  Bruno Haible  <bruno@clisp.org>
53607
53608         * README: Add CVS checkout update instructions.
53609         Info from Bob Proulx <bob@proulx.com>.
53610
53611 2007-09-28  Eric Blake  <ebb9@byu.net>
53612
53613         Provide move-if-change.
53614         * build-aux/move-if-change: New file, based on best practice
53615         rather than any canonical upstream location.
53616
53617 2007-09-28  Jim Meyering  <jim@meyering.net>
53618
53619         Fix canonicalize loop-detection corner case.
53620         Do not attempt to stat the symlink values stored via seen_triple.
53621         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
53622         on linux-2.6.18, (but not 2.6.22).
53623         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
53624         triple_compare.  The former compares dev,ino,filename, while the latter
53625         would actually stat dirname(filename) when dev and ino were equal.
53626         * lib/hash-triple.c: Install <string.h>.
53627         (STREQ): Define.
53628         (triple_compare_ino_str): New function.
53629         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
53630
53631 2007-09-28  Eric Blake  <ebb9@byu.net>
53632
53633         Enforce that AC_REPLACE_FUNCS files exist.
53634         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
53635         override check for typos.
53636
53637         Fix test-closein on Solaris 10.
53638         * tests/test-closein.c (main): Don't assume stdin can be inherited
53639         closed on all systems.
53640         * tests/test-closein.sh: Likewise.
53641         Reported by Piotr Tarnowski.
53642
53643 2007-09-28  Jim Meyering  <jim@meyering.net>
53644
53645         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
53646
53647 2007-09-27  Jim Meyering  <jim@meyering.net>
53648
53649         canonicalize: Avoid a false-positive cycle failure.
53650         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
53651         Sort.  Remove cycle-check.
53652         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
53653         not cycle-check.h.
53654         (seen_triple): New function.
53655         (canonicalize_filename_mode): Use it instead of cycle-check.
53656         * tests/test-canonicalize.c: Add a test for this bug.
53657         * tests/test-canonicalize.sh: Set up and run the test.
53658
53659         New module, file-set, from coreutils.
53660         * modules/file-set: Define it.
53661         * lib/file-set.c, lib/file-set.h: Implement.
53662
53663         New module, hash-triple, from coreutils.
53664         * modules/hash-triple: Define it.
53665         * lib/hash-triple.c, lib/hash-triple.h: Implement.
53666
53667 2007-09-25  Eric Blake  <ebb9@byu.net>
53668
53669         Fix strerror on Interix.
53670         * lib/string_.h (strerror): Declare replacement.
53671         * doc/functions/strerror.texi (strerror): Document the Interix
53672         shortcoming.
53673         * modules/string (Makefile.am): Support new hooks.
53674         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
53675         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
53676         gl_FUNC_STRERROR_SEPARATE.
53677         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
53678         * lib/strerror.c (rpl_strerror): Provide replacement.
53679         * modules/strerror (Depends-on): Add string.
53680         (configure.ac): Detect use of module.
53681         * tests/test-strerror.c: New file.
53682         * modules/strerror-tests: New test module.
53683         * modules/argp (Depends-on): Add strerror.
53684         * modules/error (Depends-on): Likewise.
53685         Reported by Martin Koeppe.
53686
53687 2007-09-24  Bruno Haible  <bruno@clisp.org>
53688
53689         * README: Update git instructions.
53690
53691 2007-09-24  Eric Blake  <ebb9@byu.net>
53692
53693         Revert fpending breakage from 2007-09-08.
53694         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
53695         __fpending.c.
53696
53697 2007-09-24  Jim Meyering  <jim@meyering.net>
53698
53699         filenamecat.c: Add a test.
53700         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
53701         showing how the function works when DIR is the empty string.
53702
53703 2007-09-21  Simon Josefsson  <simon@josefsson.org>
53704
53705         * tests/test-canonicalize.sh: Turn on executable bit.
53706
53707 2007-09-19  Eric Blake  <ebb9@byu.net>
53708
53709         * README: Update CVS instructions.
53710
53711 2007-09-18  Bruno Haible  <bruno@clisp.org>
53712
53713         * modules/areadlink: New file.
53714         * lib/areadlink.h (areadlink): New declaration.
53715         * lib/areadlink.c: New file, based on lib/xreadlink.c.
53716
53717 2007-09-17  Jim Meyering  <jim@meyering.net>
53718
53719         * lib/savewd.c (ESTALE) [!defined]: Define.
53720         Reported to be required on Interix by Martin Koeppe.
53721
53722 2007-09-17  Bruno Haible  <bruno@clisp.org>
53723
53724         * gnulib-tool (func_version): Use $version.
53725
53726 2007-09-16  Bruno Haible  <bruno@clisp.org>
53727
53728         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
53729         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
53730         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
53731         Reported by Greg Schafer <gschafer@zip.com.au>.
53732
53733 2007-09-15  Bruno Haible  <bruno@clisp.org>
53734
53735         * gnulib-tool (sed): Try a little harder to make bash understand the
53736         alias.
53737         Reported by Bruce Korb <bruce.korb@gmail.com>.
53738
53739 2007-09-13  Eric Blake  <ebb9@byu.net>
53740
53741         * ChangeLog: Remove conflict markers.
53742
53743 2007-09-13  Simon Josefsson  <simon@josefsson.org>
53744
53745         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
53746         Reported by Bruno Haible <bruno@clisp.org>.
53747
53748 2007-09-12  Bruno Haible  <bruno@clisp.org>
53749
53750         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
53751         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
53752         is not defined.
53753
53754 2007-09-12  Eric Blake  <ebb9@byu.net>
53755
53756         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
53757         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
53758         Autoconf definition.
53759         * modules/euidaccess (Depends-on): Add extensions, for
53760         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
53761         * modules/fnmatch (Depends-on): Likewise.
53762         * modules/getaddrinfo (Depends-on): Likewise.
53763         * modules/getdelim (Depends-on): Likewise.
53764         * modules/getline (Depends-on): Likewise.
53765         * modules/getsubopt (Depends-on): Likewise.
53766         * modules/gettext (Depends-on): Likewise.
53767         * modules/group-member (Depends-on): Likewise.
53768         * modules/mbchar (Depends-on): Likewise.
53769         * modules/memmem (Depends-on): Likewise.
53770         * modules/mempcpy (Depends-on): Likewise.
53771         * modules/memrchr (Depends-on): Likewise.
53772         * modules/pagealign_alloc (Depends-on): Likewise.
53773         * modules/readutmp (Depends-on): Likewise.
53774         * modules/stpcpy (Depends-on): Likewise.
53775         * modules/stpncpy (Depends-on): Likewise.
53776         * modules/strchrnul (Depends-on): Likewise.
53777         * modules/strndup (Depends-on): Likewise.
53778         * modules/strsep (Depends-on): Likewise.
53779         * modules/strverscmp (Depends-on): Likewise.
53780         * modules/vasprintf (Depends-on): Likewise.
53781         * modules/wcwidth (Depends-on): Likewise.
53782         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
53783         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
53784         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
53785         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
53786         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53787         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53788         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
53789         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53790         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
53791         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
53792         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53793         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53794         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53795         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
53796         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
53797         * m4/readutmp.m4 (gl_READUTMP): Likewise.
53798         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53799         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53800         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53801         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53802         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53803         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53804         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53805         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
53806         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
53807         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53808         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
53809         so that lock.m4 can be used in gettext without extensions module.
53810
53811 2007-09-11  Bruno Haible  <bruno@clisp.org>
53812
53813         * m4/isc-posix.m4: Remove file.
53814         Suggested by Eric Blake.
53815
53816 2007-09-11  Eric Blake  <ebb9@byu.net>
53817
53818         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
53819
53820 2007-09-10  Bruno Haible  <bruno@clisp.org>
53821
53822         * posix-modules: Fix typo in error message.
53823         Reported by Matt <mkraai@beckman.com>.
53824
53825 2007-09-09  Bruno Haible  <bruno@clisp.org>
53826
53827         * doc/functions/getdelim.texi: Update list of platforms lacking the
53828         function.
53829         * doc/functions/getline.texi: Likewise.
53830
53831 2007-09-09  Jim Meyering  <jim@meyering.net>
53832
53833         * lib/hash.c (hash_initialize): Detect calloc failure.
53834         Reported by Bruno Haible.
53835
53836 2007-09-09  Bruno Haible  <bruno@clisp.org>
53837
53838         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
53839         malloc or realloc fails.
53840
53841 2007-09-09  Bruno Haible  <bruno@clisp.org>
53842
53843         * modules/getcwd (Depends-on): Add malloc-posix.
53844         * modules/glob (Depends-on): Likewise.
53845         * modules/putenv (Depends-on): Likewise.
53846         * modules/strdup (Depends-on): Likewise.
53847         * modules/getdelim (Depends-on): Add realloc-posix.
53848         * modules/read-file (Depends-on): Likewise.
53849
53850 2007-09-09  Bruno Haible  <bruno@clisp.org>
53851
53852         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
53853         (gl_FUNC_MALLOC_POSIX): Require it.
53854         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
53855         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
53856         * modules/realloc (Files): Add m4/malloc.m4.
53857         * modules/calloc (Files): Likewise.
53858
53859 2007-09-09  Bruno Haible  <bruno@clisp.org>
53860
53861         * modules/malloc-posix: New file.
53862         * modules/malloc (Depends-on): Add malloc-posix.
53863         * lib/malloc.c: Include errno.h.
53864         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
53865         and a POSIX-compatible malloc into a single function. Set ENOMEM
53866         when returning NULL.
53867         * m4/malloc.m4: New file.
53868         * doc/functions/malloc.texi: Mention the malloc-posix module.
53869         * lib/stdlib_.h (malloc): New declaration.
53870         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53871         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
53872         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
53873         and HAVE_MALLOC_POSIX.
53874
53875 2007-09-09  Bruno Haible  <bruno@clisp.org>
53876
53877         * modules/realloc-posix: New file.
53878         * modules/realloc (Depends-on): Add realloc-posix.
53879         * lib/realloc.c: Include errno.h.
53880         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
53881         and a POSIX-compatible realloc into a single function. Set ENOMEM
53882         when returning NULL.
53883         * m4/realloc.m4: New file.
53884         * doc/functions/realloc.texi: Mention the realloc-posix module.
53885         * lib/stdlib_.h (realloc): New declaration.
53886         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53887         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
53888         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
53889         and HAVE_REALLOC_POSIX.
53890
53891 2007-09-09  Bruno Haible  <bruno@clisp.org>
53892
53893         * modules/calloc-posix: New file.
53894         * modules/calloc (Depends-on): Add calloc-posix.
53895         * lib/calloc.c: Include errno.h.
53896         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
53897         and a POSIX-compatible calloc into a single function. Set ENOMEM
53898         when returning NULL.
53899         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
53900         * doc/functions/calloc.texi: Mention the calloc-posix module.
53901         * lib/stdlib_.h (calloc): New declaration.
53902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53903         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
53904         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
53905         and HAVE_CALLOC_POSIX.
53906
53907 2007-09-09  Bruno Haible  <bruno@clisp.org>
53908
53909         Allow for modules to show an arbitrary notice.
53910         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
53911         * gnulib-tool: New option --extract-notice.
53912         (func_usage): Document it.
53913         (sed_extract_prog): Update.
53914         (func_get_notice): New function.
53915         (func_modules_notice): New function.
53916         (func_import, func_create_testdir): Invoke it.
53917         Suggested by Jim Meyering.
53918
53919 2007-09-09  Bruno Haible  <bruno@clisp.org>
53920
53921         * gnulib-tool: New options --verbose, --quiet.
53922         (func_usage): Document them.
53923         (verbose): New variable.
53924         (func_execute_command): New function.
53925         (func_import): Don't show the module list and the file list if
53926         $verbose < 0.
53927         (func_create_testdir): Likewise. Use func_execute_command.
53928         (func_create_megatestdir): Use func_execute_command.
53929
53930 2007-09-08  Bruno Haible  <bruno@clisp.org>
53931
53932         * gnulib-tool (func_import): Prefer rsync over wget when available,
53933         for fetching the PO files.
53934
53935 2007-09-08  Bruno Haible  <bruno@clisp.org>
53936
53937         * posix-modules: New file. Portions copied from gnulib-tool.
53938         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
53939
53940 2007-09-08  Jim Meyering  <jim@meyering.net>
53941
53942         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
53943         * lib/fpending.h: Rename from __fpending.h.
53944         * lib/fpending.c: Rename from __fpending.c.
53945         Include "fpending.h", not "__fpending.h".
53946         * lib/__fpending.h, lib/__fpending.c: Remove files.
53947         * modules/fpending (Files): Reflect new file names.
53948         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
53949
53950 2007-09-08  Bruno Haible  <bruno@clisp.org>
53951
53952         * m4/inttypes-h.m4: Remove stub file.
53953
53954 2007-09-07  Simon Josefsson  <simon@josefsson.org>
53955
53956         * doc/headers/stdint.texi: Discuss #include_next issue.
53957
53958 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53959
53960         * build-aux/bootstrap: Remove obsolete comment about wget --help.
53961
53962 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53963
53964         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
53965         in variable name.
53966
53967 2007-09-03  Jim Meyering  <jim@meyering.net>
53968
53969         New module: git-version-gen.
53970         * modules/git-version-gen: New file.
53971
53972         Import changes from coreutils for bootstrap script.
53973
53974         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53975
53976         bootstrap: uses rsync to download the .po files
53977         * build-aux/bootstrap (po_download_command_format): New global.
53978         (download_po_files): Use rsync.
53979         (update_po_files): Don't remove .po files after download,
53980         so future rsync runs can take advantage of the copies.
53981
53982         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53983
53984         Solve the unnecessary-.po-file-regeneration problem once and for all.
53985         * build-aux/bootstrap (download_po_files): New function, renamed from
53986         get_translations.  Now, downloads, but doesn't update LINGUAS.
53987         (update_po_files): New function.
53988
53989         bootstrap: Ignore more.
53990         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53991         uniwidth to e.g., lib/.gitignore.
53992         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53993
53994         * build-aux/bootstrap: New setting: vc_ignore.
53995         (insert_sorted_if_absent): Create $file if absent.
53996         Adapt to new, possibly empty, list: $vc_ignore.
53997
53998         bootstrap: generate more ignorable names
53999         * build-aux/bootstrap (slurp): When generating ignorable names,
54000         also map .sin to .sed, .gperf to .c, and .y to .c.
54001
54002 2007-09-03  Jim Meyering  <jim@meyering.net>
54003
54004         * build-aux/git-version-gen: New file, from coreutils.  For details, see
54005         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
54006
54007 2007-09-02  Bruno Haible  <bruno@clisp.org>
54008
54009         Fix mis-recognition of 'mcs' on QNX 6.
54010         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
54011         output contains the string "Mono".
54012         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
54013         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
54014
54015 2007-09-01  Bruno Haible  <bruno@clisp.org>
54016
54017         Fix collision between uniwidth/* and linebreak modules.
54018         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
54019         u32_width): Remove declarations.
54020         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
54021         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
54022         streq3, streq2, streq1, streq0): Remove functions.
54023         (STREQ): Remove macro.
54024         (is_cjk_encoding): Remove function.
54025         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
54026         (uc_width, u8_width, u16_width, u32_width): Remove functions.
54027         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
54028         * NEWS: Document the change.
54029
54030 2007-09-01  Bruno Haible  <bruno@clisp.org>
54031
54032         * lib/streq.h: Add double-inclusion guard.
54033
54034 2007-09-01  Karl Berry  <karl@gnu.org>
54035
54036         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
54037
54038 2007-08-28  Jim Meyering  <jim@meyering.net>
54039
54040         Rename mreadlink_with_size to areadlink_with_size.
54041         * NEWS: Document the change.
54042         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
54043         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
54044         * lib/mreadlink.h: Rename this to...
54045         * lib/areadlink.h: ...this.
54046         * modules/mreadlink-with-size: Rename this to...
54047         * modules/areadlink-with-size: ...this.
54048         * lib/canonicalize.c: Reflect the renaming.
54049         * modules/canonicalize: Likewise.
54050
54051 2007-08-26  Bruno Haible  <bruno@clisp.org>
54052
54053         * gnulib-tool (func_import): When deciding which files to remove,
54054         consider also dangling symbolic links.
54055         Reported by Eric Blake.
54056
54057 2007-08-26  Bruno Haible  <bruno@clisp.org>
54058
54059         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
54060
54061 2007-08-23  Simon Josefsson  <simon@josefsson.org>
54062
54063         * lib/readline.c: Don't include getline.h, the prototype is now
54064         found in stdio.h.
54065
54066 2007-08-23  Jim Meyering  <jim@meyering.net>
54067
54068         Getdelim touchup.
54069         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
54070         around the funlockfile call, since funlockfile never sets errno.
54071         Don't set errno upon failed realloc.
54072
54073 2007-08-22  Eric Blake  <ebb9@byu.net>
54074
54075         Getline touchups.
54076         * lib/getdelim.c (getdelim): Revert regression that required *n to
54077         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
54078         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
54079         getdelim, rather than whether implementation is missing.
54080         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
54081         * lib/stdio_.h (getline): Also declare if replacement is
54082         required.
54083         * doc/functions/getdelim.texi: New file.
54084         * doc/functions/getline.texi: Likewise.
54085         * doc/gnulib.texi (Function Substitutes): Add new files.
54086         Reported by Bruno Haible.
54087
54088 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
54089
54090         * users.txt: Add Guile.
54091
54092 2007-08-22  Eric Blake  <ebb9@byu.net>
54093
54094         * tests/test-getdelim.c (main): Use remove, not unlink.
54095         * tests/test-getline.c (main): Likewise.
54096
54097         Move getline and getdelim into stdio.h, per POSIX 200x.
54098         * modules/getline (Files): Remove getline.h.
54099         (Depends-on): Add stdio.
54100         (configure.ac): Add module indicator.
54101         * modules/getdelim (Files): Remove getdelim.h.
54102         (Depends-on): Add stdio.
54103         (configure.ac): Add module indicator.
54104         * modules/stdio (Makefile.am): Work with new indicators.
54105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
54106         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
54107         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54108         * lib/getdelim.h: Delete.
54109         * lib/getline.h: Delete.
54110         * lib/stdio_.h (getdelim, getline): Declare.
54111         * modules/getdelim-tests: New module.
54112         * modules/getline-tests: Likewise.
54113         * tests/test-getdelim.c: New file.
54114         * tests/test-getline.c: Likewise.
54115         * NEWS: Document the change.
54116         * lib/getline.c: Update choice of header.
54117         * lib/csharpcomp.c: Likewise.
54118         * lib/getpass.c: Likewise.
54119         * lib/javacomp.c: Likewise.
54120         * lib/javaversion.c: Likewise.
54121         * lib/yesno.c: Likewise.
54122         * lib/getdelim.c: Likewise.
54123         (getdelim): Set errno on failure, and avoid memory leak.
54124
54125 2007-08-19  Bruno Haible  <bruno@clisp.org>
54126
54127         * modules/closein (Depends-on): Add freadahead.
54128         * lib/closein.c: Include freadahead.h.
54129         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
54130         is zero.
54131
54132 2007-08-19  Bruno Haible  <bruno@clisp.org>
54133
54134         * modules/freadahead-tests: New file.
54135         * tests/test-freadahead.sh: New file.
54136         * tests/test-freadahead.c: New file.
54137
54138         * modules/freadahead: New file.
54139         * lib/freadahead.h: New file.
54140         * lib/freadahead.c: New file.
54141         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
54142         fbufmode, fpurge, freadable, fwritable.
54143
54144 2007-08-19  Eric Blake  <ebb9@byu.net>
54145
54146         Test yesno in combination with closein.
54147         * lib/yesno.c (yesno): Document use of stdin.
54148         * modules/yesno-tests (Files): New module.
54149         * tests/test-yesno.c (main): New file.
54150         * tests/test-yesno.sh: Likewise.
54151
54152 2007-08-19  Bruno Haible  <bruno@clisp.org>
54153
54154         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
54155         * lib/fseeko.c (rpl_fseeko): Likewise.
54156         * lib/fseterr.c (fseterr): Likewise.
54157
54158 2007-08-19  Bruno Haible  <bruno@clisp.org>
54159
54160         * tests/test-lseek.c (main): Disable a test for BeOS.
54161         * doc/functions/lseek.texi: Document the BeOS bug.
54162
54163 2007-08-19  Bruno Haible  <bruno@clisp.org>
54164             Eric Blake  <ebb9@byu.net>
54165
54166         * lib/lseek.c: Include <sys/stat.h>.
54167         (rpl_lseek): Add workaround code also for Unix platforms.
54168         Needed for BeOS.
54169         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
54170         * doc/functions/lseek.texi: Document BeOS definiency.
54171
54172 2007-08-18  Bruno Haible  <bruno@clisp.org>
54173
54174         * modules/fstrcmp-tests: New file.
54175         * tests/test-fstrcmp.c: New file.
54176
54177 2007-08-18  Bruno Haible  <bruno@clisp.org>
54178
54179         * modules/fstrcmp: New file, from GNU gettext with modifications.
54180         * lib/fstrcmp.h: New file, from GNU gettext.
54181         * lib/fstrcmp.c: New file, from GNU gettext.
54182         * MODULES.html.sh (String handling): Add fstrcmp.
54183
54184 2007-08-18  Bruno Haible  <bruno@clisp.org>
54185
54186         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
54187         'bool'.
54188         (diag, compareseq): Remove const from the ctxt argument.
54189         (USE_HEURISTIC): Undefine at the end.
54190
54191 2007-08-18  Jim Meyering  <jim@meyering.net>
54192
54193         New file: lib/idcache.h
54194         * NEWS: Mention the addition.
54195         * modules/idcache (Files): Add lib/idcache.h
54196         * lib/idcache.c: Include "idcache.h".
54197         Don't include <sys/types.h>.
54198         Add a FIXME comment.
54199         Move file-scoped "static" declarations to the top.
54200         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
54201
54202 2007-08-17  Bruno Haible  <bruno@clisp.org>
54203         and Paul Eggert  <eggert@cs.ucla.edu>
54204
54205         * MODULES.html.sh: Add diffseq.
54206         * modules/diffseq: New file.
54207         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
54208         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
54209
54210 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54211
54212         Import changes from coreutils for bootstrap script.
54213
54214         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
54215
54216         * build-aux/bootstrap (slurp): Work even in environments where
54217         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
54218         current code does not slurp files whose names start with ".", and
54219         this looks like it might be a troublesome area.
54220
54221         2007-07-11  Jim Meyering  <jim@meyering.net>
54222
54223         If there's a GPL vN copyright comment, require that N == 3.
54224
54225         2007-07-08  Jim Meyering  <jim@meyering.net>
54226
54227         Run the coreutils-specific code only if tests/Makefile.am.in exists.
54228         * build-aux/bootstrap (mam_template): Move definition out of loop.
54229
54230         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
54231
54232         * build-aux/bootstrap (symlink_to_dir): Rename function from
54233         symlink_to_gnulib.  Add a directory parameter.  Update all
54234         callers.
54235         (cp_mark_as_generated): Also check for -- and link to -- files in
54236         gl/.
54237
54238         2007-07-08  Jim Meyering  <jim@meyering.net>
54239
54240         Adapt to deeper hierarchy in gnulib.
54241         * build-aux/bootstrap (symlink_to_dir): If the destination
54242         directory doesn't exist, create it. This is required at least for
54243         "lib/uniwidth/cjk.h".
54244
54245         2007-05-15  Jim Meyering  <jim@meyering.net>
54246
54247         * build-aux/bootstrap: Now that generated Makefile.am files
54248         are no longer under version control, they must be created at
54249         bootstrap time.
54250
54251 2007-08-14  Ben Pfaff  <blp@gnu.org>
54252
54253         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
54254
54255 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54256
54257         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
54258         given the changes below.
54259         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
54260         even on hosts that have padding bits beyond the supported 64.
54261
54262 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54263
54264         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
54265         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
54266         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
54267         depends on it.
54268         (xstrtol_error): Remove.
54269         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
54270         but with a different signature.
54271         (ATTRIBUTE_NORETURN, __attribute__): New macros.
54272         * lib/xstrtol-error.c: Include exitfail.h.
54273         (xstrtol_fatal): New function, with a different signature from the
54274         old xstrtol_error, so that the caller need not worry about passing
54275         in an exit status, or about storage management of the option argument.
54276         (xstrtol_error): Now a static function.  Redo signature to
54277         implement xstrtol_fatal.  Output the correct number of hyphens in
54278         front of the option so that the caller need not worry about
54279         storage management.
54280         (N_): New macro.
54281         (_): Remove; not used now.
54282         * modules/xstrtol: Depend on getopt.
54283         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
54284         of old STRTOL_FATAL_ERROR macro.
54285         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
54286         of test program.
54287         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
54288         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
54289
54290 2007-08-08  Eric Blake  <ebb9@byu.net>
54291
54292         * lib/xstrtol-error.c: Add missing include.
54293
54294         Move xstrtol messages into gnulib domain, when --pobase is used.
54295         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
54296         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
54297         * modules/xstrtol (Files): Distribute new file.
54298         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
54299         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
54300         * tests/test-xstrtol.c: ...into new file.
54301         * tests/test-xstrtoul.c: Also test xstrtoul.
54302         * tests/test-xstrtoimax.c: Also test xstrtoimax.
54303         * tests/test-xstrtoumax.c: Also test xstrtoumax.
54304         * tests/test-xstrtol.sh: Drive the tests.
54305         * tests/test-xstrtoimax.sh: Likewise.
54306         * tests/test-xstrtoumax.sh: Likewise.
54307         * modules/xstrtol-tests: New module.
54308         * modules/xstrtoimax-tests: Likewise.
54309         * modules/xstrtoumax-tests: Likewise.
54310
54311 2007-08-08  Jim Meyering  <jim@meyering.net>
54312
54313         New function: mfile_name_concat.
54314         * lib/filenamecat.c (mfile_name_concat): New function, just like
54315         file_name_concat, but return NULL upon failure rather than exiting
54316         with a diagnostic.
54317         * lib/filenamecat.h: Declare it.
54318
54319 2007-08-07  Bruno Haible  <bruno@clisp.org>
54320
54321         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
54322         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
54323         warning from gcc.
54324         Reported by Eric Blake.
54325
54326 2007-08-07  Simon Josefsson  <simon@josefsson.org>
54327
54328         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
54329         * modules/crypto/arcfour (License): Likewise.
54330         * modules/crypto/des-tests (License): Likewise.
54331         * modules/crypto/gc-arctwo-tests (License): Likewise.
54332         * modules/crypto/gc-des-tests (License): Likewise.
54333         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
54334         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
54335         * modules/crypto/gc-md2-tests (License): Likewise.
54336         * modules/crypto/gc-md4-tests (License): Likewise.
54337         * modules/crypto/gc-md5-tests (License): Likewise.
54338         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
54339         * modules/crypto/gc-rijndael-tests (License): Likewise.
54340         * modules/crypto/gc-sha1-tests (License): Likewise.
54341         * modules/crypto/gc-tests (License): Likewise.
54342         * modules/crypto/hmac-md5 (License): Likewise.
54343         * modules/crypto/hmac-sha1 (License): Likewise.
54344         * modules/crypto/md2-tests (License): Likewise.
54345         * modules/crypto/md4-tests (License): Likewise.
54346         * modules/crypto/md5 (License): Likewise.
54347         * modules/crypto/rijndael (License): Likewise.
54348         * modules/crypto/sha1 (License): Likewise.
54349         * modules/memxor (License): Likewise.
54350
54351 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54352         and Bruno Haible  <bruno@clisp.org>
54353
54354         * NEWS: Describe interface changes to human, xstrtol.
54355         * lib/human.h: Include <xstrtol.h>.
54356         (human_options): Return enum strtol_error, not int.  Remove
54357         bool arg; take int * instead.
54358         * lib/human.c: Don't include "gettext.h".
54359         (_): Remove; no longer used.
54360         Don't include <xstrtol.h>, since human.h does it.
54361         (human_options): Adjust to abovementioned interface changes.
54362         Do not report error to stderr; that's now the caller's
54363         responsibility.
54364         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
54365         interface change.
54366         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
54367         Str, Argument_type_string.  All uses changed.  Put " argument"
54368         in diagnostics to make them clearer.  Change wording of suffix
54369         message for clarity.
54370         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
54371         Argument_type_string.
54372         (STRTOL_FATAL_WARN): Remove; no longer used.
54373         * modules/human (Depends-on): Remove gettext-h.
54374
54375 2007-08-06  Simon Josefsson  <simon@josefsson.org>
54376
54377         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
54378
54379 2007-07-31  Bruno Haible  <bruno@clisp.org>
54380
54381         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
54382         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
54383         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
54384
54385 2007-07-31  Bruno Haible  <bruno@clisp.org>
54386
54387         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
54388         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
54389
54390 2007-07-30  Bruno Haible  <bruno@clisp.org>
54391
54392         * modules/base64 (License): Use the synonymous term "LGPLv2+".
54393         * modules/c-ctype (License): Likewise.
54394         * modules/c-strcase (License): Likewise.
54395         * modules/check-version (License): Likewise.
54396         * modules/iconv (License): Likewise.
54397         * modules/iconv_open (License): Likewise.
54398         * modules/read-file (License): Likewise.
54399         * modules/striconv (License): Likewise.
54400         * modules/strverscmp (License): Likewise.
54401         * modules/vasprintf (License): Likewise.
54402         * modules/crypto/des (License): Likewise.
54403         * modules/crypto/gc (License): Likewise.
54404         * modules/crypto/gc-arcfour (License): Likewise.
54405         * modules/crypto/gc-arctwo (License): Likewise.
54406         * modules/crypto/gc-des (License): Likewise.
54407         * modules/crypto/gc-hmac-md5 (License): Likewise.
54408         * modules/crypto/gc-hmac-sha1 (License): Likewise.
54409         * modules/crypto/gc-md2 (License): Likewise.
54410         * modules/crypto/gc-md4 (License): Likewise.
54411         * modules/crypto/gc-md5 (License): Likewise.
54412         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
54413         * modules/crypto/gc-random (License): Likewise.
54414         * modules/crypto/gc-rijndael (License): Likewise.
54415         * modules/crypto/gc-sha1 (License): Likewise.
54416         * modules/crypto/md2 (License): Likewise.
54417         * modules/crypto/md4 (License): Likewise.
54418
54419 2007-07-30  Jim Meyering  <jim@meyering.net>
54420
54421         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
54422         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
54423         it has valid stat data.  This bug would cause du not to count the
54424         sizes of inaccessible directories.
54425         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
54426         in <http://bugzilla.redhat.com/250077>.
54427
54428 2007-07-25  Peter O'Gorman  <peter@pogma.com>
54429             Bruno Haible  <bruno@clisp.org>
54430
54431         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
54432         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
54433         #include_next, gives a diagnostic about it, but reports no error in
54434         the exit code.
54435         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54436
54437 2007-07-24  Ben Pfaff  <blp@gnu.org>
54438
54439         Improve name: "count-one-bits" is better than "popcount".
54440         * MODULES.html.sh: Update name.
54441         * lib/popcount.h: Renamed lib/count-one-bits.h.
54442         (popcount): Renamed count_one_bits.
54443         (popcountl): Renamed count_one_bits_l.
54444         (popcountll): Renamed count_one_bits_ll.
54445         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
54446         * modules/popcount: Renamed module/count-one-bits.
54447         * modules/popcount-tests: Renamed module/count-one-bits-tests.
54448         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
54449
54450 2007-07-23  Ben Pfaff  <blp@gnu.org>
54451
54452         * lib/popcount.h (popcount32): Reduce size of constants, to allow
54453         better code generation, and add U to large constants to avoid
54454         warnings, in non-GCC case.
54455         Suggested by Bruno Haible.
54456
54457 2007-07-23  Ben Pfaff  <blp@gnu.org>
54458
54459         * lib/popcount.h: Use verify_true instead of if...abort.
54460         * modules/popcount: Depend on verify module.
54461         Suggested by Jim Meyering.
54462
54463 2007-07-23  Bruno Haible  <bruno@clisp.org>
54464
54465         * gnulib-tool (func_import): Create a .cvsignore file also when the
54466         directory is not yet in CVS but the toplevel directory is. When
54467         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
54468         Reported by Karl Berry.
54469
54470 2007-07-22  Ben Pfaff  <blp@gnu.org>
54471
54472         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
54473         case.
54474         Suggested by Eric Blake.
54475
54476 2007-07-22  Ben Pfaff  <blp@gnu.org>
54477
54478         New module: popcount.
54479         * MODULES.html.sh: Add popcount.
54480         * modules/popcount: New file.
54481         * modules/popcount-tests: New file.
54482         * tests/test-popcount.c: New file.
54483         * lib/popcount.h: New file.
54484         * m4/popcount.m4: New file.
54485
54486 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54487
54488         * build-aux/announce-gen: Update to GPLv3.
54489
54490         * build-aux/config.guess: Update from config.
54491
54492 2007-07-21  Bruno Haible  <bruno@clisp.org>
54493
54494         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
54495         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
54496
54497 2007-07-20  Jim Meyering  <jim@meyering.net>
54498
54499         * check-module: Diagnose a self-dependency.
54500
54501 2007-07-19  Bruno Haible  <bruno@clisp.org>
54502
54503         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
54504         empty.
54505         Reported by Eric Blake.
54506
54507 2007-07-18  Bruno Haible  <bruno@clisp.org>
54508
54509         * gnulib-tool: New options --po-base, --po-domain.
54510         (func_usage): Document them.
54511         (pobase, po_domain): New variables.
54512         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
54513         DEFAULT_TEXT_DOMAIN.
54514         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
54515         (func_import): Consider pobase and po_domain. Create a po/ directory.
54516         (func_create_testdir): Set pobase and po_domain to empty.
54517         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
54518         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
54519
54520 2007-07-18  Bruno Haible  <bruno@clisp.org>
54521
54522         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54523         EXTRA_DIST augmentation for files in build-aux/.
54524
54525 2007-07-16  Bruno Haible  <bruno@clisp.org>
54526
54527         * modules/lseek (License): Use the synonymous term "LGPLv2+".
54528         * modules/getdelim (License): Likewise.
54529
54530 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54531
54532         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
54533         * modules/d-type (License): Likewise.
54534         * modules/extensions (License): Likewise.
54535         * modules/fnmatch (License): Likewise.
54536         * modules/fseeko (License): Likewise.
54537         * modules/getaddrinfo (License): Likewise.
54538         * modules/getline (License): Likewise.
54539         * modules/getlogin_r (License): Likewise.
54540         * modules/getpass (License): Likewise.
54541         * modules/gettimeofday (License): Likewise.
54542         * modules/glob (License): Likewise.
54543         * modules/inet_ntop (License): Likewise.
54544         * modules/malloc (License): Likewise.
54545         * modules/malloca (License): Likewise.
54546         * modules/memmem (License): Likewise.
54547         * modules/mempcpy (License): Likewise.
54548         * modules/memset (License): Likewise.
54549         * modules/minmax (License): Likewise.
54550         * modules/mktime (License): Likewise.
54551         * modules/netinet_in (License): Likewise.
54552         * modules/pathmax (License): Likewise.
54553         * modules/poll (License): Likewise.
54554         * modules/regex (License): Likewise.
54555         * modules/snprintf (License): Likewise.
54556         * modules/stdbool (License): Likewise.
54557         * modules/stdint (License): Likewise.
54558         * modules/stdio (License): Likewise.
54559         * modules/strcase (License): Likewise.
54560         * modules/strcasestr (License): Likewise.
54561         * modules/strdup (License): Likewise.
54562         * modules/string (License): Likewise.
54563         * modules/strndup (License): Likewise.
54564         * modules/strnlen (License): Likewise.
54565         * modules/strpbrk (License): Likewise.
54566         * modules/strptime (License): Likewise.
54567         * modules/strsep (License): Likewise.
54568         * modules/sys_select (License): Likewise.
54569         * modules/sys_socket (License): Likewise.
54570         * modules/sys_stat (License): Likewise.
54571         * modules/sys_time (License): Likewise.
54572         * modules/time (License): Likewise.
54573         * modules/time_r (License): Likewise.
54574         * modules/timegm (License): Likewise.
54575         * modules/unistd (License): Likewise.
54576         * modules/vsnprintf (License): Likewise.
54577         * modules/wctype (License): Likewise.
54578
54579 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54580
54581         * modules/argz (License): LGPLv2+.
54582
54583 2007-07-15  Karl Berry  <karl@gnu.org>
54584
54585         * doc/gnulib.texi: revise node structure per new fdl.texi.
54586
54587 2007-07-14  Bruno Haible  <bruno@clisp.org>
54588
54589         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
54590         the output file.
54591         * lib/uniname/uninames.h: Regenerated.
54592
54593 2007-07-14  Karl Berry  <karl@gnu.org>
54594
54595         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
54596         omitting sectioning and index commands.
54597
54598 2007-07-13  Bruno Haible  <bruno@clisp.org>
54599
54600         New gnulib-tool option --more-symlinks.
54601         * gnulib-tool (func_usage): Document --more-symlinks.
54602         (do_copyrights): New variable.
54603         Recognize option --more-symlinks.
54604         (func_import): Don't add a copyright notice transform to
54605         sed_transform_lib_file if do_copyrights is empty.
54606
54607 2007-07-13  Bruno Haible  <bruno@clisp.org>
54608
54609         * lib/vasnprintf.c (decimal_point_char): Define also if
54610         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
54611         && !NEED_PRINTF_DIRECTIVE_A.
54612         Reported by Clemens Koller <clemens.koller@anagramm.de> via
54613         Gary V. Vaughan <gary@gnu.org>.
54614
54615 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
54616
54617         * lib/inttypes_.h: Undo previous change, since it was fixed
54618         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
54619
54620 2007-07-13  Bruno Haible  <bruno@clisp.org>
54621
54622         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
54623         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
54624
54625 2007-07-13  Jim Meyering  <jim@meyering.net>
54626
54627         df: Don't fail for Tru64's "file-on-file mount".
54628         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
54629         so we fall through and use statfs instead.  Details here:
54630         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
54631         Reported by Albert Chin.
54632
54633 2007-07-13  Bruno Haible  <bruno@clisp.org>
54634
54635         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
54636         * modules/configmake (License): Likewise.
54637         * modules/gettext (License): Likewise.
54638         * modules/gettext-h (License): Likewise.
54639         * modules/include_next (License): Likewise.
54640         * modules/link-warning (License): Likewise.
54641         * modules/localcharset (License): Likewise.
54642         * modules/localename (License): Likewise.
54643         * modules/lock (License): Likewise.
54644         * modules/relocatable-lib-lgpl (License): Likewise.
54645         * modules/size_max (License): Likewise.
54646         * modules/vasnprintf (License): Likewise.
54647         * modules/wchar (License): Likewise.
54648         * modules/xsize (License): Likewise.
54649
54650 2007-07-13  Bruno Haible  <bruno@clisp.org>
54651
54652         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
54653         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
54654
54655 2007-07-12  Bruno Haible  <bruno@clisp.org>
54656
54657         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
54658         in the modules files.
54659
54660 2007-07-11  Karl Berry  <karl@gnu.org>
54661
54662         * MODULES.html.sh (func_module): use
54663          sed -e '\|^'"${includefile}"'$|d'
54664          instead of /.../d, to avoid errors on $includefile's containing /.
54665
54666 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54667
54668         * gnulib-tool (func_import): Avoid duplication of --avoid
54669         statements
54670         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
54671         names to `_' in variable names.
54672
54673 2007-07-10  Eric Blake  <ebb9@byu.net>
54674
54675         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
54676         * NEWS: Document this change.
54677
54678 2007-07-08  Bruno Haible  <bruno@clisp.org>
54679
54680         Update to Unicode 5.0.
54681         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
54682         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
54683         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
54684         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
54685         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
54686         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
54687         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
54688         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
54689         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
54690         U+10A3F, U+1D242..U+1D244.
54691         (nonspacing_table_ind): Update.
54692         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
54693         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
54694
54695 2007-07-08  Bruno Haible  <bruno@clisp.org>
54696
54697         Update to Unicode 5.0.
54698         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
54699         code transform. Extend the name index field of unicode_name_to_code and
54700         unicode_code_to_name from 16 to 24 bits.
54701         * lib/uniname/uniname.c (unicode_character_name,
54702         unicode_name_character): Add the range 0x12xxx to the code transform.
54703         * lib/uniname/uninames.h: Regenerated.
54704         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
54705
54706 2007-07-07  Bruno Haible  <bruno@clisp.org>
54707
54708         * modules/wcwidth-tests: New file.
54709         * tests/test-wcwidth.c: New file.
54710
54711         Work around MacOS X wcwidth() bug.
54712         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
54713         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
54714         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
54715         original wcwidth in non-UTF-8 locales.
54716         * modules/wcwidth (Depends-on): Add localcharset, streq,
54717         uniwidth/width.
54718         * doc/functions/wcwidth.texi: Update.
54719
54720 2007-07-07  Bruno Haible  <bruno@clisp.org>
54721
54722         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
54723         (wcwidth): New declaration.
54724         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
54725         macros.
54726         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
54727         here. Prepare for creating <wchar.h> unconditionally.
54728         * modules/wchar (Depends-on): Add link-warning.
54729         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
54730         REPLACE_WCWIDTH, and GL_LINK_WARNING.
54731         * lib/wcwidth.h: Remove file.
54732         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
54733         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
54734         * modules/wcwidth (Files): Remove lib/wcwidth.h.
54735         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
54736         (Include): Replace wcwidth.h with <wchar.h>.
54737         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
54738         * lib/mbchar.h: Don't include wcwidth.h.
54739         * lib/mbswidth.c: Likewise.
54740         * NEWS: Mention the change.
54741
54742 2007-07-07  Bruno Haible  <bruno@clisp.org>
54743
54744         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
54745         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
54746         definition with an external declaration.
54747         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
54748         defined as a function. Remove AC_C_INLINE requirement.
54749         * modules/wcwidth (Files): Add lib/wcwidth.c.
54750         (Makefile.am): Remove redundant statement.
54751
54752 2007-07-07  Bruno Haible  <bruno@clisp.org>
54753
54754         * MODULES.html.sh (Unicode string functions): Add the new modules.
54755
54756         * tests/uniwidth/test-u32-strwidth.c: New file.
54757         * modules/uniwidth/u32-strwidth-tests: New file.
54758
54759         * lib/uniwidth/u32-strwidth.c: New file.
54760         * modules/uniwidth/u32-strwidth: New file.
54761
54762         * tests/uniwidth/test-u16-strwidth.c: New file.
54763         * modules/uniwidth/u16-strwidth-tests: New file.
54764
54765         * lib/uniwidth/u16-strwidth.c: New file.
54766         * modules/uniwidth/u16-strwidth: New file.
54767
54768         * tests/uniwidth/test-u8-strwidth.c: New file.
54769         * modules/uniwidth/u8-strwidth-tests: New file.
54770
54771         * lib/uniwidth/u8-strwidth.c: New file.
54772         * modules/uniwidth/u8-strwidth: New file.
54773
54774         * tests/uniwidth/test-u32-width.c: New file.
54775         * modules/uniwidth/u32-width-tests: New file.
54776
54777         * lib/uniwidth/u32-width.c: New file.
54778         * modules/uniwidth/u32-width: New file.
54779
54780         * tests/uniwidth/test-u16-width.c: New file.
54781         * modules/uniwidth/u16-width-tests: New file.
54782
54783         * lib/uniwidth/u16-width.c: New file.
54784         * modules/uniwidth/u16-width: New file.
54785
54786         * tests/uniwidth/test-u8-width.c: New file.
54787         * modules/uniwidth/u8-width-tests: New file.
54788
54789         * lib/uniwidth/u8-width.c: New file.
54790         * modules/uniwidth/u8-width: New file.
54791
54792         * tests/uniwidth/test-uc_width.c: New file.
54793         * modules/uniwidth/width-tests: New file.
54794
54795         * lib/uniwidth/width.c: New file, from GNU libiconv.
54796         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
54797         * modules/uniwidth/width: New file.
54798
54799         * lib/uniwidth.h: New file, from GNU libiconv.
54800         * modules/uniwidth/base: New file.
54801
54802 2007-07-07  Bruno Haible  <bruno@clisp.org>
54803
54804         * lib/uniname.h: New file, from GNU gettext.
54805         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
54806         * lib/uniname/uninames.h: New file, from GNU gettext.
54807         * lib/uniname/uniname.c: New file, from GNU gettext.
54808         * tests/uniname/test-uninames.sh: New file.
54809         * tests/uniname/test-uninames.c: New file, from GNU gettext.
54810         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
54811         * modules/uniname/base: New file.
54812         * modules/uniname/uniname: New file.
54813         * modules/uniname/uniname-tests: New file.
54814         * MODULES.html.sh (Unicode string functions): Add the new modules.
54815
54816 2007-07-06  Bruno Haible  <bruno@clisp.org>
54817
54818         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
54819
54820 2007-07-06  Bruno Haible  <bruno@clisp.org>
54821
54822         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
54823         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
54824         includes <cygwin/sys_time.h> which includes <sys/select.h> which
54825         include <sys/time.h>.
54826         Reported by Eric Blake.
54827
54828 2007-07-06  Eric Blake  <ebb9@byu.net>
54829
54830         Fix testing canonicalize on cygwin.
54831         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54832         Revert patch from 2007-06-19.
54833         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
54834         canonicalize module is also in use.
54835         * tests/test-canonicalize.c: New file.
54836         * tests/test-canonicalize.sh: Likewise.
54837         * modules/canonicalize-tests: Likewise.
54838
54839 2007-07-06  Jim Meyering  <jim@meyering.net>
54840
54841         * lib/getugroups.c (getugroups): Detect getgrent failure.
54842         Adjust comment to reflect reality: this function may return -1.
54843
54844 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54845
54846         * build-aux/bootstrap (TP_URL,get_translations): Update to use
54847         the new TP address.
54848         (usage): Fix typo
54849         (gnulib_mk): New variable.
54850
54851 2007-07-05  Jim Meyering  <jim@meyering.net>
54852
54853         Don't let endgrent clobber errno, no matter how improbable.
54854         * lib/getugroups.c (getugroups): Save and restore errno around
54855         endgrent call.
54856
54857         Close the group DB even when failing with 2^31 or more members.
54858         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
54859
54860 2007-07-04  Jim Meyering  <jim@meyering.net>
54861
54862         * lib/getugroups.h: New file.
54863         * lib/getugroups.c: Include "getugroups.h".
54864         Remove uses of "register" keyword.
54865         Move local variable, "cp", down into scope where used.
54866         Give "username" parameter the "const" attribute.
54867         * modules/getugroups (Files): Add lib/getugroups.h
54868
54869 2007-07-04  Karl Berry  <karl@gnu.org>
54870
54871         * MODULES.html.sh (func_all_modules): Complete rename of
54872         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
54873
54874 2007-07-02  Bruno Haible  <bruno@clisp.org>
54875
54876         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
54877         mode, when inttypes.h comes from gnulib.
54878         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54879
54880 2007-07-02  Simon Josefsson  <simon@josefsson.org>
54881
54882         * NEWS: Mention lgpl module name change.
54883
54884         * modules/lgpl-2.1: Renamed from lgpl.
54885
54886         * NEWS: Mention gpl module name change.
54887
54888         * modules/gpl-3.0: New file, based on gpl-2.0.
54889
54890         * modules/gpl-2.0: Renamed from gpl.
54891
54892         * modules/gpl: Fix filename, doc/gpl.texi is now found at
54893         doc/gpl-2.0.texi.
54894
54895 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54896
54897         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
54898         #define __STDC_LIMIT_MACROS temporarily while including
54899         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
54900         Problem reported by Joel E. Denny in
54901         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
54902
54903 2007-07-01  Bruno Haible  <bruno@clisp.org>
54904
54905         * lib/unistdio.h: New file.
54906         * lib/unistdio/u-asnprintf.h: New file.
54907         * lib/unistdio/u-asprintf.h: New file.
54908         * lib/unistdio/u-printf-args.c: New file.
54909         * lib/unistdio/u-printf-args.h: New file.
54910         * lib/unistdio/u-printf-parse.h: New file.
54911         * lib/unistdio/u-snprintf.h: New file.
54912         * lib/unistdio/u-sprintf.h: New file.
54913         * lib/unistdio/u-vasprintf.h: New file.
54914         * lib/unistdio/u-vsnprintf.h: New file.
54915         * lib/unistdio/u-vsprintf.h: New file.
54916         * lib/unistdio/ulc-asnprintf.c: New file.
54917         * lib/unistdio/ulc-asprintf.c: New file.
54918         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
54919         * lib/unistdio/ulc-printf-parse.c: New file.
54920         * lib/unistdio/ulc-snprintf.c: New file.
54921         * lib/unistdio/ulc-sprintf.c: New file.
54922         * lib/unistdio/ulc-vasnprintf.c: New file.
54923         * lib/unistdio/ulc-vasprintf.c: New file.
54924         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
54925         * lib/unistdio/ulc-vsnprintf.c: New file.
54926         * lib/unistdio/ulc-vsprintf.c: New file.
54927         * lib/unistdio/u8-asnprintf.c: New file.
54928         * lib/unistdio/u8-asprintf.c: New file.
54929         * lib/unistdio/u8-printf-parse.c: New file.
54930         * lib/unistdio/u8-snprintf.c: New file.
54931         * lib/unistdio/u8-sprintf.c: New file.
54932         * lib/unistdio/u8-vasnprintf.c: New file.
54933         * lib/unistdio/u8-vasprintf.c: New file.
54934         * lib/unistdio/u8-vsnprintf.c: New file.
54935         * lib/unistdio/u8-vsprintf.c: New file.
54936         * lib/unistdio/u8-u8-asnprintf.c: New file.
54937         * lib/unistdio/u8-u8-asprintf.c: New file.
54938         * lib/unistdio/u8-u8-snprintf.c: New file.
54939         * lib/unistdio/u8-u8-sprintf.c: New file.
54940         * lib/unistdio/u8-u8-vasnprintf.c: New file.
54941         * lib/unistdio/u8-u8-vasprintf.c: New file.
54942         * lib/unistdio/u8-u8-vsnprintf.c: New file.
54943         * lib/unistdio/u8-u8-vsprintf.c: New file.
54944         * lib/unistdio/u16-asnprintf.c: New file.
54945         * lib/unistdio/u16-asprintf.c: New file.
54946         * lib/unistdio/u16-printf-parse.c: New file.
54947         * lib/unistdio/u16-snprintf.c: New file.
54948         * lib/unistdio/u16-sprintf.c: New file.
54949         * lib/unistdio/u16-vasnprintf.c: New file.
54950         * lib/unistdio/u16-vasprintf.c: New file.
54951         * lib/unistdio/u16-vsnprintf.c: New file.
54952         * lib/unistdio/u16-vsprintf.c: New file.
54953         * lib/unistdio/u16-u16-asnprintf.c: New file.
54954         * lib/unistdio/u16-u16-asprintf.c: New file.
54955         * lib/unistdio/u16-u16-snprintf.c: New file.
54956         * lib/unistdio/u16-u16-sprintf.c: New file.
54957         * lib/unistdio/u16-u16-vasnprintf.c: New file.
54958         * lib/unistdio/u16-u16-vasprintf.c: New file.
54959         * lib/unistdio/u16-u16-vsnprintf.c: New file.
54960         * lib/unistdio/u16-u16-vsprintf.c: New file.
54961         * lib/unistdio/u32-asnprintf.c: New file.
54962         * lib/unistdio/u32-asprintf.c: New file.
54963         * lib/unistdio/u32-printf-parse.c: New file.
54964         * lib/unistdio/u32-snprintf.c: New file.
54965         * lib/unistdio/u32-sprintf.c: New file.
54966         * lib/unistdio/u32-vasnprintf.c: New file.
54967         * lib/unistdio/u32-vasprintf.c: New file.
54968         * lib/unistdio/u32-vsnprintf.c: New file.
54969         * lib/unistdio/u32-vsprintf.c: New file.
54970         * lib/unistdio/u32-u32-asnprintf.c: New file.
54971         * lib/unistdio/u32-u32-asprintf.c: New file.
54972         * lib/unistdio/u32-u32-snprintf.c: New file.
54973         * lib/unistdio/u32-u32-sprintf.c: New file.
54974         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54975         * lib/unistdio/u32-u32-vasprintf.c: New file.
54976         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54977         * lib/unistdio/u32-u32-vsprintf.c: New file.
54978         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54979         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54980         * tests/unistdio/test-ulc-printf1.h: New file.
54981         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54982         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54983         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54984         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54985         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54986         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54987         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54988         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54989         * tests/unistdio/test-u8-asnprintf1.c: New file.
54990         * tests/unistdio/test-u8-asnprintf1.h: New file.
54991         * tests/unistdio/test-u8-printf1.h: New file.
54992         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54993         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54994         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54995         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54996         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54997         * tests/unistdio/test-u8-vasprintf1.c: New file.
54998         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54999         * tests/unistdio/test-u8-vsprintf1.c: New file.
55000         * tests/unistdio/test-u16-asnprintf1.c: New file.
55001         * tests/unistdio/test-u16-asnprintf1.h: New file.
55002         * tests/unistdio/test-u16-printf1.h: New file.
55003         * tests/unistdio/test-u16-vasnprintf1.c: New file.
55004         * tests/unistdio/test-u16-vasnprintf2.c: New file.
55005         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
55006         * tests/unistdio/test-u16-vasnprintf3.c: New file.
55007         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
55008         * tests/unistdio/test-u16-vasprintf1.c: New file.
55009         * tests/unistdio/test-u16-vsnprintf1.c: New file.
55010         * tests/unistdio/test-u16-vsprintf1.c: New file.
55011         * tests/unistdio/test-u32-asnprintf1.c: New file.
55012         * tests/unistdio/test-u32-asnprintf1.h: New file.
55013         * tests/unistdio/test-u32-printf1.h: New file.
55014         * tests/unistdio/test-u32-vasnprintf1.c: New file.
55015         * tests/unistdio/test-u32-vasnprintf2.c: New file.
55016         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
55017         * tests/unistdio/test-u32-vasnprintf3.c: New file.
55018         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
55019         * tests/unistdio/test-u32-vasprintf1.c: New file.
55020         * tests/unistdio/test-u32-vsnprintf1.c: New file.
55021         * tests/unistdio/test-u32-vsprintf1.c: New file.
55022         * modules/unistdio/base: New file.
55023         * modules/unistdio/u-printf-args: New file.
55024         * modules/unistdio/ulc-asnprintf: New file.
55025         * modules/unistdio/ulc-asprintf: New file.
55026         * modules/unistdio/ulc-fprintf: New file.
55027         * modules/unistdio/ulc-printf-parse: New file.
55028         * modules/unistdio/ulc-snprintf: New file.
55029         * modules/unistdio/ulc-sprintf: New file.
55030         * modules/unistdio/ulc-vasnprintf: New file.
55031         * modules/unistdio/ulc-vasprintf: New file.
55032         * modules/unistdio/ulc-vfprintf: New file.
55033         * modules/unistdio/ulc-vsnprintf: New file.
55034         * modules/unistdio/ulc-vsprintf: New file.
55035         * modules/unistdio/u8-asnprintf: New file.
55036         * modules/unistdio/u8-asprintf: New file.
55037         * modules/unistdio/u8-printf-parse: New file.
55038         * modules/unistdio/u8-snprintf: New file.
55039         * modules/unistdio/u8-sprintf: New file.
55040         * modules/unistdio/u8-vasnprintf: New file.
55041         * modules/unistdio/u8-vasprintf: New file.
55042         * modules/unistdio/u8-vsnprintf: New file.
55043         * modules/unistdio/u8-vsprintf: New file.
55044         * modules/unistdio/u8-u8-asnprintf: New file.
55045         * modules/unistdio/u8-u8-asprintf: New file.
55046         * modules/unistdio/u8-u8-snprintf: New file.
55047         * modules/unistdio/u8-u8-sprintf: New file.
55048         * modules/unistdio/u8-u8-vasnprintf: New file.
55049         * modules/unistdio/u8-u8-vasprintf: New file.
55050         * modules/unistdio/u8-u8-vsnprintf: New file.
55051         * modules/unistdio/u8-u8-vsprintf: New file.
55052         * modules/unistdio/u16-asnprintf: New file.
55053         * modules/unistdio/u16-asprintf: New file.
55054         * modules/unistdio/u16-printf-parse: New file.
55055         * modules/unistdio/u16-snprintf: New file.
55056         * modules/unistdio/u16-sprintf: New file.
55057         * modules/unistdio/u16-vasnprintf: New file.
55058         * modules/unistdio/u16-vasprintf: New file.
55059         * modules/unistdio/u16-vsnprintf: New file.
55060         * modules/unistdio/u16-vsprintf: New file.
55061         * modules/unistdio/u16-u16-asnprintf: New file.
55062         * modules/unistdio/u16-u16-asprintf: New file.
55063         * modules/unistdio/u16-u16-snprintf: New file.
55064         * modules/unistdio/u16-u16-sprintf: New file.
55065         * modules/unistdio/u16-u16-vasnprintf: New file.
55066         * modules/unistdio/u16-u16-vasprintf: New file.
55067         * modules/unistdio/u16-u16-vsnprintf: New file.
55068         * modules/unistdio/u16-u16-vsprintf: New file.
55069         * modules/unistdio/u32-asnprintf: New file.
55070         * modules/unistdio/u32-asprintf: New file.
55071         * modules/unistdio/u32-printf-parse: New file.
55072         * modules/unistdio/u32-snprintf: New file.
55073         * modules/unistdio/u32-sprintf: New file.
55074         * modules/unistdio/u32-vasnprintf: New file.
55075         * modules/unistdio/u32-vasprintf: New file.
55076         * modules/unistdio/u32-vsnprintf: New file.
55077         * modules/unistdio/u32-vsprintf: New file.
55078         * modules/unistdio/u32-u32-asnprintf: New file.
55079         * modules/unistdio/u32-u32-asprintf: New file.
55080         * modules/unistdio/u32-u32-snprintf: New file.
55081         * modules/unistdio/u32-u32-sprintf: New file.
55082         * modules/unistdio/u32-u32-vasnprintf: New file.
55083         * modules/unistdio/u32-u32-vasprintf: New file.
55084         * modules/unistdio/u32-u32-vsnprintf: New file.
55085         * modules/unistdio/u32-u32-vsprintf: New file.
55086         * modules/unistdio/ulc-asnprintf-tests: New file.
55087         * modules/unistdio/ulc-vasnprintf-tests: New file.
55088         * modules/unistdio/ulc-vasprintf-tests: New file.
55089         * modules/unistdio/ulc-vsnprintf-tests: New file.
55090         * modules/unistdio/ulc-vsprintf-tests: New file.
55091         * modules/unistdio/u8-asnprintf-tests: New file.
55092         * modules/unistdio/u8-vasnprintf-tests: New file.
55093         * modules/unistdio/u8-vasprintf-tests: New file.
55094         * modules/unistdio/u8-vsnprintf-tests: New file.
55095         * modules/unistdio/u8-vsprintf-tests: New file.
55096         * modules/unistdio/u16-asnprintf-tests: New file.
55097         * modules/unistdio/u16-vasnprintf-tests: New file.
55098         * modules/unistdio/u16-vasprintf-tests: New file.
55099         * modules/unistdio/u16-vsnprintf-tests: New file.
55100         * modules/unistdio/u16-vsprintf-tests: New file.
55101         * modules/unistdio/u32-asnprintf-tests: New file.
55102         * modules/unistdio/u32-vasnprintf-tests: New file.
55103         * modules/unistdio/u32-vasprintf-tests: New file.
55104         * modules/unistdio/u32-vsnprintf-tests: New file.
55105         * modules/unistdio/u32-vsprintf-tests: New file.
55106         * MODULES.html.sh (Unicode string functions): Add the new modules.
55107
55108 2007-07-01  Bruno Haible  <bruno@clisp.org>
55109
55110         * lib/sprintf.c (sprintf): Limit the available length estimation,
55111         to avoid address wraparound.
55112         * lib/vsprintf.c (vsprintf): Likewise.
55113         * modules/sprintf-posix (Dependencies): Add stdint.
55114         * modules/vsprintf-posix (Dependencies): Likewise.
55115
55116 2007-07-01  Bruno Haible  <bruno@clisp.org>
55117
55118         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
55119         Windows PATH as well. Conservative double-quoting. Comments.
55120
55121 2007-07-01  Bruno Haible  <bruno@clisp.org>
55122             Eric Blake  <ebb9@byu.net>
55123             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55124
55125         * gnulib-tool (self_abspathname): Fix algorithm to cope with
55126         empty components in $PATH, denoting '.'.
55127
55128 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55129
55130         * gnulib-tool: Fix indentation.
55131         (func_create_megatestdir): Likewise.
55132         Report by Bruno Haible.
55133
55134 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55135
55136         Sync from Automake.
55137         * build-aux/gnupload: Fix shell portability issues with for loops.
55138         Report by Karl Berry.
55139
55140 2007-06-29  Simon Josefsson  <simon@josefsson.org>
55141
55142         * build-aux/maint.mk (POURL): Use translationproject.org.
55143
55144 2007-06-27  Simon Josefsson  <simon@josefsson.org>
55145             Bruno Haible  <bruno@clisp.org>
55146
55147         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
55148         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
55149         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
55150         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
55151         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
55152
55153 2007-06-27  Bruno Haible  <bruno@clisp.org>
55154
55155         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
55156         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
55157
55158 2007-06-26  Karl Berry  <karl@gnu.org>
55159
55160         * MODULES.html.sh: remove xreadlink-with-size.
55161
55162 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55163
55164         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
55165         method that I hope also handles the double-include problem noted
55166         by Bruno Haible in
55167         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
55168
55169 2007-06-23  Bruno Haible  <bruno@clisp.org>
55170
55171         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55172         Don't let the 'mostlyclean' target fail if the last subdirectory could
55173         not be removed.
55174         Reported by Karl Berry.
55175
55176 2007-06-23  Bruno Haible  <bruno@clisp.org>
55177
55178         * gnulib-tool (echo): Add a speedier workaround for ksh.
55179         * tests/test-echo.sh: Likewise.
55180
55181 2007-06-23  Bruno Haible  <bruno@clisp.org>
55182
55183         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
55184         * tests/test-echo.sh: Likewise.
55185
55186 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55187
55188         * gnulib-tool (IFS): Initialize early, so we don't set it to
55189         empty later.
55190         (self_abspathname): Rewrite algorithm to set it, reindent.
55191         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
55192         (func_create_megatestdir): Merge some sed scripts.
55193
55194 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55195
55196         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
55197         exposed by Sun Studio 11 cc on Solaris 8.
55198
55199 2007-06-22  Bruno Haible  <bruno@clisp.org>
55200
55201         * gnulib-tool (echo): Ensure the echo primitive does not interpret
55202         backslashes.
55203         * tests/test-echo.sh: New file.
55204
55205 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55206
55207         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
55208         simplify `sed_replace_build_aux' scripts, they are portable but
55209         echoing them with `echo' is not.
55210         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
55211
55212 2007-06-21  Karl Berry  <karl@gnu.org>
55213
55214         * config/srclist.txt: guess we can't handle the licenses via
55215         srclist at the moment.
55216
55217 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
55218
55219         * MODULES.html.sh: Add include_next.
55220         * modules/include_next: New file.
55221
55222 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
55223
55224         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
55225         INCLUDE_NEXT.
55226         (gl_CHECK_NEXT_HEADERS): New macro.
55227         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
55228         the obsolescent gl_ABSOLUTE_HEADER.
55229         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
55230         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
55231         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
55232         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55233         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
55234         * m4/math_h.m4 (gl_MATH_H): Likewise.
55235         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55236         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
55237         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
55238         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55239         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
55240         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
55241         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
55242         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55243         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55244         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
55245         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
55246         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
55247         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
55248         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
55249         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
55250         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55251         * m4/inttypes.m4 (gl_INTTYPES_H): Define
55252         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
55253         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
55254         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
55255         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
55256         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
55257         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
55258         * lib/float_.h: Likewise.
55259         * lib/inttypes_.h: Likewise.
55260         * lib/math_.h: Likewise.
55261         * lib/search_.h: Likewise.
55262         * lib/signal_.h: Likewise.
55263         * lib/stdint_.h: Likewise.
55264         * lib/stdio_.h: Likewise.
55265         * lib/stdlib_.h: Likewise.
55266         * lib/string_.h: Likewise.
55267         * lib/sys_stat_.h: Likewise.
55268         * lib/sys_time_.h: Likewise.
55269         * lib/time_.h: Likewise.
55270         * lib/unistd_.h: Likewise.
55271         * lib/wchar_.h: Likewise.
55272         * lib/wctype_.h: Likewise.
55273         * lib/dirent_.h: Likewise.
55274         * lib/iconv_.h: Likewise.
55275         * lib/locale_.h: Likewise.
55276         * lib/netinet_in_.h: Likewise.
55277         * lib/sys_select_.h: Likewise.
55278         * lib/sys_socket_.h: Likewise.
55279         * lib/sysexits_.h: Likewise.
55280         * modules/fcntl (Depends-on): Depend on include_next, not
55281         absolute_header.
55282         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
55283         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
55284         * modules/fchdir: Likewise.
55285         * modules/float: Likewise.
55286         * modules/iconv_open: Likewise.
55287         * modules/inttypes: Likewise.
55288         * modules/locale: Likewise.
55289         * modules/math: Likewise.
55290         * modules/netinet_in: Likewise.
55291         * modules/search: Likewise.
55292         * modules/signal: Likewise.
55293         * modules/stdint: Likewise.
55294         * modules/stdio: Likewise.
55295         * modules/stdlib: Likewise.
55296         * modules/string: Likewise.
55297         * modules/sys_select: Likewise.
55298         * modules/sys_socket: Likewise.
55299         * modules/sys_stat: Likewise.
55300         * modules/sys_time: Likewise.
55301         * modules/sysexits: Likewise.
55302         * modules/time: Likewise.
55303         * modules/unistd: Likewise.
55304         * modules/wchar: Likewise.
55305         * modules/wctype: Likewise.
55306         * modules/sys_stat: Change maintainer to "all".
55307         * modules/unistd: Likewise.
55308
55309 2007-06-20  Karl Berry  <karl@gnu.org>
55310
55311         * config/srclist.txt: track www changes in license files.
55312
55313 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
55314
55315         * build-aux/bootstrap: Remove stray dot.
55316         Make sure build_aux settings are honored when linking
55317         gnulib_extra_files.
55318
55319 2007-06-19  Eric Blake  <ebb9@byu.net>
55320
55321         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55322         Allow compilation on cygwin.
55323
55324 2007-06-19  Jim Meyering  <jim@meyering.net>
55325
55326         xreadlink-with-size: Remove module.  No longer used.
55327         Ex-callers now use xreadlink or mreadlink-with-size.
55328         * modules/xreadlink-with-size: Remove module.
55329         * lib/xreadlink-with-size.c: Remove file.
55330         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
55331         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
55332         just before the function definition *is* accurate.
55333
55334         Eliminate one way canonicalize_filename_mode could exit.
55335         * lib/canonicalize.c (canonicalize_filename_mode):
55336         Use mreadlink_with_size, not xreadlink_with_size.
55337
55338 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
55339
55340         Detect porting problems to FreeBSD/arm, which has time_t wider than
55341         long int.  Original problem reported for GNU diff by Xin Li in
55342         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
55343         * modules/getdate (Depends-on): Add intprops, verify.
55344         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
55345         is an integer type no wider than long int.
55346
55347 2007-06-18  Jim Meyering  <jim@meyering.net>
55348
55349         New module: mreadlink-with-size.
55350         * MODULES.html.sh: Add mreadlink-with-size.
55351         * modules/mreadlink-with-size: New module
55352         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
55353         not xreadlink-with-size.
55354         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
55355
55356 2007-06-16  Bruno Haible  <bruno@clisp.org>
55357
55358         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
55359         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
55360         Reported by Gary V. Vaughan <gary@gnu.org>.
55361
55362 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
55363
55364         Revamp lchown so that it lives in unistd.h where it belongs.
55365         * lib/lchown.h: Remove.
55366         * lib/dirchownmod.c: Don't include lib/lchown.h.
55367         * lib/fchownat.c: Likewise.
55368         * lib/openat.c: Likewise.
55369         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
55370         does not follow symlinks.
55371         (EOPNOTSUPP): Define if not defined.
55372         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
55373         is defined to 0.
55374         (lchown): New decl.
55375         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
55376         Do not check for lchown decl.
55377         Set REPLACE_LCHOWN.
55378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
55379         REPLACE_LCHOWN.
55380         * modules/chown: Make it clear it follows symlinks.
55381         * modules/lchown: Make it clear it doesn't follow symlinks.
55382         (Files): Remove lib/lchown.h
55383         (Depends-on): Add unistd.
55384         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
55385         (Include): Include <unistd.h>, not "lchown.h".
55386         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
55387         REPLACE_LCHOWN.
55388
55389 2007-06-15  Jim Meyering  <jim@meyering.net>
55390
55391         Change license (GPL to LGPL) of fsusage and dependents.
55392         * modules/fsusage (License): Change to LGPL.
55393         * modules/full-read (License): Likewise.
55394         * modules/full-write (License): Likewise.
55395         * modules/safe-read (License): Likewise.
55396         * modules/safe-write (License): Likewise.
55397
55398 2007-06-14  Ben Pfaff  <blp@gnu.org>
55399
55400         Missing part of allocsa -> malloca transition.
55401         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
55402         gl_MALLOCA.
55403
55404 2007-06-12  Bruno Haible  <bruno@clisp.org>
55405
55406         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
55407         to ia64, x86_64, i386.
55408         Reported by Eric Blake.
55409
55410 2007-06-12  Bruno Haible  <bruno@clisp.org>
55411
55412         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
55413         cross-compiling to x86_64.
55414
55415 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
55416
55417         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
55418         glitch reported by Ralf Wildenhues in
55419         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
55420
55421         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
55422         Vin Shelton.
55423
55424 2007-06-11  Bruno Haible  <bruno@clisp.org>
55425
55426         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
55427         replacement string.
55428         Reported by Eric Blake.
55429
55430 2007-06-10  Bruno Haible  <bruno@clisp.org>
55431
55432         Prepare vasnprintf code for use with Unicode strings.
55433         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
55434         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
55435         TYPE_U32_STRING.
55436         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
55437         a_u32_string variants.
55438         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55439         * lib/printf-args.c: Don't include config.h and the specification
55440         header if PRINTF_FETCHARGS is already defined.
55441         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55442         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
55443         TYPE_U16_STRING, TYPE_U32_STRING.
55444         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
55445         u16_directive, u16_directives, u32_directive, u32_directives): New
55446         types.
55447         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
55448         New declarations.
55449         * lib/printf-parse.c: Don't include config.h and the specification
55450         header if PRINTF_PARSE is already defined. Eliminate the set of
55451         parameters for WIDE_CHAR_VERSION; the user of this file must provide
55452         them now. Include c-ctype.h.
55453         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
55454         directive and CHAR_T_ONLY_ASCII.
55455         * lib/vasnprintf.c: Don't include config.h and the specification header
55456         if VASNPRINTF is already defined.
55457         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
55458         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
55459         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
55460         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
55461         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
55462         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
55463         code accordingly.
55464         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
55465         pad_ourselves also in this case, with the 'c' and 's' directives, and
55466         with a different notion of "width".
55467         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
55468
55469 2007-06-10  Bruno Haible  <bruno@clisp.org>
55470
55471         * modules/unistr/u32-mbsnlen: New file.
55472         * lib/unistr/u32-mbsnlen.c: New file.
55473
55474         * modules/unistr/u16-mbsnlen: New file.
55475         * lib/unistr/u16-mbsnlen.c: New file.
55476
55477         * modules/unistr/u8-mbsnlen: New file.
55478         * lib/unistr/u8-mbsnlen.c: New file.
55479
55480         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
55481         declarations.
55482
55483 2007-06-10  Bruno Haible  <bruno@clisp.org>
55484
55485         * lib/string_.h (mbsnlen): New declaration.
55486         * lib/mbsnlen.c: New file.
55487         * m4/mbsnlen.m4: New file.
55488         * modules/mbsnlen: New file.
55489         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
55490         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
55491         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
55492
55493 2007-06-10  Bruno Haible  <bruno@clisp.org>
55494
55495         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
55496
55497 2007-06-10  Bruno Haible  <bruno@clisp.org>
55498
55499         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
55500         * lib/mbuiter.h: Likewise.
55501
55502 2007-06-10  Bruno Haible  <bruno@clisp.org>
55503
55504         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
55505         declaration.
55506
55507 2007-06-10  Karl Berry  <karl@gnu.org>
55508
55509         * config/srclist.txt: remove gettext entries, Bruno prefers
55510         to update individually.
55511
55512 2007-06-10  Bruno Haible  <bruno@clisp.org>
55513
55514         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
55515         'maxlen'. Ensure only length + width bytes are allocated, not
55516         length + 1 + width.
55517
55518 2007-06-09  Bruno Haible  <bruno@clisp.org>
55519
55520         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
55521         (CHAR_T): Remove macro.
55522         (VASNPRINTF): Update.
55523
55524 2007-06-09  Bruno Haible  <bruno@clisp.org>
55525
55526         * MODULES.html.sh (Unicode string functions): Add the new modules.
55527
55528         * modules/uniconv/u32-conv-to-enc: New file.
55529         * lib/uniconv/u32-conv-to-enc.c: New file.
55530         * modules/uniconv/u32-conv-to-enc-tests: New file.
55531         * tests/uniconv/test-u32-conv-to-enc.c: New file.
55532
55533         * modules/uniconv/u16-conv-to-enc: New file.
55534         * lib/uniconv/u16-conv-to-enc.c: New file.
55535         * lib/uniconv/u-conv-to-enc.h: New file.
55536         * modules/uniconv/u16-conv-to-enc-tests: New file.
55537         * tests/uniconv/test-u16-conv-to-enc.c: New file.
55538
55539         * modules/uniconv/u8-conv-to-enc: New file.
55540         * lib/uniconv/u8-conv-to-enc.c: New file.
55541         * modules/uniconv/u8-conv-to-enc-tests: New file.
55542         * tests/uniconv/test-u8-conv-to-enc.c: New file.
55543
55544         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
55545         u32_conv_to_encoding): New declarations.
55546
55547 2007-06-09  Bruno Haible  <bruno@clisp.org>
55548
55549         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
55550
55551 2007-06-09  Bruno Haible  <bruno@clisp.org>
55552
55553         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
55554         * modules/malloca: Renamed from modules/allocsa, updated.
55555         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
55556         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
55557         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
55558         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
55559         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
55560         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
55561         * modules/xmalloca: Renamed from modules/xallocsa, updated.
55562         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
55563         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
55564         * modules/c-strcasestr (Depends-on): Update.
55565         * lib/c-strcasestr.c: Update.
55566         * modules/c-strstr (Depends-on): Update.
55567         * lib/c-strstr.c: Update.
55568         * modules/canonicalize-lgpl (Depends-on): Update.
55569         * lib/canonicalize-lgpl.c: Update.
55570         * modules/clean-temp (Depends-on): Update.
55571         * lib/clean-temp.c: Update.
55572         * modules/csharpcomp (Depends-on): Update.
55573         * lib/csharpcomp.c: Update.
55574         * modules/csharpexec (Depends-on): Update.
55575         * lib/csharpexec.c: Update.
55576         * modules/javacomp (Depends-on): Update.
55577         * lib/javacomp.c: Update.
55578         * modules/javaexec (Depends-on): Update.
55579         * lib/javaexec.c: Update.
55580         * modules/mbscasestr (Depends-on): Update.
55581         * lib/mbscasestr.c: Update.
55582         * modules/mbsstr (Depends-on): Update.
55583         * lib/mbsstr.c: Update.
55584         * modules/setenv (Depends-on): Update.
55585         * lib/setenv.c: Update.
55586         * modules/strcasestr (Depends-on): Update.
55587         * lib/strcasestr.c: Update.
55588         * modules/striconveha (Depends-on): Update.
55589         * lib/striconveha.c: Update.
55590         * modules/relocatable-prog-wrapper (Files): Update.
55591         * lib/relocwrapper.c: Update.
55592         * build-aux/install-reloc: Update.
55593         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
55594
55595 2007-06-08  Bruno Haible  <bruno@clisp.org>
55596
55597         Port to uClibc.
55598         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
55599         * lib/fpurge.c (fpurge): Likewise.
55600         * lib/freading.c (freading): Likewise.
55601         * lib/fseeko.c (rpl_fseeko): Likewise.
55602         * lib/fseterr.c (fseterr): Likewise.
55603         * lib/fwriting.c (fwriting): Likewise.
55604         * tests/test-fflush.c (main): Avoid a failure on uClibc.
55605
55606 2007-06-08  Bruno Haible  <bruno@clisp.org>
55607
55608         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
55609         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
55610         * modules/gettext (Files): Add m4/intlmacosx.m4.
55611
55612 2007-06-07  Bruno Haible  <bruno@clisp.org>
55613
55614         * modules/localename-tests: New file.
55615         * tests/test-localename.c: New file.
55616
55617         New module 'localename'.
55618         * lib/localename.h: New file.
55619         * lib/localename.c: New file, from GNU gettext.
55620         * m4/localename.m4: New file.
55621         * modules/localename: New file.
55622
55623 2007-06-07  Bruno Haible  <bruno@clisp.org>
55624
55625         Work around the lack of <wchar.h> on some builds of uClibc.
55626         * doc/headers/wchar.texi: Update.
55627         * lib/wchar_.h: Include <wchar.h> only if it exists.
55628         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
55629         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
55630         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
55631         doesn't exist.
55632         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
55633         * modules/mbfile (Depends-on): Add wchar.
55634         * modules/mbiter (Depends-on): Likewise.
55635         * modules/mbuiter (Depends-on): Likewise.
55636         Reported by Simon Josefsson.
55637
55638 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55639
55640         Work around problem reported by Steven M. Schweda in
55641         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
55642         Tru64 5.1B with the Compaq compiler environment installed declares
55643         an 'isblank' function but does not define it in the C library.
55644         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
55645         * lib/regex_internal.h (isblank): Likewise.
55646         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
55647         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55648
55649 2007-06-05  Bruno Haible  <bruno@clisp.org>
55650
55651         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
55652         ia64.
55653         * modules/printf-safe: New file.
55654         * modules/fprintf-posix (Depends-on): Add printf-safe.
55655         * modules/printf-posix (Depends-on): Likewise.
55656         * modules/snprintf-posix (Depends-on): Likewise.
55657         * modules/sprintf-posix (Depends-on): Likewise.
55658         * modules/vasnprintf-posix (Depends-on): Likewise.
55659         * modules/vasprintf-posix (Depends-on): Likewise.
55660         * modules/vfprintf-posix (Depends-on): Likewise.
55661         * modules/vprintf-posix (Depends-on): Likewise.
55662         * modules/vsnprintf-posix (Depends-on): Likewise.
55663         * modules/vsprintf-posix (Depends-on): Likewise.
55664         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
55665         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
55666         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
55667         "no" on i386, x86_64, ia64.
55668         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
55669         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55670         on i386, x86_64, ia64.
55671         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
55672         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55673         on i386, x86_64, ia64.
55674         * tests/test-vasnprintf-posix.c: Include float.h.
55675         (LDBL80_WORDS): New macro.
55676         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55677         on i386, x86_64, ia64.
55678         * tests/test-vasprintf-posix.c: Include float.h.
55679         (LDBL80_WORDS): New macro.
55680         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55681         on i386, x86_64, ia64.
55682         * tests/test-snprintf-posix.c: Include float.h.
55683         * tests/test-sprintf-posix.c: Likewise.
55684         * tests/test-vsnprintf-posix.c: Likewise.
55685         * tests/test-vsprintf-posix.c: Likewise.
55686
55687 2007-06-05  Bruno Haible  <bruno@clisp.org>
55688
55689         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
55690         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
55691         non-IEEE numbers on i386, x86_64, ia64.
55692         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
55693         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
55694         * tests/test-isnanl.h: Include float.h.
55695         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
55696
55697 2007-06-05  Bruno Haible  <bruno@clisp.org>
55698
55699         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
55700         also the %a / %A. Handle the %a / %A code before this extra handling.
55701
55702 2007-06-05  Bruno Haible  <bruno@clisp.org>
55703
55704         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
55705         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
55706
55707 2007-06-05  Bruno Haible  <bruno@clisp.org>
55708
55709         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
55710         typo in variable name.
55711
55712 2007-06-05  Eric Blake  <ebb9@byu.net>
55713
55714         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
55715         Reported by Simon Josefsson.
55716
55717 2007-06-04  Bruno Haible  <bruno@clisp.org>
55718
55719         Avoid test failures on some PowerPC platforms.
55720         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
55721         Define differently for PowerPC.
55722         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
55723         Reported by Gary V. Vaughan <gary@gnu.org>.
55724
55725 2007-06-02  Bruno Haible  <bruno@clisp.org>
55726
55727         Fix test-stdint failure on FreeBSD/ia64.
55728         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
55729         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
55730         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
55731         * doc/headers/stdint.texi: Update.
55732
55733 2007-06-01  Bruno Haible  <bruno@clisp.org>
55734
55735         * tests/test-binary-io.c (main): Pass a third argument to open().
55736         Reported by Gary V. Vaughan <gary@gnu.org>.
55737
55738 2007-06-01  Bruno Haible  <bruno@clisp.org>
55739
55740         * doc/functions/frexpl.texi: Update for mingw.
55741
55742 2007-06-01  Bruno Haible  <bruno@clisp.org>
55743
55744         * tests/test-lseek.c (main): Disable test of errno for invalid third
55745         argument.
55746         * doc/functions/lseek.texi: Update.
55747         Reported by Gary V. Vaughan <gary@gnu.org>.
55748
55749 2007-05-28  Bruno Haible  <bruno@clisp.org>
55750
55751         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
55752
55753 2007-05-31  Eric Blake  <ebb9@byu.net>
55754
55755         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
55756         cross compiling.
55757
55758 2007-05-30  Eric Blake  <ebb9@byu.net>
55759         and Bruno Haible  <bruno@clisp.org>
55760
55761         Work around mingw test failures exposed by m4-1.4.9b.
55762         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
55763         * tests/test-unistd.c: Disable uid_t and git_t tests for the
55764         moment.
55765
55766 2007-05-30  Bruno Haible  <bruno@clisp.org>
55767
55768         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
55769         assuming that they are closed. Needed on HP-UX 11.
55770
55771 2007-05-29  Bruno Haible  <bruno@clisp.org>
55772
55773         Fix a problem with #include_next.
55774         * lib/dirent_.h: Split the double-inclusion guard.
55775         * lib/fcntl_.h: Likewise.
55776         * lib/float_.h: Likewise.
55777         * lib/iconv_.h: Likewise.
55778         * lib/inttypes_.h: Likewise.
55779         * lib/locale_.h: Likewise.
55780         * lib/math_.h: Likewise.
55781         * lib/netinet_in_.h: Likewise.
55782         * lib/search_.h: Likewise.
55783         * lib/signal_.h: Likewise.
55784         * lib/stdint_.h: Likewise.
55785         * lib/stdio_.h: Likewise.
55786         * lib/stdlib_.h: Likewise.
55787         * lib/string_.h: Likewise.
55788         * lib/sys_select_.h: Likewise.
55789         * lib/sys_socket_.h: Likewise.
55790         * lib/sys_stat_.h: Likewise.
55791         * lib/sys_time_.h: Likewise.
55792         * lib/sysexits_.h: Likewise.
55793         * lib/time_.h: Likewise.
55794         * lib/unistd_.h: Likewise.
55795         * lib/wchar_.h: Likewise.
55796         * lib/wctype_.h: Likewise.
55797
55798 2007-05-29  Bruno Haible  <bruno@clisp.org>
55799
55800         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
55801         for the moment.
55802
55803 2007-05-29  Bruno Haible  <bruno@clisp.org>
55804
55805         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
55806         invocation.
55807         Reported by Eric Blake.
55808
55809 2007-05-29  Bruno Haible  <bruno@clisp.org>
55810
55811         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
55812         compiling case.
55813
55814 2007-05-29  Eric Blake  <ebb9@byu.net>
55815             Bruno Haible  <bruno@clisp.org>
55816
55817         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
55818         cross compiles.
55819
55820 2007-05-28  Eric Blake  <ebb9@byu.net>
55821
55822         * modules/closein-tests (test_closein_LDADD): Support test on
55823         cygwin with libtool.
55824
55825 2007-05-28  Bruno Haible  <bruno@clisp.org>
55826
55827         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
55828         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55829         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55830         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55831         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55832         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55833         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55834         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55835         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55836
55837 2007-05-28  Eric Blake  <ebb9@byu.net>
55838
55839         Unconditionally include <config.h> in unit tests.
55840         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
55841         * tests/test-allocsa.c, tests/test-arcfour.c,
55842         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
55843         tests/test-array_list.c, tests/test-array_oset.c,
55844         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
55845         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
55846         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
55847         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
55848         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
55849         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
55850         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
55851         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
55852         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
55853         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
55854         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
55855         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
55856         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
55857         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
55858         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
55859         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
55860         test-md5.c, test-memmem.c, test-printf-posix.c,
55861         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
55862         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
55863         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
55864         test-strcasestr.c, test-striconv.c, test-striconveh.c,
55865         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
55866         test-vasnprintf-posix2.c, test-vasnprintf.c,
55867         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
55868         test-vfprintf-posix.c, test-vprintf-posix.c,
55869         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
55870         test-xvasprintf.c: Likewise.
55871
55872 2007-05-28  Bruno Haible  <bruno@clisp.org>
55873
55874         * gnulib-tool (func_import): Remember the --with-tests command-line
55875         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
55876         Reported by Eric Blake.
55877
55878 2007-05-28  Bruno Haible  <bruno@clisp.org>
55879
55880         * modules/ftell-tests: New file.
55881         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
55882         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
55883
55884         * lib/ftell.c: New file.
55885         * modules/ftell: New file.
55886         * m4/ftell.m4: New file.
55887         * doc/functions/ftell.texi: Update.
55888         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
55889         REPLACE_FTELL.
55890         * lib/stdio_.h (rpl_ftell): New declaration.
55891         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
55892         REPLACE_FTELL.
55893
55894 2007-05-28  Eric Blake  <ebb9@byu.net>
55895
55896         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
55897
55898 2007-05-28  Bruno Haible  <bruno@clisp.org>
55899
55900         * modules/fseek-tests: New file.
55901         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
55902         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
55903
55904         * lib/fseek.c: New file.
55905         * modules/fseek: New file.
55906         * m4/fseek.m4: New file.
55907         * doc/functions/fseek.texi: Update.
55908         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
55909         REPLACE_FSEEK.
55910         * lib/stdio_.h (rpl_fseek): New declaration.
55911         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
55912         REPLACE_FSEEK.
55913
55914 2007-05-28  Bruno Haible  <bruno@clisp.org>
55915
55916         * lib/stdio_.h (fflush): More comments.
55917
55918 2007-05-28  Bruno Haible  <bruno@clisp.org>
55919
55920         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
55921         runtime test.
55922
55923 2007-05-28  Eric Blake  <ebb9@byu.net>
55924
55925         Improve lseek module.
55926         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
55927         * lib/unistd_.h (lseek): Scale back link warning message.
55928         * tests/test-lseek.c: Beef up test.
55929         * tests/test-lseek.sh: Exercise more facets of lseek.
55930         Reported by Bruno Haible.
55931
55932 2007-05-28  Bruno Haible  <bruno@clisp.org>
55933
55934         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
55935         to define.
55936
55937 2007-05-27  Bruno Haible  <bruno@clisp.org>
55938
55939         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
55940
55941 2007-05-27  Bruno Haible  <bruno@clisp.org>
55942
55943         * modules/openmp: New file.
55944         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
55945         Noah Misch.
55946
55947 2007-05-26  Bruno Haible  <bruno@clisp.org>
55948
55949         * modules/chdir-long (Depends-on): Add fchdir.
55950         * modules/chdir-safer (Depends-on): Likewise.
55951         * modules/fts (Depends-on): Likewise.
55952         * modules/fts-lgpl (Depends-on): Likewise.
55953         * modules/openat (Depends-on): Likewise.
55954         * modules/savewd (Depends-on): Likewise.
55955
55956 2007-05-24  Eric Blake  <ebb9@byu.net>
55957
55958         Fix lseek on mingw.
55959         * modules/lseek: New module.
55960         * m4/lseek.m4: New file.
55961         * lib/lseek.c: New file.
55962         * modules/lseek-tests: New file.
55963         * tests/test-lseek.c: New file.
55964         * tests/test-lseek.sh: New file.
55965         * MODULES.html.sh: Document lseek module.
55966         * modules/fflush (Depends-on): Add lseek, fseeko.
55967         * modules/fseeko (Depends-on): Likewise.
55968         * modules/ftello (Depends-on): Likewise.
55969         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
55970         broken.
55971         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
55972         broken.
55973         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55974         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55975         * lib/ftello.c (rpl_ftello): Likewise.
55976         * tests/test-fseeko.c (main): Test this.
55977         * tests/test-fseeko.sh: Likewise.
55978         * tests/test-ftello.c (main): Likewise.
55979         * tests/test-ftello.sh: Likewise.
55980         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55981         implies replacing fseek.
55982         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55983         HAVE_FTELLO.
55984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55985         * modules/unistd (Makefile.am): Likewise.
55986         * lib/unistd_.h (lseek): Declare a replacement.
55987         * doc/functions/lseek.texi (lseek): Document this fix.
55988         * doc/functions/fseek.texi (fseek): Likewise.
55989         * doc/functions/ftell.texi (ftell): Likewise.
55990
55991 2007-05-24  Bruno Haible  <bruno@clisp.org>
55992
55993         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55994         in the printed representation of a NaN.
55995         * tests/test-vasprintf-posix.c (test_function): Likewise.
55996         * tests/test-snprintf-posix.h (test_function): Likewise.
55997         * tests/test-sprintf-posix.h (test_function): Likewise.
55998         Reported by Eric Blake.
55999
56000 2007-05-23  Eric Blake  <ebb9@byu.net>
56001
56002         Fix fseeko/ftello on cygwin 1.5.24.
56003         * doc/functions/fseeko.texi (fseeko): Document the fix.
56004         * doc/functions/ftello.texi (ftello): Document the fix.
56005         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
56006         * doc/functions/stdout.text (stdout): New file.
56007         * doc/functions/stderr.text (stderr): New file.
56008         * doc/gnulib.texi (Function Substitutes): Use new files.
56009         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
56010         prior to 1.7.0.
56011         * tests/test-ftello.c (main): Likewise for ftello.
56012         * tests/test-fseeko.sh: New file.
56013         * tests/test-ftello.sh: New file.
56014         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
56015         with seekable stdin.
56016         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
56017         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
56018         (gl_REPLACE_FSEEKO): New macro.
56019         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
56020         * modules/fseeko (Files): Distribute fseeko.c.
56021         * modules/ftello (Files): Distribute ftello.c.
56022         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
56023         mode.
56024         * lib/ftello.c (rpl_ftello): New file.
56025         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
56026         fseeko, ftello.
56027         (gl_STDIN_LARGE_OFFSET): New macro.
56028         * modules/stdio (Makefile.am): Perform the replacement.
56029         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
56030
56031 2007-05-23  Bruno Haible  <bruno@clisp.org>
56032
56033         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
56034         GNULIB_POSIXCHECK is defined.
56035
56036 2007-05-21  Bruno Haible  <bruno@clisp.org>
56037
56038         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
56039         Check also the output for NaN arguments. When cross-compiling, guess
56040         no on IRIX.
56041         * lib/vasnprintf.c: Update comments.
56042         * tests/test-vasnprintf-posix.c (strisnan): New function.
56043         (test_function): Use it.
56044         * tests/test-vasprintf-posix.c (strisnan): New function.
56045         (test_function): Use it.
56046         * tests/test-snprintf-posix.h (strisnan): New function.
56047         (test_function): Use it.
56048         * tests/test-sprintf-posix.h (strisnan): New function.
56049         (test_function): Use it.
56050         Reported by Eric Blake.
56051
56052 2007-05-20  Bruno Haible  <bruno@clisp.org>
56053
56054         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
56055         numbers that fails on BeOS.
56056         * doc/functions/frexpl.texi: Update.
56057
56058 2007-05-20  Jim Meyering  <jim@meyering.net>
56059
56060         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
56061         forced upon us by glibc-2.6.
56062
56063 2007-05-20  Bruno Haible  <bruno@clisp.org>
56064
56065         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
56066         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
56067         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
56068         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
56069         NEED_PRINTF_INFINITE.
56070         (is_infinitel): New function.
56071         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
56072         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
56073         gl_PREREQ_VASNPRINTF_INFINITE.
56074         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
56075         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56076         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
56077         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
56078         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
56079         gl_PREREQ_VASNPRINTF_INFINITE.
56080         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56081         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56082         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56083         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56084         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56085         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56086         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56087         * doc/functions/fprintf.texi: Update.
56088         * doc/functions/printf.texi: Update.
56089         * doc/functions/snprintf.texi: Update.
56090         * doc/functions/sprintf.texi: Update.
56091         * doc/functions/vfprintf.texi: Update.
56092         * doc/functions/vprintf.texi: Update.
56093         * doc/functions/vsnprintf.texi: Update.
56094         * doc/functions/vsprintf.texi: Update.
56095
56096 2007-05-20  Bruno Haible  <bruno@clisp.org>
56097
56098         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
56099         was not found in libc.
56100         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
56101
56102 2007-05-20  Bruno Haible  <bruno@clisp.org>
56103
56104         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56105         printed as "-nan" instead of "nan".
56106         * tests/test-vasprintf-posix.c (test_function): Likewise.
56107         * tests/test-snprintf-posix.h (test_function): Likewise.
56108         * tests/test-sprintf-posix.h (test_function): Likewise.
56109         Needed for HP-UX 11.
56110
56111 2007-05-20  Jim Meyering  <jim@meyering.net>
56112
56113         Fix buggy test for the fchownat-deref bug.
56114         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
56115         symlink required for the run-test.  Without it, this test would
56116         always declare that fchownat doesn't work, and client code would
56117         unnecessarily use the replacement function with fixed libc.
56118         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
56119         Reported by Greg Schafer.
56120
56121 2007-05-19  Bruno Haible  <bruno@clisp.org>
56122
56123         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
56124         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
56125         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
56126         Needed for IRIX 6.5 and Solaris 2.5.1.
56127
56128 2007-05-19  Bruno Haible  <bruno@clisp.org>
56129
56130         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
56131         (test_function): Skip tests involving -0.0 on platforms where
56132         -0.0 = 0.0.
56133         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
56134         (test_function): Skip tests involving -0.0 on platforms where
56135         -0.0 = 0.0.
56136         * tests/test-snprintf-posix.h (have_minus_zero): New function.
56137         (test_function): Skip tests involving -0.0 on platforms where
56138         -0.0 = 0.0.
56139         * tests/test-sprintf-posix.h (have_minus_zero): New function.
56140         (test_function): Skip tests involving -0.0 on platforms where
56141         -0.0 = 0.0.
56142         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
56143         tests.
56144         * tests/test-printf-posix.h (test_function): Likewise.
56145         * tests/test-printf-posix.output: Remove all -0.0 related results.
56146         Needed for IRIX 6.5.
56147
56148 2007-05-19  Bruno Haible  <bruno@clisp.org>
56149
56150         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56151         printed as "nan0x7fffffff" instead of "nan".
56152         * tests/test-vasprintf-posix.c (test_function): Likewise.
56153         * tests/test-snprintf-posix.h (test_function): Likewise.
56154         * tests/test-sprintf-posix.h (test_function): Likewise.
56155         * tests/test-fprintf-posix.h (NaN): Remove macro.
56156         (test_function): Remove all NaN related tests.
56157         * tests/test-printf-posix.h (NaN): Remove macro.
56158         (test_function): Remove all NaN related tests.
56159         * tests/test-printf-posix.output: Remove all NaN related results.
56160         Needed for IRIX 6.5.
56161
56162 2007-05-19  Bruno Haible  <bruno@clisp.org>
56163
56164         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
56165         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
56166
56167 2007-05-19  Bruno Haible  <bruno@clisp.org>
56168
56169         * lib/float_.h: New file.
56170         * m4/float_h.m4: New file.
56171         * modules/float: New file.
56172         * modules/isnanl (Dependencies): Add float.
56173         * modules/isnanl-nolibm (Dependencies): Likewise.
56174         * modules/mathl (Dependencies): Likewise.
56175         * modules/printf-frexpl (Dependencies): Likewise.
56176         * modules/signbit (Dependencies): Likewise.
56177         * modules/vasnprintf (Dependencies): Likewise.
56178         * doc/headers/float.texi: Update.
56179
56180 2007-05-19  Jim Meyering  <jim@meyering.net>
56181
56182         * lib/utimens.c (gl_futimens): Rename from futimens,
56183         now that glibc-2.6 declares futimens.
56184         * lib/utimens.h: Likewise.
56185
56186 2007-05-19  Bruno Haible  <bruno@clisp.org>
56187
56188         Avoid test failures on mingw.
56189         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
56190         * tests/test-printf-posix.sh: Likewise.
56191         * tests/test-vfprintf-posix.sh: Likewise.
56192         * tests/test-vprintf-posix.sh: Likewise.
56193
56194 2007-05-19  Bruno Haible  <bruno@clisp.org>
56195
56196         Fix *printf result for NaN, Inf, -0.0 on mingw.
56197         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
56198         * lib/vasnprintf.c: Include math.h and isnan.h.
56199         (is_infinite_or_zero): New function.
56200         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
56201         values in the %f, %F, %e, %E, %g, %G directives.
56202         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
56203         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56204         gl_PRINTF_INFINITE and test its result. Invoke
56205         gl_PREREQ_VASNPRINTF_INFINITE.
56206         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56207         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56208         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56209         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56210         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56211         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56212         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56213         * doc/functions/fprintf.texi: Update.
56214         * doc/functions/printf.texi: Update.
56215         * doc/functions/snprintf.texi: Update.
56216         * doc/functions/sprintf.texi: Update.
56217         * doc/functions/vfprintf.texi: Update.
56218         * doc/functions/vprintf.texi: Update.
56219         * doc/functions/vsnprintf.texi: Update.
56220         * doc/functions/vsprintf.texi: Update.
56221
56222 2007-05-19  Bruno Haible  <bruno@clisp.org>
56223
56224         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
56225         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
56226         Instead of multiplying with 10^k, set extra_zeroes to k.
56227         (scale10_round_long_double): Remove function.
56228
56229 2007-05-18  Bruno Haible  <bruno@clisp.org>
56230
56231         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
56232         introduced on 2007-05-06.
56233
56234 2007-05-18  Bruno Haible  <bruno@clisp.org>
56235
56236         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
56237         %g directives.
56238         * tests/test-vasprintf-posix.c (test_function): Likewise.
56239         * tests/test-snprintf-posix.h (test_function): Likewise.
56240         * tests/test-sprintf-posix.h (test_function): Likewise.
56241
56242 2007-05-18  Bruno Haible  <bruno@clisp.org>
56243
56244         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
56245         (strmatch): New function.
56246         (test_function): Test the %f directive on numbers of various exponents.
56247         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
56248         (strmatch): New function.
56249         (test_function): Test the %f directive on numbers of various exponents.
56250         * tests/test-snprintf-posix.h (strmatch): New function.
56251         (test_function): Test the %f directive on numbers of various exponents.
56252         * tests/test-sprintf-posix.h (strmatch): New function.
56253         (test_function): Test the %f directive on numbers of various exponents.
56254         * tests/test-snprintf-posix.c (SIZEOF): New macro.
56255         * tests/test-sprintf-posix.c (SIZEOF): New macro.
56256         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
56257         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
56258
56259 2007-05-18  Bruno Haible  <bruno@clisp.org>
56260
56261         Add support for 'long double' number output.
56262         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
56263         * lib/vasnprintf.c: Include math.h and float+.h.
56264         (mp_limb_t): New type.
56265         (GMP_LIMB_BITS): New macro.
56266         (mp_twolimb_t): New type.
56267         (GMP_TWOLIMB_BITS): New macro.
56268         (mpn_t): New type.
56269         (multiply, divide, convert_to_decimal, decode_long_double,
56270         scale10_round_long_double, scale10_round_decimal_long_double,
56271         floorlog10l): New functions.
56272         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
56273         for the %f, %F, %e, %E, %g, %G directives.
56274         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
56275         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56276         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
56277         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
56278         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56279         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56280         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56281         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56282         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56283         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56284         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56285         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
56286         * modules/snprintf-posix (Depends-on): Likewise.
56287         * modules/sprintf-posix (Depends-on): Likewise.
56288         * modules/vasnprintf-posix (Depends-on): Likewise.
56289         * modules/vasprintf-posix (Depends-on): Likewise.
56290         * modules/vfprintf-posix (Depends-on): Likewise.
56291         * modules/vsnprintf-posix (Depends-on): Likewise.
56292         * modules/vsprintf-posix (Depends-on): Likewise.
56293         * modules/vasnprintf (Files): Add lib/float+.h.
56294         * doc/functions/fprintf.texi: Update.
56295         * doc/functions/printf.texi: Update.
56296         * doc/functions/snprintf.texi: Update.
56297         * doc/functions/sprintf.texi: Update.
56298         * doc/functions/vfprintf.texi: Update.
56299         * doc/functions/vprintf.texi: Update.
56300         * doc/functions/vsnprintf.texi: Update.
56301         * doc/functions/vsprintf.texi: Update.
56302
56303 2007-05-18  Bruno Haible  <bruno@clisp.org>
56304
56305         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
56306
56307 2007-05-18  Bruno Haible  <bruno@clisp.org>
56308
56309         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
56310         for printing 64-bit integers. Needed for mingw.
56311
56312 2007-05-18  Bruno Haible  <bruno@clisp.org>
56313
56314         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56315         gl_FUNC_FREXPL_WORKS.
56316         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
56317
56318 2007-05-18  Bruno Haible  <bruno@clisp.org>
56319
56320         * modules/frexpl-nolibm-tests: New file.
56321
56322         * modules/frexpl-nolibm: New file.
56323         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
56324
56325 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56326
56327         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
56328         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56329         GCC 4.2, which otherwise issues a lot of warnings.
56330         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
56331         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
56332         Likewise.
56333         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
56334         * modules/iconv_open (iconv.h): Likewise.
56335         * modules/locale (locale.h): Likewise.
56336         * modules/netinet_in (netinet/in.h): Likewise.
56337         * modules/sys_select (sys_select.h): Likewise.
56338         * modules/sys_socket (sys/socket.h): Likewise.
56339         * modules/sys_stat (sys/stat.h): Likewise.
56340         * modules/sysexits (sysexits.h): Likewise.
56341         * modules/unistd (unistd.h): Likewise.
56342
56343 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56344
56345         * modules/closein-tests (Makefile.am): Distribute
56346         `test-closein.sh'.
56347
56348 2007-05-17  Bruno Haible  <bruno@clisp.org>
56349
56350         * tests/test-printf-posix.output: Renamed from
56351         tests/test-fprintf-posix.out.
56352         * modules/fprintf-posix-tests: Update.
56353         * modules/printf-posix-tests: Update.
56354         * modules/vfprintf-posix-tests: Update.
56355         * modules/vprintf-posix-tests: Update.
56356         * tests/test-fprintf-posix.sh: Update.
56357         * tests/test-printf-posix.sh: Update.
56358         * tests/test-vfprintf-posix.sh: Update.
56359         * tests/test-vprintf-posix.sh: Update.
56360         Reported by Ralf Wildenhues.
56361
56362 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56363
56364         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
56365         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56366         GCC 4.2, which otherwise issues a lot of warnings.
56367         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
56368         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
56369         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
56370         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
56371         it should no longer be needed.
56372         * lib/string_.h: Likewise.
56373         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
56374         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
56375         * modules/inttypes (inttypes.h): Likewise.
56376         * modules/math (math.h): Likewise.
56377         * modules/search (search.h): Likewise.
56378         * modules/signal (signal.h): Likewise.
56379         * modules/stdint (stdint.h): Likewise.
56380         * modules/stdio (stdio.h): Likewise.
56381         * modules/stdlib (stdlib.h): Likewise.
56382         * modules/string (string.h): Likewise.
56383         * modules/sys_time (sys/time.h): Likewise.
56384         * modules/time (time.h): Likewise.
56385         * modules/wchar (wchar.h): Likewise.
56386         * modules/wctype (wtype.h): Likewise.
56387
56388 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56389
56390         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
56391
56392 2007-05-13  Bruno Haible  <bruno@clisp.org>
56393
56394         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
56395         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56396         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
56397         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56398         (gl_PREREQ_STRTOK_R): Don't require it here.
56399
56400 2007-05-13  Bruno Haible  <bruno@clisp.org>
56401
56402         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
56403         when used in C++ mode.
56404
56405 2007-05-12  Bruno Haible  <bruno@clisp.org>
56406
56407         * lib/linebuffer.h: Tweak doc.
56408         * lib/linebuffer.c: Likewise.
56409
56410 2007-05-12  James Youngman  <jay@gnu.org>
56411
56412         * lib/linebuffer.c (readlinebuffer_delim): New function,
56413         like readlinebuffer, but use a caller-specified delimiter.
56414         (readlinebuffer): Just call readlinebuffer_delim with '\n'
56415         as the delimiter.
56416         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
56417
56418 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56419
56420         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
56421         * modules/openat (Files): Remove openat-die.c.
56422         (Depends-on): Add openat-die.
56423         * modules/openat-die: New module.
56424
56425 2007-05-06  Bruno Haible  <bruno@clisp.org>
56426
56427         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
56428         Update with info about Cygwin.
56429         * doc/functions/fprintf.texi: Update.
56430         * doc/functions/printf.texi: Update.
56431         * doc/functions/snprintf.texi: Update.
56432         * doc/functions/sprintf.texi: Update.
56433         * doc/functions/vfprintf.texi: Update.
56434         * doc/functions/vprintf.texi: Update.
56435         * doc/functions/vsnprintf.texi: Update.
56436         * doc/functions/vsprintf.texi: Update.
56437         Reported by Eric Blake.
56438
56439 2007-05-06  Bruno Haible  <bruno@clisp.org>
56440
56441         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
56442         padding ourselves for the floating-point directives.
56443         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
56444         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
56445         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56446         gl_PRINTF_FLAG_ZERO and test its result. Invoke
56447         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
56448         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56449         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56450         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56451         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56452         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56453         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56454         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56455         * tests/test-snprintf-posix.h (test_function): Also check the width
56456         and some flags in the %f directive.
56457         * tests/test-sprintf-posix.h (test_function): Likewise.
56458         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56459         * tests/test-vasprintf-posix.c (test_function): Likewise.
56460         * doc/functions/fprintf.texi: Update.
56461         * doc/functions/printf.texi: Update.
56462         * doc/functions/snprintf.texi: Update.
56463         * doc/functions/sprintf.texi: Update.
56464         * doc/functions/vfprintf.texi: Update.
56465         * doc/functions/vprintf.texi: Update.
56466         * doc/functions/vsnprintf.texi: Update.
56467         * doc/functions/vsprintf.texi: Update.
56468
56469 2007-05-06  Bruno Haible  <bruno@clisp.org>
56470
56471         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
56472         pass the ' flag character to sprintf or snprintf.
56473         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
56474         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
56475         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56476         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
56477         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
56478         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56479         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56480         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56481         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56482         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56483         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56484         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56485         * tests/test-snprintf-posix.h (test_function): Also check the grouping
56486         flag.
56487         * tests/test-sprintf-posix.h (test_function): Likewise.
56488         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56489         * tests/test-vasprintf-posix.c (test_function): Likewise.
56490         * doc/functions/fprintf.texi: Update.
56491         * doc/functions/printf.texi: Update.
56492         * doc/functions/snprintf.texi: Update.
56493         * doc/functions/sprintf.texi: Update.
56494         * doc/functions/vfprintf.texi: Update.
56495         * doc/functions/vprintf.texi: Update.
56496         * doc/functions/vsnprintf.texi: Update.
56497         * doc/functions/vsprintf.texi: Update.
56498
56499 2007-05-01  Bruno Haible  <bruno@clisp.org>
56500
56501         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
56502
56503 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
56504
56505         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
56506         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
56507
56508 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56509
56510         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
56511         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
56512         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
56513
56514 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
56515
56516         * lib/argp-help.c (struct hol_entry): New member `ord'.
56517         (HOL_ENTRY_PTRCMP): Use ord for comparison
56518         (hol_sort): Initialize ord.
56519
56520 2007-05-01  Bruno Haible  <bruno@clisp.org>
56521
56522         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
56523         Reported by Eric Blake.
56524         * doc/gnulib.texi (Function Substitutes): Update.
56525
56526 2007-05-01  Bruno Haible  <bruno@clisp.org>
56527
56528         * doc/functions.texi: Remove file, now redundant through
56529         doc/functions/*.texi.
56530
56531 2007-05-01  Bruno Haible  <bruno@clisp.org>
56532
56533         * modules/argp (Depends-on): Add sleep.
56534
56535 2007-05-01  Bruno Haible  <bruno@clisp.org>
56536
56537         * modules/sleep-tests: New file.
56538         * tests/test-sleep.c: New file.
56539
56540         * modules/sleep: New file.
56541         * lib/sleep.c: New file.
56542         * m4/sleep.m4: New file.
56543         * lib/unistd_.h (sleep): New declaration.
56544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
56545         HAVE_SLEEP.
56546         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
56547         * doc/functions/sleep.texi: Document the sleep module.
56548
56549 2007-05-01  Bruno Haible  <bruno@clisp.org>
56550
56551         * lib/sigprocmask.h: Remove file.
56552         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
56553         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
56554         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
56555         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
56556         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
56557         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
56558         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
56559         HAVE_SIGSET_T as a shell variable.
56560         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
56561         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
56562         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
56563         (Depends-on): Add signal. Remove verify.
56564         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
56565         (Include): Mention <signal.h> instead of sigprocmask.h.
56566         * NEWS: Mention the change.
56567         * lib/fatal-signal.c: Don't include sigprocmask.h.
56568
56569 2007-05-01  Bruno Haible  <bruno@clisp.org>
56570
56571         * modules/signal: New file.
56572         * lib/signal_.h: New file.
56573         * m4/signal_h.m4: New file.
56574
56575 2007-05-01  Bruno Haible  <bruno@clisp.org>
56576
56577         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
56578         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
56579         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
56580         HAVE_WCTYPE_CTMP_BUG into wctype.h.
56581
56582 2007-05-01  Bruno Haible  <bruno@clisp.org>
56583
56584         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
56585         configure time.
56586         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
56587         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
56588         * modules/sys_stat (Makefile.am): Substitute their values into
56589         sys/stat.h.
56590
56591 2007-05-01  Bruno Haible  <bruno@clisp.org>
56592
56593         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
56594         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
56595         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
56596
56597 2007-05-01  Bruno Haible  <bruno@clisp.org>
56598
56599         * doc/header/assert.texi: Undo last change: don't mention the gnulib
56600         'assert' module here.
56601
56602 2007-05-01  Bruno Haible  <bruno@clisp.org>
56603
56604         * doc/functions/*.texi: New files.
56605         * doc/functions/google-ranking.txt: New file.
56606         * doc/gnulib.texi (Function Substitutes): New chapter.
56607         (ctime, inet_ntoa): Remove sections.
56608         * doc/ctime.texi: Remove file.
56609         * doc/inet_ntoa.texi: Remove file.
56610         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
56611         dependencies.
56612         (%.info): New rule, specifying a --reference-limit.
56613
56614 2007-05-01  Bruno Haible  <bruno@clisp.org>
56615
56616         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
56617
56618 2007-05-01  Bruno Haible  <bruno@clisp.org>
56619
56620         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
56621         the portability of 'mkdir' to mingw systems.
56622
56623 2007-05-01  Bruno Haible  <bruno@clisp.org>
56624
56625         * doc/headers/google-ranking.txt: New file.
56626
56627 2007-04-30  Eric Blake  <ebb9@byu.net>
56628
56629         Prefer fseeko to fseek.
56630         * modules/getpass (Depends-on): Add fseeko.
56631         * lib/getpass.c (getpass): Use fseeko, not fseek.
56632
56633 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
56634
56635         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
56636         assumes the sorting is stable, while most qsort implementations
56637         are not.  Use argument addresses to ensure they never compare as
56638         equal.
56639
56640         * tests/test-argp-2.sh (usage-indent test): Fix output
56641         (func_compare): Restore diff options
56642         * tests/test-argp.c: Restore #include "progname.h"
56643
56644 2007-04-29  Bruno Haible  <bruno@clisp.org>
56645
56646         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
56647         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56648         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
56649         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56650         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
56651         (configure.ac): Define CHECK_SNPRINTF_POSIX.
56652         (TESTS, check_PROGRAMS): Add test-snprintf.
56653         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
56654         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
56655         (TESTS, check_PROGRAMS): Add test-vsnprintf.
56656         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
56657         assertions that fail on HP-UX, OSF/1, or IRIX.
56658         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
56659
56660 2007-04-29  Bruno Haible  <bruno@clisp.org>
56661
56662         * MODULES.html.sh (posix_functions): Remove 'contents'.
56663
56664 2007-04-29  Karl Berry  <karl@gnu.org>
56665
56666         * config/srclist.txt (gendocs_template_min): new entry.
56667
56668 2007-04-29  Bruno Haible  <bruno@clisp.org>
56669
56670         Work around fpurge bug on BSD systems.
56671         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
56672         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
56673         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
56674         fpurge to rpl_fpurge if the system already has this function.
56675         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
56676         the case where the system already has this function. Correct invariants
56677         on BSD systems.
56678         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
56679         BSD systems.
56680
56681 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56682
56683         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
56684         proposed by Sven Verdoolaege.
56685
56686         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
56687         options.
56688         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
56689         (usage and help tests): Update
56690
56691 2007-04-29  Bruno Haible  <bruno@clisp.org>
56692
56693         * tests/test-fflush.c (main): Use a file of size 17, not 10.
56694         Print more information in case of failure. Disable a test on BeOS.
56695
56696 2007-04-29  Bruno Haible  <bruno@clisp.org>
56697
56698         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
56699         This helps debugging on systems on which no gdb is available.
56700
56701 2007-04-29  Bruno Haible  <bruno@clisp.org>
56702
56703         * lib/freading.h: Improve comments.
56704         * lib/fwriting.h: Likewise.
56705         * tests/test-freading.c (main): Don't check freading immediately after
56706         repositioning. Needed for glibc.
56707
56708 2007-04-29  Bruno Haible  <bruno@clisp.org>
56709
56710         * lib/freading.c (freading): Trivial simplification.
56711
56712 2007-04-28  Bruno Haible  <bruno@clisp.org>
56713
56714         * tests/test-fwriting.c (main): Also test the interaction between
56715         fflush and fwriting.
56716         * modules/fwriting-tests (Depends-on): Add fflush.
56717
56718         * tests/test-freading.c (main): Also test the interaction between
56719         fflush and freading.
56720         * modules/freading-tests (Depends-on): Add fflush.
56721
56722 2007-04-28  Bruno Haible  <bruno@clisp.org>
56723
56724         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
56725         fseeko and ftello.
56726         Suggested by Eric Blake.
56727
56728 2007-04-28  Jim Meyering  <jim@meyering.net>
56729
56730         Avoid false-negative in gl_STDINT_H's C99 conformance test.
56731         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
56732         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
56733
56734 2007-04-27  Eric Blake  <ebb9@byu.net>
56735
56736         * doc/headers/assert.texi (assert.h): Document assert module use.
56737
56738 2007-04-27  Bruno Haible  <bruno@clisp.org>
56739
56740         * doc/headers/*.texi: New files.
56741         * doc/gnulib.texi (Header File Substitutes): New chapter.
56742         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
56743         dependencies.
56744         (standards.info ,standards.html, standards.dvi): Update dependencies.
56745         (mostlyclean, clean): New targets.
56746
56747 2007-04-27  Bruno Haible  <bruno@clisp.org>
56748
56749         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
56750         * modules/sysexits (Files, Makefile.am): Update.
56751
56752         * lib/sys_socket_.h: Renamed from lib/socket_.h.
56753         * modules/sys_socket (Files, Makefile.am): Update.
56754
56755         * lib/sys_stat_.h: Renamed from lib/stat_.h.
56756         * modules/sys_stat (Files, Makefile.am): Update.
56757
56758 2007-04-27  Eric Blake  <ebb9@byu.net>
56759
56760         * lib/freading.h: Improve comments.
56761         * lib/fwriting.h: Likewise.
56762         * lib/fflush.c: Likewise.
56763
56764         Fix closein for mingw.
56765         * modules/closein-tests: Add tests for closein.
56766         * tests/test-closein.c: New file.
56767         * tests/test-closein.sh: Likewise.
56768         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
56769         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
56770
56771 2007-04-27  Bruno Haible  <bruno@clisp.org>
56772
56773         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
56774         version is < 6.
56775         * lib/math_.h [__DECC]: Likewise.
56776         * lib/stdio_.h [__DECC]: Likewise.
56777         * lib/stdlib_.h [__DECC]: Likewise.
56778         * lib/string_.h [__DECC]: Likewise.
56779         * lib/time_.h [__DECC]: Likewise.
56780         * lib/wchar_.h [__DECC]: Likewise.
56781         * lib/wctype_.h [__DECC]: Likewise.
56782
56783 2007-04-27  Bruno Haible  <bruno@clisp.org>
56784
56785         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
56786
56787 2007-04-27  Bruno Haible  <bruno@clisp.org>
56788
56789         * lib/fflush.c: Add comments.
56790         * modules/fpurge-tests (Depends-on): Add fflush.
56791         * modules/freadable-tests (Depends-on): Likewise.
56792         * modules/fwritable-tests (Depends-on): Likewise.
56793
56794 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
56795
56796         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
56797         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
56798         Report by Bruno Haible <bruno@clisp.org>.
56799
56800 2007-04-26  Eric Blake  <ebb9@byu.net>
56801
56802         Fix fflush on mingw.
56803         * modules/fflush (Depends-on): Add freading.
56804         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
56805         but unread data.
56806
56807 2007-04-26  Eric Blake  <ebb9@byu.net>
56808         and Bruno Haible  <bruno@clisp.org>
56809
56810         Implement freading and fwriting.
56811         * lib/freading.c: New file.
56812         * lib/freading.h: Likewise.
56813         * m4/freading.m4: Likewise.
56814         * modules/freading: Likewise.
56815         * modules/freading-tests: Likewise.
56816         * tests/test-freading.c: Likewise.
56817         * lib/fwriting.c: New file.
56818         * lib/fwriting.h: Likewise.
56819         * m4/fwriting.m4: Likewise.
56820         * modules/fwriting: Likewise.
56821         * modules/fwriting-tests: Likewise.
56822         * tests/test-fwriting.c: Likewise.
56823         * MODULES.html.sh (File stream based Input/Output): Mention them.
56824
56825 2007-04-26  Bruno Haible  <bruno@clisp.org>
56826
56827         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
56828         'long' when we assume it.
56829         Suggested by Eric Blake.
56830
56831 2007-04-26  Bruno Haible  <bruno@clisp.org>
56832
56833         Ensure fseeko, ftello are declared on glibc systems.
56834         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
56835         * modules/fseeko (configure.ac-early): Likewise.
56836         * modules/ftello (configure.ac-early): Likewise.
56837         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
56838         AC_FUNC_FSEEKO for this.
56839         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
56840         (gl_CHECK_FSEEKO): Remove macro.
56841
56842 2007-04-26  Bruno Haible  <bruno@clisp.org>
56843
56844         * tests/test-fflush.c (main): Also check the ftell result after
56845         fflush and fseek/fseeko.
56846         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
56847         file descriptor position cache in the stream.
56848         * lib/fseeko.c (rpl_fseeko): Likewise.
56849
56850 2007-04-26  Bruno Haible  <bruno@clisp.org>
56851
56852         * modules/fflush-tests (Depends-on): Add fseeko.
56853
56854 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
56855             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56856
56857         * lib/argz_.h: ensure error_t definition is obtained in same
56858         mechanism system argz.h would have.
56859         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
56860         argz facilities are known bad.  Err on the side of caution if
56861         cross-compiling.
56862
56863 2007-04-25  Eric Blake  <ebb9@byu.net>
56864
56865         * lib/fpurge.c (includes): Use stdlib.h for free.
56866         * tests/test-fflush.c (main): Also test fflush-fseeko.
56867
56868 2007-04-25  Bruno Haible  <bruno@clisp.org>
56869
56870         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
56871         * lib/fseeko.c: New file.
56872         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
56873         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
56874         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
56875         gl_FUNC_FSEEKO.
56876         (gl_FUNC_FSEEKO): Invoke it.
56877         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
56878         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
56879         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
56880
56881 2007-04-25  Bruno Haible  <bruno@clisp.org>
56882
56883         * modules/fflush (Depends-on): Add ftello.
56884
56885 2007-04-25  Bruno Haible  <bruno@clisp.org>
56886
56887         * modules/ftello-tests: New file.
56888         * tests/test-ftello.c: New file.
56889
56890         * modules/ftello: New file.
56891         * m4/ftello.m4: New file.
56892         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
56893         HAVE_FTELLO.
56894         * lib/stdio_.h (ftello): New declaration.
56895         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
56896         HAVE_FTELLO.
56897
56898 2007-04-25  Bruno Haible  <bruno@clisp.org>
56899
56900         * modules/fseeko-tests: New file.
56901         * tests/test-fseeko.c: New file.
56902
56903         * modules/fseeko: New file.
56904         * m4/fseeko.m4: New file.
56905         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
56906         HAVE_FSEEKO.
56907         * lib/stdio_.h (fseeko): New declaration.
56908         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
56909         HAVE_FSEEKO.
56910
56911 2007-04-25  Bruno Haible  <bruno@clisp.org>
56912
56913         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
56914
56915 2007-04-25  Bruno Haible  <bruno@clisp.org>
56916
56917         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
56918         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
56919         * tests/test-unistd.c: Likewise.
56920         * tests/test-fcntl.c: Likewise.
56921
56922 2007-04-23  Eric Blake  <ebb9@byu.net>
56923
56924         * lib/fflush.c: Fix missing include.
56925         Reported by Bruno Haible.
56926
56927 2007-04-23  Bruno Haible  <bruno@clisp.org>
56928
56929         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
56930         Reported by Eric Blake.
56931
56932 2007-04-23  Bruno Haible  <bruno@clisp.org>
56933
56934         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
56935
56936 2007-04-23  Bruno Haible  <bruno@clisp.org>
56937
56938         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
56939
56940 2007-04-23  Bruno Haible  <bruno@clisp.org>
56941
56942         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
56943         Needed on HP-UX 11.
56944
56945 2007-04-16  Eric Blake  <ebb9@byu.net>
56946
56947         Make fflush rely on fpurge.
56948         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
56949         open coding all variants.
56950         * modules/fflush (Depends-on): Add fpurge and unistd.
56951         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
56952         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
56953
56954         Fix --with-tests compilation on cygwin.
56955         * modules/argmatch-tests (Makefile.am): List gnulib library first
56956         in LDADD.
56957         * modules/argp-tests (Makefile.am): Likewise.
56958         * modules/array-list-tests (Makefile.am): Likewise.
56959         * modules/array-oset-tests (Makefile.am): Likewise.
56960         * modules/avltree-list-tests (Makefile.am): Likewise.
56961         * modules/avltree-oset-tests (Makefile.am): Likewise.
56962         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56963         * modules/carray-list-tests (Makefile.am): Likewise.
56964         * modules/dirname-tests (Makefile.am): Likewise.
56965         * modules/frexp-tests (Makefile.am): Likewise.
56966         * modules/isnanl-tests (Makefile.am): Likewise.
56967         * modules/linked-list-tests (Makefile.am): Likewise.
56968         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56969         * modules/lock-tests (Makefile.am): Likewise.
56970         * modules/rbtree-list-tests (Makefile.am): Likewise.
56971         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56972         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56973         * modules/tls-tests (Makefile.am): Likewise.
56974         * modules/tsearch-tests (Makefile.am): Likewise.
56975         * modules/xvasprintf-tests (Makefile.am): Likewise.
56976
56977         Fix fpurge for cygwin.
56978         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56979         value.
56980         * modules/fpurge-tests (Depends-on): Clean up trash.
56981
56982 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56983
56984         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56985
56986         * m4/autobuild.m4: Re-indent.
56987
56988 2007-04-13  Bruno Haible  <bruno@clisp.org>
56989
56990         * modules/fpurge-tests: New file.
56991         * tests/test-fpurge.c: New file.
56992
56993         * modules/fpurge: New file.
56994         * lib/fpurge.h: New file.
56995         * lib/fpurge.c: New file.
56996         * m4/fpurge.m4: New file.
56997
56998 2007-04-13  Bruno Haible  <bruno@clisp.org>
56999
57000         * modules/fbufmode-tests: New file.
57001         * tests/test-fbufmode.c: New file.
57002
57003         * modules/fbufmode: New file.
57004         * lib/fbufmode.h: New file.
57005         * lib/fbufmode.c: New file.
57006         * m4/fbufmode.m4: New file.
57007
57008 2007-04-13  Bruno Haible  <bruno@clisp.org>
57009
57010         * modules/fwritable-tests: New file.
57011         * tests/test-fwritable.c: New file.
57012
57013         * modules/fwritable: New file.
57014         * lib/fwritable.h: New file.
57015         * lib/fwritable.c: New file.
57016         * m4/fwritable.m4: New file.
57017
57018 2007-04-13  Bruno Haible  <bruno@clisp.org>
57019
57020         * modules/freadable-tests: New file.
57021         * tests/test-freadable.c: New file.
57022
57023         * modules/freadable: New file.
57024         * lib/freadable.h: New file.
57025         * lib/freadable.c: New file.
57026         * m4/freadable.m4: New file.
57027
57028 2007-04-13  Bruno Haible  <bruno@clisp.org>
57029
57030         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
57031         MOSTLYCLEANFILES.
57032
57033 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57034
57035         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
57036         gzip bootstrap.conf to avoid dragging in i18n machinery.
57037         (gnulib_tool_option): Use it.
57038
57039 2007-04-13  Bruno Haible  <bruno@clisp.org>
57040
57041         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
57042         %F directives.
57043         * tests/test-vasprintf-posix.c (test_function): Likewise.
57044         * tests/test-snprintf-posix.h (test_function): Likewise.
57045         * tests/test-sprintf-posix.h (test_function): Likewise.
57046         * tests/test-fprintf-posix.h (test_function): Likewise.
57047         * tests/test-printf-posix.h (test_function): Likewise.
57048         * tests/test-fprintf-posix.out: Likewise.
57049
57050 2007-04-13  Bruno Haible  <bruno@clisp.org>
57051
57052         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
57053         * modules/tls-tests (configure.ac): Likewise.
57054         Reported by Arto C. Nirkko <anirkko@insel.ch>.
57055
57056 2007-04-13  Bruno Haible  <bruno@clisp.org>
57057
57058         * lib/tls.c (glthread_tls_get): Fix return type.
57059         Patch by Arto C. Nirkko <anirkko@insel.ch>.
57060
57061 2007-04-12  Eric Blake  <ebb9@byu.net>
57062
57063         * modules/gettime (Depends-on): Remove gettime.
57064         Reported by Dmitry V. Levin.
57065
57066 2007-04-12  Bruno Haible  <bruno@clisp.org>
57067
57068         * modules/fflush (Include): Mention <stdio.h>.
57069         * modules/strtoimax (Include): Mention <inttypes.h>.
57070         * modules/strtoumax (Include): Likewise.
57071
57072 2007-04-12  Eric Blake  <ebb9@byu.net>
57073
57074         * .cvsignore: New file.
57075         * .gitignore: Likewise.
57076
57077 2007-04-12  Bruno Haible  <bruno@clisp.org>
57078
57079         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
57080         not before, since $(LDADD) often contains libgnu.a.
57081         * modules/striconv-tests (test_striconv_LDADD): Likewise.
57082         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
57083         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
57084         Needed on Cygwin.
57085
57086 2007-04-12  Eric Blake  <ebb9@byu.net>
57087
57088         Work around glibc's failure to flush stdin on fclose.
57089         * lib/closein.c (close_stdin): Flush stdin before closing.
57090
57091         Work around glibc's failure to reset seekable stdin on exit.
57092         * modules/closein: New module.
57093         * lib/closein.c: New file.
57094         * lib/closein.h: Likewise.
57095         * m4/closein.m4: Likewise.
57096         * MODULES.html.sh (File stream based Input/Output): Document it.
57097
57098 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57099
57100         * gnulib-tool: Rename generated 'autobuild' script to
57101         'do-autobuild' in --create-megatestdir output.
57102
57103         * doc/gnulib.texi (Build robot for gnulib): Fix.
57104
57105 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57106
57107         * modules/sysexits (Depends-on): Add absolute-header.
57108
57109 2007-04-12  Eric Blake  <ebb9@byu.net>
57110
57111         No need to preserve errno on success.
57112         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
57113         Reported by Bruno Haible.
57114
57115 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57116
57117         * MODULES.html.sh (Support for maintaining and releasing
57118         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
57119
57120 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57121
57122         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
57123
57124 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57125
57126         * modules/autobuild: New module.
57127
57128         * m4/autobuild.m4: New file.
57129
57130 2007-04-11  Bruno Haible  <bruno@clisp.org>
57131
57132         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
57133         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
57134         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
57135         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
57136         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57137         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57138         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57139         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57140         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57141         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57142         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
57143         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57144         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57145         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
57146         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57147         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57148         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
57149         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57150         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57151         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
57152         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57153         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57154         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
57155         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57156         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57157         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
57158         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57159         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57160         Reported by Eric Blake.
57161
57162 2007-04-11  Bruno Haible  <bruno@clisp.org>
57163
57164         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
57165
57166 2007-04-10  Bruno Haible  <bruno@clisp.org>
57167
57168         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
57169         for NaN and Infinity. Needed on FreeBSD 6.1.
57170         * tests/test-vasnprintf-posix.c (test_function): Undo last change
57171         regarding results for "%010a" of Infinity and NaN.
57172         * tests/test-vasprintf-posix.c (test_function): Likewise.
57173         * tests/test-snprintf-posix.h (test_function): Likewise.
57174         * tests/test-sprintf-posix.h (test_function): Likewise.
57175         * tests/test-fprintf-posix.h (test_function): Likewise.
57176         * tests/test-printf-posix.h (test_function): Likewise.
57177         * tests/test-fprintf-posix.out: Likewise.
57178
57179 2007-04-10  Bruno Haible  <bruno@clisp.org>
57180
57181         * modules/locale-tests: New file.
57182         * tests/test-locale.c: New file.
57183
57184         * modules/locale: New file.
57185         * lib/locale_.h: New file.
57186         * m4/locale_h.m4: New file.
57187
57188 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
57189             Bruno Haible  <bruno@clisp.org>
57190
57191         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
57192         be determined, test for availability of the copysignf, copysign,
57193         copysignl functions.
57194         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
57195         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
57196         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
57197
57198 2007-04-09  Eric Blake  <ebb9@byu.net>
57199
57200         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
57201         * modules/stdio (Makefile.am): Support fflush.
57202         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57203         * modules/fflush: New file.
57204         * lib/fflush.c: Likewise.
57205         * m4/fflush.m4: Likewise.
57206         * modules/fflush-tests: New test.
57207         * tests/test-fflush.c: Likewise.
57208         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
57209
57210 2007-04-06  Bruno Haible  <bruno@clisp.org>
57211
57212         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
57213         (VASNPRINTF): Use signbit for faster determination whether to print a
57214         minus sign.
57215         * modules/vasnprintf (Files): Remove lib/float+.h.
57216         * modules/fprintf-posix (Depends-on): Add signbit.
57217         * modules/snprintf-posix (Depends-on): Likewise.
57218         * modules/sprintf-posix (Depends-on): Likewise.
57219         * modules/vasnprintf-posix (Depends-on): Likewise.
57220         * modules/vasprintf-posix (Depends-on): Likewise.
57221         * modules/vfprintf-posix (Depends-on): Likewise.
57222         * modules/vsnprintf-posix (Depends-on): Likewise.
57223         * modules/vsprintf-posix (Depends-on): Likewise.
57224
57225 2007-04-06  Bruno Haible  <bruno@clisp.org>
57226
57227         * tests/test-frexp.c (main): Test also the sign bit of zero results.
57228         * tests/test-frexpl.c (main): Likewise.
57229         * tests/test-ldexpl.c (main): Likewise.
57230         * modules/frexp-tests (Depends-on): Add signbit.
57231         * modules/frexpl-tests (Depdends-on): Likewise.
57232         * modules/ldexpl-tests (Depdends-on): Likewise.
57233
57234 2007-04-06  Bruno Haible  <bruno@clisp.org>
57235
57236         * modules/signbit-tests: New file.
57237         * tests/test-signbit.c: New file.
57238
57239         * modules/signbit: New file.
57240         * lib/signbitf.c: New file.
57241         * lib/signbitd.c: New file.
57242         * lib/signbitl.c: New file.
57243         * m4/signbit.m4: New file.
57244         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
57245         (signbit): New macro.
57246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
57247         REPLACE_SIGNBIT.
57248         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
57249         REPLACE_FREXPL into math.h.
57250
57251 2007-04-06  Bruno Haible  <bruno@clisp.org>
57252
57253         * modules/isnanf-nolibm-tests: New file.
57254         * tests/test-isnanf.c: New file.
57255
57256         * modules/isnanf-nolibm: New file.
57257         * lib/isnanf.h: New file.
57258         * lib/isnanf.c: New file.
57259         * lib/isnan.c: Consider the USE_FLOAT macro.
57260         * m4/isnanf.m4: New file.
57261
57262 2007-04-06  Bruno Haible  <bruno@clisp.org>
57263
57264         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
57265         (Link): New section.
57266
57267         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
57268
57269 2007-04-06  Bruno Haible  <bruno@clisp.org>
57270
57271         Assume the 'long double' type.
57272         * m4/longdouble.m4: Remove file.
57273         * config/srclist.txt: Don't mention longdouble.m4.
57274         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
57275         * lib/float+.h: Likewise.
57276         * lib/frexp.c: Likewise.
57277         * lib/printf-args.h: Likewise.
57278         * lib/printf-args.c: Likewise.
57279         * lib/printf-frexp.c: Likewise.
57280         * lib/printf-parse.c: Likewise.
57281         * lib/vasnprintf.c: Likewise.
57282         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
57283         * m4/intl.m4: Likewise.
57284         * m4/isnanl.m4: Likewise.
57285         * m4/printf.m4: Likewise.
57286         * m4/printf-frexpl.m4: Likewise.
57287         * m4/vasnprintf.m4: Likewise.
57288         * modules/allocsa (Files): Remove m4/longdouble.m4.
57289         * modules/gettext (Files): Likewise.
57290         * modules/relocatable-prog-wrapper (Files): Likewise.
57291         * modules/vasnprintf (Files): Likewise.
57292         * modules/isnanl (Files): Likewise.
57293         (Include): Simplify.
57294         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
57295         (Include): Simplify.
57296         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
57297         (Include): Simplify.
57298         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
57299         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57300         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
57301         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57302         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57303         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57304         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
57305         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57306         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57307         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57308         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
57309         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57310         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
57311         * tests/test-isnanl.c: Likewise.
57312         * tests/test-snprintf-posix.h: Likewise.
57313         * tests/test-sprintf-posix.h: Likewise.
57314         * tests/test-vasnprintf-posix.c: Likewise.
57315         * tests/test-vasnprintf-posix2.c: Likewise.
57316         * tests/test-vasprintf-posix.c: Likewise.
57317
57318 2007-04-06  Bruno Haible  <bruno@clisp.org>
57319
57320         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
57321         * lib/math_.h [__DECC]: Include the overridden include file through
57322         #include_next, outside the double-inclusion guard.
57323         * lib/stdio_.h [__DECC]: Likewise.
57324         * lib/stdlib_.h [__DECC]: Likewise.
57325         * lib/string_.h [__DECC]: Likewise.
57326         * lib/time_.h [__DECC]: Likewise.
57327         * lib/wchar_.h [__DECC]: Likewise.
57328         * lib/wctype_.h [__DECC]: Likewise.
57329         * lib/inttypes_.h [__DECC]: Likewise.
57330         Reported by Albert Chin <china@thewrittenword.com> in
57331         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
57332
57333 2007-04-04  Eric Blake  <ebb9@byu.net>
57334
57335         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
57336         1.5.x.
57337
57338 2007-04-04  Bruno Haible  <bruno@clisp.org>
57339
57340         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
57341         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
57342
57343 2007-04-04  Bruno Haible  <bruno@clisp.org>
57344
57345         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
57346         results for "%010a" of Infinity and NaN.
57347         * tests/test-vasprintf-posix.c (test_function): Likewise.
57348         * tests/test-snprintf-posix.h (test_function): Likewise.
57349         * tests/test-sprintf-posix.h (test_function): Likewise.
57350         * tests/test-fprintf-posix.h (test_function): Remove these tests.
57351         * tests/test-printf-posix.h (test_function): Likewise.
57352         * tests/test-fprintf-posix.out: Update.
57353         Needed for FreeBSD 6.1.
57354
57355 2007-04-04  Bruno Haible  <bruno@clisp.org>
57356
57357         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
57358         directly used by the gnulib modules nor by gnulib-tool.
57359
57360 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57361
57362         * DEPENDENCIES: Give overall description of version dependency
57363         desirability.  Use more-typical names for apps.
57364         Add shell, coreutils, diffutils, grep, tar, gzip.
57365
57366 2007-04-04  Simon Josefsson  <simon@josefsson.org>
57367
57368         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
57369
57370 2007-04-04  Karl Berry  <karl@gnu.org>
57371
57372         * MODULES.html.sh (func_module): missing '.
57373
57374 2007-04-03  Bruno Haible  <bruno@clisp.org>
57375
57376         * modules/argmatch-tests (Makefile.am): New variable
57377         test_argmatch_LDADD.
57378         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
57379         * modules/array-list-tests (Makefile.am): New variable
57380         test_array_list_LDADD.
57381         * modules/array-oset-tests (Makefile.am): New variable
57382         test_array_oset_LDADD.
57383         * modules/avltree-list-tests (Makefile.am): New variable
57384         test_avltree_list_LDADD.
57385         * modules/avltree-oset-tests (Makefile.am): New variable
57386         test_avltree_oset_LDADD.
57387         * modules/avltreehash-list-tests (Makefile.am): New variable
57388         test_avltreehash_list_LDADD.
57389         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
57390         test_canonicalize_lgpl_LDADD.
57391         * modules/carray-list-tests (Makefile.am): New variable
57392         test_carray_list_LDADD.
57393         * modules/dirname-tests (Makefile.am): New variable
57394         test_dirname_LDADD.
57395         * modules/linked-list-tests (Makefile.am): New variable
57396         test_linked_list_LDADD.
57397         * modules/linkedhash-list-tests (Makefile.am): New variable
57398         test_linkedhash_list_LDADD.
57399         * modules/rbtree-list-tests (Makefile.am): New variable
57400         test_rbtree_list_LDADD.
57401         * modules/rbtree-oset-tests (Makefile.am): New variable
57402         test_rbtree_oset_LDADD.
57403         * modules/rbtreehash-list-tests (Makefile.am): New variable
57404         test_rbtreehash_list_LDADD.
57405         * modules/xvasprintf-tests (Makefile.am): New variable
57406         test_xvasprintf_LDADD.
57407         Reported by Eric Blake.
57408
57409 2007-04-03  Eric Blake  <ebb9@byu.net>
57410
57411         * DEPENDENCIES: Weaken m4 requirements.
57412
57413 2007-04-03  Bruno Haible  <bruno@clisp.org>
57414
57415         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
57416         * modules/isnanl-tests (configure.ac): Likewise.
57417
57418 2007-04-03  Ben Pfaff  <blp@gnu.org>
57419
57420         * modules/iconv_open: Add $(srcdir)/ to source directory
57421         references in Makefile fragments that call gperf, to fix VPATH
57422         builds.
57423
57424 2007-04-03  Bruno Haible  <bruno@clisp.org>
57425
57426         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
57427         * lib/ldexpl.c: Undo last change.
57428
57429 2007-04-03  Bruno Haible  <bruno@clisp.org>
57430
57431         * modules/printf-frexpl (Depends-on): Undo last change.
57432         (Files): Add m4/ldexpl.m4.
57433
57434 2007-04-03  Bruno Haible  <bruno@clisp.org>
57435
57436         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
57437         * modules/isnanl (Link): New section.
57438
57439         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
57440         * modules/frexp (Link): New section.
57441
57442         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
57443         * modules/frexpl (Link): New section.
57444
57445         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
57446         * modules/ldexpl (Link): New section.
57447
57448 2007-04-03  Bruno Haible  <bruno@clisp.org>
57449
57450         * modules/TEMPLATE-EXTENDED: New file.
57451         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
57452
57453 2007-04-03  Bruno Haible  <bruno@clisp.org>
57454
57455         * DEPENDENCIES: New file.
57456         Suggested by Simon Josefsson.
57457
57458 2007-04-03  Bruno Haible  <bruno@clisp.org>
57459
57460         * doc/gnulib.texi: Escape @.
57461
57462 2007-04-03  James Youngman  <jay@gnu.org>
57463         and Paul Eggert  <eggert@cs.ucla.edu>
57464
57465         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
57466         birthtime on all systems that have birthtime, not just those which
57467         use st_birthtimensec rather than st_birthtim.  Putting zero in
57468         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
57469         that the birth time is not available for files on an NFS mount.
57470
57471 2007-04-03  Simon Josefsson  <simon@josefsson.org>
57472
57473         * modules/memxor: Move back from crypto/, suggested by Bruno.
57474         * modules/crypto/hmac-sha1: Fix memxor dependency.
57475
57476         * modules/crypto/gc: Moved from ../.
57477
57478 2007-04-02  Eric Blake  <ebb9@byu.net>
57479
57480         * lib/ldexpl.c (includes): Avoid libm.
57481
57482         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
57483
57484 2007-04-02  Bruno Haible  <bruno@clisp.org>
57485
57486         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
57487         on IRIX.
57488
57489 2007-04-02  Bruno Haible  <bruno@clisp.org>
57490
57491         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
57492         x86 or x86_64 platforms running MacOS X.
57493         Reported by Ryan Schmidt <@ryandesign.com>.
57494
57495 2007-04-02  Bruno Haible  <bruno@clisp.org>
57496
57497         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
57498         i386.
57499
57500 2007-04-01  Simon Josefsson  <simon@josefsson.org>
57501
57502         * modules/crypto/arcfour: Moved from ../.
57503         * modules/crypto/arcfour-tests: Moved from ../.
57504         * modules/crypto/arctwo: Moved from ../.
57505         * modules/crypto/arctwo-tests: Moved from ../.
57506         * modules/crypto/des: Moved from ../.
57507         * modules/crypto/des-tests: Moved from ../.
57508         * modules/crypto/gc-arcfour: Moved from ../.
57509         * modules/crypto/gc-arcfour-tests: Moved from ../.
57510         * modules/crypto/gc-arctwo: Moved from ../.
57511         * modules/crypto/gc-arctwo-tests: Moved from ../.
57512         * modules/crypto/gc-des: Moved from ../.
57513         * modules/crypto/gc-des-tests: Moved from ../.
57514         * modules/crypto/gc-hmac-md5: Moved from ../.
57515         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
57516         * modules/crypto/gc-hmac-sha1: Moved from ../.
57517         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
57518         * modules/crypto/gc-md2: Moved from ../.
57519         * modules/crypto/gc-md2-tests: Moved from ../.
57520         * modules/crypto/gc-md4: Moved from ../.
57521         * modules/crypto/gc-md4-tests: Moved from ../.
57522         * modules/crypto/gc-md5: Moved from ../.
57523         * modules/crypto/gc-md5-tests: Moved from ../.
57524         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
57525         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
57526         * modules/crypto/gc-random: Moved from ../.
57527         * modules/crypto/gc-rijndael: Moved from ../.
57528         * modules/crypto/gc-rijndael-tests: Moved from ../.
57529         * modules/crypto/gc-sha1: Moved from ../.
57530         * modules/crypto/gc-sha1-tests: Moved from ../.
57531         * modules/crypto/gc-tests: Moved from ../.
57532         * modules/crypto/hmac-md5: Moved from ../.
57533         * modules/crypto/hmac-md5-tests: Moved from ../.
57534         * modules/crypto/hmac-sha1: Moved from ../.
57535         * modules/crypto/hmac-sha1-tests: Moved from ../.
57536         * modules/crypto/md2: Moved from ../.
57537         * modules/crypto/md2-tests: Moved from ../.
57538         * modules/crypto/md4: Moved from ../.
57539         * modules/crypto/md4-tests: Moved from ../.
57540         * modules/crypto/md5: Moved from ../.
57541         * modules/crypto/md5-tests: Moved from ../.
57542         * modules/crypto/memxor: Moved from ../.
57543         * modules/crypto/rijndael: Moved from ../.
57544         * modules/crypto/rijndael-tests: Moved from ../.
57545         * modules/crypto/sha1: Moved from ../.
57546
57547 2007-03-30  James Youngman  <jay@gnu.org>
57548
57549         * tests/test-stat-time.c (prepare_test): use chmod() rather than
57550         rename() to change the ctime of a file (because ctime is unaffected
57551         by rename on jfs2 on AIX 5.1).
57552         (main): Start by doing cleanup, in case a previous run failed leaving
57553         test files behind.
57554
57555 2007-03-31  Bruno Haible  <bruno@clisp.org>
57556
57557         Support old proprietary implementations of iconv.
57558         * modules/iconv_open: New file.
57559         * lib/iconv_.h: New file.
57560         * m4/iconv_h.m4: New file.
57561         * lib/iconv_open.c: New file.
57562         * lib/iconv_open-aix.gperf: New file.
57563         * lib/iconv_open-hpux.gperf: New file.
57564         * lib/iconv_open-irix.gperf: New file.
57565         * lib/iconv_open-osf.gperf: New file.
57566         * m4/iconv_open.m4: New file.
57567         * modules/linebreak (Depends-on): Add iconv_open.
57568         * modules/striconv (Depends-on): Likewise.
57569         * modules/striconveh (Depends-on): Likewise.
57570         * modules/unicodeio (Depends-on): Likewise.
57571         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
57572         (iconv_t)(-1).
57573         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
57574         conversion if cd is (iconv_t)(-1).
57575         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
57576         is not possible.
57577
57578 2007-03-31  Bruno Haible  <bruno@clisp.org>
57579
57580         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57581         work on Solaris either. Protect also second use of "autodetect_jp".
57582
57583 2007-03-31  Bruno Haible  <bruno@clisp.org>
57584
57585         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
57586         the function is not present.
57587
57588 2007-03-31  Bruno Haible  <bruno@clisp.org>
57589
57590         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
57591         the function is not present.
57592
57593 2007-03-31  Bruno Haible  <bruno@clisp.org>
57594
57595         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
57596         a bug in HP-UX iconv_open().
57597
57598 2007-03-31  Bruno Haible  <bruno@clisp.org>
57599
57600         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
57601         (Mathematics <math.h>): New section, add fpieee.
57602         (Input/output <stdio.h>): Add fseterr.
57603         (Mathematics <math.h>): New section, add printf-frexp.
57604         (Container data structures): Add sublist.
57605         (Core language properties): Add fpucw, inline.
57606         (Functions for greatest-width integer types <inttypes.h>): Add
57607         imaxabs, imaxdiv, inttypes.
57608         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
57609         isnanl-nolibm, ldexp.
57610         (Mathematics <math.h>): New section, add printf-frexpl.
57611         (Support for systems lacking POSIX:2001): Add fprintf-posix,
57612         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
57613         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
57614         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
57615         (Unicode string functions): Add unistr/u*-mbtoucr.
57616         (Java): Add javacomp-script, javaexec-script.
57617         (C#): Add csharpcomp-script, csharpexec-script.
57618         (Support for building libraries and executables): Add havelib,
57619         relocatable-*.
57620         (Support for maintaining and releasing projects): Renamed from
57621         'Support for maintaining and release projects'. Add announce-gen.
57622
57623 2007-03-31  Bruno Haible  <bruno@clisp.org>
57624
57625         * README: Talk primarily about git.
57626         (git and CVS): Renamed from CVS.
57627         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
57628         gnulib is available through git.
57629         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
57630
57631 2007-03-30  Bruno Haible  <bruno@clisp.org>
57632
57633         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
57634         * lib/poll_.h: Likewise.
57635         * lib/stat_.h: Likewise.
57636         * lib/sys_time_.h: Likewise.
57637         * lib/sysexit_.h: Likewise.
57638         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
57639         * lib/stdbool_.h: Likewise.
57640         * lib/byteswap_.h: Add double-inclusion guard.
57641
57642 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
57643
57644         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
57645
57646 2007-03-30  Karl Berry  <karl@gnu.org>
57647
57648         * config/srclist-update: double space after USA in the license
57649         substitution, since that's how it's usually (?) written.
57650
57651 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57652
57653         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
57654         reported by Bruno Haible.
57655
57656 2007-03-29  Bruno Haible  <bruno@clisp.org>
57657
57658         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
57659         a bug in AIX iconv().
57660
57661 2007-03-29  Bruno Haible  <bruno@clisp.org>
57662
57663         * modules/ldexpl-tests: New file.
57664         * tests/test-ldexpl.c: New file.
57665
57666 2007-03-29  Bruno Haible  <bruno@clisp.org>
57667
57668         * lib/ldexpl.c: Include fpucw.h.
57669         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
57670         multiplication.
57671         * modules/ldexpl (Depends-on): Add fpucw.
57672
57673 2007-03-29  Bruno Haible  <bruno@clisp.org>
57674
57675         * modules/ldexpl: New file.
57676         * m4/ldexpl.m4: New file.
57677         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
57678         set.
57679         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
57680         REPLACE_LDEXPL.
57681         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
57682         REPLACE_LDEXPL.
57683         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57684         gl_FUNC_LDEXPL_WORKS.
57685         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
57686         * modules/mathl (Files): Remove lib/ldexpl.c.
57687         (Depends-on): Add ldexpl.
57688
57689 2007-03-29  Bruno Haible  <bruno@clisp.org>
57690
57691         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
57692
57693 2007-03-29  Bruno Haible  <bruno@clisp.org>
57694
57695         * tests/test-striconveh.c (main): Don't assume that a direct conversion
57696         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
57697         and possibly also HP-UX.
57698         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57699         work on AIX, IRIX, HP-UX, OSF/1.
57700         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
57701         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
57702         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
57703         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
57704         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
57705         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
57706
57707 2007-03-29  Bruno Haible  <bruno@clisp.org>
57708
57709         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
57710
57711 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57712
57713         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
57714         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
57715
57716 2007-03-29  Eric Blake  <ebb9@byu.net>
57717
57718         * lib/acl-internal.h: Remove redundant include.
57719         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
57720         Cygwin when a file is locked.
57721
57722 2007-03-29  Bruno Haible  <bruno@clisp.org>
57723
57724         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
57725         file.
57726         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
57727
57728 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57729
57730         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
57731         try to remove a parent directory if the child couldn't be removed
57732         (except for the first rmdir, which could fail because the child
57733         doesn't exist).  Problem reported by Jeff Blaine in
57734         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
57735
57736 2007-03-28  Bruno Haible  <bruno@clisp.org>
57737
57738         * lib/striconveh.c (utf8conv_carefully): New function.
57739         (mem_cd_iconveh_internal): Invoke it.
57740
57741 2007-03-28  Bruno Haible  <bruno@clisp.org>
57742
57743         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
57744         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
57745         input.
57746         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
57747         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
57748         unistr/u8-uctomb.
57749
57750 2007-03-28  Bruno Haible  <bruno@clisp.org>
57751
57752         * modules/unistr/u8-mbtoucr: New file.
57753         * lib/unistr/u8-mbtoucr.c: New file.
57754         * modules/unistr/u16-mbtoucr: New file.
57755         * lib/unistr/u16-mbtoucr.c: New file.
57756         * modules/unistr/u16-mbtoucr: New file.
57757         * lib/unistr/u16-mbtoucr.c: New file.
57758         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
57759
57760 2007-03-27  Simon Josefsson  <simon@josefsson.org>
57761             Bruno Haible  <bruno@clisp.org>
57762
57763         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
57764         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
57765         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
57766
57767         * m4/stdio_h.m4: Add stubs for vasprintf too.
57768
57769         * modules/stdio: Support vasprintf in sed command.
57770
57771         * modules/vasprintf: Depend on stdio for prototypes.  Remove
57772         vasprintf.h.  Add stdio module indicator.
57773
57774         * lib/stdio_.h: Declare asprintf and vasprintf, based on
57775         vasprintf.h.
57776
57777         * lib/vasprintf.h: File removed.
57778
57779         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
57780         * lib/vasprintf.c: Ditto.
57781         * lib/xvasprintf.c: Ditto.
57782         * tests/test-vasprintf-posix.c: Ditto.
57783         * tests/test-vasprintf.c: Ditto.
57784
57785 2007-03-27  Bruno Haible  <bruno@clisp.org>
57786
57787         Make vasnprintf multithread-safe.
57788         * lib/vasnprintf.c (decimal_point_char): New function.
57789         (VASNPRINTF): Use it.
57790         Suggested by Simon Josefsson.
57791
57792 2007-03-27  Eric Blake  <ebb9@byu.net>
57793
57794         Support sub-second birthtime on cygwin.
57795         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
57796         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
57797         (get_stat_birthtime): Also work with st_birthtim.
57798
57799 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
57800
57801         * lib/stat-time.h (USE_BIRTHTIME): Remove.
57802         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
57803         (get_stat_birthtime_ns): Do not try to use "spare" fields.
57804         (get_stat_birthtime_ns): Simplify compile-time tests.
57805         (get_stat_birthtime): Change the API to look like
57806         get_stat_mtime etc., except return a negative tv_nsec on error.
57807         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
57808         Don't check for "spare" fields.
57809         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
57810         or for struct stat.st_birthtime, as these tests aren't used.
57811         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
57812
57813 2007-03-27  Bruno Haible  <bruno@clisp.org>
57814
57815         * lib/stat-time.h: Include <sys/stat.h>.
57816
57817 2007-03-27  James Youngman  <jay@gnu.org>
57818
57819         * lib/stat-time.h (get_stat_birthtime): New function for
57820           retrieving st_birthtime as provided by UFS2 (hence *BSD).
57821         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
57822           and its variants.
57823         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
57824         * modules/stat-time-test: New file.
57825         * tests/test-stat-time.c: New test, devised by Bruno Haible.
57826
57827 2007-03-26  Bruno Haible  <bruno@clisp.org>
57828
57829         Better support of signalling NaNs.
57830         * lib/atanl.c: Include isnanl.h.
57831         (atanl): Perform test for NaN at the beginning of the function and
57832         through a call to isnanl.
57833         * lib/cosl.c: Include isnanl.h.
57834         (cosl): Perform test for NaN at the beginning of the function and
57835         through a call to isnanl.
57836         * lib/ldexpl.c: Include isnanl.h.
57837         (ldexpl): Perform test for NaN through a call to isnanl.
57838         * lib/logl.c: Include isnanl.h.
57839         (logl): Perform test for NaN at the beginning of the function and
57840         through a call to isnanl.
57841         * lib/sinl.c: Include isnanl.h.
57842         (sinl): Perform test for NaN at the beginning of the function and
57843         through a call to isnanl.
57844         * lib/sqrtl.c: Include isnanl.h.
57845         (sqrtl): Perform test for NaN at the beginning of the function and
57846         through a call to isnanl.
57847         * lib/tanl.c: Include isnanl.h.
57848         (tanl): Perform test for NaN at the beginning of the function and
57849         through a call to isnanl.
57850         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
57851         * modules/mathl (Depends-on): Add isnanl.
57852
57853 2007-03-26  Eric Blake  <ebb9@byu.net>
57854
57855         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
57856         regression in logic sense of previous patch.
57857
57858 2007-03-26  Bruno Haible  <bruno@clisp.org>
57859
57860         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
57861         unportable shell command "if ! ...".
57862         Reported by Ralf Wildenhues.
57863
57864 2007-03-25  Bruno Haible  <bruno@clisp.org>
57865
57866         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
57867         <sysexits.h> file, and only add EX_CONFIG.
57868         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
57869         absolute file name and whether it is sufficient. Substitute also
57870         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
57871         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
57872         ABSOLUTE_SYSEXITS_H into sysexits.h.
57873
57874 2007-03-25  Bruno Haible  <bruno@clisp.org>
57875
57876         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
57877         hints is NULL.
57878
57879 2007-03-25  Bruno Haible  <bruno@clisp.org>
57880
57881         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
57882         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
57883
57884 2007-03-25  Bruno Haible  <bruno@clisp.org>
57885
57886         * lib/vasnprintf.c: Include langinfo.h.
57887         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
57888         multithread-safe.
57889         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
57890         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
57891         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57892         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57893         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57894         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57895         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57896         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
57897         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57898         Reported by Simon Josefsson.
57899
57900 2007-03-25  Bruno Haible  <bruno@clisp.org>
57901
57902         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
57903         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
57904         * modules/vasnprintf (Depends-on): Add stdint.
57905
57906 2007-03-25  Bruno Haible  <bruno@clisp.org>
57907
57908         * modules/fpieee: New file.
57909         * m4/fpieee.m4: New file.
57910         * modules/isnan-nolibm (Depends-on): Add fpieee.
57911         * modules/isnanl-nolibm (Depends-on): Add fpieee.
57912         * modules/isnanl (Depends-on): Add fpieee.
57913
57914 2007-03-25  Bruno Haible  <bruno@clisp.org>
57915
57916         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
57917
57918 2007-03-25  Bruno Haible  <bruno@clisp.org>
57919
57920         Avoid test failures on IRIX 6.5.
57921         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
57922         (main): Use it.
57923         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
57924         macros.
57925         (main): Use them.
57926
57927 2007-03-25  Bruno Haible  <bruno@clisp.org>
57928
57929         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
57930         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
57931         exists but doesn't work.
57932         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
57933         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
57934         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
57935         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
57936         math.h.
57937
57938 2007-03-25  Bruno Haible  <bruno@clisp.org>
57939
57940         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
57941         returns inf. Needed on IRIX 6.5.
57942
57943 2007-03-25  Bruno Haible  <bruno@clisp.org>
57944
57945         * tests/test-frexpl.c: Include isnanl-nolibm.h.
57946         (main): Use isnanl instead of x != x idiom.
57947         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
57948
57949         * tests/test-frexp.c: Include isnan.h.
57950         (main): Use isnan instead of x != x idiom.
57951         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
57952
57953 2007-03-25  Bruno Haible  <bruno@clisp.org>
57954
57955         * tests/test-frexp.c (NaN): New function/macro.
57956         (main): Use it instead of 0.0 / 0.0.
57957         * tests/test-isnan.c (NaN): New function/macro.
57958         (main): Use it instead of 0.0 / 0.0.
57959         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
57960         (test_function): Use it instead of 0.0 / 0.0.
57961         * tests/test-vasprintf-posix.c (NaN): New function/macro.
57962         (test_function): Use it instead of 0.0 / 0.0.
57963         * tests/test-snprintf-posix.h (NaN): New function/macro.
57964         (test_function): Use it instead of 0.0 / 0.0.
57965         * tests/test-sprintf-posix.h (NaN): New function/macro.
57966         (test_function): Use it instead of 0.0 / 0.0.
57967         * tests/test-fprintf-posix.h (NaN): New function/macro.
57968         (test_function): Use it instead of 0.0 / 0.0.
57969         * tests/test-printf-posix.h (NaN): New function/macro.
57970         (test_function): Use it instead of 0.0 / 0.0.
57971
57972         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
57973
57974 2007-03-25  Bruno Haible  <bruno@clisp.org>
57975
57976         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57977
57978 2007-03-25  Bruno Haible  <bruno@clisp.org>
57979
57980         * lib/regexec.c (merge_state_with_log): Make static.
57981
57982 2007-03-25  Bruno Haible  <bruno@clisp.org>
57983
57984         * lib/trigl.c (kernel_rem_pio2): Make static.
57985
57986 2007-03-25  Bruno Haible  <bruno@clisp.org>
57987
57988         * lib/sincosl.c (sincosl_table): Make static.
57989
57990 2007-03-25  Bruno Haible  <bruno@clisp.org>
57991
57992         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57993         if the compiler does not support C99.
57994
57995 2007-03-25  Bruno Haible  <bruno@clisp.org>
57996
57997         * modules/time (Makefile.am): Ensure all rule action lines start with a
57998         tab.
57999
58000 2007-03-24  Bruno Haible  <bruno@clisp.org>
58001
58002         * modules/tsearch-tests: New file.
58003         * tests/test-tsearch.sh: New file.
58004         * tests/test-tsearch.c: New file, mostly copied from glibc.
58005
58006         * modules/search-tests: New file.
58007         * tests/test-search.c: New file.
58008
58009         * modules/search: New file.
58010         * lib/search_.h: New file, incorporating lib/tsearch.h.
58011         * m4/search_h.m4: New file.
58012         * lib/tsearch.h: Remove file.
58013         * lib/tsearch.c: Include search.h instead of tsearch.h.
58014         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
58015         HAVE_TSEARCH.
58016         * modules/tsearch (Files): Remove lib/tsearch.h.
58017         (Depends-on): Add search.
58018         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
58019         (Include): Change tsearch.h into search.h.
58020
58021 2007-03-24  Bruno Haible  <bruno@clisp.org>
58022
58023         * modules/fpucw: New file.
58024         * lib/fpucw.h: New file.
58025         * lib/frexp.c: Include fpucw.h.
58026         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
58027         (FUNC): Use them.
58028         * lib/printf-frexp.c: Include fpucw.h.
58029         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
58030         (FUNC): Use them.
58031         * lib/vasnprintf.c: Include fpucw.h.
58032         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
58033         'long double' calculations.
58034         * tests/test-frexpl.c: Include fpucw.h.
58035         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
58036         * tests/test-printf-frexpl.c: Include fpucw.h.
58037         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
58038         * modules/frexpl (Depends-on): Add fpucw.
58039         * modules/printf-frexpl (Depends-on): Likewise.
58040         * modules/fprintf-posix (Depends-on): Likewise.
58041         * modules/snprintf-posix (Depends-on): Likewise.
58042         * modules/sprintf-posix (Depends-on): Likewise.
58043         * modules/vasnprintf-posix (Depends-on): Likewise.
58044         * modules/vasprintf-posix (Depends-on): Likewise.
58045         * modules/vfprintf-posix (Depends-on): Likewise.
58046         * modules/vsnprintf-posix (Depends-on): Likewise.
58047         * modules/vsprintf-posix (Depends-on): Likewise.
58048         * modules/frexpl-tests (Depends-on): Likewise.
58049         * modules/printf-frexpl-tests (Depends-on): Likewise.
58050
58051 2007-03-24  Bruno Haible  <bruno@clisp.org>
58052
58053         * lib/float+.h: New file.
58054         * lib/isnan.c: Include float+.h.
58055         (SIZE): New macro.
58056         (FUNC): Compare only SIZE bytes of the value.
58057         * lib/vasnprintf.c: Include float+.h.
58058         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
58059         SIZEOF_LDBL or SIZEOF_DBL bytes.
58060         * modules/isnan-nolibm (Files): Add lib/float+.h.
58061         * modules/isnanl-nolibm (Files): Add lib/float+.h.
58062         * modules/isnanl (Files): Add lib/float+.h.
58063         * modules/vasnprintf (Files): Add lib/float+.h.
58064
58065 2007-03-24  Bruno Haible  <bruno@clisp.org>
58066
58067         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
58068         include isnanl-nolibm.h.
58069
58070 2007-03-24  Bruno Haible  <bruno@clisp.org>
58071
58072         * tests/test-read-file.c (main): Don't produce spurious output for
58073         expected situations. Make the test fail if it encountered unexpected
58074         results.
58075
58076 2007-03-24  Bruno Haible  <bruno@clisp.org>
58077
58078         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
58079         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
58080
58081 2007-03-24  Bruno Haible  <bruno@clisp.org>
58082
58083         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
58084
58085 2007-03-24  Bruno Haible  <bruno@clisp.org>
58086
58087         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
58088         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
58089
58090         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
58091         * modules/utf8-ucs4: Turn into a symbolic link to module
58092         unistr/u8-mbtouc.
58093
58094         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
58095         utf8-ucs4-unsafe.
58096         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
58097         unistr/u8-mbtouc-unsafe.
58098
58099         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
58100         * modules/utf16-ucs4: Turn into a symbolic link to module
58101         unistr/u16-mbtouc.
58102
58103         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
58104         utf16-ucs4-unsafe.
58105         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
58106         unistr/u16-mbtouc-unsafe.
58107
58108         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
58109         * modules/ucs4-utf8: Turn into a symbolic link to module
58110         unistr/u8-ubtomb.
58111
58112         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
58113         * modules/ucs4-utf16: Turn into a symbolic link to module
58114         unistr/u16-ubtomb.
58115
58116 2007-03-24  Bruno Haible  <bruno@clisp.org>
58117
58118         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
58119         Enable the function only if HAVE_INLINE.
58120         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
58121         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58122         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
58123         Enable the function only if HAVE_INLINE.
58124         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
58125         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58126         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
58127         Enable the function only if HAVE_INLINE.
58128         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
58129         Enable the function only if HAVE_INLINE.
58130         * modules/utf8-ucs4: Update.
58131         * modules/utf8-ucs4-unsafe: Update.
58132         * modules/utf16-ucs4: Update.
58133         * modules/utf16-ucs4-unsafe: Update.
58134         * modules/ucs4-utf8: Update.
58135         * modules/ucs4-utf16: Update.
58136
58137 2007-03-24  Bruno Haible  <bruno@clisp.org>
58138
58139         * lib/utf8-ucs4.h: Remove file.
58140         * lib/utf8-ucs4-unsafe.h: Remove file.
58141         * lib/utf16-ucs4.h: Remove file.
58142         * lib/utf16-ucs4-unsafe.h: Remove file.
58143         * lib/ucs4-utf8.h: Remove file.
58144         * lib/ucs4-utf16.h: Remove file.
58145         * lib/unistr.h: Include their previous contents.
58146         * m4/utf-ucs4.m4: Remove file.
58147         * m4/ucs4-utf.m4: Remove file.
58148         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
58149         (Depends-on): Add unistr/base.
58150         (configure.ac): Remove gl_UTF_UCS4.
58151         (Makefile.am): Update.
58152         (Include): Change to unistr.h.
58153         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
58154         (Depends-on): Add unistr/base.
58155         (configure.ac): Remove gl_UTF_UCS4.
58156         (Makefile.am): Update.
58157         (Include): Change to unistr.h.
58158         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
58159         (Depends-on): Add unistr/base.
58160         (configure.ac): Remove gl_UTF_UCS4.
58161         (Makefile.am): Update.
58162         (Include): Change to unistr.h.
58163         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
58164         (Depends-on): Add unistr/base.
58165         (configure.ac): Remove gl_UTF_UCS4.
58166         (Makefile.am): Update.
58167         (Include): Change to unistr.h.
58168         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
58169         (Depends-on): Add unistr/base.
58170         (configure.ac): Remove gl_UCS4_UTF.
58171         (Makefile.am): Update.
58172         (Include): Change to unistr.h.
58173         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
58174         (Depends-on): Add unistr/base.
58175         (configure.ac): Remove gl_UCS4_UTF.
58176         (Makefile.am): Update.
58177         (Include): Change to unistr.h.
58178         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
58179         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
58180         utf8-ucs4-unsafe.h.
58181         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
58182         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
58183         utf16-ucs4-unsafe.h.
58184         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
58185         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
58186         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
58187         * lib/unistr/u8-strchr.c: Likewise.
58188         * lib/unistr/u8-strrchr.c: Likewise.
58189         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
58190         * lib/unistr/u16-strchr.c: Likewise.
58191         * lib/unistr/u16-strrchr.c: Likewise.
58192         * lib/striconveh.c: Update.
58193         * lib/linebreak.c: Update.
58194
58195 2007-03-24  Bruno Haible  <bruno@clisp.org>
58196
58197         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
58198         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
58199
58200 2007-03-22  Bruno Haible  <bruno@clisp.org>
58201
58202         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
58203
58204 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
58205
58206         * MODULES.html.sh (File system functions): New module write-any-file.
58207         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
58208         * m4/write-any-file.m4: New files.
58209
58210 2007-03-23  Eric Blake  <ebb9@byu.net>
58211
58212         * gnulib-tool: Rearrange space-tab sequences, since some editors
58213         like to eat them.
58214
58215 2007-03-23  Eric Blake  <ebb9@byu.net>
58216
58217         * lib/version-etc.c (version_etc_va): Update license wording to
58218         be more concise.  Recommended by Richard Stallman.
58219
58220 2007-03-22  Bruno Haible  <bruno@clisp.org>
58221
58222         * lib/poll.c (MSG_PEEK): New fallback definition.
58223
58224 2007-03-22  Bruno Haible  <bruno@clisp.org>
58225
58226         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
58227         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
58228         (main): Update.
58229         Fixes a compilation error on BeOS.
58230
58231 2007-03-22  Bruno Haible  <bruno@clisp.org>
58232
58233         * modules/frexpl-tests: New file.
58234         * tests/test-frexpl.c: New file.
58235
58236         * modules/frexpl: New file.
58237         * m4/frexpl.m4: New file.
58238         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
58239         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
58240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
58241         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
58242         (Depends-on): Add frexpl. Remove isnanl-nolibm.
58243         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
58244
58245 2007-03-22  Bruno Haible  <bruno@clisp.org>
58246
58247         * lib/frexpl.c: Share code with lib/frexp.c.
58248         * modules/mathl (Files): Add lib/frexp.c.
58249         (Depends-on): Add isnanl-nolibm.
58250
58251 2007-03-22  Bruno Haible  <bruno@clisp.org>
58252
58253         * modules/printf-frexp (Files): Add m4/frexp.m4.
58254         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
58255         only if the found frexp function actually works.
58256
58257 2007-03-22  Bruno Haible  <bruno@clisp.org>
58258
58259         * lib/frexp.c: Remove older implementation that uses divisions.
58260
58261 2007-03-21  Bruno Haible  <bruno@clisp.org>
58262
58263         * modules/frexp-tests: New file.
58264         * tests/test-frexp.c: New file.
58265
58266         * modules/frexp: New file.
58267         * lib/frexp.c: New file.
58268         * m4/frexp.m4: New file.
58269         * lib/math_.h (frexp): New declaration.
58270         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
58271         REPLACE_FREXP.
58272         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
58273
58274 2007-03-21  Bruno Haible  <bruno@clisp.org>
58275
58276         * modules/isnanl-tests: New file.
58277         * tests/test-isnanl.c: New file.
58278
58279         * modules/isnanl: New file.
58280         * lib/isnanl.h: New file.
58281         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
58282         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
58283         gl_FUNC_ISNANL_WORKS.
58284         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
58285         New macros.
58286
58287 2007-03-21  Bruno Haible  <bruno@clisp.org>
58288
58289         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
58290         lib/isnanl.h.
58291         (Include): Update.
58292         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
58293         * lib/vasnprintf.c: Update.
58294         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
58295         tests/test-isnanl.h, remove tests/test-isnanl.c.
58296         (Makefile.am): Update.
58297         * tests/test-isnanl-nolibm.c: New file.
58298         * tests/test-isnanl.h: New file.
58299         * tests/test-isnanl.c: Remove file.
58300
58301 2007-03-21  Jim Meyering  <jim@meyering.net>
58302
58303         When trying to open ".", treat ESTALE like EACCES.
58304         * lib/savewd.c (savewd_save): Resort to forking not just upon
58305         failure with EACCES, but also when errno is ESTALE.
58306
58307 2007-03-20  Bruno Haible  <bruno@clisp.org>
58308
58309         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
58310         Needed on AIX 5.1. Reported by Matthew Woehlke.
58311
58312 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58313
58314         Suggestions by Bruno Haible:
58315         * lib/acl-internal.h: Include "gettext.h" rather than rolling
58316         our own.
58317         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
58318         * modules/acl (Depends-on): Add gettext.
58319
58320 2007-03-19  Bruno Haible  <bruno@clisp.org>
58321
58322         * modules/iconvme: Remove file.
58323         * lib/iconvme.h: Remove file.
58324         * lib/iconvme.c: Remove file.
58325         * m4/iconvme.m4: Remove file.
58326
58327 2007-03-19  Bruno Haible  <bruno@clisp.org>
58328
58329         * doc/relocatable-maint.texi: Break long shell script line.
58330         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58331
58332 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58333
58334         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
58335         handle file_has_acl.
58336         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
58337         * lib/acl.c: Move header inclusions and related macro defns into
58338         lib/acl-internal.h.
58339         (S_ISLNK): Remove defn, since that's now done for us.
58340         (file_has_acl): Move to lib/file-has-acl.c.
58341         Call acl_trivial if available.  This is the crucial part of the fix.
58342         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
58343         shared within the library.  Rewrite a bit, partly to make it compatible
58344         with the GNU coding style.
58345         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
58346         Remove unnecessary double-quotes.
58347         Don't test for acl_to_text; the build will catch that.
58348         Replace acl_entries if it doesn't exist and it is needed.
58349         Check for -lsec and acl_trivial (as used on Solaris 10).
58350         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
58351         lib/file-has-acl.c.
58352         (Depends-on): Add sys_stat, for S_ISLNK.
58353
58354 2007-03-19  Ben Pfaff  <blp@gnu.org>
58355
58356         * doc/gnulib.texi: Fix typos.
58357         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58358
58359 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58360
58361         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
58362         If size is zero here, buf must be zero.
58363
58364 2007-03-19  Simon Josefsson  <simon@josefsson.org>
58365
58366         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
58367         <bruno@clisp.org>.
58368
58369 2007-03-18  Bruno Haible  <bruno@clisp.org>
58370
58371         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
58372         Suggested by Eric Blake.
58373
58374 2007-03-18  Ben Pfaff  <blp@gnu.org>
58375
58376         * doc/relocatable.texi: Recommend using as prefix a directory
58377         that does not exist and will never be created.  Based on
58378         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
58379         and others.
58380
58381 2007-03-17  Bruno Haible  <bruno@clisp.org>
58382
58383         * lib/fchownat.c: Include lchown.h.
58384
58385 2007-03-17  Bruno Haible  <bruno@clisp.org>
58386
58387         Fix endless loop when the given allocated size was > INT_MAX.
58388         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
58389         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
58390         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
58391         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
58392         * lib/sprintf.c (sprintf): Likewise.
58393
58394 2007-03-17  Bruno Haible  <bruno@clisp.org>
58395
58396         * tests/test-argp-2.sh (func_compare): Output a context diff.
58397
58398 2007-03-17  Bruno Haible  <bruno@clisp.org>
58399
58400         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
58401         locale's decimal-point character.
58402
58403 2007-03-17  Bruno Haible  <bruno@clisp.org>
58404
58405         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
58406         before comparing it. Needed because on some platforms (e.g. x86) a
58407         'long double' occupies less bytes than sizeof (long double).
58408
58409 2007-03-17  Bruno Haible  <bruno@clisp.org>
58410
58411         * tests/test-crc.c (main): Make printf statements 64-bit clean.
58412         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
58413         * tests/test-getaddrinfo.c (simple): Likewise.
58414         * tests/test-read-file.c (main): Likewise.
58415
58416 2007-03-17  Bruno Haible  <bruno@clisp.org>
58417
58418         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
58419
58420 2007-03-17  Bruno Haible  <bruno@clisp.org>
58421
58422         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
58423         unused variable.
58424
58425 2007-03-17  Bruno Haible  <bruno@clisp.org>
58426
58427         * tests/test-c-strcasecmp.c: Include c-strcase.h.
58428         * tests/test-c-strncasecmp.c: Likewise.
58429
58430 2007-03-17  Bruno Haible  <bruno@clisp.org>
58431
58432         * modules/stdlib (Depends-on): Add unistd.
58433         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
58434         Needed for MacOS X 10.3.
58435
58436 2007-03-17  Bruno Haible  <bruno@clisp.org>
58437
58438         * lib/unistr/u-strdup.h: Include <stdlib.h>.
58439
58440 2007-03-17  Bruno Haible  <bruno@clisp.org>
58441
58442         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
58443
58444 2007-03-17  Bruno Haible  <bruno@clisp.org>
58445
58446         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
58447         to reflect files copied from gnulib (with or without modifications).
58448         Suggested by Jim Meyering.
58449
58450 2007-03-17  Eric Blake  <ebb9@byu.net>
58451
58452         * NEWS: Document stdlib change from 2007-02-18.
58453
58454 2007-03-17  Jim Meyering  <jim@meyering.net>
58455
58456         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
58457         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
58458         someone uses a name containing shell meta-characters.
58459         Reported by Alfred M. Szmidt.
58460
58461         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
58462
58463 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58464
58465         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
58466         and copy gettext configuration files only if configure.ac contains
58467         a use of AM_GNU_GETTEXT_VERSION.
58468
58469 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58470
58471         * build-aux/bootstrap (gnulib_name): New variable.
58472         (gnulib_tool_options): Use it.
58473
58474 2007-03-13  Simon Josefsson  <simon@josefsson.org>
58475
58476         * tests/test-des.c: Use new namespace.
58477
58478 2007-03-15  Bruno Haible  <bruno@clisp.org>
58479
58480         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
58481         Reported by James Youngman <jay@gnu.org>.
58482
58483 2007-03-15  Bruno Haible  <bruno@clisp.org>
58484
58485         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
58486         declared prototype. Needed with cc on OSF/1 5.1.
58487
58488 2007-03-15  Bruno Haible  <bruno@clisp.org>
58489
58490         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
58491         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
58492         (struct gl_list_implementation): Add dispose_fn argument to the
58493         'create_empty', 'create' methods.
58494         (struct gl_list_impl_base): Add field 'dispose_fn'.
58495         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
58496         argument.
58497         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
58498         dispose_fn argument.
58499         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
58500         dispose_fn on the dropped values.
58501         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
58502         dispose_fn argument.
58503         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
58504         dropped values.
58505         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
58506         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58507         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
58508         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58509         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
58510         argument.
58511         (gl_tree_list_free): Call dispose_fn on the dropped values.
58512         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
58513         the dropped values.
58514         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58515         Add dispose_fn argument.
58516         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
58517         Call dispose_fn on the dropped values.
58518         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
58519         Add dispose_fn argument.
58520         (gl_sublist_create): Initialize the 'dispose_fn' field.
58521         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
58522         * tests/test-array_list.c (main): Update.
58523         * tests/test-carray_list.c (main): Update.
58524         * tests/test-avltree_list.c (main): Update.
58525         * tests/test-rbtree_list.c (main): Update.
58526         * tests/test-avltreehash_list.c (main): Update.
58527         * tests/test-rbtreehash_list.c (main): Update.
58528         * tests/test-linked_list.c (main): Update.
58529         * tests/test-linkedhash_list.c (main): Update.
58530         * tests/test-array_oset.c (main): Update.
58531
58532 2007-03-15  Bruno Haible  <bruno@clisp.org>
58533
58534         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
58535         (gl_oset_create_empty): Add dispose_fn argument.
58536         (struct gl_oset_implementation): Add dispose_fn argument to
58537         'create_empty' method.
58538         (struct gl_oset_impl_base): Add dispose_fn field.
58539         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
58540         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
58541         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
58542         values.
58543         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
58544         (gl_tree_oset_free): Call dispose_fn on the dropped values.
58545         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58546         dropped value.
58547         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58548         dropped value.
58549         * tests/test-array_oset.c (main): Update.
58550         * tests/test-avltree_oset.c (main): Update.
58551         * tests/test-rbtree_oset.c (main): Update.
58552         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
58553
58554 2007-03-13  Bruno Haible  <bruno@clisp.org>
58555
58556         * tests/test-stdbool.c (i): Update after last patch.
58557
58558 2007-03-12  Bruno Haible  <bruno@clisp.org>
58559
58560         * lib/quotearg.c: Include <wctype.h> early, before the definition of
58561         the iswprint macro. Needed on Solaris 2.5.1.
58562
58563 2007-03-12  Bruno Haible  <bruno@clisp.org>
58564
58565         * tests/test-printf-frexp.c (main): Declare x as volatile.
58566
58567 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58568
58569         * doc/gnulib.texi (Build robot for gnulib): New section.
58570
58571 2007-03-12  Jim Meyering  <jim@meyering.net>
58572
58573         * build-aux/bootstrap: New file.
58574         * build-aux/bootstrap.conf: New file, from coreutils.
58575
58576 2007-03-11  Bruno Haible  <bruno@clisp.org>
58577
58578         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
58579
58580 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58581
58582         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
58583         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
58584         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
58585
58586 2007-03-11  Bruno Haible  <bruno@clisp.org>
58587
58588         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
58589         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
58590
58591 2007-03-11  Bruno Haible  <bruno@clisp.org>
58592
58593         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
58594         formula. Needed for SunPRO C 5.0.
58595
58596 2007-03-11  Bruno Haible  <bruno@clisp.org>
58597
58598         * modules/long-options (Depends-on): Add getopt.
58599
58600 2007-03-11  Bruno Haible  <bruno@clisp.org>
58601
58602         * modules/modechange (Depends-on): Add stdbool.
58603
58604 2007-03-11  Bruno Haible  <bruno@clisp.org>
58605
58606         * modules/i-ring (Depends-on): Add stdbool.
58607
58608 2007-03-11  Bruno Haible  <bruno@clisp.org>
58609
58610         * modules/gc-des (Depends-on): Add stdbool.
58611
58612 2007-03-11  Bruno Haible  <bruno@clisp.org>
58613
58614         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
58615
58616 2007-03-11  Bruno Haible  <bruno@clisp.org>
58617
58618         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
58619
58620 2007-03-11  Bruno Haible  <bruno@clisp.org>
58621
58622         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
58623
58624 2007-03-11  Bruno Haible  <bruno@clisp.org>
58625
58626         * lib/vasnprintf.c (sprintf): Undefine.
58627
58628 2007-03-11  Bruno Haible  <bruno@clisp.org>
58629
58630         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
58631         initializers in SunPRO C and Compaq C compilers.
58632
58633 2007-03-11  Bruno Haible  <bruno@clisp.org>
58634
58635         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
58636         decrementing code ANSI C compliant.
58637
58638 2007-03-11  Bruno Haible  <bruno@clisp.org>
58639
58640         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
58641         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
58642
58643 2007-03-11  Bruno Haible  <bruno@clisp.org>
58644
58645         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
58646         <stdbool.h> substitute doesn't pass.
58647
58648 2007-03-11  Bruno Haible  <bruno@clisp.org>
58649
58650         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
58651
58652 2007-03-11  Bruno Haible  <bruno@clisp.org>
58653
58654         * gnulib-tool (func_create_megatestdir): Create also an autobuild
58655         script, for submission to autobuild.josefsson.org.
58656
58657 2007-03-10  Bruno Haible  <bruno@clisp.org>
58658
58659         * modules/canonicalize-lgpl-tests: New file.
58660         * tests/test-canonicalize-lgpl.sh: New file.
58661         * tests/test-canonicalize-lgpl.c: New file.
58662
58663         * modules/c-strcase-tests: New file.
58664         * tests/test-c-strcase.sh: New file.
58665         * tests/test-c-strcasecmp.c: New file.
58666         * tests/test-c-strncasecmp.c: New file.
58667
58668         * modules/atexit-tests: New file.
58669         * tests/test-atexit.sh: New file.
58670         * tests/test-atexit.c: New file.
58671
58672 2007-03-10  Bruno Haible  <bruno@clisp.org>
58673
58674         * tests/test-binary-io.sh: Use temporary filenames that are not so
58675         likely to clash with those of other tests (in a parallel make).
58676         * tests/test-binary-io.c: Likewise.
58677
58678 2007-03-10  Bruno Haible  <bruno@clisp.org>
58679
58680         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
58681         fallback; use #error instead.
58682         Suggested by Simon Josefsson.
58683
58684 2007-03-10  Bruno Haible  <bruno@clisp.org>
58685
58686         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
58687         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
58688         first and the last.
58689
58690 2007-03-10  Bruno Haible  <bruno@clisp.org>
58691
58692         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
58693
58694 2007-03-10  Bruno Haible  <bruno@clisp.org>
58695
58696         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
58697         "make distcheck".
58698         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
58699         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
58700         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
58701
58702 2007-03-10  Bruno Haible  <bruno@clisp.org>
58703
58704         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
58705         variable.
58706         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
58707         variable.
58708
58709 2007-03-09  Eric Blake  <ebb9@byu.net>
58710         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
58711
58712         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
58713         types are not being provided by gnulib.
58714         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
58715         types are supported.
58716
58717 2007-03-10  Bruno Haible  <bruno@clisp.org>
58718
58719         * lib/stdio_.h (__attribute__): New macro.
58720         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
58721         vsprintf): Specify __attribute__ __format__ for GCC.
58722         Suggested by Eric Blake.
58723
58724 2007-03-09  Bruno Haible  <bruno@clisp.org>
58725
58726         * modules/printf-posix-tests: New file.
58727         * tests/test-printf-posix.sh: New file.
58728         * tests/test-printf-posix.c: New file.
58729
58730         * modules/printf-posix: New file.
58731         * lib/printf.c: New file.
58732         * m4/printf-posix-rpl.m4: New file.
58733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
58734         REPLACE_PRINTF.
58735         * lib/stdio_.h (printf): New declaration.
58736         (format, __format__, ____printf____, ____scanf____, ____strftime____,
58737         ____strfmon____): New macros.
58738         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
58739         REPLACE_PRINTF.
58740
58741 2007-03-09  Bruno Haible  <bruno@clisp.org>
58742
58743         * tests/test-vasnprintf-posix2.sh: New file.
58744         * tests/test-vasnprintf-posix2.c: New file.
58745         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
58746         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
58747         (Makefile.am): Activate test-vasnprintf-posix2.sh.
58748
58749         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
58750         a locale dependent decimal point, rather than always '.'.
58751
58752 2007-03-09  Eric Blake  <ebb9@byu.net>
58753
58754         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
58755         spite of platforms like Tandem/NSK that define it to -1.
58756
58757 2007-03-08  Bruno Haible  <bruno@clisp.org>
58758
58759         * modules/vprintf-posix-tests: New file.
58760         * tests/test-vprintf-posix.sh: New file.
58761         * tests/test-vprintf-posix.c: New file.
58762         * tests/test-printf-posix.h: New file.
58763
58764         * modules/vprintf-posix: New file.
58765         * lib/vprintf.c: New file.
58766         * m4/vprintf-posix.m4: New file.
58767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
58768         REPLACE_VPRINTF.
58769         * lib/stdio_.h (vprintf): New declaration.
58770         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
58771         REPLACE_VPRINTF.
58772
58773 2007-03-08  Bruno Haible  <bruno@clisp.org>
58774
58775         * modules/fprintf-posix-tests: New file.
58776         * tests/test-fprintf-posix.sh: New file.
58777         * tests/test-fprintf-posix.c: New file.
58778
58779         * modules/fprintf-posix: New file.
58780         * lib/fprintf.c: New file.
58781         * m4/fprintf-posix.m4: New file.
58782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
58783         REPLACE_FPRINTF.
58784         * lib/stdio_.h (fprintf): New declaration.
58785         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
58786         REPLACE_FPRINTF.
58787
58788 2007-03-08  Bruno Haible  <bruno@clisp.org>
58789
58790         * modules/vfprintf-posix-tests: New file.
58791         * tests/test-vfprintf-posix.sh: New file.
58792         * tests/test-vfprintf-posix.c: New file.
58793         * tests/test-fprintf-posix.h: New file.
58794         * tests/test-fprintf-posix.out: New file.
58795
58796         * modules/vfprintf-posix: New file.
58797         * lib/vfprintf.c: New file.
58798         * m4/vfprintf-posix.m4: New file.
58799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
58800         REPLACE_VFPRINTF.
58801         * lib/stdio_.h (vfprintf): New declaration.
58802         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
58803         REPLACE_VFPRINTF.
58804
58805 2007-03-08  Bruno Haible  <bruno@clisp.org>
58806
58807         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
58808
58809 2007-03-08  Bruno Haible  <bruno@clisp.org>
58810
58811         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
58812         instead of 'expr' invocations.
58813         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58814         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58815         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58816         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58817         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58818         Suggested by Paul Eggert.
58819
58820 2007-03-08  Bruno Haible  <bruno@clisp.org>
58821
58822         * modules/fseterr-tests: New file.
58823         * tests/test-fseterr.c: New file.
58824
58825         * modules/fseterr: New file.
58826         * lib/fseterr.h: New file.
58827         * lib/fseterr.c: New file.
58828
58829 2007-03-08  Bruno Haible  <bruno@clisp.org>
58830
58831         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
58832         * lib/getopt_.h: Likewise.
58833         * lib/mbswidth.h: Likewise.
58834         * lib/setenv.h: Likewise.
58835         * lib/vasnprintf.h: Likewise.
58836         * lib/vasprintf.h: Likewise.
58837         * lib/verror.h: Likewise.
58838         * lib/xsetenv.h: Likewise.
58839         * lib/xvasprintf.h: Likewise.
58840
58841 2007-03-08  Jim Meyering  <jim@meyering.net>
58842
58843         * users.txt: Add parted.
58844
58845         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
58846
58847 2007-03-07  Bruno Haible  <bruno@clisp.org>
58848
58849         * m4/printf.m4: Make the shell script snippets copy&pastable.
58850
58851 2007-03-02  Bruno Haible  <bruno@clisp.org>
58852
58853         * lib/netinet_in_.h: New file.
58854         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
58855         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
58856         * modules/netinet_in (Files): Add lib/netinet_in_.h.
58857         (Depends-on): Add absolute-header.
58858         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
58859         into netinet/in.h.
58860
58861 2007-03-03  Bruno Haible  <bruno@clisp.org>
58862
58863         * lib/sys_select_.h: New file.
58864         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
58865         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
58866         * modules/sys_select (Files): Add lib/sys_select_.h.
58867         (Depends-on): Add absolute-header.
58868         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
58869         into sys/select.h.
58870
58871 2007-03-02  Bruno Haible  <bruno@clisp.org>
58872
58873         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
58874         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
58875         values.
58876         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
58877         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
58878         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
58879         * modules/sys_socket (Depends-on): Add absolute-header.
58880         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
58881         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
58882         (Include): Remove requirement of inclusion of <sys/types.h>.
58883
58884 2007-03-02  Bruno Haible  <bruno@clisp.org>
58885
58886         * lib/byteswap_.h (bswap_32): Fix formula.
58887
58888 2007-03-06  Bruno Haible  <bruno@clisp.org>
58889
58890         * modules/sprintf-posix-tests: New file.
58891         * tests/test-sprintf-posix.c: New file.
58892
58893         * modules/sprintf-posix: New file.
58894         * lib/sprintf.c: New file.
58895         * m4/sprintf-posix.m4: New file.
58896         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
58897         REPLACE_SPRINTF.
58898         * lib/stdio_.h (sprintf): New declaration.
58899         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
58900         REPLACE_SPRINTF.
58901
58902 2007-03-06  Bruno Haible  <bruno@clisp.org>
58903
58904         * modules/vsprintf-posix-tests: New file.
58905         * tests/test-vsprintf-posix.c: New file.
58906         * tests/test-sprintf-posix.h: New file.
58907
58908         * modules/vsprintf-posix: New file.
58909         * lib/vsprintf.c: New file.
58910         * m4/vsprintf-posix.m4: New file.
58911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
58912         REPLACE_VSPRINTF.
58913         * lib/stdio_.h (vsprintf): New declaration.
58914         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
58915         REPLACE_VSPRINTF.
58916
58917 2007-03-06  Bruno Haible  <bruno@clisp.org>
58918
58919         * modules/vsnprintf (Depend-on): Remove minmax.
58920
58921 2007-03-06  Bruno Haible  <bruno@clisp.org>
58922
58923         * modules/snprintf-posix-tests: New file.
58924         * tests/test-snprintf-posix.c: New file.
58925
58926         * modules/snprintf-posix: New file.
58927         * m4/snprintf-posix.m4: New file.
58928         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
58929         gl_FUNC_SNPRINTF.
58930         (gl_FUNC_SNPRINTF): Invoke it.
58931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
58932         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
58933         is set.
58934         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
58935
58936 2007-03-06  Bruno Haible  <bruno@clisp.org>
58937
58938         * modules/vsnprintf-posix-tests: New file.
58939         * tests/test-vsnprintf-posix.c: New file.
58940         * tests/test-snprintf-posix.h: New file.
58941
58942         * modules/vsnprintf-posix: New file.
58943         * m4/vsnprintf-posix.m4: New file.
58944         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
58945         gl_FUNC_VSNPRINTF.
58946         (gl_FUNC_VSNPRINTF): Invoke it.
58947         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
58948         * lib/stdio_.h (vsnprintf): Define as a replacement if
58949         REPLACE_VSNPRINTF is set.
58950         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
58951
58952 2007-03-06  Bruno Haible  <bruno@clisp.org>
58953
58954         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
58955         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
58956
58957 2007-03-06  Bruno Haible  <bruno@clisp.org>
58958
58959         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
58960         (asinl): Declare also if HAVE_DECL_ASINL is set.
58961         (atanl): Declare also if HAVE_DECL_ATANL is set.
58962         (ceill): Declare also if HAVE_DECL_CEILL is set.
58963         (cosl): Declare also if HAVE_DECL_COSL is set.
58964         (expl): Declare also if HAVE_DECL_EXPL is set.
58965         (floorl): Declare also if HAVE_DECL_FLOORL is set.
58966         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
58967         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
58968         (logl): Declare also if HAVE_DECL_LOGL is set.
58969         (sinl): Declare also if HAVE_DECL_SINL is set.
58970         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
58971         (tanl): Declare also if HAVE_DECL_TANL is set.
58972         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
58973         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58974         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58975         declaration of frexpl, ldexpl.
58976         * modules/printf-frexpl (Depends-on): Add math.
58977         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58978
58979 2007-03-05  Bruno Haible  <bruno@clisp.org>
58980
58981         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58982         frexpl and ldexpl are declared.
58983         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58984
58985 2007-03-05  Bruno Haible  <bruno@clisp.org>
58986
58987         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58988         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58989
58990 2007-03-05  Bruno Haible  <bruno@clisp.org>
58991
58992         * lib/stdio_.h: Include <stddef.h>.
58993
58994 2007-03-05  Bruno Haible  <bruno@clisp.org>
58995
58996         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58997
58998 2007-03-05  Bruno Haible  <bruno@clisp.org>
58999
59000         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
59001         NetBSD 4, from Ralf Wildenhues.
59002
59003 2007-03-04  Bruno Haible  <bruno@clisp.org>
59004
59005         * lib/vasprintf.h: Update #if logic for the case when the functions
59006         exist but are overridden.
59007
59008 2007-03-04  Bruno Haible  <bruno@clisp.org>
59009
59010         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
59011         implementations: glibc-2.4 and MacOS X 10.3.
59012         * tests/test-vasnprintf-posix.c (test_function): Test also the case
59013         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
59014         * tests/test-vasprintf-posix.c (test_function): Likewise.
59015
59016 2007-03-04  Bruno Haible  <bruno@clisp.org>
59017
59018         * modules/vasprintf-posix-tests: New file.
59019         * tests/test-vasprintf-posix.c: New file.
59020
59021         * modules/vasprintf-posix: New file.
59022         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
59023         defined.
59024         * m4/vasprintf-posix.m4: New file.
59025         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
59026         gl_FUNC_VASPRINTF.
59027         (gl_FUNC_VASPRINTF): Invoke it.
59028         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
59029         here.
59030         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
59031
59032 2007-03-04  Bruno Haible  <bruno@clisp.org>
59033
59034         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
59035         REPLACE_GETTIMEOFDAY.
59036         * modules/sys_time (Makefile.am): Likewise.
59037         * m4/sys_time_h.m4: Likewise.
59038         * m4/gettimeofday.m4: Likewise.
59039
59040 2007-03-04  Bruno Haible  <bruno@clisp.org>
59041
59042         * modules/vasnprintf-posix-tests: New file.
59043         * tests/test-vasnprintf-posix.c: New file.
59044
59045         * modules/vasnprintf-posix: New file.
59046         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
59047         printf-frexpl.h.
59048         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
59049         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
59050         REPLACE_VASNPRINTF is defined.
59051         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
59052         gl_FUNC_VASNPRINTF.
59053         (gl_FUNC_VASNPRINTF): Invoke it.
59054         * m4/vasnprintf-posix.m4: New file.
59055         * m4/printf.m4: New file.
59056
59057 2007-03-04  Bruno Haible  <bruno@clisp.org>
59058
59059         Compile progreloc.c only if --enable-relocatable is specified.
59060         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
59061         if --enable-relocatable was specified.
59062         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
59063         lib_SOURCES.
59064
59065 2007-03-04  Jim Meyering  <jim@meyering.net>
59066
59067         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
59068         Use it consistently, rather than enumerating errno constants.
59069
59070 2007-03-04  Bruno Haible  <bruno@clisp.org>
59071
59072         * modules/xvasprintf-tests: New file.
59073         * tests/test-xvasprintf.c: New file.
59074
59075         * modules/vasprintf-tests: New file.
59076         * tests/test-vasprintf.c: New file.
59077
59078         * modules/vasnprintf-tests: New file.
59079         * tests/test-vasnprintf.c: New file.
59080
59081         * modules/vsnprintf-tests: New file.
59082         * tests/test-vsnprintf.c: New file.
59083
59084         * modules/snprintf-tests: New file.
59085         * tests/test-snprintf.c: New file.
59086
59087 2007-03-04  Bruno Haible  <bruno@clisp.org>
59088
59089         Compile relocatable.c only if --enable-relocatable is specified.
59090         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
59091         gl_RELOCATABLE_LIBRARY.
59092         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
59093         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
59094         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
59095         gl_RELOCATABLE_LIBRARY.
59096         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
59097         (Makefile.am): Remove lib_SOURCES.
59098         * modules/relocatable-lib-lgpl (configure.ac): Invoke
59099         gl_RELOCATABLE_LIBRARY.
59100         (Makefile.am): Remove lib_SOURCES.
59101         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
59102         always.
59103         * modules/relocatable-prog-wrapper (configure.ac): Invoke
59104         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
59105
59106 2007-03-04  Bruno Haible  <bruno@clisp.org>
59107
59108         * modules/argmatch-tests: New file.
59109         * tests/test-argmatch.c: New file.
59110
59111         * tests/test-allocsa.c (main): Halve the number of loop runs.
59112
59113         * modules/alloca-opt-tests: New file.
59114         * tests/test-alloca-opt.c: New file.
59115
59116 2007-03-04  Jim Meyering  <jim@meyering.net>
59117
59118         Work around difference between Linux ACLs and Solaris 10 ZFS.
59119         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
59120         for EINVAL.
59121
59122 2007-03-03  Bruno Haible  <bruno@clisp.org>
59123
59124         * modules/relocatable-prog (Depends-on): Add back progreloc's
59125         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
59126
59127 2007-03-03  Bruno Haible  <bruno@clisp.org>
59128
59129         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
59130         * modules/relocatable-lib: New file.
59131
59132 2007-03-03  Bruno Haible  <bruno@clisp.org>
59133
59134         * modules/relocatable-prog: Renamed from modules/relocatable.
59135         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
59136
59137 2007-03-03  Bruno Haible  <bruno@clisp.org>
59138
59139         * modules/relocatable-script (Files): Add doc/relocatable.texi,
59140         m4/relocatable-lib.m4.
59141         (Depends-on): Remove 'relocatable'.
59142         (configure.ac): Add gl_RELOCATABLE_NOP.
59143
59144 2007-03-03  Bruno Haible  <bruno@clisp.org>
59145
59146         * modules/relocatable-prog-wrapper: New file.
59147         * modules/relocatable (Depends-on): Add it. Remove all other
59148         dependencies except progname.
59149         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
59150
59151         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
59152         (gl_FUNC_STRERROR): Nop.
59153         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
59154
59155         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
59156         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
59157
59158         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
59159         (gl_FUNC_READLINK): Update.
59160
59161         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
59162
59163 2007-03-03  Bruno Haible  <bruno@clisp.org>
59164
59165         * lib/xreadlink.c: Include <unistd.h> unconditionally.
59166         * modules/xreadlink (Depends-on): Add unistd.
59167         * modules/xreadlink-with-size (Depends-on): Likewise.
59168
59169 2007-03-03  Bruno Haible  <bruno@clisp.org>
59170
59171         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
59172         extracted from gt_FUNC_SETENV.
59173         (gt_FUNC_SETENV): Remove macro.
59174         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
59175         remove gt_FUNC_SETENV.
59176
59177 2007-03-03  Bruno Haible  <bruno@clisp.org>
59178
59179         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
59180         ENABLE_RELOCATABLE here.
59181         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
59182
59183 2007-03-03  Bruno Haible  <bruno@clisp.org>
59184
59185         * modules/rbtreehash-list-tests (Depends-on): Add progname.
59186         * tests/test-rbtreehash_list.c: Include progname.h.
59187         (main): Call set_program_name.
59188
59189         * modules/rbtree-oset-tests (Depends-on): Add progname.
59190         * tests/test-rbtree_oset.c: Include progname.h.
59191         (main): Call set_program_name.
59192
59193         * modules/rbtree-list-tests (Depends-on): Add progname.
59194         * tests/test-rbtree_list.c: Include progname.h.
59195         (main): Call set_program_name.
59196
59197         * modules/linked-list-tests (Depends-on): Add progname.
59198         * tests/test-linked_list.c: Include progname.h.
59199         (main): Call set_program_name.
59200
59201 2007-03-03  Bruno Haible  <bruno@clisp.org>
59202
59203         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
59204         All uses of __restrict changed to _Restrict_.
59205         * lib/glob_.h (__restrict): Remove macro.
59206
59207 2007-03-02  Bruno Haible  <bruno@clisp.org>
59208
59209         * modules/gettext (configure.ac): Require gettext infrastructure
59210         from version 0.16.1.
59211
59212 2007-03-02  Bruno Haible  <bruno@clisp.org>
59213
59214         * modules/linkedhash-list-tests (Depends-on): Add progname.
59215         * tests/test-linkedhash_list.c: Include progname.h.
59216         (main): Call set_program_name.
59217
59218         * modules/carray-list-tests (Depends-on): Add progname.
59219         * tests/test-carray_list.c: Include progname.h.
59220         (main): Call set_program_name.
59221
59222         * modules/avltreehash-list-tests (Depends-on): Add progname.
59223         * tests/test-avltreehash_list.c: Include progname.h.
59224         (main): Call set_program_name.
59225
59226         * modules/avltree-oset-tests (Depends-on): Add progname.
59227         * tests/test-avltree_oset.c: Include progname.h.
59228         (main): Call set_program_name.
59229
59230         * modules/avltree-list-tests (Depends-on): Add progname.
59231         * tests/test-avltree_list.c: Include progname.h.
59232         (main): Call set_program_name.
59233
59234         * modules/array-oset-tests (Depends-on): Add progname.
59235         * tests/test-array_oset.c: Include progname.h.
59236         (main): Call set_program_name.
59237
59238         * modules/array-list-tests (Depends-on): Add progname.
59239         * tests/test-array_list.c: Include progname.h.
59240         (main): Call set_program_name.
59241
59242         * modules/argp-tests (Depends-on): Add progname.
59243         * tests/test-argp.c: Include argp.h first. Include progname.h.
59244         (main): Call set_program_name.
59245
59246 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
59247
59248         * doc/gnulib-tool.texi (Initial import): Reword description of
59249         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
59250         limited effect even if defined after the first system include.
59251
59252 2007-03-01  Bruno Haible  <bruno@clisp.org>
59253
59254         * build-aux/config.libpath: Update to libtool-1.5.22.
59255         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59256
59257 2007-03-01  Bruno Haible  <bruno@clisp.org>
59258
59259         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
59260         foo_CFLAGS.
59261         Reported by Ralf Wildenhues.
59262
59263 2007-03-01  Bruno Haible  <bruno@clisp.org>
59264
59265         * build-aux/install-reloc: Remove object files left over by some
59266         compilers.
59267         Reported by Ralf Wildenhues.
59268
59269 2007-03-01  Bruno Haible  <bruno@clisp.org>
59270
59271         * build-aux/install-reloc: Break long lines.
59272
59273 2007-03-01  Bruno Haible  <bruno@clisp.org>
59274
59275         * doc/relocatable.texi: Document that it may not work on OpenBSD.
59276         Reported by Ralf Wildenhues.
59277
59278 2007-03-01  Bruno Haible  <bruno@clisp.org>
59279
59280         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
59281         include ordering constraints.
59282
59283 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59284
59285         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
59286         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
59287         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
59288         as another example.
59289         * lib/time_.h: Fix misspelling.
59290         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59291         Require gl_HEADER_TIME_H_DEFAULTS.
59292         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
59293         * m4/time_r.m4 (gl_TIME_R): Likewise.
59294         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
59295
59296 2007-03-01  Bruno Haible  <bruno@clisp.org>
59297
59298         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
59299         * m4/utimens.m4 (gl_UTIMENS): Likewise.
59300
59301 2007-03-01  Jim Meyering  <jim@meyering.net>
59302
59303         * modules/xreadlink (Maintainer): Add my name.
59304         * modules/xreadlink-with-size (Depends-on): Alphabetize.
59305
59306 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
59307             Bruno Haible  <bruno@clisp.org>
59308
59309         * build-aux/install-reloc: Compile also c-ctype.c.
59310         * build-aux/relocatable.sh.in: New file.
59311         * doc/relocatable.texi: New file.
59312         * doc/relocatable-maint.texi: New file.
59313         * doc/gnulib.texi: Include relocatable-maint.texi.
59314         * lib/progreloc.c: Include unistd.h unconditionally.
59315         * lib/relocwrapper.c: Include unistd.h unconditionally.
59316         Include c-ctype.h.
59317         (add_dotbin): Use c_tolower.
59318         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
59319         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
59320         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
59321         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
59322         to m4/relocatable-lib.m4.
59323         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
59324         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
59325         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
59326         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
59327         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
59328         * modules/relocatable: New file.
59329         * modules/relocatable-lib: New file.
59330         * modules/relocatable-script: New file.
59331
59332 2007-02-28  Bruno Haible  <bruno@clisp.org>
59333
59334         Import --enable-relocatable infrastructure.
59335         * build-aux/config.libpath: New file, from GNU gettext.
59336         * build-aux/install-reloc: New file, from GNU gettext.
59337         * build-aux/reloc-ldflags: New file, from GNU gettext.
59338         * lib/relocatable.h: New file, from GNU gettext.
59339         * lib/relocatable.c: New file, from GNU gettext.
59340         * lib/relocwrapper.c: New file, from GNU gettext.
59341         * m4/relocatable.m4: New file, from GNU gettext.
59342
59343 2007-02-28  Bruno Haible  <bruno@clisp.org>
59344
59345         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
59346
59347         * modules/xreadlink: New file, from GNU gettext with modifications.
59348         * lib/xreadlink.c: New file, from GNU gettext.
59349         * lib/xreadlink.h: Add comments.
59350         (xreadlink): New declaration.
59351
59352         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
59353         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
59354         lib/xreadlink-with-size.c.
59355         (configure.ac): Remove gl_XREADLINK invocation.
59356         (Makefile.am): Augment lib_SOURCES.
59357         * m4/xreadlink.m4: Remove file.
59358         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
59359         (xreadlink_with_size): Renamed from xreadink.
59360         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
59361         * modules/canonicalize (Depends-on): Replace xreadlink with
59362         xreadlink-with-size.
59363         * lib/canonicalize.c (canonicalize_filename_mode): Update.
59364
59365 2007-02-25  Jim Meyering  <jim@meyering.net>
59366
59367         * build-aux/announce-gen: When complaining about excess arguments,
59368         list them.
59369
59370 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59371
59372         * README: Document signed integer overflow situation more
59373         accurately.
59374
59375 2007-02-25  Bruno Haible  <bruno@clisp.org>
59376
59377         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
59378         'a' or 'A' conversion.
59379
59380 2007-02-25  Bruno Haible  <bruno@clisp.org>
59381
59382         * modules/filename: Renamed from modules/pathname.
59383         (Files): Replace lib/pathname.h with lib/filename.h. Replace
59384         lib/concatpath.c with lib/concat-filename.c.
59385         (Makefile.am): Update.
59386         (Include): Replace pathname.h with filename.h.
59387         * lib/filename.h: Renamed from lib/pathname.h.
59388         (concatenated_filename): Renamed from concatenated_pathname.
59389         * lib/concat-filename.c: Renamed from lib/concatpath.c.
59390         (concatenated_filename): Renamed from concatenated_pathname.
59391         * lib/findprog.c: Include filename.h instead of pathname.h.
59392         (find_in_path): Update.
59393         * lib/javacomp.c: Include filename.h instead of pathname.h.
59394         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
59395         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
59396         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
59397         is_oldgcj_14_13_usable, is_javac_usable): Update.
59398         * lib/javaexec.c: Include filename.h instead of pathname.h.
59399         (execute_java_class): Update.
59400         * modules/findprog: Update.
59401         * modules/javacomp: Update.
59402         * modules/javaexec: Update.
59403         * MODULES.html.sh (File system functions): Add 'filename', remove
59404         'pathname'.
59405
59406 2007-02-25  Bruno Haible  <bruno@clisp.org>
59407
59408         * modules/printf-frexpl-tests: New file.
59409         * tests/test-printf-frexpl.c: New file.
59410
59411         * modules/printf-frexpl: New file.
59412         * lib/printf-frexpl.h: New file.
59413         * lib/printf-frexpl.c: New file.
59414         * m4/printf-frexpl.m4: New file.
59415
59416 2007-02-25  Bruno Haible  <bruno@clisp.org>
59417
59418         * modules/printf-frexp-tests: New file.
59419         * tests/test-printf-frexp.c: New file.
59420
59421         * modules/printf-frexp: New file.
59422         * lib/printf-frexp.h: New file.
59423         * lib/printf-frexp.c: New file.
59424         * m4/printf-frexp.m4: New file.
59425
59426 2007-02-25  Bruno Haible  <bruno@clisp.org>
59427
59428         Assume automake >= 1.10 for the tests.
59429         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
59430         * modules/arctwo-tests: Likewise.
59431         * modules/argp-tests: Likewise.
59432         * modules/avltree-list-tests: Likewise.
59433         * modules/avltree-oset-tests: Likewise.
59434         * modules/avltreehash-list-tests: Likewise.
59435         * modules/carray-list-tests: Likewise.
59436         * modules/crc-tests: Likewise.
59437         * modules/des-tests: Likewise.
59438         * modules/gc-arcfour-tests: Likewise.
59439         * modules/gc-arctwo-tests: Likewise.
59440         * modules/gc-des-tests: Likewise.
59441         * modules/gc-hmac-md5-tests: Likewise.
59442         * modules/gc-hmac-sha1-tests: Likewise.
59443         * modules/gc-md2-tests: Likewise.
59444         * modules/gc-md4-tests: Likewise.
59445         * modules/gc-md5-tests: Likewise.
59446         * modules/gc-pbkdf2-sha1-tests: Likewise.
59447         * modules/gc-rijndael-tests: Likewise.
59448         * modules/gc-sha1-tests: Likewise.
59449         * modules/gc-tests: Likewise.
59450         * modules/getaddrinfo-tests: Likewise.
59451         * modules/hmac-md5-tests: Likewise.
59452         * modules/hmac-sha1-tests: Likewise.
59453         * modules/linked-list-tests: Likewise.
59454         * modules/linkedhash-list-tests: Likewise.
59455         * modules/lock-tests: Likewise.
59456         * modules/md2-tests: Likewise.
59457         * modules/md4-tests: Likewise.
59458         * modules/md5-tests: Likewise.
59459         * modules/rbtree-list-tests: Likewise.
59460         * modules/rbtree-oset-tests: Likewise.
59461         * modules/rbtreehash-list-tests: Likewise.
59462         * modules/read-file-tests: Likewise.
59463         * modules/rijndael-tests: Likewise.
59464         * modules/stdint-tests: Likewise.
59465         * modules/tls-tests: Likewise.
59466
59467 2007-02-24  Bruno Haible  <bruno@clisp.org>
59468
59469         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
59470         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
59471         function; instead check whether isnan with a double argument links.
59472         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
59473         function; instead check whether isnan with a 'long double' argument
59474         links.
59475         Reported by Eric Blake <ebb9@byu.net>.
59476
59477 2007-02-24  Bruno Haible  <bruno@clisp.org>
59478
59479         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
59480         defined.
59481         * lib/isnanl.c: Remove all code. Just include isnan.c.
59482         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
59483
59484 2007-02-25  Jim Meyering  <jim@meyering.net>
59485
59486         Avoid conflicting types for 'unsetenv' on FreeBSD.
59487         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
59488         conflicting with FreeBSD's (5.0 and 6.1) function declaration
59489         in stdlib.h.
59490
59491 2007-02-24  Bruno Haible  <bruno@clisp.org>
59492
59493         * modules/isnanl-nolibm-tests: New file.
59494         * tests/test-isnanl.c: New file.
59495
59496         * modules/isnanl-nolibm: New file.
59497         * lib/isnanl.h: New file.
59498         * lib/isnanl.c: New file.
59499         * m4/isnanl.m4: New file.
59500
59501 2007-02-24  Bruno Haible  <bruno@clisp.org>
59502
59503         * modules/isnan-nolibm-tests: New file.
59504         * tests/test-isnan.c: New file.
59505
59506         * modules/isnan-nolibm: New file.
59507         * lib/isnan.h: New file.
59508         * lib/isnan.c: New file.
59509         * m4/isnan.m4: New file.
59510
59511 2007-02-24  Bruno Haible  <bruno@clisp.org>
59512
59513         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
59514         assume that an exponent fits in 20 bits.
59515
59516 2007-02-24  Jim Meyering  <jim@meyering.net>
59517
59518         * m4/regex.m4: Update the description of the configure-time option,
59519         --without-included-regex, to state accurately what the defaults are,
59520         and perhaps to give people an idea why using this option is risky.
59521
59522 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59523
59524         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
59525         loops on small arguments.  This attempts to avoid the problem
59526         Bruno Haible reported for AIX 4.3.2 in
59527         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
59528
59529 2007-02-23  Bruno Haible  <bruno@clisp.org>
59530
59531         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
59532         Needed for help2man.
59533
59534 2007-02-23  Karl Berry  <karl@gnu.org>
59535
59536         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
59537         exists, foo.h should be cvs-ignored, not committed.
59538
59539 2007-02-23  Eric Blake  <ebb9@byu.net>
59540
59541         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
59542         * lib/stat-time.h (includes): Likewise.
59543         * lib/utimecmp.c (includes): Likewise.
59544         * lib/utimens.h (includes): Likewise.
59545         * lib/getdate.y (includes): Also include "timespec.h" for use
59546         internal to the module.
59547         * modules/utimens (Depends-on): Revert yesterday's patch.
59548         * modules/nanosleep (Depends-on): Add missing dependency.
59549
59550 2007-02-22  Bruno Haible  <bruno@clisp.org>
59551
59552         * lib/glob.c: Don't include getlogin_r.h.
59553
59554 2007-02-22  Jim Meyering  <jim@meyering.net>
59555
59556         * modules/utimens (Depends-on): Add timespec, required for
59557         utimens.h's inclusion of timespec.h.
59558
59559 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
59560
59561         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
59562         long unreadable paths in GNU/Linux.  Problem reported by Andreas
59563         Schwab in
59564         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
59565         I'll try to think of a better way to fix the Solaris problem.
59566
59567         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
59568         like glibc; on Solaris 10, it fails with errno == EINVAL.
59569         POSIX says the behavior is unspecified if the first argument is NULL,
59570         so play it safe and never pass NULL to the system getcwd.
59571
59572 2007-02-21  Jim Meyering  <jim@meyering.net>
59573
59574         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
59575         of gettimeofday.  It would conflict with the one now always
59576         provided via sys_time_.h.  Reported by Matthew Woehlke, as
59577         an IRIX 6.5 build failure.
59578
59579 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
59580
59581         Minor fixups to port to Solaris 10 with Sun C 5.8.
59582         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
59583         * modules/getcwd (Depends-on): Add dirfd.
59584         * lib/putenv.c (putenv): #undef it.
59585         (rpl_putenv): New decl.
59586         (malloc, free): Include <stdlib.h> rather than prototyping separately.
59587
59588 2007-02-20  Bruno Haible  <bruno@clisp.org>
59589
59590         * modules/stdio-tests: New file.
59591         * tests/test-stdio.c: New file.
59592
59593         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
59594         (Depends-on): Add stdio.
59595         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59596         (Include): Use <stdio.h> instead of vsnprintf.h.
59597         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59598         HAVE_DECL_VSNPRINTF.
59599         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
59600
59601         * modules/snprintf (Files): Remove lib/snprintf.h.
59602         (Depends-on): Add stdio.
59603         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59604         (Include): Use <stdio.h> instead of snprintf.h.
59605         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59606         HAVE_DECL_SNPRINTF.
59607         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
59608         * lib/getaddrinfo.c: Likewise.
59609
59610         * modules/stdio: New file.
59611         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
59612         * lib/snprintf.h: Remove file.
59613         * lib/vsnprintf.h: Remove file.
59614         * lib/.cppi-disable: Remove snprintf.h.
59615         * m4/stdio_h.m4: New file.
59616         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
59617
59618 2007-02-20  Jim Meyering  <jim@meyering.net>
59619
59620         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
59621         used by e.g., mingw.  From Bruno Haible.
59622
59623 2007-02-19  Bruno Haible  <bruno@clisp.org>
59624
59625         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
59626         warnings.
59627         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59628
59629 2007-02-19  Bruno Haible  <bruno@clisp.org>
59630
59631         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
59632         from mingw users.
59633
59634 2007-02-19  Bruno Haible  <bruno@clisp.org>
59635
59636         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
59637         warnings.
59638         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
59639
59640 2007-02-19  Jim Meyering  <jim@meyering.net>
59641
59642         Don't use FD after a successful "fdopendir (fd)".
59643         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
59644         Reset it by calling dirfd on the just-obtained DIR*.
59645
59646         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
59647         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
59648
59649 2007-02-18  Bruno Haible  <bruno@clisp.org>
59650
59651         * lib/readlink.c: Include <unistd.h>.
59652         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
59653         HAVE_READLINK.
59654         * modules/readlink (Depends-on): Add unistd.
59655         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59656         (Include): Add <unistd.h>.
59657
59658         * lib/getlogin_r.h: Remove file.
59659         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
59660         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
59661         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
59662         HAVE_DECL_GETLOGIN_R.
59663         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
59664         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59665         (Include): Use <unistd.h> instead of getlogin_r.h.
59666
59667         * lib/getcwd.h: Remove file.
59668         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
59669         * lib/xgetcwd.c: Likewise.
59670         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
59671         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
59672         * modules/getcwd (Files): Remove lib/getcwd.h.
59673         (Depends-on): Add unistd.
59674         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59675         (Include): Use <unistd.h> instad of getcwd.h.
59676
59677         * lib/ftruncate.c: Include <unistd.h> first.
59678         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
59679         Set HAVE_FTRUNCATE.
59680         * modules/ftruncate (Depends-on): Add unistd.
59681         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59682
59683         * lib/fchdir.c: Include <unistd.h> first.
59684         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
59685         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
59686         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
59687         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59688         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
59689
59690         * lib/dup2.c: Include <unistd.h> first.
59691         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
59692         HAVE_DUP2.
59693         * modules/dup2 (Depends-on): Add unistd.
59694         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59695
59696         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
59697         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
59698         REPLACE_CHOWN. Don't define chown as a macro here.
59699         * modules/chown (Depends-on): Add unistd.
59700         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59701
59702         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
59703         Add definition for GL_LINK_WARNING.
59704         (chown, dup2): New declarations.
59705         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
59706         link warning.
59707         (ftruncate): New declaration.
59708         (getcwd): New declaration, taken from old getcwd.h.
59709         (getlogin_r): New declaration, taken from old getlogin_r.h.
59710         (readlink): New declaration.
59711         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
59712         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
59713         (gl_PREREQ_UNISTD): Remove macro.
59714         (gl_UNISTD_MODULE_INDICATOR): New macro.
59715         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
59716         many new variables. Don't set UNISTD_H.
59717         * modules/unistd (Description): Change.
59718         (Depends-on): Add link-warning.
59719         (configure.ac): Update.
59720         (Makefile.am): Create unistd.h always. Substitute many new variables
59721         into it.
59722
59723 2007-02-18  Bruno Haible  <bruno@clisp.org>
59724
59725         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
59726         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
59727         HAVE_GETSUBOPT.
59728         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
59729         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
59730         * lib/getsubopt.h: Remove file.
59731         * modules/getsubopt (Files): Remove lib/getsubopt.h.
59732         (Depends-on): Add stdlib.
59733         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59734         (Includes): Use <stdlib.h> instead of getsubopt.h.
59735         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
59736         Set HAVE_GETSUBOPT.
59737         * lib/getsubopt.c: Don't include getsubopt.h.
59738
59739 2007-02-18  Bruno Haible  <bruno@clisp.org>
59740
59741         * modules/fchdir (Depends-on): Add dup2.
59742
59743 2007-02-18  Bruno Haible  <bruno@clisp.org>
59744
59745         * lib/stdlib_.h: Handle glibc's special invocation convention
59746         specially.
59747
59748 2007-02-18  Bruno Haible  <bruno@clisp.org>
59749
59750         * modules/stdlib-tests: New file.
59751         * tests/test-stdlib.c: New file.
59752
59753         * modules/mkstemp (Files): Remove lib/mkstemp.h.
59754         (Depends-on): Add stdlib.
59755         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59756         (Includes): Use <stdlib.h> instead of mkstemp.h.
59757         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59758         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
59759         * lib/mkstemp.c: Don't include mkstemp.h.
59760         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
59761         * lib/stdlib--.h: Don't include mkstemp.h.
59762
59763         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
59764         (Depends-on): Add stdlib.
59765         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59766         (Includes): Use <stdlib.h> instead of mkdtemp.h.
59767         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59768         HAVE_MKDTEMP.
59769         * lib/mkdtemp.c: Don't include mkdtemp.h.
59770         * lib/clean-temp.c: Don't include mkdtemp.h.
59771
59772         * modules/exit (Files): Remove lib/exit.h.
59773         (Depends-on): Add stdlib.
59774         (Makefile.am): Remove lib_SOURCES.
59775         (Include): Use <stdlib.h> instead of exit.h.
59776         * lib/argmatch.c: Don't include exit.h.
59777         * lib/execute.c: Likewise.
59778         * lib/pagealign_alloc.c: Likewise.
59779         * lib/pipe.c: Likewise.
59780         * lib/wait-process.c: Likewise.
59781         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
59782         * lib/exitfail.c: Likewise.
59783         * lib/savewd.c: Likewise.
59784         * lib/xsetenv.c: Likewise.
59785
59786         * modules/stdlib: New file.
59787         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
59788         and extra comments about mkstemp().
59789         * lib/exit.h: Remove file.
59790         * lib/mkdtemp.h: Remove file.
59791         * lib/mkstemp.h: Remove file.
59792         * m4/stdlib_h.m4: New file.
59793         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
59794
59795 2007-02-18  Bruno Haible  <bruno@clisp.org>
59796
59797         * modules/math-tests: New file.
59798         * tests/test-math.c: New file.
59799
59800         * modules/math: New file.
59801         * modules/mathl (Files): Remove lib/mathl.h.
59802         (Depends-on): Add math.
59803         (Makefile.am): Don't mention mathl.h.
59804         (Include): Use <math.h> instead of mathl.h.
59805         * lib/math_.h: New file.
59806         * lib/mathl.h: Remove file.
59807         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
59808         mathl.h.
59809         * lib/asinl.c: Likewise.
59810         * lib/atanl.c: Likewise.
59811         * lib/ceill.c: Likewise.
59812         * lib/cosl.c: Likewise.
59813         * lib/expl.c: Likewise.
59814         * lib/floorl.c: Likewise.
59815         * lib/frexpl.c: Likewise.
59816         * lib/ldexpl.c: Likewise.
59817         * lib/logl.c: Likewise.
59818         * lib/sincosl.c: Likewise.
59819         * lib/sinl.c: Likewise.
59820         * lib/sqrtl.c: Likewise.
59821         * lib/tanl.c: Likewise.
59822         * lib/trigl.c: Likewise.
59823         * m4/math_h.m4: New file.
59824         * MODULES.html.sh (Mathematics): Add math.
59825
59826 2007-02-17  Bruno Haible  <bruno@clisp.org>
59827
59828         * modules/wctype-tests: New file.
59829         * tests/test-wctype.c: New file.
59830
59831         * modules/wchar-tests: New file.
59832         * tests/test-wchar.c: New file.
59833
59834         * modules/unistd-tests: New file.
59835         * tests/test-unistd.c: New file.
59836
59837         * modules/time-tests: New file.
59838         * tests/test-time.c: New file.
59839
59840         * modules/sysexits-tests: New file.
59841         * tests/test-sysexits.c: New file.
59842
59843         * modules/sys_time-tests: New file.
59844         * tests/test-sys_time.c: New file.
59845
59846         * modules/sys_stat-tests: New file.
59847         * tests/test-sys_stat.c: New file.
59848
59849         * modules/sys_socket-tests: New file.
59850         * tests/test-sys_socket.c: New file.
59851
59852         * modules/sys_select-tests: New file.
59853         * tests/test-sys_select.c: New file.
59854
59855         * modules/string-tests: New file.
59856         * tests/test-string.c: New file.
59857
59858         * modules/stdbool-tests: New file.
59859         * tests/test-stdbool.c: New file.
59860
59861         * modules/netinet_in-tests: New file.
59862         * tests/test-netinet_in.c: New file.
59863
59864         * modules/inttypes-tests: New file.
59865         * tests/test-inttypes.c: New file.
59866
59867         * modules/fcntl-tests: New file.
59868         * tests/test-fcntl.c: New file.
59869
59870         * modules/byteswap-tests: New file.
59871         * tests/test-byteswap.c: New file.
59872
59873         * modules/arpa_inet-tests: New file.
59874         * tests/test-arpa_inet.c: New file.
59875
59876 2007-02-17  Bruno Haible  <bruno@clisp.org>
59877
59878         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
59879         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
59880         if the corresponding module is not enabled. Emit link warnings if
59881         the function is used nevertheless.
59882         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
59883         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
59884         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
59885         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
59886         * modules/inttypes (Depends-on): Add link-warning.
59887         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59888         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
59889         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
59890         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
59891         * modules/imaxdiv (configure.ac): Likewise.
59892         * modules/strtoimax (configure.ac): Likewise.
59893         * modules/strtoumax (configure.ac): Likewise.
59894
59895 2007-02-17  Bruno Haible  <bruno@clisp.org>
59896
59897         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
59898         gl_STRING_MODULE_INDICATOR_DEFAULTS.
59899         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
59900         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
59901
59902 2007-02-17  Bruno Haible  <bruno@clisp.org>
59903
59904         * modules/link-warning: New file.
59905         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
59906         * lib/string_.h (GL_LINK_WARNING): Remove definition.
59907         * modules/string (Depends-on): Add link-warning.
59908         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59909         string.h.
59910         * MODULES.html.sh (Support for building libraries and executables): Add
59911         link-warning.
59912
59913 2007-02-17  Bruno Haible  <bruno@clisp.org>
59914
59915         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
59916         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
59917         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
59918         long lines.
59919
59920 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
59921             Bruno Haible  <bruno@clisp.org>
59922
59923         * modules/tmpfile: New file.
59924         * lib/tmpfile.c: New file.
59925         * m4/tmpfile.m4: New file.
59926         * MODULES.html.sh (func_all_modules): New section "Input/output".
59927
59928 2007-02-15  Bruno Haible  <bruno@clisp.org>
59929
59930         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
59931         (supports_delete_on_close): New function.
59932         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
59933
59934 2007-02-14  Bruno Haible  <bruno@clisp.org>
59935
59936         * modules/mbspcasecmp-tests: New file.
59937         * tests/test-mbspcasecmp.sh: New file.
59938         * tests/test-mbspcasecmp.c: New file.
59939
59940         New module mbspcasecmp.
59941         * modules/mbspcasecmp: New file.
59942         * lib/mbspcasecmp.c: New file.
59943         * lib/string_.h (strncasecmp): Change warning message.
59944         (mbspcasecmp): New declaration.
59945         * m4/mbspcasecmp.m4: New file.
59946         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59947         GNULIB_MBSPCASECMP.
59948         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
59949         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
59950
59951 2007-02-14  Bruno Haible  <bruno@clisp.org>
59952
59953         * modules/mbsncasecmp-tests: New file.
59954         * tests/test-mbsncasecmp.sh: New file.
59955         * tests/test-mbsncasecmp.c: New file.
59956
59957         New module mbsncasecmp.
59958         * modules/mbsncasecmp: New file.
59959         * lib/mbsncasecmp.c: New file.
59960         * lib/string_.h (mbsncasecmp): New declaration.
59961         * m4/mbsncasecmp.m4: New file.
59962         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59963         GNULIB_MBSNCASECMP.
59964         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
59965         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
59966
59967 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59968
59969         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
59970         Verify that it doesn't overlap with our flags.
59971         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
59972         do not have the desired effect in multibyte locales; instead, use
59973         mbscasecmp.
59974         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59975         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59976         we don't require GNU fnmatch ourselves (if our users require it, they
59977         should do so explicitly).
59978
59979         Fix regex code so it doesn't rely on strcasecmp.
59980         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59981         Otherwise, include gnulib's langinfo.h.
59982         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59983         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59984         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59985         * modules/regex (FILES): Remove m4/codeset.m4.
59986         (Depends-on): Add localcharset.  Remove strcase.
59987
59988 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59989
59990         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59991         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59992
59993 2007-02-13  Bruno Haible  <bruno@clisp.org>
59994
59995         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59996         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59997
59998 2007-02-12  Bruno Haible  <bruno@clisp.org>
59999
60000         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60001         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
60002         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
60003         time warning rather than a link error.
60004
60005 2007-02-12  Bruno Haible  <bruno@clisp.org>
60006
60007         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
60008         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60009         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60010
60011 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
60012
60013         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
60014         args, not 2.
60015
60016 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
60017
60018         New module 'time', so that apps can include <time.h> as per
60019         POSIX and GNU instead of separate include files like time_r.h
60020         and timegm.h.  This implementation tries out a simpler approach
60021         for replacing decls in standard include files (as compared to
60022         the string module), somewhat as an experiment.
60023
60024         * config/srclist.txt: Comment out mktime.c for now.
60025         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
60026         since it doesn't apply any more.  Use generic wording instead.
60027         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
60028         'time'.
60029         * lib/time_.h, m4/time_h.m4, modules/time: New files.
60030         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
60031         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
60032         Don't include <sys/types.h>; no longer needed since we assume C89.
60033         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
60034         * lib/strftime.c: Likewise.
60035         * lib/time_r.c: Likewise.
60036         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
60037         * lib/nanosleep.c: Include <time.h> first, to check interface.
60038         * lib/strptime.c: Likewise.
60039         * lib/time_r.c: Likewise.
60040         * lib/timegm.c: Likewise.
60041         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
60042         needed.
60043         * lib/timegm.c: Don't include timegm.h; no longer needed.
60044         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
60045         time.h now handles any problems in that area.
60046         (struct timespec, nanosleep): Remove; time.h now arranges for these.
60047         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
60048         that time.h defines struct timespec.
60049         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
60050         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
60051         handles that.
60052         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
60053         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
60054         needed.  Set REPLACE_LOCALTIME.
60055         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
60056         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
60057         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
60058         nanosleep; time_h.m4 now does that.  Don't require
60059         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
60060         module handles this now.
60061         * modules/getdate (Depends-on): Remove timespec.  Add time.
60062         * modules/nanosleep (Depends-on): Likewise.
60063         * modules/stat-time (Depends-on): Likewise.
60064         * modules/nanosleep (Include): Include time.h, not timespec.h.
60065         * modules/strptime (Files): Remove lib/strptime.h.
60066         (Depends-on): Add extensions, time.
60067         (Include): Include time.h, not strptime.h.
60068         * modules/time_r (Files): Remove lib/time_r.h.
60069         (Depends-on): Add time.
60070         (Include): Include time.h, not time_r.h.
60071         * modules/timegm: Likewise.
60072         * modules/timespec (Description): Now does timespec-related decls
60073         of our own, instead of struct timespec itself.
60074         (Depends-on): Add time; remove extensions.
60075         (Maintainer): Add self.
60076         * modules/utimecmp (Depends-on): Add time; remove timespec.
60077         * modules/utimens (Depends-on): Likewise.
60078         * modules/xnanosleep (Depends-on): Likewise.
60079
60080 2007-02-11  Bruno Haible  <bruno@clisp.org>
60081
60082         * lib/c-strstr.c: Include allocsa.h.
60083         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60084         * lib/c-strcasestr.c: Include allocsa.h.
60085         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60086         * lib/strcasestr.c: Include allocsa.h.
60087         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60088         * lib/mbsstr.c: Include allocsa.h.
60089         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60090         allocsa/freesa instead of malloc/free.
60091         * lib/mbscasestr.c: Include allocsa.h.
60092         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60093         allocsa/freesa instead of malloc/free.
60094         * modules/c-strstr (Depends-on): Add allocsa.
60095         * modules/c-strcasestr (Depends-on): Likewise.
60096         * modules/strcasestr (Depends-on): Likewise.
60097         * modules/mbsstr (Depends-on): Likewise.
60098         * modules/mbscasestr (Depends-on): Likewise.
60099
60100 2007-02-11  Bruno Haible  <bruno@clisp.org>
60101
60102         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
60103
60104         * modules/mbsspn-tests: New file.
60105         * tests/test-mbsspn.sh: New file.
60106         * tests/test-mbsspn.c: New file.
60107
60108 2007-02-11  Bruno Haible  <bruno@clisp.org>
60109
60110         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
60111
60112         * modules/mbspbrk-tests: New file.
60113         * tests/test-mbspbrk.sh: New file.
60114         * tests/test-mbspbrk.c: New file.
60115
60116 2007-02-11  Bruno Haible  <bruno@clisp.org>
60117
60118         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
60119         unneeded cast.
60120
60121         * modules/mbscspn-tests: New file.
60122         * tests/test-mbscspn.sh: New file.
60123         * tests/test-mbscspn.c: New file.
60124
60125 2007-02-11  Bruno Haible  <bruno@clisp.org>
60126
60127         * modules/mbscasecmp-tests: New file.
60128         * tests/test-mbscasecmp.sh: New file.
60129         * tests/test-mbscasecmp.c: New file.
60130
60131 2007-02-11  Bruno Haible  <bruno@clisp.org>
60132
60133         Ensure O(n) worst-case complexity of mbscasestr.
60134         * lib/mbscasestr.c: Include stdbool.h.
60135         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60136         functions.
60137         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
60138         the bookkeeping indicates that it's worth it.
60139         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
60140
60141         * modules/mbscasestr-tests: New file.
60142         * tests/test-mbscasestr1.c: New file.
60143         * tests/test-mbscasestr2.sh: New file.
60144         * tests/test-mbscasestr2.c: New file.
60145         * tests/test-mbscasestr3.sh: New file.
60146         * tests/test-mbscasestr3.c: New file.
60147         * tests/test-mbscasestr4.sh: New file.
60148         * tests/test-mbscasestr4.c: New file.
60149         * m4/locale-tr.m4: New file.
60150
60151 2007-02-11  Bruno Haible  <bruno@clisp.org>
60152
60153         Ensure O(n) worst-case complexity of mbsstr.
60154         * lib/mbsstr.c: Include stdbool.h.
60155         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60156         functions.
60157         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
60158         bookkeeping indicates that it's worth it.
60159         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
60160
60161         * modules/mbsstr-tests: New file.
60162         * tests/test-mbsstr1.c: New file.
60163         * tests/test-mbsstr2.sh: New file.
60164         * tests/test-mbsstr2.c: New file.
60165         * tests/test-mbsstr3.sh: New file.
60166         * tests/test-mbsstr3.c: New file.
60167         * m4/locale-fr.m4: New file.
60168
60169 2007-02-11  Bruno Haible  <bruno@clisp.org>
60170
60171         * lib/mbsrchr.c (mbsrchr): Fix bug.
60172
60173         * modules/mbsrchr-tests: New file.
60174         * tests/test-mbsrchr.sh: New file.
60175         * tests/test-mbsrchr.c: New file.
60176
60177 2007-02-11  Bruno Haible  <bruno@clisp.org>
60178
60179         * lib/mbschr.c (mbschr): Fix bug.
60180
60181         * modules/mbschr-tests: New file.
60182         * tests/test-mbschr.sh: New file.
60183         * tests/test-mbschr.c: New file.
60184         * m4/locale-zh.m4: New file.
60185
60186 2007-02-11  Bruno Haible  <bruno@clisp.org>
60187
60188         Support for copying multibyte string iterators.
60189         * lib/mbiter.h: Include <string.h>.
60190         (mbiter_multi_copy): New function.
60191         (mbi_copy): New macro.
60192         * lib/mbuiter.h: Include <string.h>.
60193         (mbuiter_multi_copy): New function.
60194         (mbui_copy): New macro.
60195
60196 2007-02-11  Bruno Haible  <bruno@clisp.org>
60197
60198         New module mbslen.
60199         * modules/mbslen: New file.
60200         * lib/mbslen.c: New file.
60201         * lib/string_.h (mbslen): New declaration.
60202         * m4/mbslen.m4: New file.
60203         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60204         GNULIB_MBSLEN.
60205         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
60206         * MODULES.html.sh (Internationalization functions): Add mbslen.
60207
60208 2007-02-11  Bruno Haible  <bruno@clisp.org>
60209
60210         Ensure O(n) worst-case complexity of strcasestr substitute.
60211         * lib/strcasestr.c: Include stdbool.h.
60212         (knuth_morris_pratt): New function.
60213         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60214         bookkeeping indicates that it's worth it.
60215         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
60216
60217         * modules/strcasestr-tests: New file.
60218         * tests/test-strcasestr.c: New file.
60219
60220 2007-02-11  Bruno Haible  <bruno@clisp.org>
60221
60222         Ensure O(n) worst-case complexity of c_strcasestr.
60223         * lib/c-strcasestr.c: Include stdbool.h, string.h.
60224         (knuth_morris_pratt): New function.
60225         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
60226         the bookkeeping indicates that it's worth it.
60227         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
60228
60229         * modules/c-strcasestr-tests: New file.
60230         * tests/test-c-strcasestr.c: New file.
60231
60232 2007-02-11  Bruno Haible  <bruno@clisp.org>
60233
60234         Ensure O(n) worst-case complexity of c_strstr.
60235         * lib/c-strstr.c: Include stdbool.h, string.h.
60236         (knuth_morris_pratt): New function.
60237         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60238         bookkeeping indicates that it's worth it.
60239         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
60240
60241         * lib/c-strstr.c: Complete rewrite for maintainability.
60242
60243         * modules/c-strstr-tests: New file.
60244         * tests/test-c-strstr.c: New file.
60245
60246 2007-02-11  Bruno Haible  <bruno@clisp.org>
60247
60248         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
60249         5.2.1 and earlier, whereby \055 was treated just like the range
60250         delimiter '-'.
60251         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60252
60253 2007-02-08  Bruno Haible  <bruno@clisp.org>
60254
60255         * modules/regex (Depends-on): Add stdbool.
60256         Reported by Dalibor Topic <robilad@kaffe.org>.
60257
60258 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60259
60260         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
60261         Prefer returning from main to exiting from it.
60262         Remove unnecessary parens after sizeof.
60263
60264 2007-02-05  Bruno Haible  <bruno@clisp.org>
60265
60266         New module mbssep.
60267         * modules/mbssep: New file.
60268         * lib/mbssep.c: New file.
60269         * lib/string_.h (strsep): Add a conditional link warning.
60270         (mbssep): New declaration.
60271         * m4/mbssep.m4: New file.
60272         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60273         GNULIB_MBSSEP.
60274         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
60275         * MODULES.html.sh (Internationalization functions): Add mbssep.
60276
60277 2007-02-05  Bruno Haible  <bruno@clisp.org>
60278
60279         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
60280         Optimize search in case of 1 delimiter.
60281
60282 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60283
60284         * lib/acl.h: Include sys/types.h before sys/acl.h.
60285
60286 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60287
60288         Merge upstream fix for glibc bugzilla #3957:
60289
60290         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
60291
60292         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
60293         bit for RE_HAT_LISTS_NOT_NEWLINE.
60294         (build_charclass_op): Remove bogus comment.
60295
60296 2007-02-05  Simon Josefsson  <simon@josefsson.org>
60297
60298         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
60299
60300 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60301
60302         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
60303         * lib/memmem.c [!defined _LIBC]: Include config.h.
60304
60305 2007-02-04  Bruno Haible  <bruno@clisp.org>
60306
60307         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
60308         warning message.
60309
60310 2007-02-04  Bruno Haible  <bruno@clisp.org>
60311
60312         New module mbstok_r.
60313         * modules/mbstok_r: New file.
60314         * lib/mbstok_r.c: New file.
60315         * lib/string_.h (strtok_r): Change argument names to match the
60316         comments. Add a conditional link warning.
60317         (mbstok_r): New declaration.
60318         * m4/mbstok_r.m4: New file.
60319         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60320         GNULIB_MBSTOK_R.
60321         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
60322         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
60323
60324 2007-02-04  Bruno Haible  <bruno@clisp.org>
60325
60326         New module mbsspn.
60327         * modules/mbsspn: New file.
60328         * lib/mbsspn.c: New file.
60329         * lib/string_.h (strspn): Add a conditional link warning.
60330         (mbsspn): New declaration.
60331         * m4/mbsspn.m4: New file.
60332         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60333         GNULIB_MBSSPN.
60334         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
60335         * MODULES.html.sh (Internationalization functions): Add mbsspn.
60336
60337 2007-02-04  Bruno Haible  <bruno@clisp.org>
60338
60339         New module mbspbrk.
60340         * modules/mbspbrk: New file.
60341         * lib/mbspbrk.c: New file.
60342         * lib/string_.h (strpbrk): Add a conditional link warning.
60343         (mbspbrk): New declaration.
60344         * m4/mbspbrk.m4: New file.
60345         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60346         GNULIB_MBSPBRK.
60347         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
60348         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
60349
60350 2007-02-04  Bruno Haible  <bruno@clisp.org>
60351
60352         New module mbscspn.
60353         * modules/mbscspn: New file.
60354         * lib/mbscspn.c: New file.
60355         * lib/string_.h (strcspn): Add a conditional link warning.
60356         (mbscspn): New declaration.
60357         * m4/mbscspn.m4: New file.
60358         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60359         GNULIB_MBSCSPN.
60360         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
60361         * MODULES.html.sh (Internationalization functions): Add mbscspn.
60362
60363 2007-02-04  Bruno Haible  <bruno@clisp.org>
60364
60365         New module mbscasestr, reduced goal of strcasestr.
60366         * modules/mbscasestr: New file.
60367         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
60368         (mbscasestr): Renamed from strcasestr.
60369         * lib/strcasestr.c: Don't include mbuiter.h.
60370         (strcasestr): Remove support for multibyte locales.
60371         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
60372         Change the conditional link warning.
60373         (mbscasestr): New declaration.
60374         * m4/mbscasestr.m4: New file.
60375         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
60376         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
60377         REPLACE_STRCASESTR.
60378         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
60379         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60380         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60381         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
60382         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
60383         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60384         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
60385         (Depends-on): Remove mbuiter.
60386         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
60387
60388 2007-02-04  Bruno Haible  <bruno@clisp.org>
60389
60390         Simplify handling of strncasecmp.
60391         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
60392         the conditional link warning.
60393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60394         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
60395         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
60396         * modules/strcase (configure.ac): Don't invoke
60397         gl_STRING_MODULE_INDICATOR.
60398         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
60399
60400 2007-02-04  Bruno Haible  <bruno@clisp.org>
60401
60402         New module mbscasecmp, reduced goal of strcasecmp.
60403         * modules/mbscasecmp: New file.
60404         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
60405         (mbscasecmp): Renamed from strcasecmp.
60406         * lib/strcasecmp.c: Don't include mbuiter.h.
60407         (strcasecmp): Remove support for multibyte locales.
60408         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
60409         Change the conditional link warning.
60410         (mbscasecmp): New declaration.
60411         * m4/mbscasecmp.m4: New file.
60412         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
60413         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
60414         REPLACE_STRCASECMP.
60415         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
60416         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60417         GNULIB_MBSCASECMP.
60418         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
60419         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
60420         * modules/strcase (Files): Remove m4/mbrtowc.m4.
60421         (Depends-on): Remove mbuiter.
60422         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
60423
60424 2007-02-04  Bruno Haible  <bruno@clisp.org>
60425
60426         New module mbsstr. Remove module strstr.
60427         * modules/mbsstr: New file.
60428         * modules/strstr: Remove file.
60429         * lib/mbsstr.c: Renamed from lib/strstr.c.
60430         (mbsstr): Renamed from strstr.
60431         * lib/string_.h (strstr): Remove declaration. Change the conditional
60432         link warning.
60433         (mbsstr): New declaration.
60434         * m4/mbsstr.m4: New file.
60435         * m4/strstr.m4: Remove file.
60436         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
60437         REPLACE_STRSTR.
60438         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
60439         Don't initialize GNULIB_STRSTR.
60440         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
60441         substitute GNULIB_STRSTR and REPLACE_STRSTR.
60442         * MODULES.html.sh (Internationalization functions): Add mbsstr.
60443         (Support for systems lacking ANSI C 89): Remove strstr.
60444
60445 2007-02-04  Bruno Haible  <bruno@clisp.org>
60446
60447         New module mbsrchr.
60448         * modules/mbsrchr: New file.
60449         * lib/mbsrchr.c: New file.
60450         * lib/string_.h (strrchr): Add a conditional link warning.
60451         (mbsrchr): New declaration.
60452         * m4/mbsrchr.m4: New file.
60453         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60454         GNULIB_MBSRCHR.
60455         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
60456         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
60457
60458 2007-02-04  Bruno Haible  <bruno@clisp.org>
60459
60460         New module mbschr.
60461         * modules/mbschr: New file.
60462         * lib/mbschr.c: New file.
60463         * lib/string_.h (strchr): Add a conditional link warning.
60464         (mbschr): New declaration.
60465         * m4/mbschr.m4: New file.
60466         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60467         GNULIB_MBSCHR.
60468         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
60469         * MODULES.html.sh (Internationalization functions): Add mbschr.
60470
60471 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60472
60473         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
60474
60475         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
60476
60477 2007-02-04  Bruno Haible  <bruno@clisp.org>
60478
60479         New module description section 'configure.ac-early'.
60480         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
60481         (func_get_autoconf_early_snippet): New function.
60482         (func_import, func_create_testdir): Use it. Remove special cases for
60483         modules 'extensions' and 'lock'.
60484         * modules/extensions (configure.ac-early): Require
60485         gl_USE_SYSTEM_EXTENSIONS.
60486         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
60487
60488 2007-02-04  Bruno Haible  <bruno@clisp.org>
60489
60490         Make use of gcj-4.3's -fsource and -ftarget option.
60491         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
60492         and if so try the options -fsource and -ftarget.
60493         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
60494         source_version, ftarget_option, target_version arguments.
60495         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
60496         (is_envjavac_oldgcj_14_14_usable): Renamed from
60497         is_envjavac_gcj_14_14_usable.
60498         (is_envjavac_oldgcj_14_13_usable): Renamed from
60499         is_envjavac_gcj_14_13_usable.
60500         (is_gcj_present): Update.
60501         (is_gcj_43, is_gcj43_usable): New functions.
60502         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
60503         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
60504         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
60505         try the options -fsource and -ftarget.
60506
60507 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60508
60509         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
60510         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
60511         larger value.
60512
60513 2007-02-03  Jim Meyering  <jim@meyering.net>
60514
60515         Give tools a better chance to allocate space for very large buffers.
60516         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
60517
60518         Make pwd and readlink work also when run with an unreadable parent dir
60519         on systems with openat support.
60520         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
60521         provided getcwd function, even when we have openat support.
60522         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
60523
60524 2007-02-02  Bruno Haible  <bruno@clisp.org>
60525
60526         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60527         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
60528         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
60529         portability problems if one of these functions is only used on specific
60530         platforms.
60531         Reported by Paul Eggert.
60532
60533 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
60534
60535         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
60536         is causing more trouble than it's curing.
60537         * lib/regex_internal.h (__mempcpy): Remove.
60538         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
60539         (and make the code a tad smaller to boot).
60540         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
60541
60542 2007-02-02  Jim Meyering  <jim@meyering.net>
60543
60544         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
60545         section, not in the Makefile.am: one.
60546
60547 2007-02-02  Eric Blake  <ebb9@byu.net>
60548
60549         * lib/strchrnul.c: Always include config.h first.
60550
60551         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
60552         gnulib strstr is not necessary here.
60553
60554 2007-02-02  Simon Josefsson  <simon@josefsson.org>
60555
60556         * m4/socklen.m4: Fix typo.
60557
60558 2007-02-02  Eric Blake  <ebb9@byu.net>
60559
60560         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
60561         * modules/netinet_in (Makefile.am): Likewise.
60562
60563 2007-02-01  Bruno Haible  <bruno@clisp.org>
60564
60565         * lib/string_.h (GL_LINK_WARNING): New macro.
60566         (strcasecmp, strstr, strcasestr): If provided by the system,
60567         conditionally define as a macro that leads to a warning instead of to
60568         an error.
60569         (strncasecmp): Conditionally define as a macro that leads to a warning.
60570
60571 2007-02-01  Karl Berry  <karl@gnu.org>
60572
60573         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
60574
60575 2007-02-01  Bruno Haible  <bruno@clisp.org>
60576
60577         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
60578         renamings.
60579
60580 2007-02-01  Eric Blake  <ebb9@byu.net>
60581
60582         * modules/regex (Depends-on): Revert dependence on mempcpy.
60583         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
60584         module's definition of mempcpy.
60585         Reported by Paul Eggert.
60586
60587 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60588
60589         * lib/string_.h: If the gnulib module XYZ is not present, undefine
60590         the symbol XYZ before redefining it.  This fixes a problem with
60591         programs that don't use XYZ, when compiled on systems that define
60592         XYZ to something else.
60593
60594 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
60595
60596         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
60597         occurs when "mkdir -m foo" creates a setgid directory that is (1)
60598         writeable to group or other and (2) is intended to have a special
60599         mode bit that is set or cleared.  In such a case, the directory
60600         should be neither group- nor other-writeable until the special
60601         mode bits are right.
60602
60603 2007-01-31  Eric Blake  <ebb9@byu.net>
60604
60605         * modules/mountlist (Depends-on): Add strstr.
60606
60607         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
60608         bug.
60609         * modules/string (Makefile.am): Remove redundant replacement.
60610         * modules/regex (Depends-on): Add mempcpy.
60611
60612 2007-01-31  Bruno Haible  <bruno@clisp.org>
60613
60614         New module description field 'Link'.
60615         * gnulib-tool (func_usage): Document --extract-link-directive.
60616         (sed_extract_prog): Recognize 'Link' directive.
60617         (func_get_link_directive): New function.
60618         (func_import): Show summary of link directives.
60619         Handle --extract-link-directive option.
60620         * modules/acl (Link): New section.
60621         * modules/clock-time (Link): New section.
60622         * modules/euidaccess (Link): New section.
60623         * modules/gettext (Link): New section.
60624         * modules/iconv (Link): New section.
60625         * modules/lock (Link): New section.
60626         * modules/nanosleep (Link): New section.
60627         * modules/readline (Link): New section.
60628
60629 2007-01-27  Bruno Haible  <bruno@clisp.org>
60630
60631         Enforce the use of gnulib modules for unportable <string.h> functions.
60632         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
60633         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
60634         (gl_HEADER_STRING_H_BODY): Require it.
60635         * lib/string_.h: If the gnulib module XYZ is not present, redefine
60636         the symbol XYZ to one that gives a link error.
60637         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
60638         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
60639         * modules/mempcpy (configure.ac): Likewise.
60640         * modules/memrchr (configure.ac): Likewise.
60641         * modules/stpcpy (configure.ac): Likewise.
60642         * modules/stpncpy (configure.ac): Likewise.
60643         * modules/strcase (configure.ac): Likewise.
60644         * modules/strcasestr (configure.ac): Likewise.
60645         * modules/strchrnul (configure.ac): Likewise.
60646         * modules/strdup (configure.ac): Likewise.
60647         * modules/strndup (configure.ac): Likewise.
60648         * modules/strnlen (configure.ac): Likewise.
60649         * modules/strpbrk (configure.ac): Likewise.
60650         * modules/strsep (configure.ac): Likewise.
60651         * modules/strstr (configure.ac): Likewise.
60652         * modules/strtok_r (configure.ac): Likewise.
60653
60654 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
60655
60656         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
60657
60658 2007-01-30  Jim Meyering  <jim@meyering.net>
60659
60660         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
60661
60662 2007-01-29  Bruno Haible  <bruno@clisp.org>
60663
60664         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
60665         * lib/execute.c: Likewise.
60666         * lib/pipe.c: Likewise.
60667         * lib/printf-args.h: Likewise.
60668         * lib/printf-args.c: Likewise.
60669         * lib/printf-parse.c: Likewise.
60670         * lib/vasnprintf.c: Likewise.
60671
60672 2007-01-29  Eric Blake  <ebb9@byu.net>
60673
60674         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
60675         declaration.
60676
60677 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60678
60679         * lib/strptime.h (strptime): Use 'restrict' for args where
60680         POSIX requires this.
60681         * lib/strptime.c (strptime): Likewise.
60682         Change license notice from LGPL to GPL, since gnulib-tool will
60683         change this as needed.
60684         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
60685         defined.
60686         Include "strptime.h" first, to check interface.
60687         Do not #undef _LIBC and _NL_CURRENT.
60688         Do not include <stdlib.h>; no longer needed.
60689         Include "time_r.h" and declare ptime_locale_status
60690         only if _LIBC is not defined.
60691         (__P): Remove unused macro.
60692         (match_string): Bring back glibc version, but use it only if _LIBC
60693         is defined.
60694         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
60695         Remove unnecessary assertion and abort() call.
60696         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
60697         * m4/strptime.m4: Fix serial number comment.
60698         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
60699         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
60700         (Depends-on): Add time_r.
60701
60702 2007-01-29  Bruno Haible  <bruno@clisp.org>
60703
60704         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60705         strptime.
60706         * modules/strptime (Depends-on): Add stdbool.
60707         * lib/strptime.h: Include <time.h> always. Add comments.
60708
60709 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60710
60711         * modules/strptime: New file.
60712         * lib/strptime.h: New file.
60713         * lib/strptime.c: New file.
60714         * m4/strptime.m4: New file.
60715
60716 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60717
60718         * MODULES.html.sh: New module mpsort.
60719         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
60720
60721         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
60722         a circularity problem with HP-UX ia64 reported by Bob Proulx in
60723         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
60724         All uses changed.
60725         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
60726         All uses changed.
60727         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
60728         to _Restrict_.
60729         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
60730         the parameter matches the prototype.
60731
60732 2007-01-28  Jim Meyering  <jim@meyering.net>
60733
60734         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
60735         sys/time.h here, reverting that part of the previous patch:
60736         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
60737
60738 2007-01-28  Bruno Haible  <bruno@clisp.org>
60739
60740         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
60741         value of $(SYS_TIME_H).
60742         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
60743         remove it conditionally, too. [added by Jim Meyering]
60744         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
60745         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60746         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
60747         GETTIMEOFDAY_REPLACEMENT to 1.
60748
60749 2007-01-28  Bruno Haible  <bruno@clisp.org>
60750
60751         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
60752         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
60753         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
60754         Set UNISTD_H instead of UNISTD_H2.
60755         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
60756
60757 2007-01-28  Bruno Haible  <bruno@clisp.org>
60758
60759         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
60760         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
60761
60762 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60763
60764         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
60765         (func_create_testdir): Ensure C locale for `grep' and `tr'
60766         character ranges.
60767         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
60768         ACLOCAL_AMFLAGS parsing state machine.
60769
60770 2007-01-27  Bruno Haible  <bruno@clisp.org>
60771
60772         * modules/unistr/base: Update.
60773
60774 2007-01-27  Bruno Haible  <bruno@clisp.org>
60775
60776         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
60777         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
60778         * modules/unistr/u32-mbtouc-unsafe: Renamed from
60779         modules/unistr/u32-mbtouc.
60780         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
60781         * lib/unistr.h: Update.
60782         * lib/linebreak.c: Update.
60783         * modules/unistr/u32-mbtouc: Renamed from
60784         modules/unistr/u32-mbtouc-safe.
60785         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
60786         * lib/unistr.h: Update.
60787         * lib/unistr/u32-to-u8.c: Update.
60788         * lib/unistr/u32-to-u16.c: Update.
60789
60790 2007-01-27  Bruno Haible  <bruno@clisp.org>
60791
60792         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
60793         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
60794         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
60795         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
60796         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
60797         * modules/unistr/u16-mbtouc-unsafe: Renamed from
60798         modules/unistr/u16-mbtouc.
60799         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
60800         * lib/unistr.h: Update.
60801         * lib/linebreak.c: Update.
60802         * modules/linebreak: Update.
60803         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
60804         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
60805         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
60806         * modules/unistr/u16-mbtouc: Renamed from
60807         modules/unistr/u16-mbtouc-safe.
60808         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
60809         * lib/unistr.h: Update.
60810         * lib/unistr/u16-to-u8.c: Update.
60811         * modules/unistr/u16-to-u8: Update.
60812         * lib/unistr/u16-to-u32.c: Update.
60813         * modules/unistr/u16-to-u32: Update.
60814
60815 2007-01-27  Bruno Haible  <bruno@clisp.org>
60816
60817         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
60818         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
60819         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
60820         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
60821         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
60822         * modules/unistr/u8-mbtouc-unsafe: Renamed from
60823         modules/unistr/u8-mbtouc.
60824         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
60825         * lib/unistr.h: Update.
60826         * lib/striconveh.c: Update.
60827         * modules/striconveh: Update.
60828         * lib/linebreak.c: Update.
60829         * modules/linebreak: Update.
60830         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
60831         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
60832         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
60833         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
60834         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
60835         * lib/unistr.h: Update.
60836         * lib/striconveh.c: Update.
60837         * modules/striconveh: Update.
60838         * lib/unistr/u8-to-u16.c: Update.
60839         * modules/unistr/u8-to-u16: Update.
60840         * lib/unistr/u8-to-u32.c: Update.
60841         * modules/unistr/u8-to-u32: Update.
60842
60843 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60844
60845         Sync from Libtool.
60846         * lib/argz.c: Do not include strings.h nor memory.h, include
60847         string.h unconditionally.  Patch by Simon Josefsson.
60848
60849 2007-01-27  Bruno Haible  <bruno@clisp.org>
60850
60851         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
60852         from gl_HEADER_STRING_H_BODY.
60853         (gl_HEADER_STRING_H_BODY): Require it.
60854         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
60855         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60856         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60857         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60858         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60859         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
60860         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60861         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60862         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
60863         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60864         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60865         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
60866         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60867         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60868         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60869
60870 2007-01-27  Bruno Haible  <bruno@clisp.org>
60871
60872         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
60873         check_PROGRAMS into noinst_PROGRAMS.
60874         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
60875         check_PROGRAMS in this case.
60876         (func_import): Set for_test to false.
60877         (func_create_testdir): Set for_test to true.
60878
60879 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60880             Bruno Haible  <bruno@clisp.org>
60881
60882         * modules/strcasestr (Files): Remove lib/strcasestr.h.
60883         (Depends-on): Add string.
60884         (Includes): Use <string.h> instead of strcasestr.h.
60885         * modules/string (Makefile.am): Also substitute the value of
60886         REPLACE_STRCASESTR.
60887         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
60888         assume strcasestr is declared in <string.h> not <strings.h>. Also
60889         set REPLACE_STRCASESTR.
60890         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
60891         REPLACE_STRCASESTR.
60892         * lib/strcasestr.h: Remove file.
60893         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
60894         * lib/string_.h (strcasestr): New declaration.
60895
60896 2007-01-27  Bruno Haible  <bruno@clisp.org>
60897
60898         * lib/string_.h: Use 'extern'.
60899
60900 2007-01-27  Jim Meyering  <jim@meyering.net>
60901
60902         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
60903         of set-but-not-used local, "q".
60904
60905         * lib/mempcpy.c: Include <config.h> before <string.h>.
60906         This fixes a compilation error on HP-UX, due to the system's
60907         "restrict"-using mempcpy prototype.
60908
60909 2007-01-26  Bruno Haible  <bruno@clisp.org>
60910
60911         Small optimization.
60912         * lib/javacomp.c: Include c-strstr.h.
60913          (is_envjavac_gcj): Use c_strstr instead of strstr.
60914         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
60915
60916 2007-01-26  Bruno Haible  <bruno@clisp.org>
60917
60918         * MODULES.html.sh (Unicode string functions): Add the new modules.
60919
60920         * modules/uniconv/u32-strconv-to-locale: New file.
60921         * lib/uniconv/u32-strconv-to-locale.c: New file.
60922
60923         * modules/uniconv/u16-strconv-to-locale: New file.
60924         * lib/uniconv/u16-strconv-to-locale.c: New file.
60925
60926         * modules/uniconv/u8-strconv-to-locale: New file.
60927         * lib/uniconv/u8-strconv-to-locale.c: New file.
60928
60929         * modules/uniconv/u32-strconv-from-locale: New file.
60930         * lib/uniconv/u32-strconv-from-locale.c: New file.
60931
60932         * modules/uniconv/u16-strconv-from-locale: New file.
60933         * lib/uniconv/u16-strconv-from-locale.c: New file.
60934
60935         * modules/uniconv/u8-strconv-from-locale: New file.
60936         * lib/uniconv/u8-strconv-from-locale.c: New file.
60937
60938         * modules/uniconv/u32-strconv-to-enc: New file.
60939         * lib/uniconv/u32-strconv-to-enc.c: New file.
60940         * modules/uniconv/u32-strconv-to-enc-tests: New file.
60941         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
60942
60943         * modules/uniconv/u16-strconv-to-enc: New file.
60944         * lib/uniconv/u16-strconv-to-enc.c: New file.
60945         * lib/uniconv/u-strconv-to-enc.h: New file.
60946         * modules/uniconv/u16-strconv-to-enc-tests: New file.
60947         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
60948
60949         * modules/uniconv/u8-strconv-to-enc: New file.
60950         * lib/uniconv/u8-strconv-to-enc.c: New file.
60951         * modules/uniconv/u8-strconv-to-enc-tests: New file.
60952         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
60953
60954         * modules/uniconv/u32-strconv-from-enc: New file.
60955         * lib/uniconv/u32-strconv-from-enc.c: New file.
60956         * modules/uniconv/u32-strconv-from-enc-tests: New file.
60957         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
60958
60959         * modules/uniconv/u16-strconv-from-enc: New file.
60960         * lib/uniconv/u16-strconv-from-enc.c: New file.
60961         * modules/uniconv/u16-strconv-from-enc-tests: New file.
60962         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
60963
60964         * modules/uniconv/u8-strconv-from-enc: New file.
60965         * lib/uniconv/u8-strconv-from-enc.c: New file.
60966         * lib/uniconv/u-strconv-from-enc.h: New file.
60967         * modules/uniconv/u8-strconv-from-enc-tests: New file.
60968         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
60969
60970         * modules/uniconv/u32-conv-from-enc: New file.
60971         * lib/uniconv/u32-conv-from-enc.c: New file.
60972         * modules/uniconv/u32-conv-from-enc-tests: New file.
60973         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60974
60975         * modules/uniconv/u16-conv-from-enc: New file.
60976         * lib/uniconv/u16-conv-from-enc.c: New file.
60977         * lib/uniconv/u-conv-from-enc.h: New file.
60978         * modules/uniconv/u16-conv-from-enc-tests: New file.
60979         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60980
60981         * modules/uniconv/u8-conv-from-enc: New file.
60982         * lib/uniconv/u8-conv-from-enc.c: New file.
60983         * modules/uniconv/u8-conv-from-enc-tests: New file.
60984         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60985
60986         * modules/uniconv/base: New file.
60987         * lib/uniconv.h: New file.
60988
60989 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60990
60991         * doc/gnulib-tool.texi (Initial import): Update to match current
60992         behavior with strdup module.
60993         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60994         * lib/memmem.h: Remove; all uses removed.  This is now done
60995         by <string.h>.
60996         * lib/mempcpy.h: Likewise.
60997         * lib/memrchr.h: Likewise.
60998         * lib/stpcpy.h: Likewise.
60999         * lib/stpncpy.h: Likewise.
61000         * lib/strcase.h: Likewise.
61001         * lib/strchrnul.h: Likewise.
61002         * lib/strdup.h: Likewise.
61003         * lib/strndup.h: Likewise.
61004         * lib/strnlen.h: Likewise.
61005         * lib/strpbrk.h: Likewise.
61006         * lib/strsep.h: Likewise.
61007         * lib/strstr.h: Likewise.
61008         * lib/strtok_r.h: Likewise.
61009         * lib/string_.h: New file.
61010         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
61011         Rely on <string.h> instead.
61012         * lib/canon-host.c: Likewise.
61013         * lib/chdir-long.c: Likewise.
61014         * lib/concatpath.c: Likewise.
61015         * lib/exclude.c: Likewise.
61016         * lib/fchdir.c: Likewise.
61017         * lib/getaddrinfo.c: Likewise.
61018         * lib/getcwd.c: Likewise.
61019         * lib/getsubopt.c: Likewise.
61020         * lib/glob.c: Likewise.
61021         * lib/hard-locale.c: Likewise.
61022         * lib/iconvme.c: Likewise.
61023         * lib/javacomp.c: Likewise.
61024         * lib/mempcpy.c: Likewise.
61025         * lib/memrchr.c: Likewise.
61026         * lib/regex_internal.h: Likewise.
61027         * lib/stpncpy.c: Likewise.
61028         * lib/strcasecmp.c: Likewise.
61029         * lib/strchrnul.c: Likewise.
61030         * lib/strdup.c: Likewise.
61031         * lib/striconv.c: Likewise.
61032         * lib/striconveh.c: Likewise.
61033         * lib/striconveha.c: Likewise.
61034         * lib/strncasecmp.c: Likewise.
61035         * lib/strndup.c: Likewise.
61036         * lib/strnlen.c: Likewise.
61037         * lib/strsep.c: Likewise.
61038         * lib/strstr.c: Likewise.
61039         * lib/strtok_r.c: Likewise.
61040         * lib/userspec.c: Likewise.
61041         * lib/w32spawn.h: Likewise.
61042         * lib/xstrndup.c: Likewise.
61043         * lib/mountlist.c (strstr): Remove decl.
61044         * m4/string_h.m4: New file.
61045         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
61046         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
61047         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
61048         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
61049         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
61050         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
61051         Set REPLACE_STRCASECMP if necessary.
61052         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
61053         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
61054         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
61055         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
61056         HAVE_DECL_STRDUP if necessary.
61057         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
61058         since gl_FUNC_STRNDUP does that now.
61059         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
61060         Check for decl here...
61061         (gl_PREREQ_STRNLEN): ... not here.
61062         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
61063         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
61064         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
61065         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
61066         necessary.
61067         * modules/string: New file.
61068         * modules/memmem (Files): Remove special-purpose include file.
61069         (Depends-on): Add string.
61070         (Include): Include <string.h>, not the removed file.
61071         * modules/mempcpy: Likewise.
61072         * modules/memrchr: Likewise.
61073         * modules/stpcpy: Likewise.
61074         * modules/stpncpy: Likewise.
61075         * modules/strcase: Likewise.
61076         * modules/strchrnul: Likewise.
61077         * modules/strdup: Likewise.
61078         * modules/strndup: Likewise.
61079         * modules/strnlen: Likewise.
61080         * modules/strpbrk: Likewise.
61081         * modules/strsep: Likewise.
61082         * modules/strstr: Likewise.
61083         * modules/strtok_r: Likewise.
61084         * tests/test-dirname.c: Don't include "strdup.h", since
61085         <string.h> now suffices.
61086         * tests/test-memmem.c: Don't include "memmem.h", since
61087         <string.h> now suffices.
61088
61089 2007-01-25  Bruno Haible  <bruno@clisp.org>
61090
61091         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
61092         *resultp is 0.
61093
61094         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
61095         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
61096         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
61097         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
61098
61099         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
61100         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
61101         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
61102         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
61103         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
61104         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
61105
61106 2007-01-24  Bruno Haible  <bruno@clisp.org>
61107
61108         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
61109         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
61110         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
61111         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
61112         gl_FUNC_FTS_CORE.
61113         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
61114         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
61115         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61116         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
61117         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
61118         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
61119         gl_FUNC_FCHOWNAT.
61120         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
61121         gl_FUNC_STRFTIME.
61122         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
61123         Reported by Ralf Wildenhues.
61124
61125 2007-01-24  Bruno Haible  <bruno@clisp.org>
61126
61127         Drop AC_REQUIRE calls that are redundant with the module dependencies.
61128         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
61129         gl_GETADDRINFO.
61130         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
61131         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
61132         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
61133
61134 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
61135
61136         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
61137         Don't use 'exit'; just return from 'main'.
61138         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
61139
61140         * lib/fnmatch_.h: Readjust white space and comments to match
61141         glibc, to avoid spurious diffs.
61142
61143 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61144
61145         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
61146         2004-12-01 change by Jakub Jelinek, since this code won't compile
61147         if !LIBC.  Problem reported by Bob Proulx.
61148
61149 2007-01-23  Bruno Haible  <bruno@clisp.org>
61150
61151         * lib/striconveh.c: Include c-strcaseeq.h.
61152         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
61153         * modules/striconveh (Depends-on): Add c-strcaseeq.
61154
61155 2007-01-23  Bruno Haible  <bruno@clisp.org>
61156
61157         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
61158
61159         * modules/c-strcaseeq: New file.
61160         * lib/c-strcaseeq.h: New file.
61161
61162         * modules/streq: New file.
61163         * lib/streq.h: New file.
61164
61165 2007-01-23  Bruno Haible  <bruno@clisp.org>
61166
61167         * modules/striconveha-tests: New file.
61168         * tests/test-striconveha.c: New file.
61169
61170         * lib/striconveha.h: Include <stdbool.h>.
61171         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
61172         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
61173         (mem_iconveha_notranslit): Renamed from mem_iconveha.
61174         (mem_iconveha): New function.
61175         (str_iconveha_notranslit): Renamed from str_iconveha.
61176         (str_iconveha): New function.
61177         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
61178         c-strcase.
61179
61180 2007-01-23  Bruno Haible  <bruno@clisp.org>
61181
61182         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
61183         encodings without forgiving before trying any encoding with handler.
61184         (str_iconveha): Try all encodings without forgiving before trying any
61185         encoding with handler.
61186
61187 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61188
61189         Import the following changes from libc.
61190
61191         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61192
61193         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
61194
61195         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
61196
61197         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
61198         normal_bracket label.
61199
61200         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
61201
61202         [BZ #361]
61203         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
61204         to normal_bracket after fetching the next character.
61205
61206 2007-01-22  Bruno Haible  <bruno@clisp.org>
61207
61208         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
61209         argument.
61210         * lib/striconveh.c (iconv_carefully_1): New function.
61211         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
61212         argument.
61213         (str_cd_iconveh): Update.
61214         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
61215         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
61216         * tests/test-striconveh.c (MAGIC): New macro.
61217         (new_offsets): New function.
61218         (main): Test call with and without offsets.
61219
61220 2007-01-22  Bruno Haible  <bruno@clisp.org>
61221
61222         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
61223         * modules/sys_select (Makefile.am): Likewise.
61224         * modules/sys_socket (Makefile.am): Likewise.
61225         * modules/sys_time (Makefile.am): Likewise.
61226
61227 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61228
61229         * modules/gettimeofday (License): Change from GPL to LGPL, since
61230         gettimeofday is a library function.
61231
61232 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61233
61234         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
61235
61236 2007-01-21  Bruno Haible  <bruno@clisp.org>
61237
61238         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
61239
61240 2007-01-21  Bruno Haible  <bruno@clisp.org>
61241
61242         * modules/striconveha: New file.
61243         * lib/striconveha.h: New file.
61244         * lib/striconveha.c: New file.
61245         * MODULES.html.sh (Internationalization functions): Add striconveha.
61246         * lib/striconv.c (str_iconv): Optimize the case of an empty input
61247         string.
61248         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
61249
61250 2007-01-21  Bruno Haible  <bruno@clisp.org>
61251
61252         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
61253         * lib/striconveh.c (str_iconveh): Likewise.
61254
61255 2007-01-21  Bruno Haible  <bruno@clisp.org>
61256
61257         * lib/striconveh.h (mem_iconveh): New declaration.
61258         * lib/striconveh.c (mem_iconveh): New function.
61259         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
61260
61261 2007-01-21  Bruno Haible  <bruno@clisp.org>
61262
61263         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
61264
61265         * lib/striconveh.h (mem_cd_iconveh): Change specification.
61266         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
61267         original result buffer.
61268         (str_cd_iconveh): Update.
61269         * tests/test-striconveh.c (main): Update.
61270
61271         * lib/striconv.h (mem_cd_iconv): Change specification.
61272         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
61273         result buffer.
61274         (str_cd_iconv): Update.
61275         * tests/test-striconv.c (main): Update.
61276
61277 2007-01-21  Bruno Haible  <bruno@clisp.org>
61278
61279         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
61280
61281 2007-01-20  Jim Meyering  <jim@meyering.net>
61282
61283         * lib/userspec.c (parse_with_separator): If a user or group string
61284         starts with "+", skip the corresponding name-to-ID look-up, since
61285         such a look-up must fail: user and group names may not include "+".
61286
61287 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61288
61289         * lib/poll.c: Include sys/time.h and time.h unconditionally,
61290         since we now assume the sys_time module.
61291         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
61292         check for sys/time.h; no longer needed.
61293         * modules/poll (Depends-on): Depend on sys_time.
61294
61295 2007-01-18  Bruno Haible  <bruno@clisp.org>
61296
61297         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
61298         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61299
61300         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
61301         gettimeofday.
61302
61303         * tests/test-gettimeofday.c: Include <time.h>.
61304         (dummy): Remove variable.
61305
61306         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
61307         gl_HEADER_SYS_TIME_H.
61308         (gl_HEADER_SYS_TIME_H): New macro.
61309
61310         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
61311         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61312         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
61313         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
61314         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61315         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
61316         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
61317         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61318         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
61319         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
61320         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61321
61322         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
61323         last change; it caused a compilation error when cross-compiling to
61324         Cygwin.
61325
61326 2007-01-18  Jim Meyering  <jim@meyering.net>
61327
61328         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
61329         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
61330         than the race-prone "test -d sys || mkdir sys".
61331         (configure.ac): Use AC_PROG_MKDIR_P.
61332         * modules/sys_select: Likewise.
61333         * modules/sys_socket: Likewise.
61334         * modules/sys_time: Likewise.
61335
61336 2007-01-18  Eric Blake  <ebb9@byu.net>
61337
61338         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
61339         replace gettimeofday.
61340         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
61341         name, to avoid infinite recursion.
61342
61343 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
61344
61345         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
61346         module sys_time.
61347         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
61348         assume timespec.h defines struct timeval.
61349         * lib/settime.c: Likewise.
61350         * lib/utimens.c: Likewise.
61351         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
61352         since we now assume the gettimeofday module.
61353         * lib/tempname.c (__gen_tempname): Likewise.
61354         * lib/gettimeofday.h: Remove.
61355         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
61356         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
61357         Include <time.h>, for 'time()'.
61358         (localtime_buffer_addr): Also use this workaround if
61359         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
61360         to simplify the uses.  All uses changed.
61361         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
61362         that #undef is inside {}, and 'const' follows type name consistently.
61363         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
61364         (gettimeofday): Do not use the maximum possible value for
61365         tv->tv_usec, since that might break usages other than ls.c.
61366         Instead, we'll leave ls.c alone.  This undoes today's patch
61367         by Bruno.  Add a compile-time warning for 1s-clock resolution;
61368         we've never observed the problem but might as well keep the
61369         canary.
61370         * lib/nanosleep.c: Include timespec.h first, for interface check.
61371         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
61372         now assume the sys_time module.
61373         * lib/tempname.c: Likewise.
61374         * lib/timespec.h: Likewise.
61375         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
61376         needed.
61377         * lib/strftime.c: Likewise.
61378         * lib/timespec.h: Likewise.
61379         * lib/posixtm.c: Include posixtm.h first, for interface check.
61380         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
61381         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
61382         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
61383         * lib/sys_time_.h: New file.
61384         * lib/timespec.h (struct timespec): Use long int, not long.
61385         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61386         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
61387         Remove obsolescent call to AC_HEADER_TIME.
61388         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
61389         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61390         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61391         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
61392         Likewise.
61393         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
61394         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
61395         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
61396         into the sys_time module.  Check for gettimeofday just once.
61397         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
61398         for gettimeofday signature to just check the signature.  Merely
61399         compile it, since linking doesn't test signature.  Improve test for
61400         whether gettimeofday.o is actually needed.
61401         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
61402         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
61403         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
61404         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61405         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
61406         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
61407         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
61408         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
61409         than worrying about sys/time.h.
61410         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61411         Don't bother worrying about TIME_WITH_SYS_TIME.
61412         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
61413         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
61414         * m4/sys_time_h.m4: New file.
61415         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
61416         Don't include sys/time.h.  Return from main rather than exiting.
61417         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
61418         all uses changed.
61419         * modules/gethrxtime (Depends-on): Add sys_time.
61420         * modules/gettime (Depends-on): Likewise.
61421         * modules/gettimeofday (Depends-on): Likewise.
61422         * modules/nanosleep (Depends-on): Likewise.
61423         * modules/settime (Depends-on): Likewise.
61424         * modules/tempname (Depends-on): Likewise.
61425         * modules/utimens (Depends-on): Likewise.
61426         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
61427         (Include): Change back to <sys/time.h>.
61428         (Maintainer): Add self.
61429         * modules/sys_time: New file.
61430         * modules/tempname (Depends-on): Add gettimeofday.
61431         * tests/test-gettimeofday.c: Include <sys/time.h>
61432         rather than gettimeofday.h.
61433
61434 2007-01-17  Bruno Haible  <bruno@clisp.org>
61435
61436         * gnulib-tool (func_get_license): Revert last patch. Instead, let
61437         the license default to GPL.
61438         (func_create_testdir): Don't complain if a module is LGPL and its
61439         tests module depends on GPLed modules.
61440
61441 2007-01-17  Bruno Haible  <bruno@clisp.org>
61442
61443         * lib/gettimeofday.c (gettimeofday): Add code for the case
61444         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
61445         maximum possible value for tv->tv_usec, rather than the minimum one.
61446
61447 2005-10-08  Martin Lambers  <marlam@marlam.de>
61448 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61449 2007-01-16  Bruno Haible  <bruno@clisp.org>
61450
61451         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
61452         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
61453         gl_FUNC_GETTIMEOFDAY.
61454         (Include): Add gettimeofday.h.
61455         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
61456         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
61457         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
61458         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
61459         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
61460         * lib/gettimeofday.h: New file.
61461         * lib/gettimeofday.c: Include <sys/timeb.h>.
61462         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
61463         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61464         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
61465         fall back on time().
61466
61467         * tests/test-gettimeofday.c: New file.
61468         * modules/gettimeofday-tests: New file.
61469
61470 2007-01-16  Eric Blake  <ebb9@byu.net>
61471
61472         * modules/fnmatch (Depends-on): Depend on wchar.
61473         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
61474         * m4/fnmatch.m4: Likewise.
61475         * modules/mbchar (Makefile.am): Assume <wchar.h>.
61476         * m4/mbchar.m4: Likewise.
61477         * modules/mbswidth (Depends-on): Depend on wchar.
61478         * lib/mbswidth.c: Assume <wchar.h>.
61479         * m4/mbswidth.m4: Likewise.
61480         * modules/quotearg (Depends-on): Depend on wchar.
61481         * lib/quotearg.c: Assume <wchar.h>.
61482         * m4/quotearg.m4: Likewise.
61483         * modules/regex (Depends-on): Depend on wchar.
61484         * lib/regex_internal.h: Assume <wchar.h>.
61485         * m4/regex.m4: Likewise.
61486         * modules/stdint (Depends-on): Depend on wchar.
61487         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
61488         * m4/stdint.m4: Likewise.
61489         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
61490         * modules/strftime (Depends-on): Depend on wchar.
61491         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
61492         * modules/strtol (Depends-on): Depend on wchar.
61493         * lib/strtol.c: Assume <wchar.h>.
61494         * modules/wcwidth (Depends-on): Depend on wchar.
61495         * lib/wcwidth.h: Assume <wchar.h>.
61496         * m4/wcwidth.m4: Likewise.
61497
61498 2007-01-16  Bruno Haible  <bruno@clisp.org>
61499
61500         * modules/csharpexec-script: New, created from...
61501         * modules/csharpexec: ... this.
61502
61503 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61504
61505         * modules/javaexec-script: New, created from...
61506         * modules/javaexec: ... this.
61507
61508 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61509
61510         * modules/poll (Dependencies): Add sys_select.
61511
61512 2007-01-15  Jim Meyering  <jim@meyering.net>
61513
61514         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
61515         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
61516         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
61517         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
61518
61519 2007-01-15  Bruno Haible  <bruno@clisp.org>
61520
61521         * modules/striconveh: New file.
61522         * lib/striconveh.h: New file.
61523         * lib/striconveh.c: New file.
61524         * MODULES.html.sh (Internationalization functions): Add striconveh.
61525
61526         * modules/striconveh-tests: New file.
61527         * tests/test-striconveh.c: New file.
61528
61529 2007-01-15  Bruno Haible  <bruno@clisp.org>
61530
61531         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
61532         not from GNU libiconv or GNU libc.
61533
61534 2007-01-15  Bruno Haible  <bruno@clisp.org>
61535
61536         * doc/gnulib-intro.texi (Copyright): Explain the different license
61537         terms for module descriptions, autoconf macros, tests, documentation.
61538
61539 2007-01-14  Bruno Haible  <bruno@clisp.org>
61540
61541         * modules/striconv-tests: New file.
61542         * tests/test-striconv.c: New file.
61543
61544 2007-01-14  Bruno Haible  <bruno@clisp.org>
61545
61546         * modules/iconv-tests: New file.
61547         * tests/test-iconv.c: New file.
61548
61549 2007-01-14  Bruno Haible  <bruno@clisp.org>
61550
61551         * gnulib-tool (func_get_license): For test modules, use the license of
61552         the main module.
61553
61554 2007-01-14  Bruno Haible  <bruno@clisp.org>
61555
61556         * modules/iconv (Include): Clarify that <iconv.h> can only be included
61557         if iconv is found to exist.
61558
61559 2007-01-14  Bruno Haible  <bruno@clisp.org>
61560
61561         * modules/c-ctype-tests: New file.
61562         * tests/test-c-ctype.c: New file.
61563
61564 2007-01-14  Bruno Haible  <bruno@clisp.org>
61565
61566         * modules/binary-io-tests: New file.
61567         * tests/test-binary-io.sh: New file.
61568         * tests/test-binary-io.c: New file.
61569
61570 2007-01-14  Bruno Haible  <bruno@clisp.org>
61571
61572         * modules/array-oset-tests: New file.
61573         * tests/test-array_oset.c: New file.
61574
61575 2007-01-14  Bruno Haible  <bruno@clisp.org>
61576
61577         * modules/array-list-tests: New file.
61578         * tests/test-array_list.c: New file.
61579
61580 2007-01-14  Bruno Haible  <bruno@clisp.org>
61581
61582         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
61583         and make.
61584         Reported by Simon Josefsson in
61585         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
61586
61587 2007-01-14  Bruno Haible  <bruno@clisp.org>
61588
61589         * modules/allocsa-tests: New file.
61590         * tests/test-allocsa.c: New file.
61591
61592 2007-01-14  Bruno Haible  <bruno@clisp.org>
61593
61594         * modules/fchdir (Depends-on): Add absolute-header.
61595         * modules/unistd (Depends-on): Likewise.
61596
61597 2006-12-30  Bruno Haible  <bruno@clisp.org>
61598
61599         * modules/fchdir: New file.
61600         * modules/unistd (Files): Add lib/unistd_.h.
61601         (Makefile.am): Generate unistd.h from unistd_.h.
61602         * lib/fchdir.c: New file.
61603         * lib/dirent_.h: New file.
61604         * lib/unistd_.h: New file.
61605         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
61606         * m4/fchdir.m4: New file.
61607         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
61608         (gl_HEADER_UNISTD): Invoke it.
61609         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
61610         function.
61611         * lib/backupfile.c (opendir, closedir): Undefine.
61612         * lib/chown.c (open, close): Undefine.
61613         * lib/clean-temp.c (open, close): Undefine.
61614         * lib/copy-file.c (open, close): Undefine.
61615         * lib/execute.c (open, close): Undefine.
61616         * lib/fsusage.c (open, close): Undefine.
61617         * lib/gc-gnulib.c (open, close): Undefine.
61618         * lib/getcwd.c (opendir, closedir): Undefine.
61619         * lib/glob.c (opendir, closedir): Undefine.
61620         * lib/javacomp.c (open, close): Undefine.
61621         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
61622         * lib/openat-proc.c (open, close): Undefine.
61623         * lib/pagealign_alloc.c (open, close): Undefine.
61624         * lib/pipe.c (open, close): Undefine.
61625         * lib/progreloc.c (open, close): Undefine.
61626         * lib/savedir.c (opendir, closedir): Undefine.
61627         * lib/utime.c (open, close): Undefine.
61628         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
61629
61630 2007-01-10  Bruno Haible  <bruno@clisp.org>
61631
61632         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
61633
61634 2007-01-12  Eric Blake  <ebb9@byu.net>
61635
61636         Provide a robust <wchar.h>.  Further simplifications are now
61637         possible in other modules, but not included here.
61638         * modules/wchar: New module.
61639         * m4/wchar.m4: New file.
61640         * lib/wchar_.h: Likewise.
61641         * modules/mbchar (Depends-on): Depend on wchar, as the first use
61642         of the new module.
61643         * MODULES.html.sh (Extended multibyte and wide character utilities):
61644         New section.
61645
61646 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
61647
61648         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
61649         to a reasonable default for memory allocation.
61650         (xreadlink): Don't allocate a huge buffer, to work around a buggy
61651         file system that reports garbage st_size values for symlinks.
61652         Problem reported by Liyang Hu.
61653
61654 2007-01-11  Simon Josefsson  <simon@josefsson.org>
61655
61656         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
61657         Emacs .#* auto-save files).
61658
61659 2007-01-11  Bruno Haible  <bruno@clisp.org>
61660
61661         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
61662         directory.
61663
61664 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61665
61666         Use @...@ consistently in lib/wctype_.h.
61667         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
61668         on it being set to 1 or 0.
61669         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
61670         go back to AC_SUBSTing it.
61671         * modules/wctype (Makefile.am): Undo previous change.
61672
61673 2007-01-10  Eric Blake  <ebb9@byu.net>
61674
61675         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
61676         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
61677         * modules/wctype (Makefile.am): Likewise.
61678         Reported by Chris McGuire.
61679
61680 2007-01-10  Jim Meyering  <jim@meyering.net>
61681
61682         fts.c: a small readability/maintainability improvement
61683         * lib/fts.c (fts_read): Make this code slightly more readable and
61684         maintainable by hoisting the "sp->fts_cur = p" assignments to
61685         immediately follow the statements that set P.  Derived from
61686         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
61687
61688 2007-01-10  Eric Blake  <ebb9@byu.net>
61689
61690         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
61691         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
61692         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61693         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61694         Reported by Chris McGuire.
61695
61696 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61697
61698         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
61699         in sed script.
61700
61701 2007-01-09  Bruno Haible  <bruno@clisp.org>
61702
61703         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
61704         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
61705         variables.
61706         (func_module): Use them.
61707
61708 2007-01-09  Bruno Haible  <bruno@clisp.org>
61709
61710         * modules/unistr/base: New file.
61711         * lib/unistr.h: New file.
61712
61713         * modules/unistr/u8-to-u16: New file.
61714         * lib/unistr/u8-to-u16.c: New file.
61715
61716         * modules/unistr/u8-to-u32: New file.
61717         * lib/unistr/u8-to-u32.c: New file.
61718
61719         * modules/unistr/u16-to-u8: New file.
61720         * lib/unistr/u16-to-u8.c: New file.
61721
61722         * modules/unistr/u16-to-u32: New file.
61723         * lib/unistr/u16-to-u32.c: New file.
61724
61725         * modules/unistr/u32-to-u8: New file.
61726         * lib/unistr/u32-to-u8.c: New file.
61727
61728         * modules/unistr/u32-to-u16: New file.
61729         * lib/unistr/u32-to-u16.c: New file.
61730
61731         * modules/unistr/u8-check: New file.
61732         * modules/unistr/u16-check: New file.
61733         * modules/unistr/u32-check: New file.
61734         * lib/unistr/u8-check.c: New file.
61735         * lib/unistr/u16-check.c: New file.
61736         * lib/unistr/u32-check.c: New file.
61737
61738         * modules/unistr/u8-chr: New file.
61739         * modules/unistr/u16-chr: New file.
61740         * modules/unistr/u32-chr: New file.
61741         * lib/unistr/u8-chr.c: New file.
61742         * lib/unistr/u16-chr.c: New file.
61743         * lib/unistr/u32-chr.c: New file.
61744
61745         * modules/unistr/u8-cmp: New file.
61746         * modules/unistr/u16-cmp: New file.
61747         * modules/unistr/u32-cmp: New file.
61748         * lib/unistr/u8-cmp.c: New file.
61749         * lib/unistr/u16-cmp.c: New file.
61750         * lib/unistr/u32-cmp.c: New file.
61751
61752         * modules/unistr/u8-cpy: New file.
61753         * modules/unistr/u16-cpy: New file.
61754         * modules/unistr/u32-cpy: New file.
61755         * lib/unistr/u8-cpy.c: New file.
61756         * lib/unistr/u16-cpy.c: New file.
61757         * lib/unistr/u32-cpy.c: New file.
61758         * lib/unistr/u-cpy.h: New file.
61759
61760         * modules/unistr/u8-cpy-alloc: New file.
61761         * modules/unistr/u16-cpy-alloc: New file.
61762         * modules/unistr/u32-cpy-alloc: New file.
61763         * lib/unistr/u8-cpy-alloc.c: New file.
61764         * lib/unistr/u16-cpy-alloc.c: New file.
61765         * lib/unistr/u32-cpy-alloc.c: New file.
61766         * lib/unistr/u-cpy-alloc.h: New file.
61767
61768         * modules/unistr/u8-endswith: New file.
61769         * modules/unistr/u16-endswith: New file.
61770         * modules/unistr/u32-endswith: New file.
61771         * lib/unistr/u8-endswith.c: New file.
61772         * lib/unistr/u16-endswith.c: New file.
61773         * lib/unistr/u32-endswith.c: New file.
61774         * lib/unistr/u-endswith.h: New file.
61775
61776         * modules/unistr/u8-mblen: New file.
61777         * modules/unistr/u16-mblen: New file.
61778         * modules/unistr/u32-mblen: New file.
61779         * lib/unistr/u8-mblen.c: New file.
61780         * lib/unistr/u16-mblen.c: New file.
61781         * lib/unistr/u32-mblen.c: New file.
61782
61783         * modules/unistr/u8-mbtouc: New file.
61784         * modules/unistr/u16-mbtouc: New file.
61785         * modules/unistr/u32-mbtouc: New file.
61786         * lib/unistr/u8-mbtouc.c: New file.
61787         * lib/unistr/u16-mbtouc.c: New file.
61788         * lib/unistr/u32-mbtouc.c: New file.
61789
61790         * modules/unistr/u8-mbtouc-safe: New file.
61791         * modules/unistr/u16-mbtouc-safe: New file.
61792         * modules/unistr/u32-mbtouc-safe: New file.
61793         * lib/unistr/u8-mbtouc-safe.c: New file.
61794         * lib/unistr/u16-mbtouc-safe.c: New file.
61795         * lib/unistr/u32-mbtouc-safe.c: New file.
61796
61797         * modules/unistr/u8-move: New file.
61798         * modules/unistr/u16-move: New file.
61799         * modules/unistr/u32-move: New file.
61800         * lib/unistr/u8-move.c: New file.
61801         * lib/unistr/u16-move.c: New file.
61802         * lib/unistr/u32-move.c: New file.
61803         * lib/unistr/u-move.h: New file.
61804
61805         * modules/unistr/u8-next: New file.
61806         * modules/unistr/u16-next: New file.
61807         * modules/unistr/u32-next: New file.
61808         * lib/unistr/u8-next.c: New file.
61809         * lib/unistr/u16-next.c: New file.
61810         * lib/unistr/u32-next.c: New file.
61811
61812         * modules/unistr/u8-prev: New file.
61813         * modules/unistr/u16-prev: New file.
61814         * modules/unistr/u32-prev: New file.
61815         * lib/unistr/u8-prev.c: New file.
61816         * lib/unistr/u16-prev.c: New file.
61817         * lib/unistr/u32-prev.c: New file.
61818
61819         * modules/unistr/u8-set: New file.
61820         * modules/unistr/u16-set: New file.
61821         * modules/unistr/u32-set: New file.
61822         * lib/unistr/u8-set.c: New file.
61823         * lib/unistr/u16-set.c: New file.
61824         * lib/unistr/u32-set.c: New file.
61825         * lib/unistr/u-set.h: New file.
61826
61827         * modules/unistr/u8-startswith: New file.
61828         * modules/unistr/u16-startswith: New file.
61829         * modules/unistr/u32-startswith: New file.
61830         * lib/unistr/u8-startswith.c: New file.
61831         * lib/unistr/u16-startswith.c: New file.
61832         * lib/unistr/u32-startswith.c: New file.
61833         * lib/unistr/u-startswith.h: New file.
61834
61835         * modules/unistr/u8-stpcpy: New file.
61836         * modules/unistr/u16-stpcpy: New file.
61837         * modules/unistr/u32-stpcpy: New file.
61838         * lib/unistr/u8-stpcpy.c: New file.
61839         * lib/unistr/u16-stpcpy.c: New file.
61840         * lib/unistr/u32-stpcpy.c: New file.
61841         * lib/unistr/u-stpcpy.h: New file.
61842
61843         * modules/unistr/u8-stpncpy: New file.
61844         * modules/unistr/u16-stpncpy: New file.
61845         * modules/unistr/u32-stpncpy: New file.
61846         * lib/unistr/u8-stpncpy.c: New file.
61847         * lib/unistr/u16-stpncpy.c: New file.
61848         * lib/unistr/u32-stpncpy.c: New file.
61849         * lib/unistr/u-stpncpy.h: New file.
61850
61851         * modules/unistr/u8-strcat: New file.
61852         * modules/unistr/u16-strcat: New file.
61853         * modules/unistr/u32-strcat: New file.
61854         * lib/unistr/u8-strcat.c: New file.
61855         * lib/unistr/u16-strcat.c: New file.
61856         * lib/unistr/u32-strcat.c: New file.
61857         * lib/unistr/u-strcat.h: New file.
61858
61859         * modules/unistr/u8-strchr: New file.
61860         * modules/unistr/u16-strchr: New file.
61861         * modules/unistr/u32-strchr: New file.
61862         * lib/unistr/u8-strchr.c: New file.
61863         * lib/unistr/u16-strchr.c: New file.
61864         * lib/unistr/u32-strchr.c: New file.
61865
61866         * modules/unistr/u8-strcmp: New file.
61867         * modules/unistr/u16-strcmp: New file.
61868         * modules/unistr/u32-strcmp: New file.
61869         * lib/unistr/u8-strcmp.c: New file.
61870         * lib/unistr/u16-strcmp.c: New file.
61871         * lib/unistr/u32-strcmp.c: New file.
61872
61873         * modules/unistr/u8-strcpy: New file.
61874         * modules/unistr/u16-strcpy: New file.
61875         * modules/unistr/u32-strcpy: New file.
61876         * lib/unistr/u8-strcpy.c: New file.
61877         * lib/unistr/u16-strcpy.c: New file.
61878         * lib/unistr/u32-strcpy.c: New file.
61879         * lib/unistr/u-strcpy.h: New file.
61880
61881         * modules/unistr/u8-strcspn: New file.
61882         * modules/unistr/u16-strcspn: New file.
61883         * modules/unistr/u32-strcspn: New file.
61884         * lib/unistr/u8-strcspn.c: New file.
61885         * lib/unistr/u16-strcspn.c: New file.
61886         * lib/unistr/u32-strcspn.c: New file.
61887         * lib/unistr/u-strcspn.h: New file.
61888
61889         * modules/unistr/u8-strdup: New file.
61890         * modules/unistr/u16-strdup: New file.
61891         * modules/unistr/u32-strdup: New file.
61892         * lib/unistr/u8-strdup.c: New file.
61893         * lib/unistr/u16-strdup.c: New file.
61894         * lib/unistr/u32-strdup.c: New file.
61895         * lib/unistr/u-strdup.h: New file.
61896
61897         * modules/unistr/u8-strlen: New file.
61898         * modules/unistr/u16-strlen: New file.
61899         * modules/unistr/u32-strlen: New file.
61900         * lib/unistr/u8-strlen.c: New file.
61901         * lib/unistr/u16-strlen.c: New file.
61902         * lib/unistr/u32-strlen.c: New file.
61903         * lib/unistr/u-strlen.h: New file.
61904
61905         * modules/unistr/u8-strmblen: New file.
61906         * modules/unistr/u16-strmblen: New file.
61907         * modules/unistr/u32-strmblen: New file.
61908         * lib/unistr/u8-strmblen.c: New file.
61909         * lib/unistr/u16-strmblen.c: New file.
61910         * lib/unistr/u32-strmblen.c: New file.
61911
61912         * modules/unistr/u8-strmbtouc: New file.
61913         * modules/unistr/u16-strmbtouc: New file.
61914         * modules/unistr/u32-strmbtouc: New file.
61915         * lib/unistr/u8-strmbtouc.c: New file.
61916         * lib/unistr/u16-strmbtouc.c: New file.
61917         * lib/unistr/u32-strmbtouc.c: New file.
61918
61919         * modules/unistr/u8-strncat: New file.
61920         * modules/unistr/u16-strncat: New file.
61921         * modules/unistr/u32-strncat: New file.
61922         * lib/unistr/u8-strncat.c: New file.
61923         * lib/unistr/u16-strncat.c: New file.
61924         * lib/unistr/u32-strncat.c: New file.
61925         * lib/unistr/u-strncat.h: New file.
61926
61927         * modules/unistr/u8-strncmp: New file.
61928         * modules/unistr/u16-strncmp: New file.
61929         * modules/unistr/u32-strncmp: New file.
61930         * lib/unistr/u8-strncmp.c: New file.
61931         * lib/unistr/u16-strncmp.c: New file.
61932         * lib/unistr/u32-strncmp.c: New file.
61933
61934         * modules/unistr/u8-strncpy: New file.
61935         * modules/unistr/u16-strncpy: New file.
61936         * modules/unistr/u32-strncpy: New file.
61937         * lib/unistr/u8-strncpy.c: New file.
61938         * lib/unistr/u16-strncpy.c: New file.
61939         * lib/unistr/u32-strncpy.c: New file.
61940         * lib/unistr/u-strncpy.h: New file.
61941
61942         * modules/unistr/u8-strnlen: New file.
61943         * modules/unistr/u16-strnlen: New file.
61944         * modules/unistr/u32-strnlen: New file.
61945         * lib/unistr/u8-strnlen.c: New file.
61946         * lib/unistr/u16-strnlen.c: New file.
61947         * lib/unistr/u32-strnlen.c: New file.
61948         * lib/unistr/u-strnlen.h: New file.
61949
61950         * modules/unistr/u8-strpbrk: New file.
61951         * modules/unistr/u16-strpbrk: New file.
61952         * modules/unistr/u32-strpbrk: New file.
61953         * lib/unistr/u8-strpbrk.c: New file.
61954         * lib/unistr/u16-strpbrk.c: New file.
61955         * lib/unistr/u32-strpbrk.c: New file.
61956         * lib/unistr/u-strpbrk.h: New file.
61957
61958         * modules/unistr/u8-strrchr: New file.
61959         * modules/unistr/u16-strrchr: New file.
61960         * modules/unistr/u32-strrchr: New file.
61961         * lib/unistr/u8-strrchr.c: New file.
61962         * lib/unistr/u16-strrchr.c: New file.
61963         * lib/unistr/u32-strrchr.c: New file.
61964
61965         * modules/unistr/u8-strspn: New file.
61966         * modules/unistr/u16-strspn: New file.
61967         * modules/unistr/u32-strspn: New file.
61968         * lib/unistr/u8-strspn.c: New file.
61969         * lib/unistr/u16-strspn.c: New file.
61970         * lib/unistr/u32-strspn.c: New file.
61971         * lib/unistr/u-strspn.h: New file.
61972
61973         * modules/unistr/u8-strstr: New file.
61974         * modules/unistr/u16-strstr: New file.
61975         * modules/unistr/u32-strstr: New file.
61976         * lib/unistr/u8-strstr.c: New file.
61977         * lib/unistr/u16-strstr.c: New file.
61978         * lib/unistr/u32-strstr.c: New file.
61979         * lib/unistr/u-strstr.h: New file.
61980
61981         * modules/unistr/u8-strtok: New file.
61982         * modules/unistr/u16-strtok: New file.
61983         * modules/unistr/u32-strtok: New file.
61984         * lib/unistr/u8-strtok.c: New file.
61985         * lib/unistr/u16-strtok.c: New file.
61986         * lib/unistr/u32-strtok.c: New file.
61987         * lib/unistr/u-strtok.h: New file.
61988
61989         * modules/unistr/u8-uctomb: New file.
61990         * modules/unistr/u16-uctomb: New file.
61991         * modules/unistr/u32-uctomb: New file.
61992         * lib/unistr/u8-uctomb.c: New file.
61993         * lib/unistr/u16-uctomb.c: New file.
61994         * lib/unistr/u32-uctomb.c: New file.
61995
61996         * MODULES.html.sh (Unicode string functions): Add the new modules.
61997
61998 2007-01-08  Bruno Haible  <bruno@clisp.org>
61999
62000         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
62001         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
62002         subdirectories.
62003
62004 2007-01-08  Karl Berry  <karl@gnu.org>
62005
62006         * doc/error.texi: mention that main() fns must set program_name
62007         when progname is used.
62008
62009 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
62010
62011         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
62012         WCTYPE_H is empty, for the benefit of builds from non-distclean
62013         directories.  Problem reported by Eric Blake in
62014         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
62015
62016 2007-01-08  Bruno Haible  <bruno@clisp.org>
62017
62018         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
62019         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
62020         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
62021         PROVIDE_CANONICALIZE_FILENAME_MODE.
62022         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
62023
62024 2007-01-08  Bruno Haible  <bruno@clisp.org>
62025
62026         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
62027         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
62028         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
62029         * lib/fts.c: Likewise.
62030         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
62031
62032 2006-12-25  Bruno Haible  <bruno@clisp.org>
62033
62034         * modules/utf8-ucs4-safe: New file.
62035         * lib/utf8-ucs4-safe.h: New file.
62036         * lib/unistr/utf8-ucs4-safe.c: New file.
62037
62038         * modules/utf16-ucs4-safe: New file.
62039         * lib/utf16-ucs4-safe.h: New file.
62040         * lib/unistr/utf16-ucs4-safe.c: New file.
62041
62042         * MODULES.html.sh (Unicode string functions): Add the new modules.
62043
62044 2007-01-08  Bruno Haible  <bruno@clisp.org>
62045
62046         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
62047         (Depends-on): Add unitypes.
62048         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
62049         (u8_mbtouc_aux): Move out to separate file.
62050         (u8_mbtouc): Use ucs4_t, uint8_t types.
62051         * lib/unistr/utf8-ucs4.c: New file.
62052
62053         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
62054         (Depends-on): Add unitypes.
62055         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
62056         (u16_mbtouc_aux): Move out to separate file.
62057         (u16_mbtouc): Use ucs4_t, uint16_t types.
62058         * lib/unistr/utf16-ucs4.c: New file.
62059
62060         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
62061         (Depends-on): Add unitypes.
62062         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
62063         (u8_uctomb_aux): Move out to separate file.
62064         (u8_uctomb): Use ucs4_t, uint8_t types.
62065         * lib/unistr/ucs4-utf8.c: New file.
62066
62067         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
62068         (Depends-on): Add unitypes.
62069         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
62070         (u16_uctomb_aux): Move out to separate file.
62071         (u16_uctomb): Use ucs4_t, uint16_t types.
62072         * lib/unistr/ucs4-utf16.c: New file.
62073
62074 2006-12-25  Bruno Haible  <bruno@clisp.org>
62075
62076         * modules/unitypes: New file.
62077         * lib/unitypes.h: New file.
62078         * MODULES.html.sh (func_all_modules): New section "Unicode string
62079         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
62080         this section. Add unitypes.
62081
62082 2007-01-08  Bruno Haible  <bruno@clisp.org>
62083
62084         Avoid variable names that conflict with those from libtool.
62085         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
62086         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
62087         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
62088         library_names_spec to acl_library_names_spec, hardcode_* to
62089         acl_hardcode_*.
62090         Reported by Ralf Wildenhues.
62091
62092 2007-01-08  Bruno Haible  <bruno@clisp.org>
62093
62094         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
62095         definition.
62096         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
62097         definition.
62098         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
62099         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
62100         definition.
62101         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
62102         definition.
62103         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
62104         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
62105         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
62106         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
62107         definition.
62108         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
62109         definition.
62110         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
62111         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
62112         GC_USE_<algorithm>.
62113         * lib/gc-libgcrypt.c: Likewise.
62114         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
62115         * modules/gc-arctwo (configure.ac): Likewise.
62116         * modules/gc-des (configure.ac): Likewise.
62117         * modules/gc-hmac-md5 (configure.ac): Likewise.
62118         * modules/gc-hmac-sha1 (configure.ac): Likewise.
62119         * modules/gc-md2 (configure.ac): Likewise.
62120         * modules/gc-md4 (configure.ac): Likewise.
62121         * modules/gc-md5 (configure.ac): Likewise.
62122         * modules/gc-random (configure.ac): Likewise.
62123         * modules/gc-rijndael (configure.ac): Likewise.
62124         * modules/gc-sha1 (configure.ac): Likewise.
62125
62126 2007-01-08  Bruno Haible  <bruno@clisp.org>
62127
62128         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
62129         macro definition.
62130         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
62131         definition.
62132         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
62133         definition.
62134         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
62135         * modules/fcntl-safer (configure.ac): Likewise.
62136         * modules/fopen-safer (configure.ac): Likewise.
62137         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
62138         GNULIB_FWRITEERROR macro definition.
62139
62140 2007-01-08  Bruno Haible  <bruno@clisp.org>
62141
62142         * m4/gnulib-common.m4: New file.
62143         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
62144         (func_get_filelist): Add m4/gnulib-common.m4.
62145
62146 2007-01-08  Bruno Haible  <bruno@clisp.org>
62147
62148         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
62149         command.
62150
62151 2007-01-08  Jim Meyering  <jim@meyering.net>
62152
62153         Use a more robust test for a "can't happen" condition.
62154         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
62155         narrowed the st_size value.  Presuming the "can't happen" condition
62156         is true, that narrowing could conceivably convert an invalid st_size
62157         value into a valid one.  Instead, use a change based on Matthew
62158         Woehlke's original patch.
62159
62160         Slight readability improvement: use an assert-like macro
62161         in place of literal "abort ()" uses.
62162         * lib/fts.c (fts_assert): Define.
62163         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
62164         Use this macro instead of a bare 'abort'.
62165
62166 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
62167
62168         Don't worry about using IRIX 5.3's wctype.h broken definitions;
62169         simply work around them.
62170         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
62171         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
62172         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
62173         declaring.
62174         Don't bother to define as macros, since the standard doesn't require it.
62175         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
62176         longer worry about IRIX 5.3.
62177         (HAVE_WCTYPE_CTMP_BUG): Remove.
62178
62179 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62180
62181         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
62182         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
62183         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62184         Problems reported by Georg Schwarz for IRIX 5.3.
62185
62186         * gnulib-tool (autoconf_minversion): Take the maximum version number
62187         found, not the minimum.  Problem reported by James Youngman.
62188
62189 2007-01-03  Karl Berry  <karl@gnu.org>
62190
62191         * doc/error.texi: new file, explaining interaction with progname.
62192         * doc/gnulib.texi: include it.  Update copyright.
62193
62194 2007-01-03  Simon Josefsson  <simon@josefsson.org>
62195
62196         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
62197         AC_CANONICAL_HOST, to improve autobuild outputs.
62198
62199 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
62200             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62201
62202         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
62203         sockets, server sockets, and other file descriptors.  Count errors
62204         to compute the return value.  Reorder the code a bit to be easier
62205         to follow.  Don't set event bits that were not requested (except
62206         POLLERR and POLLHUP).
62207
62208 2007-01-01  Bruno Haible  <bruno@clisp.org>
62209
62210         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
62211
62212 2007-01-03  Jim Meyering  <jim@meyering.net>
62213
62214         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
62215
62216 2007-01-02  Bruno Haible  <bruno@clisp.org>
62217
62218         * modules/settime (Include): Require timespec.h.
62219         * modules/nanosleep (Include): Likewise.
62220
62221 2007-01-01  Bruno Haible  <bruno@clisp.org>
62222
62223         * gnulib-tool (func_emit_copyright_notice): Bump year.
62224         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
62225
62226 2007-01-01  Bruno Haible  <bruno@clisp.org>
62227
62228         Improve support for OpenBSD.
62229         * build-aux/config.rpath (libname_spec): Export.
62230         (library_names_spec): New variable. Export.
62231         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
62232         library_names_spec from the config.rpath output. Locate shared library
62233         through the name pattern in library_names_spec.
62234
62235 2007-01-01  Eric Blake  <ebb9@byu.net>
62236
62237         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
62238
62239 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
62240
62241         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
62242         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
62243         assume the C locale, and avoid an "eval" that could cause trouble.
62244         Problem with SORT reported by Bob Proulx.
62245
62246         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
62247         Define.  Trivial patch from Henning Nielsen Lund, originally
62248         sent to bug-grep@gnu.org today.
62249
62250 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62251
62252         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
62253         struct stat.  Problem reported by Henning Nielsen Lund.
62254         * lib/acl.c: Include acl.h first, to check interface.  Don't
62255         bother to include sys/types.h and sys/stat.h again.
62256
62257 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62258
62259         Import the following change from libc; problem reported by
62260         Sven Verdoolaege.
62261
62262         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
62263
62264         [BZ #1373]
62265         * lib/argp.h: Remove __NTH for __argp_usage inline function.
62266
62267 2006-12-28  Jim Meyering  <jim@meyering.net>
62268
62269         * build-aux/announce-gen: Do not assume that the package
62270         builds any of tar.gz, tar.bz2, and .xdelta files.
62271         Suggestion from Simon Josefsson.
62272
62273 2006-12-28  Simon Josefsson  <simon@josefsson.org>
62274
62275         * modules/announce-gen: New file.
62276
62277 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62278
62279         * lib/mbchar.h: Just include <wctype.h>; the wctype module
62280         handles its gotchas now.
62281         * lib/mbswidth.c: Likewise.
62282         * lib/wcwidth.h: Likewise.
62283         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
62284         and iswcntrl; the wctype module does this stuff now.
62285         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62286         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62287         * modules/mbchar (Depends-on): Add wctype.
62288         * modules/mbswidth (Depends-on): Likewise.
62289         * modules/wcwidth (Depends-on): Likewise.
62290
62291 2006-12-27  Eric Blake  <ebb9@byu.net>
62292
62293         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
62294         module uses more than what <wctype.h> is required to provide.
62295
62296 2006-12-26  Eric Blake  <ebb9@byu.net>
62297
62298         * gnulib-tool (sed_extract_prog): Avoid space-tab.
62299
62300 2006-12-26  Eric Blake  <ebb9@byu.net>
62301
62302         * modules/absolute-header: New module.
62303         * modules/fcntl (Depends-on): Depend on it.
62304         * modules/inttypes (Depends-on): Likewise.
62305         * modules/stdint (Depends-on): Likewise.
62306         * modules/sys_stat (Depends-on): Likewise.
62307         * modules/wctype (Depends-on): Likewise.
62308         * MODULES.html.sh (Support for building libraries and
62309         executables): Document it.
62310
62311 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62312
62313         * gnulib-tool (SED): Remove, undoing previous change.
62314         The problem was that it broke coreutils on Solaris, because
62315         "sed --posix" leaked into a makefile.
62316         (sed): New alias, if 'alias' and GNU sed.
62317
62318 2006-12-24  Jim Meyering  <jim@meyering.net>
62319
62320         Work around an fchownat bug in glibc-2.4:
62321         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
62322         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
62323         in spite of the -P option.
62324         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
62325         New macros.
62326         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
62327         * modules/openat (Files): Add lib/fchownat.c.
62328         * lib/openat.c (fchownat): Don't define here.  Move to...
62329         * lib/fchownat.c: ...this new file.
62330
62331 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62332
62333         Fix bug reported by Bruno Haible in
62334         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
62335         where quotearg.c didn't compile on Mac OS X 10.2 because it
62336         lacks <wchar.h> and wint_t.
62337         * lib/wctype_.h (__wctype_wint_t): New type.
62338         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
62339         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
62340         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
62341         Arg is now of type __wctype_wint_t, not wint_t.
62342         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
62343         substitute HAVE_WINT_T.
62344         * modules/wctype (Files): Add m4/wint_t.m4.
62345         (wctype.h): Substitute HAVE_WINT_T.
62346
62347 2006-12-23  Bruno Haible  <bruno@clisp.org>
62348
62349         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
62350
62351 2006-12-23  Bruno Haible  <bruno@clisp.org>
62352
62353         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
62354         S_ISLNK.
62355         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
62356         mingw.
62357
62358 2006-12-22  Bruno Haible  <bruno@clisp.org>
62359
62360         * lib/copy-file.c: Include acl.h.
62361         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
62362         Close the file descriptors only after being done with copy_acl.
62363         * modules/copy-file (Depends-on): Add acl.
62364
62365 2006-12-22  Bruno Haible  <bruno@clisp.org>
62366
62367         * gnulib-tool (SED): New variable.
62368         Use $SED instead of sed everywhere.
62369
62370 2006-12-22  Bruno Haible  <bruno@clisp.org>
62371
62372         * modules/no-c++: New file.
62373         * m4/no-c++.m4: New file.
62374         * MODULES.html.sh (Support for building libraries and executables):
62375         Add no-c++.
62376
62377 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62378
62379         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62380         Include <limits.h>, and use its INT_MAX to rewrite the
62381         j loop so that it does not overflow 'int'.  Problem reported by
62382         Ralf Wildenhues in
62383         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
62384         Play it safe by shifting left by 1 rather than multiplying by 2,
62385         as GCC is less likely to optimize this away when the value
62386         is signed (when it assumes overflow leads to undefined behavior).
62387         Also, don't assume time_t uses two's complement.
62388
62389 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62390
62391         * MODULES.html.sh: New module wctype.
62392         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
62393         * lib/fnmatch.c: Don't bother to include <wchar.h> before
62394         <wctype.h>, since the new wctype module should fix this.
62395         * lib/quotearg.c: Include <wctype.h> unconditionally, since
62396         the wctype module should arrange for it.
62397         * lib/regex_internal.h: Likewise.
62398         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
62399         since the wctype module should handle this now.
62400         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
62401         * modules/fnmatch (Depends-on): Add wctype.
62402         * modules/quotearg (Depends-on): Likewise.
62403         * modules/regex (Depends-on): Likewise.
62404
62405 2006-12-19  Bruno Haible  <bruno@clisp.org>
62406
62407         * lib/strdup.h [C++]: Wrap definitions in extern "C".
62408         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
62409
62410 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62411
62412         * modules/savewd (Depends-on): Fix dependency on fcntl.
62413
62414 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62415
62416         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
62417         conforms to C99, rather than relying on the user's environment
62418         setting of STDINT_H.
62419
62420 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62421         and Eric Blake  <ebb9@byu.net>
62422
62423         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
62424         This is more consistent with the other defines here.
62425         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
62426         Port to z/OS.  Problem reported by Paul Gilmartin.
62427         Change local vars to use gl_ prefix rather than ac_.
62428         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
62429         with other defines.
62430         * modules/double-slash-root: New module.
62431         * modules/dirname (Files): Remove m4/double-slash-root.m4.
62432         (Depends-on): Add double-slash-root.
62433         * MODULES.html.sh (File system functions): Mention new module.
62434
62435 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
62436
62437         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
62438         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
62439         This is for the benefit of gzip, which doesn't do i18n.
62440
62441 2006-12-12  Jim Meyering  <jim@meyering.net>
62442
62443         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
62444         Reported by Andreas Schwab <schwab@suse.de>.
62445
62446 2006-12-12  Bruno Haible  <bruno@clisp.org>
62447
62448         Merge these changes.
62449         2006-09-05  Bruno Haible  <bruno@clisp.org>
62450         * lib/iconvme.c (iconv_string): No need to save and restore errno when
62451         iconv_alloc succeeded.
62452         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
62453         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
62454         test for " && dest " at the end - dest is always != NULL there. Call
62455         iconv with 4xNULL arguments initially, to reset the state. Call iconv
62456         with 2xNULL arguments, also to flush the state storage. Handle the
62457         IRIX iconv behaviour. Realloc the final result, to throw away unused
62458         memory.
62459
62460 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
62461
62462         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
62463         and fchmodat unconditionally, since glibc 2.4 has them.
62464         Problem reported by Arkadiusz Miskiewicz.
62465
62466 2006-12-10  Bruno Haible  <bruno@clisp.org>
62467
62468         * gnulib-tool (func_import): Show the include files only for those
62469         modules that are copied and specified.
62470         Reported by Karl Berry.
62471
62472 2006-12-08  Jim Meyering  <jim@meyering.net>
62473
62474         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
62475         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
62476
62477         * build-aux/announce-gen: Add two new options, both optional:
62478         --bootstrap-tools=TOOL_LIST
62479               a comma-separated list of tools, e.g.,
62480               autoconf,automake,bison,gnulib
62481         --gnulib-snapshot-date=DATE
62482               if gnulib is in the bootstrap tool list,
62483               then report this as the snapshot date.
62484               If not specified, use the current date/time.
62485               If you specify a date here, be sure it's UTC.
62486
62487 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62488
62489         * tests/test-argp-2.sh: Fix test to match actual output.
62490         (func_compare): Fix sed script to be portable.
62491
62492 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
62493
62494         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
62495         workaround for this case.  It is not autoconfigured now; offhand
62496         it's hard to see how to autoconfigure it.
62497
62498 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62499
62500         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
62501         a directory that is about to be chowned.  Such a directory's
62502         initial file permissions should permit the owner only and this
62503         should not be changed until after the chown, since the group and
62504         other bits would be incorrect if they granted permission before
62505         the chown.
62506
62507         Fix porting problem for iswctype reported by Georg Schwarz in:
62508         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
62509         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
62510         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
62511         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
62512         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62513
62514 2006-12-03  Jim Meyering  <jim@meyering.net>
62515
62516         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
62517         p->fts_statp may not yet be defined.
62518         (fts_read): Instead, set it in the caller, once p->fts_statp is
62519         sure to be defined, and corresponds to a top-level directory.
62520         This bug made du -x fail.  Here's the coreutils test case:
62521         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
62522         Reported by Mike Frysinger.
62523
62524 2006-12-01  Jim Meyering  <jim@meyering.net>
62525
62526         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
62527         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
62528         Reported by Simon Josefsson.
62529
62530 2006-11-30  Jim Meyering  <jim@meyering.net>
62531
62532         * m4/warning.m4: Use the all-permissive copyright notice
62533         recommended by RMS (rather than LGPL).
62534         * m4/vararrays.m4: Likewise.
62535         * m4/flexmember.m4: Likewise.
62536
62537 2006-11-29  Bruno Haible  <bruno@clisp.org>
62538
62539         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62540         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
62541         using +=.
62542         Reported by Simon Josefsson <simon@josefsson.org>.
62543
62544 2006-11-28  James Youngman <jay@gnu.org>
62545
62546         * README: Advise users that they might find the bug-gnulib@gnu.org
62547         and autotools-announce@gnu.org mailing lists useful.
62548
62549 2006-11-28  Bruno Haible  <bruno@clisp.org>
62550
62551         * m4/ptrdiff_max.m4: Remove file.
62552
62553 2006-11-21  Bruno Haible  <bruno@clisp.org>
62554
62555         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
62556         _AC_COMPUTE_INT.
62557         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62558         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
62559         _AC_COMPUTE_INT.
62560         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62561         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
62562         _AC_COMPUTE_INT.
62563         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62564
62565 2006-11-28  Jim Meyering  <jim@meyering.net>
62566
62567         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
62568         warning from "gcc -Wshadow" about shadowing the builtin.
62569
62570 2006-11-27  Bruno Haible  <bruno@clisp.org>
62571
62572         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
62573         _AC_COMPUTE_INT.
62574         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62575
62576 2006-11-27  Bruno Haible  <bruno@clisp.org>
62577             Paul Eggert  <eggert@cs.ucla.edu>
62578
62579         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
62580
62581 2006-11-26  Bruno Haible  <bruno@clisp.org>
62582
62583         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62584         noinst_LTLIBRARIES.
62585
62586 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
62587             Bruno Haible  <bruno@clisp.org>
62588
62589         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
62590         if compiling with "gcc -ansi".
62591
62592 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
62593
62594         Fix some incompatibilities with gcc -ansi -pedantic.
62595         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
62596         if compiling pedantically with GCC, unless it's C99 or later.
62597         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
62598         it mishandles gcc -ansi -pedantic as well.
62599         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
62600         if gcc -pedantic.
62601         * lib/regexec.c (check_node_accept_bytes): Don't use auto
62602         initializers for struct if -pedantic, unless it's C99 or later.
62603
62604 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
62605
62606         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
62607         Don't close an fd more than once. Identical atimes indicate
62608         success, not failure.
62609
62610 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
62611
62612         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
62613
62614 2006-11-23  Jim Meyering  <jim@meyering.net>
62615
62616         * build-aux/announce-gen: New file.  From coreutils.
62617
62618 2006-11-22  Jim Meyering  <jim@meyering.net>
62619
62620         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
62621         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
62622         (fts_read): Use a temporary to narrow the overused st_size member
62623         before using it in a switch statement.  Reported by Matthew Woehlke.
62624
62625         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
62626         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62627
62628 2006-11-20  Bruno Haible  <bruno@clisp.org>
62629
62630         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
62631         changequote instead of pairs of brackets.
62632         Reported by Andreas Schwab <schwab@suse.de>.
62633
62634 2006-11-21  Jim Meyering  <jim@meyering.net>
62635
62636         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
62637         so as to remain compatible with older compilers.
62638         Patch from Michael Deutschmann.
62639
62640 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62641
62642         * MODULES.html.sh (File system functions): Add openat.
62643
62644         * lib/openat.h (rpl_fstatat): New macro, if
62645         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
62646         (fstatat): Define to rpl_fstatat under the same conditions,
62647         unless COMPILING_FSTATAT.
62648         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
62649         seems to have the bug.
62650         * lib/fstatat.c: New file.
62651         * modules/openat (Files): Add it.
62652
62653 2006-11-20  Bruno Haible  <bruno@clisp.org>
62654
62655         * Makefile: New file.
62656
62657 2006-11-20  Jim Meyering  <jim@meyering.net>
62658
62659         The beginnings of syntax-related checks for gnulib.
62660         * lib/Makefile: New file.
62661         * lib/t-idcache: New script.  Ensure that the two halves of
62662         idcache.c stay in sync.
62663
62664         * lib/idcache.c: Adjust comments in user- and group- portions to
62665         be more accurate, and to be consistent with one another.
62666
62667 2006-11-20  Jim Meyering  <jim@meyering.net>
62668
62669         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
62670         continue using the flexible array member (thus, this module performs
62671         half as many malloc calls), with the addition that...
62672         (getgroup, getuser): Consistently record a non-match via an empty
62673         "name" string, and map an empty string match to a NULL return value.
62674         * modules/idcache (Depends-on): Re-add flexmember.
62675
62676         * lib/idcache.c (getuser): Remove all uses of the register keyword.
62677         (getuidbyname, getgroup, getgidbyname): Likewise.
62678
62679         Use cleaner syntax: NULL rather than 0.
62680         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
62681
62682 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62683
62684         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
62685         It mishandled the case where the group was missing.
62686         Problem reported by Greg Schafer.
62687         * modules/idcache: Likewise.
62688
62689 2006-11-18  Jim Meyering  <jim@meyering.net>
62690
62691         * check-module (%exempt_header): Add exception for some
62692         conditionally-included headers.
62693
62694         * modules/i-ring (Depends-on): Add verify.
62695         (License): Change to LGPL.
62696
62697 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62698
62699         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
62700         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
62701         and inttostr.h.  Use snprintf rather than uinttostr, so that
62702         LGPLed code doesn't depend on GPLed.
62703
62704 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62705
62706         * modules/inline (License): Change from GPL to LGPL.
62707
62708 2006-11-17  Jim Meyering  <jim@meyering.net>
62709
62710         * modules/d-type (License): Switch to LGPL.
62711
62712 2006-11-15  Bruno Haible  <bruno@clisp.org>
62713
62714         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
62715
62716 2006-11-15  Eric Blake  <ebb9@byu.net>
62717
62718         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
62719         the module dependency.
62720
62721 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62722             Bruno Haible  <bruno@clisp.org>
62723
62724         * gnulib-tool (func_create_testdir): Add license consistency check.
62725
62726 2006-11-15  Eric Blake  <ebb9@byu.net>
62727
62728         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
62729         random "(cached)" in configure output.
62730
62731 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62732
62733         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
62734         test for conforming inttypes.h is both announced and cached.
62735
62736         * MODULES.html.sh (seen_modules, seen_files): New variables.
62737         (func_module): Rewrite to use a few less gnulib-tool and sed
62738         invocations.  Avoid a couple of quadratic algorithms for ...
62739         (missed_modules, missed_files): ... these, with ...
62740         (func_append, func_tmpdir): ... these new functions, from
62741         gnulib-tool.  Analogously, install traps for cleanup.
62742
62743         * tests/test-gc.c (main): Remove unused variables.
62744         * tests/test-read-file.c: Include stdlib.h, for 'free'.
62745
62746 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
62747
62748         * modules/inttostr (License): Change to LGPL.
62749
62750 2006-11-14  Eric Blake  <ebb9@byu.net>
62751
62752         * modules/tempname (License): Change to LGPL.
62753
62754 2006-11-14  Eric Blake  <ebb9@byu.net>
62755
62756         * doc/functions.texi (Function Portability): *printf functions on
62757         Cygwin now understand all POSIX size specifiers.
62758
62759 2006-11-14  Bruno Haible  <bruno@clisp.org>
62760
62761         * modules/c-ctype (License): Change to LGPL.
62762
62763 2006-11-12  Bruno Haible  <bruno@clisp.org>
62764
62765         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62766         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
62767         for GNOME libraries, for which the include files are installed in
62768         subdirectories of $prefix/include.
62769
62770 2006-11-12  Bruno Haible  <bruno@clisp.org>
62771
62772         * m4/lib-link.m4: Require at least autoconf-2.54.
62773         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
62774         name to underscores for the --with option.
62775
62776 2006-11-13  Bruno Haible  <bruno@clisp.org>
62777
62778         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
62779         the tests directory.
62780         Reported by Ralf Wildenhues.
62781
62782 2006-11-13  Bruno Haible  <bruno@clisp.org>
62783
62784         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
62785         (func_emit_initmacro_end): Undo the override here.
62786         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
62787         Works around the famous automake error in coreutils.
62788
62789 2006-11-13  Eric Blake  <ebb9@byu.net>
62790
62791         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
62792         element, not its node.
62793
62794 2006-11-12  Bruno Haible  <bruno@clisp.org>
62795
62796         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
62797         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
62798
62799 2006-11-12  Bruno Haible  <bruno@clisp.org>
62800
62801         * gnulib-tool: New option --local-symlink.
62802         (func_usage): Document it.
62803         (lsymbolic): New variable.
62804         (func_import, func_create_testdir): If --symlink was not specified,
62805         test whether --local-symlink was specified and the file comes from
62806         the local_gnulib_dir.
62807
62808 2006-11-12  Bruno Haible  <bruno@clisp.org>
62809
62810         * gnulib-tool (func_ln): New function.
62811         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
62812
62813 2006-11-12  Bruno Haible  <bruno@clisp.org>
62814
62815         Finish support for source files in subdirectories.
62816         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
62817         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
62818         AUTOMAKE_OPTIONS.
62819         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
62820
62821 2006-11-12  Bruno Haible  <bruno@clisp.org>
62822
62823         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62824         EXTRA_lib_SOURCES augmentation.
62825         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
62826
62827 2006-11-12  Jim Meyering  <jim@meyering.net>
62828
62829         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
62830         file descriptors.  This also averts a failure on systems with
62831         native openat support when a traversed directory lacks "x" access.
62832         * lib/fts_.h: Include "i-ring.h"
62833         (struct FTS) [fts_fd_ring]: New member.
62834         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
62835         (FCHDIR): Add parentheses.
62836         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
62837         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
62838         When descending, rather than simply closing the previous
62839         fts_cwd_fd value, push that file descriptor onto the ring.
62840         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
62841         (fts_open): Initialize the new fd_ring member.
62842         (fts_close): Clear the ring.
62843         (fts_safe_changedir): When possible, use our new fd_ring to skip
62844         the diropen and fstat and dev/ino comparison that would normally
62845         accompany a virtual `chdir ("..")'.
62846
62847         * modules/fts (Depends-on): Add i-ring.
62848         * modules/i-ring: New module.
62849         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
62850         * m4/i-ring.m4: New file.
62851
62852 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62853
62854         * gnulib-tool (func_create_testdir): Fix replacement of
62855         `build-aux' in configure.ac.  Run autotools in gltests
62856         subdirectory.
62857         (func_create_testdir, func_create_megatestdir, test): There is
62858         no need for '--force' in most autotool invocations in a new
62859         tree.  Actually fail the whole test if any of the tools, or the
62860         configure or make stages fail.
62861
62862         Sync from Automake.
62863         * build-aux/gnupload: Revert last change.  Add pointer to upload
62864         instructions of the GNU Maintenance Instructions.
62865         Suggestion by Karl Berry.
62866
62867 2006-11-10  Jim Meyering  <jim@meyering.net>
62868
62869         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
62870
62871 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62872
62873         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
62874         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
62875         (bind_textdomain_codeset) [! ENABLE_NLS]:
62876         Evaluate all the arguments.  That way, callers get compatible behavior
62877         if the arguments have side effects.  Also, it avoids some GCC
62878         diagnostics in some cases; Joel E. Denny reported problems when Bison
62879         was configured with --enable-gcc-warnigs.
62880
62881 2006-11-10  Jim Meyering  <jim@meyering.net>
62882
62883         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
62884         relevant options in CFLAGS (like -O, -fno-inline) are taken into
62885         account.
62886
62887 2006-11-10  Jim Meyering  <jim@meyering.net>
62888
62889         * modules/inline: New file/module.
62890         * modules/xalloc (Files): Remove m4/inline.m4.
62891         (Depends-on): Add inline, instead.
62892         * modules/oset: Likewise.
62893         * modules/list: Likewise.
62894
62895 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62896
62897         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
62898         Problem reported by Matthew Woehlke.
62899
62900 2006-11-09  Bruno Haible  <bruno@clisp.org>
62901
62902         * lib/tempname.c (gen_tempname): Remove variant that invokes
62903         __gen_tempname.
62904         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
62905         __gen_tempname.
62906
62907 2006-11-08  Bruno Haible  <bruno@clisp.org>
62908
62909         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
62910         to 'yes' instead of 'cross-compiling'.
62911
62912 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
62913
62914         * lib/quotearg.h (quotearg_free): New decl.
62915         * lib/quotearg.c (quotearg_free): New function.
62916         (slot0, nslots, slotvec0, slotvec):
62917         Now file-scope so that quotearg_free can get at them.
62918
62919 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62920
62921         Sync from Automake.
62922         * build-aux/gnupload: Add missing 'gnu' to example URL.
62923         Report by Karl Berry.
62924
62925 2006-11-08  Bruno Haible  <bruno@clisp.org>
62926
62927         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
62928         Suggested by Paul Eggert.
62929
62930 2006-11-08  Jim Meyering  <jim@meyering.net>
62931
62932         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
62933         It's already included if !_LIBC.
62934         (fts_safe_changedir): Add a comment.
62935
62936 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62937
62938         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
62939         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
62940         Matthew Woehlke.
62941
62942         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
62943         definitions up, to avoid colliding with change below.
62944         (static_inline) [HAVE_INLINE]: New macro.
62945         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
62946         Provide extern decls when !HAVE_INLINE.  Do not define unless
62947         static_inline is defined, either by us or by xmalloc.c.  Use
62948         static_inline rather than static inline.
62949         (XCALLOC): Optimize sizeof(T) = 1 case.
62950         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
62951
62952 2006-11-07  Bruno Haible  <bruno@clisp.org>
62953
62954         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
62955         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
62956         AC_C_INLINE.
62957         * modules/xalloc (Files): Add m4/inline.m4.
62958
62959 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62960
62961         * README: Fix typo.
62962         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
62963         (Miscellanous Notes): ...from this.
62964
62965 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62966
62967         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
62968         Mention that offsetof should be used instead of sizeof.
62969         From Bruno Haible.
62970
62971 2006-11-07  Bruno Haible  <bruno@clisp.org>
62972
62973         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62974
62975 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62976
62977         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62978         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62979         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62980         (gl_tree_add_before, gl_tree_add_after):
62981         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62982         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62983         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62984         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62985         (gl_linked_add_after, gl_linked_add_at): Likewise.
62986         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62987         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62988         (gl_tree_add_before, gl_tree_add_after): Likewise.
62989         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62990         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62991         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62992
62993 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62994
62995         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62996
62997 2006-11-06  Bruno Haible  <bruno@clisp.org>
62998
62999         * m4/inline.m4: New file.
63000         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
63001         * modules/list (Files): Add m4/inline.m4.
63002         * modules/oset (Files): Likewise.
63003
63004 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
63005
63006         * lib/idcache.c: Include <stddef.h>, for offsetof.
63007         (struct userid.name): Change from char * to a flexible array member.
63008         All uses changed.
63009         * modules/idcache (Depends-on): Add flexmember.
63010
63011         * MODULES.html.sh (Core language properties): New module flexmember.
63012         * modules/flexmember, m4/flexmember.m4: New files.
63013
63014         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
63015         inline functions that are identical with the old xnmalloc_inline,
63016         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
63017         that we can avoid some unnecessary integer multiplications and
63018         divisions in the common case where the element size is known at
63019         compile time.
63020         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
63021         needed.
63022         (xnboundedmalloc): Remove.
63023         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
63024         arguments, for consistency with rest of this header.
63025         (xcharalloc): Rewrite using XNMALLOC.
63026         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
63027         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
63028         versions have been moved to lib/xalloc.h and renamed to be the
63029         non-*_inline versions.
63030         (xmalloc, xrealloc): Implement without reference to the xnmalloc
63031         and xnrealloc functions, since those functions are now inline and
63032         now call us.
63033         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
63034         renaming described above.
63035         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
63036         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
63037         captures the dependency in AC_C_INLINE.
63038
63039         New module canonicalize-lgpl, proposed by Charles Wilson in
63040         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
63041         with a few small changes afterwards.
63042         * MODULES.html.sh (File system functions): New module
63043         canonicalize-lgpl.
63044         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
63045         and canonicalize_file_name.
63046         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
63047         * modules/canonicalize-lgpl: New files.
63048
63049 2006-11-05  Bruno Haible  <bruno@clisp.org>
63050
63051         * gnulib-tool (func_import, func_create_testdir): Create directories
63052         also for files in subdirectories of lib/.
63053
63054 2006-11-05  Bruno Haible  <bruno@clisp.org>
63055
63056         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
63057         ANSI C compliant.
63058
63059 2006-11-03  Bruno Haible  <bruno@clisp.org>
63060
63061         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
63062         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
63063         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
63064         (xnboundedmalloc): New inline function.
63065         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
63066         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
63067         xmalloc.
63068         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
63069         xmalloc.
63070         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
63071         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
63072         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
63073         xmalloc.
63074         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63075         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
63076         xmalloc.
63077         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
63078         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63079         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
63080         xmalloc.
63081         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63082         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
63083         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63084         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
63085         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
63086         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
63087         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
63088
63089 2006-11-03  Bruno Haible  <bruno@clisp.org>
63090
63091         * lib/c-ctype.h [C++]: Define functions without name mangling.
63092         * lib/fwriteerror.h [C++]: Likewise.
63093         * lib/gcd.h [C++]: Likewise.
63094         * lib/linebreak.h [C++]: Likewise.
63095
63096 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63097
63098         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
63099         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
63100         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
63101         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63102         Check for functions and headers just once.
63103         Check for declaration of canonicalize_file_name.
63104         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
63105
63106 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63107
63108         * gnulib-tool (func_import): Fix typo in actioncmd.
63109
63110 2006-11-02  Bruno Haible  <bruno@clisp.org>
63111
63112         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
63113         newline sequence in the Makefile.am snippet as a space, like "make"
63114         does.
63115         Reported by Roger Persson <perrog@gmail.com>.
63116
63117 2006-11-01  Bruno Haible  <bruno@clisp.org>
63118
63119         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
63120         already declared in <string.h>.
63121         * lib/strcase.h (strncasecmp): Don't declare it if yes.
63122
63123 2006-11-01  Bruno Haible  <bruno@clisp.org>
63124
63125         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
63126         * lib/strcase.h: Include <string.h>.
63127         (strcasecmp): Define to rpl_strcasecmp here.
63128
63129 2006-11-01  Bruno Haible  <bruno@clisp.org>
63130
63131         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
63132
63133 2006-11-01  Eric Blake  <ebb9@byu.net>
63134
63135         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
63136
63137         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
63138
63139 2006-10-29  Bruno Haible  <bruno@clisp.org>
63140
63141         Make it compile in C++ mode.
63142         * lib/full-write.c (full_rw): Add a cast.
63143
63144 2006-11-01  Bruno Haible  <bruno@clisp.org>
63145
63146         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
63147         be POSIX compliant.
63148         Reported by Roger Persson <perrog@gmail.com>.
63149
63150 2006-11-01  Eric Blake  <ebb9@byu.net>
63151
63152         * lib/getopt_.h: Fix comments.
63153
63154 2006-10-31  Eric Blake  <ebb9@byu.net>
63155
63156         * modules/tmpdir (Depends-on): Add sys_stat.
63157         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
63158         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
63159         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
63160         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
63161         tempname.
63162
63163 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
63164
63165         Avoid some C++ diagnostics reported by Bruno Haible.
63166         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
63167         xmalloc.
63168         (quotearg_alloc): Use xcharalloc rather than xmalloc.
63169         (struct slotvec): Move to top level.
63170         (quotearg_n_options): Rewrite to avoid xmalloc.
63171         * lib/xalloc.h (xcharalloc): New function.
63172         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
63173         [defined __cplusplus]: Add function template that provides result
63174         type propagation.  This part of the change is from Bruno Haible.
63175
63176 2006-10-29  Bruno Haible  <bruno@clisp.org>
63177
63178         Make it compile in C++ mode.
63179         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
63180         * lib/strnlen1.c (strnlen1): Cast memchr result.
63181         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
63182         * lib/clean-temp.c (string_equals, string_hash): Add casts.
63183         (create_temp_dir): Rename local variable 'template'.
63184         (compile_csharp_using_sscli): Add cast.
63185         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
63186         * lib/findprog.c (find_in_path): Likewise.
63187         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
63188         * lib/wait-process.c (register_slave_subprocess): Likewise.
63189
63190 2006-10-22  Bruno Haible  <bruno@clisp.org>
63191
63192         * modules/tsearch: New file.
63193         * lib/tsearch.h: New file.
63194         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
63195         * m4/tsearch.m4: New file.
63196         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
63197
63198 2006-10-29  Eric Blake  <ebb9@byu.net>
63199
63200         * lib/arcfour.c: Assume config.h.
63201         * lib/arctwo.c: Likewise.
63202         * lib/base64.c: Likewise.
63203         * lib/check-version.c: Likewise.
63204         * lib/crc.c: Likewise.
63205         * lib/des.c: Likewise.
63206         * lib/gc-gnulib.c: Likewise.
63207         * lib/gc-libgcrypt.c: Likewise.
63208         * lib/gc-pbkdf2-sha1.c: Likewise.
63209         * lib/getaddrinfo.c: Likewise.
63210         * lib/getdelim.c: Likewise.
63211         * lib/getline.c: Likewise.
63212         * lib/hmac-md5.c: Likewise.
63213         * lib/hmac-sha1.c: Likewise.
63214         * lib/iconvme.c: Likewise.
63215         * lib/md2.c: Likewise.
63216         * lib/md4.c: Likewise.
63217         * lib/memxor.c: Likewise.
63218         * lib/read-file.c: Likewise.
63219         * lib/readline.c: Likewise.
63220         * lib/rijndael-alg-fst.c: Likewise.
63221         * lib/rijndael-api-fst.c: Likewise.
63222         * lib/xgetdomainname.c: Likewise.
63223
63224 2006-10-28  Eric Blake  <ebb9@byu.net>
63225
63226         * lib/xstrndup.c: Assume config.h.
63227
63228 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63229
63230         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
63231         stat-macros.h is now for our own macros, whereas stat_h is for
63232         macros in the <sys/stat.h> name space.
63233         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
63234         (STAT_MACROS_H): Remove.
63235         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
63236         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
63237         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
63238         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
63239         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
63240         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
63241         Move these macros to ...
63242         * lib/stat_.h: here.  Don't include stat-macros.h.
63243         * lib/canonicalize.c: Don't include stat-macros.h.
63244         * lib/chown.c: Likewise.
63245         * lib/euidaccess.c: Likewise.
63246         * lib/file-type.c: Likewise.
63247         * lib/filemode.c: Likewise.
63248         * lib/glob.c: Likewise.
63249         * lib/isapipe.c: Likewise.
63250         * lib/lchown.c: Likewise.
63251         * lib/lstat.c: Likewise.
63252         * lib/mkdir-p.c: Likewise.
63253         * lib/rmdir.c: Likewise.
63254         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
63255         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
63256         unless mkdir isn't declared, to speed up 'configure'.
63257         Always create sys/stat.h, since it's unlikely any real sys/stat.h
63258         would define all the S_* symbols.
63259         * modules/canonicalize (Depends-on):
63260         Depend on sys_stat, not stat-macros.
63261         * modules/chown: Likewise.
63262         * modules/euidaccess: Likewise.
63263         * modules/filemode: Likewise.
63264         * modules/file-type: Likewise.
63265         * modules/glob: Likewise.
63266         * modules/isapipe: Likewise.
63267         * modules/lchown: Likewise.
63268         * modules/lstat: Likewise.
63269         * modules/mkancesdirs: Likewise.
63270         * modules/rmdir: Likewise.
63271         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
63272         * modules/modechange: Likewise.
63273         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
63274         (configure.ac): Remove gl_STAT_MACROS.
63275         * modules/sys_stat (Depends-on): Remove stat-macros.
63276
63277 2006-10-27  Bruno Haible  <bruno@clisp.org>
63278
63279         * m4/signed.m4: Remove file.
63280         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
63281         invocation.
63282         * modules/vasnprintf (Files): Remove m4/signed.m4.
63283
63284 2006-10-27  Bruno Haible  <bruno@clisp.org>
63285
63286         Update to GNU gettext 0.16.
63287         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
63288         m4/inttypes-h.m4, m4/signed.m4.
63289         * m4/gettext.m4: Update to GNU gettext 0.16.
63290         * m4/intl.m4: New file, from GNU gettext.
63291         * m4/intldir.m4: New file, from GNU gettext.
63292         * config/srclist.txt: Update
63293
63294 2006-10-27  Eric Blake  <ebb9@byu.net>
63295
63296         * MODULES.html.sh: Document tempname.
63297         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
63298         dependencies.
63299         (Files): Move lib/tempname.c...
63300         * modules/tempname: ...to this new module.
63301         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
63302         (gl_PREREQ_TEMPNAME): Move...
63303         * m4/tempname.m4: ...to this new file.
63304         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
63305         * modules/sys_stat (Depends-on): Add stat-macros.
63306         * lib/stat_.h (includes): Pick up stat macros.
63307         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
63308         if stat macros are broken.
63309         * lib/tempname.c (includes): No need to include "stat-macros.h".
63310         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
63311         (direxists, __path_search) [!_LIBC]: Don't compile these in
63312         gnulib; the tmpdir module covers that.
63313         * lib/tempname.h: New file.
63314
63315 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63316
63317         * COPYING: Explain how gnulib-tool converts licence headers.
63318         Almost all wording by Eric Blake.
63319
63320 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
63321
63322         * lib/mbchar.h (is_basic_table): Make read-only.
63323         * lib/mbchar.c (is_basic_table): Likewise.
63324         Reported by John Darrington.
63325
63326 2006-10-25  Bruno Haible  <bruno@clisp.org>
63327
63328         * lib/progname.h (set_program_name): Undefine before defining.
63329
63330 2006-10-25  Bruno Haible  <bruno@clisp.org>
63331
63332         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
63333         false for non-gcc C++ compilers.
63334         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
63335
63336 2006-10-24  Bruno Haible  <bruno@clisp.org>
63337
63338         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
63339         iconv implementations like Irix iconv.
63340
63341 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63342
63343         * modules/vararrays: New file.
63344         * m4/vararrays.m4: New file, taken from diffutils.
63345         * MODULES.html.sh: New module vararrays.
63346
63347 2006-10-24  Karl Berry  <karl@gnu.org>
63348
63349         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
63350         Don't call GNU Unix.
63351
63352 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63353
63354         * users.txt: Add Libtool.
63355
63356         Sync from Libtool:
63357
63358         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63359
63360         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
63361         to gnulib's policy of including config.h unconditionally.
63362
63363 2006-10-24  Bruno Haible  <bruno@clisp.org>
63364
63365         * modules/wcwidth (Files): Add m4/wint_t.m4.
63366         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
63367         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
63368
63369 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63370
63371         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
63372         to pacify GCC with some -W flags enabled.  Problem reported by
63373         Bruno Haible.
63374
63375 2006-10-24  Jim Meyering  <jim@meyering.net>
63376
63377         * MODULES.html.sh: Remove uinttostr.  It's not a module.
63378         Reported by Karl Berry.
63379
63380 2006-10-23  Bruno Haible  <bruno@clisp.org>
63381
63382         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
63383
63384 2006-10-24  Bruno Haible  <bruno@clisp.org>
63385
63386         * lib/gl_list.h: Use C comment style, not C++ comment style.
63387
63388 2006-10-23  Eric Blake  <ebb9@byu.net>
63389
63390         * lib/getaddrinfo.c (includes): Add missing include.
63391
63392 2006-10-23  Bruno Haible  <bruno@clisp.org>
63393             Paul Eggert  <eggert@cs.ucla.edu>
63394
63395         Ability to rename obstack_free.
63396         * lib/obstack.h (__obstack_free): New macro. Declare instead of
63397         obstack_free.
63398         (obstack_free): Invoke the __obstack_free macro.
63399         * lib/obstack.c (obstack_free): Use __obstack_free macro.
63400
63401 2006-10-23  Bruno Haible  <bruno@clisp.org>
63402             Paul Eggert  <eggert@cs.ucla.edu>
63403
63404         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
63405         __argc, __argv from the declaration. (They are defined as macros on
63406         mingw.)
63407
63408 2006-10-22  Bruno Haible  <bruno@clisp.org>
63409
63410         * doc/gnulib-intro.texi: New file.
63411         * doc/gnulib.texi: Include it.
63412
63413 2006-10-21  Bruno Haible  <bruno@clisp.org>
63414
63415         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
63416         "Introduction", "Miscellanous Notes", "Particular Modules".
63417
63418 2006-10-21  Bruno Haible  <bruno@clisp.org>
63419
63420         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63421         Change mostlyclean-local rule to avoid sh syntax error from bash
63422         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
63423
63424 2006-10-23  Jim Meyering  <jim@meyering.net>
63425
63426         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
63427         in place of snprintf.
63428
63429         * modules/inttostr (Files): Add lib/uinttostr.c.
63430         * lib/uinttostr.c (inttostr): New file/function.
63431         * lib/inttostr.h (uinttostr): Declare.
63432         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
63433         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63434         Add uinttostr.
63435         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
63436
63437 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63438
63439         * lib/canonicalize.c (ELOOP): Define if not already defined.
63440         Problem reported by Bruno Haible in
63441         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
63442
63443 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63444
63445         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
63446         Problem reported by Perry Smith and Ville Laurikari.
63447
63448         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
63449         uses.
63450
63451 2006-10-19  Bruno Haible  <bruno@clisp.org>
63452
63453         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
63454         for mingw.
63455
63456 2006-10-19  Bruno Haible  <bruno@clisp.org>
63457
63458         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
63459         Needed for mingw.
63460
63461 2006-10-19  Bruno Haible  <bruno@clisp.org>
63462
63463         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
63464
63465 2006-10-19  Bruno Haible  <bruno@clisp.org>
63466
63467         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
63468         it.
63469
63470 2006-10-19  Bruno Haible  <bruno@clisp.org>
63471
63472         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
63473         invocation.
63474
63475 2006-10-19  Bruno Haible  <bruno@clisp.org>
63476
63477         * gnulib-tool (func_create_testdir): Don't include ftruncate and
63478         mountlist by default.
63479
63480 2006-10-16  Bruno Haible  <bruno@clisp.org>
63481
63482         * lib/c-strstr.c: Include c-strstr.h.
63483
63484 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63485
63486         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
63487         in a slash.
63488
63489 2006-10-18  Bruno Haible  <bruno@clisp.org>
63490
63491         * lib/lock.h [C++]: Wrap definitions in extern "C".
63492
63493 2006-10-18  Bruno Haible  <bruno@clisp.org>
63494
63495         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
63496         gl_LIBOBJS list.
63497
63498 2006-10-18  Bruno Haible  <bruno@clisp.org>
63499
63500         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
63501
63502 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
63503
63504         * lib/xstrtol.h: Include gettext.h.
63505         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
63506         Problem reported by Eric Blake.
63507         * modules/xstrtol (Depends-on): Add gettext-h.
63508
63509 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
63510
63511         * lib/strftime.c (advance): New macro.
63512         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
63513         incomplete type, so you can't add 0 to it.  Problem and patch
63514         reported by Eelco Dolstra for dietlibc.
63515
63516 2006-10-18  Jim Meyering  <jim@meyering.net>
63517
63518         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
63519         type for a local, and rename it: s/up/user_proc/.
63520
63521 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63522
63523         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
63524         READ_UTMP_USER_PROCESS.
63525         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
63526
63527 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63528
63529         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
63530         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
63531
63532 2006-10-17  Eric Blake  <ebb9@byu.net>
63533
63534         * lib/sigprocmask.c (sigprocmask): Fix typo.
63535
63536         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
63537
63538         * modules/clean-temp (Makefile.am): Don't add to make output...
63539         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
63540         config.h.
63541
63542 2006-10-17  Bruno Haible  <bruno@clisp.org>
63543
63544         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
63545         differently if DEFAULT_TEXT_DOMAIN is set.
63546
63547 2006-10-16  Bruno Haible  <bruno@clisp.org>
63548
63549         * lib/clean-temp.c: Include fwriteerror.h.
63550
63551 2006-10-16  Bruno Haible  <bruno@clisp.org>
63552
63553         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
63554
63555 2006-10-16  Bruno Haible  <bruno@clisp.org>
63556
63557         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
63558         * lib/sigprocmask.h: Include <sys/types.h>.
63559         (sigset_t): Use the system's definition if present.
63560
63561 2006-10-17  Eric Blake  <ebb9@byu.net>
63562
63563         * lib/xvasprintf.c (includes): Assume config.h.
63564         * lib/xasprintf.c (includes): Likewise.
63565
63566 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63567
63568         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
63569         at least as wide as intmax_t.
63570
63571 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
63572
63573         (Imported from Automake.)
63574         * build-aux/gnupload: Update to version 1.1 of directive file.
63575
63576 2006-10-16  Eric Blake  <ebb9@byu.net>
63577
63578         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
63579         match Automake 1.10a.
63580
63581 2006-10-14  Bruno Haible  <bruno@clisp.org>
63582
63583         * modules/sigprocmask: New file.
63584         * lib/sigprocmask.h: New file.
63585         * lib/sigprocmask.c: New file.
63586         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
63587         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
63588         request sigprocmask.o.
63589         (gl_PREREQ_SIGPROCMASK): New macro.
63590         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
63591         (Depends-on): Add sigprocmask.
63592         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
63593         gt_SIGNALBLOCKING. Test for 'raise' only once.
63594         * lib/fatal-signal.c: Include sigprocmask.h.
63595         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
63596         unblock_fatal_signals): Define always.
63597         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63598         sigprocmask.
63599
63600 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63601
63602         Sync from Automake.
63603         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
63604         which incorrectly sets the mode of an existing destination
63605         directory.  In some cases the unpatched install-sh could do the
63606         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
63607         system.  We hope this is rare in practice, but it's clearly worth
63608         fixing.  Problem reported by Alex Unleashed in
63609         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
63610         Also, don't bother to check for -m bugs unless we're using -m;
63611         suggested by Stepan Kasal.
63612
63613 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63614
63615         Sync from Automake.
63616         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
63617         `-c' flag, so they appear at the same position as in %FASTDEP%
63618         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
63619         which ignores unknown options only after the first non-option.
63620         Bug report against M4 by Nelson H. F. Beebe.
63621
63622 2006-10-13  Jim Meyering  <jim@meyering.net>
63623
63624         Fix a bug in yesterday's change.
63625         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
63626         p->fts_statp->st_dev would be used uninitialized.
63627         Ensures that we always call fts_stat on the very first entry.
63628         Miklos Szeredi reported that find -xdev stopped working.
63629
63630 2006-10-12  Bruno Haible  <bruno@clisp.org>
63631
63632         * gnulib-tool (func_get_automake_snippet): Append an automatically
63633         computed EXTRA_DIST augmentation.
63634         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
63635         * modules/alloca-opt (Makefile.am): Likewise.
63636         * modules/allocsa (Makefile.am): Likewise.
63637         * modules/arcfour (Makefile.am): Likewise.
63638         * modules/arctwo (Makefile.am): Likewise.
63639         * modules/argmatch (Makefile.am): Likewise.
63640         * modules/argz (Makefile.am): Likewise.
63641         * modules/atexit (Makefile.am): Likewise.
63642         * modules/backupfile (Makefile.am): Likewise.
63643         * modules/byteswap (Makefile.am): Likewise.
63644         * modules/c-strtod (Makefile.am): Likewise.
63645         * modules/c-strtold (Makefile.am): Likewise.
63646         * modules/calloc (Makefile.am): Likewise.
63647         * modules/canon-host (Makefile.am): Likewise.
63648         * modules/canonicalize (Makefile.am): Likewise.
63649         * modules/chdir-long (Makefile.am): Likewise.
63650         * modules/chdir-safer (Makefile.am): Likewise.
63651         * modules/check-version (Makefile.am): Likewise.
63652         * modules/chown (Makefile.am): Likewise.
63653         * modules/cloexec (Makefile.am): Likewise.
63654         * modules/close-stream (Makefile.am): Likewise.
63655         * modules/closeout (Makefile.am): Likewise.
63656         * modules/crc (Makefile.am): Likewise.
63657         * modules/csharpexec (Makefile.am): Likewise.
63658         * modules/cycle-check (Makefile.am): Likewise.
63659         * modules/des (Makefile.am): Likewise.
63660         * modules/dev-ino (Makefile.am): Likewise.
63661         * modules/dirfd (Makefile.am): Likewise.
63662         * modules/dirname (Makefile.am): Likewise.
63663         * modules/dup2 (Makefile.am): Likewise.
63664         * modules/eealloc (Makefile.am): Likewise.
63665         * modules/error (Makefile.am): Likewise.
63666         * modules/euidaccess (Makefile.am): Likewise.
63667         * modules/exclude (Makefile.am): Likewise.
63668         * modules/exitfail (Makefile.am): Likewise.
63669         * modules/fcntl-safer (Makefile.am): Likewise.
63670         * modules/fcntl (Makefile.am): Likewise.
63671         * modules/file-type (Makefile.am): Likewise.
63672         * modules/fileblocks (Makefile.am): Likewise.
63673         * modules/filemode (Makefile.am): Likewise.
63674         * modules/filenamecat (Makefile.am): Likewise.
63675         * modules/fnmatch (Makefile.am): Likewise.
63676         * modules/fopen-safer (Makefile.am): Likewise.
63677         * modules/fpending (Makefile.am): Likewise.
63678         * modules/fprintftime (Makefile.am): Likewise.
63679         * modules/free (Makefile.am): Likewise.
63680         * modules/fsusage (Makefile.am): Likewise.
63681         * modules/ftruncate (Makefile.am): Likewise.
63682         * modules/fts (Makefile.am): Likewise.
63683         * modules/gc-arcfour (Makefile.am): Likewise.
63684         * modules/gc-des (Makefile.am): Likewise.
63685         * modules/gc-hmac-md5 (Makefile.am): Likewise.
63686         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
63687         * modules/gc-md4 (Makefile.am): Likewise.
63688         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63689         * modules/gc-sha1 (Makefile.am): Likewise.
63690         * modules/gc (Makefile.am): Likewise.
63691         * modules/getaddrinfo (Makefile.am): Likewise.
63692         * modules/getcwd (Makefile.am): Likewise.
63693         * modules/getdelim (Makefile.am): Likewise.
63694         * modules/getdomainname (Makefile.am): Likewise.
63695         * modules/getgroups (Makefile.am): Likewise.
63696         * modules/gethostname (Makefile.am): Likewise.
63697         * modules/gethrxtime (Makefile.am): Likewise.
63698         * modules/getline (Makefile.am): Likewise.
63699         * modules/getloadavg (Makefile.am): Likewise.
63700         * modules/getlogin_r (Makefile.am): Likewise.
63701         * modules/getndelim2 (Makefile.am): Likewise.
63702         * modules/getopt (Makefile.am): Likewise.
63703         * modules/getpagesize (Makefile.am): Likewise.
63704         * modules/getpass-gnu (Makefile.am): Likewise.
63705         * modules/getpass (Makefile.am): Likewise.
63706         * modules/getsubopt (Makefile.am): Likewise.
63707         * modules/gettime (Makefile.am): Likewise.
63708         * modules/gettimeofday (Makefile.am): Likewise.
63709         * modules/getugroups (Makefile.am): Likewise.
63710         * modules/getusershell (Makefile.am): Likewise.
63711         * modules/glob (Makefile.am): Likewise.
63712         * modules/group-member (Makefile.am): Likewise.
63713         * modules/hard-locale (Makefile.am): Likewise.
63714         * modules/hash (Makefile.am): Likewise.
63715         * modules/hmac-md5 (Makefile.am): Likewise.
63716         * modules/hmac-sha1 (Makefile.am): Likewise.
63717         * modules/human (Makefile.am): Likewise.
63718         * modules/idcache (Makefile.am): Likewise.
63719         * modules/imaxabs (Makefile.am): Likewise.
63720         * modules/imaxdiv (Makefile.am): Likewise.
63721         * modules/inet_ntop (Makefile.am): Likewise.
63722         * modules/inet_pton (Makefile.am): Likewise.
63723         * modules/intprops (Makefile.am): Likewise.
63724         * modules/inttostr (Makefile.am): Likewise.
63725         * modules/inttypes (Makefile.am): Likewise.
63726         * modules/isapipe (Makefile.am): Likewise.
63727         * modules/javaversion (Makefile.am): Likewise.
63728         * modules/lchmod (Makefile.am): Likewise.
63729         * modules/lchown (Makefile.am): Likewise.
63730         * modules/localcharset (Makefile.am): Likewise.
63731         * modules/long-options (Makefile.am): Likewise.
63732         * modules/lstat (Makefile.am): Likewise.
63733         * modules/malloc (Makefile.am): Likewise.
63734         * modules/mathl (Makefile.am): Likewise.
63735         * modules/mbchar (Makefile.am): Likewise.
63736         * modules/md2 (Makefile.am): Likewise.
63737         * modules/md4 (Makefile.am): Likewise.
63738         * modules/md5 (Makefile.am): Likewise.
63739         * modules/memcasecmp (Makefile.am): Likewise.
63740         * modules/memchr (Makefile.am): Likewise.
63741         * modules/memcmp (Makefile.am): Likewise.
63742         * modules/memcoll (Makefile.am): Likewise.
63743         * modules/memcpy (Makefile.am): Likewise.
63744         * modules/memmem (Makefile.am): Likewise.
63745         * modules/memmove (Makefile.am): Likewise.
63746         * modules/mempcpy (Makefile.am): Likewise.
63747         * modules/memrchr (Makefile.am): Likewise.
63748         * modules/memset (Makefile.am): Likewise.
63749         * modules/memxor (Makefile.am): Likewise.
63750         * modules/mkancesdirs (Makefile.am): Likewise.
63751         * modules/mkdir-p (Makefile.am): Likewise.
63752         * modules/mkdir (Makefile.am): Likewise.
63753         * modules/mkdtemp (Makefile.am): Likewise.
63754         * modules/mkstemp (Makefile.am): Likewise.
63755         * modules/mktime (Makefile.am): Likewise.
63756         * modules/modechange (Makefile.am): Likewise.
63757         * modules/mountlist (Makefile.am): Likewise.
63758         * modules/nanosleep (Makefile.am): Likewise.
63759         * modules/obstack (Makefile.am): Likewise.
63760         * modules/openat (Makefile.am): Likewise.
63761         * modules/pagealign_alloc (Makefile.am): Likewise.
63762         * modules/pathmax (Makefile.am): Likewise.
63763         * modules/physmem (Makefile.am): Likewise.
63764         * modules/poll (Makefile.am): Likewise.
63765         * modules/posixtm (Makefile.am): Likewise.
63766         * modules/posixver (Makefile.am): Likewise.
63767         * modules/putenv (Makefile.am): Likewise.
63768         * modules/quote (Makefile.am): Likewise.
63769         * modules/quotearg (Makefile.am): Likewise.
63770         * modules/raise (Makefile.am): Likewise.
63771         * modules/read-file (Makefile.am): Likewise.
63772         * modules/readline (Makefile.am): Likewise.
63773         * modules/readlink (Makefile.am): Likewise.
63774         * modules/readtokens (Makefile.am): Likewise.
63775         * modules/readutmp (Makefile.am): Likewise.
63776         * modules/realloc (Makefile.am): Likewise.
63777         * modules/regex (Makefile.am): Likewise.
63778         * modules/rename-dest-slash (Makefile.am): Likewise.
63779         * modules/rename (Makefile.am): Likewise.
63780         * modules/rijndael (Makefile.am): Likewise.
63781         * modules/rmdir (Makefile.am): Likewise.
63782         * modules/rpmatch (Makefile.am): Likewise.
63783         * modules/safe-read (Makefile.am): Likewise.
63784         * modules/safe-write (Makefile.am): Likewise.
63785         * modules/same-inode (Makefile.am): Likewise.
63786         * modules/same (Makefile.am): Likewise.
63787         * modules/save-cwd (Makefile.am): Likewise.
63788         * modules/savedir (Makefile.am): Likewise.
63789         * modules/setenv (Makefile.am): Likewise.
63790         * modules/settime (Makefile.am): Likewise.
63791         * modules/sha1 (Makefile.am): Likewise.
63792         * modules/sig2str (Makefile.am): Likewise.
63793         * modules/snprintf (Makefile.am): Likewise.
63794         * modules/stat-macros (Makefile.am): Likewise.
63795         * modules/stat-time (Makefile.am): Likewise.
63796         * modules/stdbool (Makefile.am): Likewise.
63797         * modules/stdint (Makefile.am): Likewise.
63798         * modules/stdlib-safer (Makefile.am): Likewise.
63799         * modules/stpcpy (Makefile.am): Likewise.
63800         * modules/stpncpy (Makefile.am): Likewise.
63801         * modules/strcase (Makefile.am): Likewise.
63802         * modules/strcasestr (Makefile.am): Likewise.
63803         * modules/strchrnul (Makefile.am): Likewise.
63804         * modules/strcspn (Makefile.am): Likewise.
63805         * modules/strdup (Makefile.am): Likewise.
63806         * modules/strerror (Makefile.am): Likewise.
63807         * modules/strftime (Makefile.am): Likewise.
63808         * modules/strndup (Makefile.am): Likewise.
63809         * modules/strnlen (Makefile.am): Likewise.
63810         * modules/strpbrk (Makefile.am): Likewise.
63811         * modules/strsep (Makefile.am): Likewise.
63812         * modules/strstr (Makefile.am): Likewise.
63813         * modules/strtod (Makefile.am): Likewise.
63814         * modules/strtoimax (Makefile.am): Likewise.
63815         * modules/strtok_r (Makefile.am): Likewise.
63816         * modules/strtol (Makefile.am): Likewise.
63817         * modules/strtoll (Makefile.am): Likewise.
63818         * modules/strtoul (Makefile.am): Likewise.
63819         * modules/strtoull (Makefile.am): Likewise.
63820         * modules/strtoumax (Makefile.am): Likewise.
63821         * modules/strverscmp (Makefile.am): Likewise.
63822         * modules/sys_socket (Makefile.am): Likewise.
63823         * modules/sys_stat (Makefile.am): Likewise.
63824         * modules/sysexits (Makefile.am): Likewise.
63825         * modules/time_r (Makefile.am): Likewise.
63826         * modules/timegm (Makefile.am): Likewise.
63827         * modules/timespec (Makefile.am): Likewise.
63828         * modules/tmpfile-safer (Makefile.am): Likewise.
63829         * modules/trim (Makefile.am): Likewise.
63830         * modules/unistd-safer (Makefile.am): Likewise.
63831         * modules/unlinkdir (Makefile.am): Likewise.
63832         * modules/unlocked-io (Makefile.am): Likewise.
63833         * modules/userspec (Makefile.am): Likewise.
63834         * modules/utime (Makefile.am): Likewise.
63835         * modules/utimecmp (Makefile.am): Likewise.
63836         * modules/utimens (Makefile.am): Likewise.
63837         * modules/vasnprintf (Makefile.am): Likewise.
63838         * modules/vasprintf (Makefile.am): Likewise.
63839         * modules/vsnprintf (Makefile.am): Likewise.
63840         * modules/xalloc (Makefile.am): Likewise.
63841         * modules/xgetcwd (Makefile.am): Likewise.
63842         * modules/xnanosleep (Makefile.am): Likewise.
63843         * modules/xreadlink (Makefile.am): Likewise.
63844         * modules/xstrtod (Makefile.am): Likewise.
63845         * modules/xstrtol (Makefile.am): Likewise.
63846         * modules/xstrtold (Makefile.am): Likewise.
63847         * modules/yesno (Makefile.am): Likewise.
63848         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
63849
63850 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63851
63852         * modules/error (Makefile.am): Distribute files through
63853         EXTRA_DIST, not lib_SOURCES.
63854
63855 2006-10-12  Eric Blake  <ebb9@byu.net>
63856
63857         * modules/error (Makefile.am): Distribute files in /lib.
63858         * modules/obstack (Makefile.am): Likewise.
63859
63860 2006-10-12  Bruno Haible  <bruno@clisp.org>
63861
63862         * modules/acl (Makefile.am): Distribute all files in lib/ through
63863         EXTRA_DIST.
63864         * modules/arcfour (Makefile.am): Likewise.
63865         * modules/arctwo (Makefile.am): Likewise.
63866         * modules/argmatch (Makefile.am): Likewise.
63867         * modules/argz (Makefile.am): Likewise.
63868         * modules/atexit (Makefile.am): Likewise.
63869         * modules/backupfile (Makefile.am): Likewise.
63870         * modules/c-strtod (Makefile.am): Likewise.
63871         * modules/c-strtold (Makefile.am): Likewise.
63872         * modules/calloc (Makefile.am): Likewise.
63873         * modules/canon-host (Makefile.am): Likewise.
63874         * modules/canonicalize (Makefile.am): Likewise.
63875         * modules/chdir-long (Makefile.am): Likewise.
63876         * modules/chdir-safer (Makefile.am): Likewise.
63877         * modules/check-version (Makefile.am): Likewise.
63878         * modules/chown (Makefile.am): Likewise.
63879         * modules/cloexec (Makefile.am): Likewise.
63880         * modules/close-stream (Makefile.am): Likewise.
63881         * modules/closeout (Makefile.am): Likewise.
63882         * modules/crc (Makefile.am): Likewise.
63883         * modules/cycle-check (Makefile.am): Likewise.
63884         * modules/des (Makefile.am): Likewise.
63885         * modules/dirfd (Makefile.am): Likewise.
63886         * modules/dirname (Makefile.am): Likewise.
63887         * modules/dup2 (Makefile.am): Likewise.
63888         * modules/euidaccess (Makefile.am): Likewise.
63889         * modules/exclude (Makefile.am): Likewise.
63890         * modules/exitfail (Makefile.am): Likewise.
63891         * modules/fcntl-safer (Makefile.am): Likewise.
63892         * modules/file-type (Makefile.am): Likewise.
63893         * modules/fileblocks (Makefile.am): Likewise.
63894         * modules/filemode (Makefile.am): Likewise.
63895         * modules/filenamecat (Makefile.am): Likewise.
63896         * modules/fnmatch (Makefile.am): Likewise.
63897         * modules/fopen-safer (Makefile.am): Likewise.
63898         * modules/fpending (Makefile.am): Likewise.
63899         * modules/fprintftime (Makefile.am): Likewise.
63900         * modules/free (Makefile.am): Likewise.
63901         * modules/fsusage (Makefile.am): Likewise.
63902         * modules/ftruncate (Makefile.am): Likewise.
63903         * modules/fts (Makefile.am): Likewise.
63904         * modules/gc (Makefile.am): Likewise.
63905         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63906         * modules/getaddrinfo (Makefile.am): Likewise.
63907         * modules/getcwd (Makefile.am): Likewise.
63908         * modules/getdelim (Makefile.am): Likewise.
63909         * modules/getdomainname (Makefile.am): Likewise.
63910         * modules/getgroups (Makefile.am): Likewise.
63911         * modules/gethostname (Makefile.am): Likewise.
63912         * modules/gethrxtime (Makefile.am): Likewise.
63913         * modules/getline (Makefile.am): Likewise.
63914         * modules/getloadavg (Makefile.am): Likewise.
63915         * modules/getlogin_r (Makefile.am): Likewise.
63916         * modules/getopt (Makefile.am): Likewise.
63917         * modules/getpass (Makefile.am): Likewise.
63918         * modules/getpass-gnu (Makefile.am): Likewise.
63919         * modules/getsubopt (Makefile.am): Likewise.
63920         * modules/gettime (Makefile.am): Likewise.
63921         * modules/gettimeofday (Makefile.am): Likewise.
63922         * modules/getugroups (Makefile.am): Likewise.
63923         * modules/getusershell (Makefile.am): Likewise.
63924         * modules/glob (Makefile.am): Likewise.
63925         * modules/group-member (Makefile.am): Likewise.
63926         * modules/hard-locale (Makefile.am): Likewise.
63927         * modules/hash (Makefile.am): Likewise.
63928         * modules/hmac-md5 (Makefile.am): Likewise.
63929         * modules/hmac-sha1 (Makefile.am): Likewise.
63930         * modules/human (Makefile.am): Likewise.
63931         * modules/idcache (Makefile.am): Likewise.
63932         * modules/imaxabs (Makefile.am): Likewise.
63933         * modules/imaxdiv (Makefile.am): Likewise.
63934         * modules/inet_ntop (Makefile.am): Likewise.
63935         * modules/inet_pton (Makefile.am): Likewise.
63936         * modules/inttostr (Makefile.am): Likewise.
63937         * modules/isapipe (Makefile.am): Likewise.
63938         * modules/lchown (Makefile.am): Likewise.
63939         * modules/long-options (Makefile.am): Likewise.
63940         * modules/lstat (Makefile.am): Likewise.
63941         * modules/malloc (Makefile.am): Likewise.
63942         * modules/mathl (Makefile.am): Likewise.
63943         * modules/mbchar (Makefile.am): Likewise.
63944         * modules/md2 (Makefile.am): Likewise.
63945         * modules/md4 (Makefile.am): Likewise.
63946         * modules/md5 (Makefile.am): Likewise.
63947         * modules/memcasecmp (Makefile.am): Likewise.
63948         * modules/memchr (Makefile.am): Likewise.
63949         * modules/memcmp (Makefile.am): Likewise.
63950         * modules/memcoll (Makefile.am): Likewise.
63951         * modules/memcpy (Makefile.am): Likewise.
63952         * modules/memmem (Makefile.am): Likewise.
63953         * modules/memmove (Makefile.am): Likewise.
63954         * modules/mempcpy (Makefile.am): Likewise.
63955         * modules/memrchr (Makefile.am): Likewise.
63956         * modules/memset (Makefile.am): Likewise.
63957         * modules/memxor (Makefile.am): Likewise.
63958         * modules/mkancesdirs (Makefile.am): Likewise.
63959         * modules/mkdir (Makefile.am): Likewise.
63960         * modules/mkdir-p (Makefile.am): Likewise.
63961         * modules/mkdtemp (Makefile.am): Likewise.
63962         * modules/mkstemp (Makefile.am): Likewise.
63963         * modules/mktime (Makefile.am): Likewise.
63964         * modules/modechange (Makefile.am): Likewise.
63965         * modules/mountlist (Makefile.am): Likewise.
63966         * modules/nanosleep (Makefile.am): Likewise.
63967         * modules/openat (Makefile.am): Likewise.
63968         * modules/pagealign_alloc (Makefile.am): Likewise.
63969         * modules/physmem (Makefile.am): Likewise.
63970         * modules/poll (Makefile.am): Likewise.
63971         * modules/posixtm (Makefile.am): Likewise.
63972         * modules/posixver (Makefile.am): Likewise.
63973         * modules/putenv (Makefile.am): Likewise.
63974         * modules/quote (Makefile.am): Likewise.
63975         * modules/quotearg (Makefile.am): Likewise.
63976         * modules/raise (Makefile.am): Likewise.
63977         * modules/read-file (Makefile.am): Likewise.
63978         * modules/readline (Makefile.am): Likewise.
63979         * modules/readlink (Makefile.am): Likewise.
63980         * modules/readtokens (Makefile.am): Likewise.
63981         * modules/readutmp (Makefile.am): Likewise.
63982         * modules/realloc (Makefile.am): Likewise.
63983         * modules/regex (Makefile.am): Likewise.
63984         * modules/rename (Makefile.am): Likewise.
63985         * modules/rename-dest-slash (Makefile.am): Likewise.
63986         * modules/rijndael (Makefile.am): Likewise.
63987         * modules/rmdir (Makefile.am): Likewise.
63988         * modules/rpmatch (Makefile.am): Likewise.
63989         * modules/safe-read (Makefile.am): Likewise.
63990         * modules/safe-write (Makefile.am): Likewise.
63991         * modules/same (Makefile.am): Likewise.
63992         * modules/save-cwd (Makefile.am): Likewise.
63993         * modules/savedir (Makefile.am): Likewise.
63994         * modules/setenv (Makefile.am): Likewise.
63995         * modules/settime (Makefile.am): Likewise.
63996         * modules/sha1 (Makefile.am): Likewise.
63997         * modules/sig2str (Makefile.am): Likewise.
63998         * modules/snprintf (Makefile.am): Likewise.
63999         * modules/stdlib-safer (Makefile.am): Likewise.
64000         * modules/stpcpy (Makefile.am): Likewise.
64001         * modules/stpncpy (Makefile.am): Likewise.
64002         * modules/strcase (Makefile.am): Likewise.
64003         * modules/strcasestr (Makefile.am): Likewise.
64004         * modules/strchrnul (Makefile.am): Likewise.
64005         * modules/strcspn (Makefile.am): Likewise.
64006         * modules/strdup (Makefile.am): Likewise.
64007         * modules/strerror (Makefile.am): Likewise.
64008         * modules/strftime (Makefile.am): Likewise.
64009         * modules/strndup (Makefile.am): Likewise.
64010         * modules/strnlen (Makefile.am): Likewise.
64011         * modules/strpbrk (Makefile.am): Likewise.
64012         * modules/strsep (Makefile.am): Likewise.
64013         * modules/strstr (Makefile.am): Likewise.
64014         * modules/strtod (Makefile.am): Likewise.
64015         * modules/strtoimax (Makefile.am): Likewise.
64016         * modules/strtok_r (Makefile.am): Likewise.
64017         * modules/strtol (Makefile.am): Likewise.
64018         * modules/strtoll (Makefile.am): Likewise.
64019         * modules/strtoul (Makefile.am): Likewise.
64020         * modules/strtoull (Makefile.am): Likewise.
64021         * modules/strtoumax (Makefile.am): Likewise.
64022         * modules/strverscmp (Makefile.am): Likewise.
64023         * modules/time_r (Makefile.am): Likewise.
64024         * modules/timegm (Makefile.am): Likewise.
64025         * modules/tmpfile-safer (Makefile.am): Likewise.
64026         * modules/unistd-safer (Makefile.am): Likewise.
64027         * modules/unlinkdir (Makefile.am): Likewise.
64028         * modules/userspec (Makefile.am): Likewise.
64029         * modules/utime (Makefile.am): Likewise.
64030         * modules/utimecmp (Makefile.am): Likewise.
64031         * modules/utimens (Makefile.am): Likewise.
64032         * modules/vasnprintf (Makefile.am): Likewise.
64033         * modules/vasprintf (Makefile.am): Likewise.
64034         * modules/vsnprintf (Makefile.am): Likewise.
64035         * modules/xalloc (Makefile.am): Likewise.
64036         * modules/xgetcwd (Makefile.am): Likewise.
64037         * modules/xnanosleep (Makefile.am): Likewise.
64038         * modules/xreadlink (Makefile.am): Likewise.
64039         * modules/xstrtod (Makefile.am): Likewise.
64040         * modules/xstrtol (Makefile.am): Likewise.
64041         * modules/xstrtold (Makefile.am): Likewise.
64042         * modules/yesno (Makefile.am): Likewise.
64043
64044 2006-10-12  Jim Meyering  <jim@meyering.net>
64045
64046         * m4/getloadavg.m4: Revert the change below.
64047
64048         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
64049         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
64050         fail with a symlink, which is what coreutils' ./bootstrap now
64051         creates by default.
64052
64053 2006-10-12  Bruno Haible  <bruno@clisp.org>
64054
64055         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
64056         mingw.
64057         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
64058         MSVC and mingw explicitly.
64059
64060 2006-10-11  Simon Josefsson  <jas@extundo.com>
64061             Bruno Haible  <bruno@clisp.org>
64062
64063         Add support for multiple gnulib-tool invocations in the scope of a
64064         single configure.ac file.
64065         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
64066         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
64067         with the same contents as the _LIBADD variable.
64068         (func_emit_initmacro_start, func_emit_initmacro_end,
64069         func_emit_initmacro_done): New functions.
64070         (func_import, func_create_testdir): Invoke them. Allow the identifiers
64071         gl_LIBOBJS and gl_LTLIBOBJS.
64072
64073 2006-10-11  Bruno Haible  <bruno@clisp.org>
64074
64075         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
64076         (func_create_testdir): Don't create po/Makefile.am, don't invoke
64077         autoreconf. Instead, invoke autopoint explicitly but move back the
64078         *.m4 files from gnulib.
64079
64080 2006-10-11  Bruno Haible  <bruno@clisp.org>
64081
64082         * gnulib-tool (func_usage): Make module names after --create-testdir
64083         optional.
64084         (func_create_testdir): If no module was specified, use nearly all
64085         modules.
64086
64087 2006-10-12  Jim Meyering  <jim@meyering.net>
64088
64089         Big performance improvement for fts-based tools that use FTS_NOSTAT.
64090         Avoid spurious inode-mismatch problems on non-POSIX file systems.
64091         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
64092         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
64093         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
64094         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
64095         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
64096         (fts_set_stat_required): New function.
64097         (fts_open): Defer the calls to fts_stat, if possible or requested.
64098         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
64099         into fts_stat itself.
64100         (fts_read): Perform any required (deferred) fts_stat call.
64101         (fts_build): Likewise, for the directory we're about to open and read.
64102         In the readdir loop, carefully decide whether each entry will require
64103         an eventual call to fts_stat, using dirent.d_type info if available.
64104         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
64105         a command line argument into this function.  Update all callers.
64106         Map a return value of FTS_DOT to FTS_D for a command line argument.
64107         * modules/fts (Depends-on): Add d-type.  Alphabetize.
64108         Thanks to Miklos Szeredi for his tenacity and for the initial
64109         bug report about "find" failing on a FUSE-based file system.
64110
64111         * lib/fts.c (fts_open): Use consistent indentation.
64112
64113 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64114
64115         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
64116         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
64117         reported by Jim Meyering.  All uses of cache variables renamed
64118         to match Autoconf's.
64119         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
64120         the other one.
64121
64122         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
64123         Fix misspelling in diagnostic.
64124
64125 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64126
64127         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
64128         defined.  Problem reported by Matthew Woehlke.
64129
64130         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
64131         Add support for Tandem NonStop R series.
64132         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
64133         Use new macro.
64134
64135         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
64136         (has_trailing_slash): Omit size arg; all callers changed.
64137         Omit 'inline', since it doesn't help performance and we'd
64138         need to configure it.
64139         Don't count //, ///, etc. as having a trailing slash.
64140         As a side effect, this removes a C99ism reported by Matthew Woehlke.
64141         (rpl_rename_dest_slash): On failure, use rename's errno rather
64142         than (in some cases) an incorrect or junk errno.
64143         Simplify code by removing need to compute length; this does
64144         cause it to make two passes instead of one over the file name,
64145         but it's worth it.
64146
64147         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
64148         change, since Autoconf's version may no longer be appropriate now
64149         that we are using CVS Autoconf's version.  Add support for Tandem.
64150
64151 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64152             Bruno Haible  <bruno@clisp.org>
64153
64154         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
64155         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
64156         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
64157         gl_AC_TYPE_LONG_LONG.
64158
64159         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
64160         instead of HAVE_LONG_LONG.
64161         * lib/printf-args.c (printf_fetchargs): Likewise.
64162         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
64163         * lib/vasnprintf.c (VASNPRINTF): Likewise.
64164         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
64165         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
64166         gl_AC_TYPE_LONG_LONG.
64167
64168 2006-10-11  Bruno Haible  <bruno@clisp.org>
64169
64170         * m4/longlong.m4: Add comments.
64171         * m4/ulonglong.m4: Likewise.
64172
64173 2006-10-10  Bruno Haible  <bruno@clisp.org>
64174
64175         Make it possible to #define stpcpy, strdup to aliases.
64176         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
64177         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
64178
64179 2006-10-10  Bruno Haible  <bruno@clisp.org>
64180
64181         Make it possible to #define gcd to an alias.
64182         * lib/gcd.c: Include config.h.
64183
64184 2006-10-10  Bruno Haible  <bruno@clisp.org>
64185
64186         Make it possible to #define c_isascii to an alias.
64187         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
64188         defined. Undefine the macros before defining them, to avoid gcc
64189         warnings.
64190         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
64191         define NO_C_CTYPE_MACROS early.
64192
64193 2006-10-10  Bruno Haible  <bruno@clisp.org>
64194
64195         Make it possible to #define set_program_name to an alias.
64196         * lib/progname.c: Don't undefine set_program_name; instead, undefine
64197         ENABLE_RELOCATABLE early.
64198
64199 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64200
64201         Port to Tandem NSK OSS, which has 64-bit signed int but at most
64202         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
64203         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
64204         More generally, don't assume that 64-bit signed int is available
64205         if unsigned int is, and vice versa.
64206         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
64207         unsigned symbols, not on their signed counterparts.
64208         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
64209         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
64210         (UINT64_C, UINTMAX_C):
64211         Likewise.
64212         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
64213         unsigned counterparts.
64214         (Have_long_long, Unsigned): New macros.
64215         (Int): Renamed from INT.
64216         (strtoimax): Use the new macros.
64217         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
64218         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
64219         * modules/inttypes (inttypes.h): Substitute
64220         HAVE_UNSIGNED_LONG_LONG_INT.
64221         * modules/stdint (stdint.h): Likewise.
64222         (Files): Add m4/ulonglong.m4.
64223
64224 2006-10-10  Bruno Haible  <bruno@clisp.org>
64225
64226         Fix a gcc -Wshadow warning.
64227         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
64228         to 'bucket'.
64229         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
64230         gl_linked_indexof_from_to): Likewise.
64231         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
64232         Likewise.
64233         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
64234         Likewise.
64235         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
64236         Reported by Eric Blake.
64237
64238 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
64239
64240         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
64241         for NetBSD.  Problem reported by Bruno Haible.
64242
64243 2006-10-09  Jim Meyering  <jim@meyering.net>
64244
64245         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
64246         Patch from Bruno Haible.
64247
64248 2006-10-09  Jim Meyering  <jim@meyering.net>
64249
64250         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
64251         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
64252         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
64253
64254 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64255
64256         Don't include <config.h> twice; this doesn't work in some cases,
64257         e.g., when config.h has "#define intmax_t long long int" and
64258         we include <config.h>, <inttypes.h>, <config.h> in that order.
64259         Problem reported by Matthew Woehlke in:
64260         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
64261         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
64262         * lib/fts-cycle.c: Don't include config.h.
64263         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
64264         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
64265         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
64266         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
64267         inttypes.h.
64268         * lib/xstrtoumax.c: Likewise.
64269         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
64270         __strtol and the like, so that this module is more like its siblings.
64271         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
64272         Remove; no longer needed now that we assume gnulib inttypes.h.
64273
64274 2006-10-08  Bruno Haible  <bruno@clisp.org>
64275
64276         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
64277         option.
64278
64279 2006-10-07  Jim Meyering  <jim@meyering.net>
64280
64281         * modules/inttypes (inttypes.h): Revert what seems to have been
64282         an inadvertent part of today's change: use "|", not "/" in the
64283         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
64284
64285 2006-10-07  Bruno Haible  <bruno@clisp.org>
64286
64287         * modules/sublist: New file.
64288
64289 2006-10-07  Bruno Haible  <bruno@clisp.org>
64290
64291         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
64292         * modules/argz (argz.h): Likewise.
64293         * modules/arpa_inet (arpa/inet.h): Likewise.
64294         * modules/byteswap (byteswap.h): Likewise.
64295         * modules/configmake (configmake.h): Likewise.
64296         * modules/fcntl (fcntl.h): Likewise.
64297         * modules/fnmatch (fnmatch.h): Likewise.
64298         * modules/getopt (getopt.h): Likewise.
64299         * modules/glob (glob.h): Likewise.
64300         * modules/inttypes (inttypes.h): Likewise.
64301         * modules/netinet_in (netinet/in.h): Likewise.
64302         * modules/poll (poll.h): Likewise.
64303         * modules/stdbool (stdbool.h): Likewise.
64304         * modules/stdint (stdint.h): Likewise.
64305         * modules/sys_select (sys/select.h): Likewise.
64306         * modules/sys_socket (sys/socket.h): Likewise.
64307         * modules/sys_stat (sys/stat.h): Likewise.
64308         * modules/sysexits (sysexits.h): Likewise.
64309         * modules/unistd (unistd.h): Likewise.
64310         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64311         Add a "DO NOT EDIT" comment to the generated file.
64312         (func_import): Likewise for gnulib-comp.m4.
64313
64314 2006-10-07  Bruno Haible  <bruno@clisp.org>
64315
64316         * lib/gl_sublist.h: New file.
64317         * lib/gl_sublist.c: New file.
64318
64319 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64320
64321         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
64322         name (relative to the original working directory) and the file
64323         name component (relative to the temporary working directory).  All
64324         callers changed.
64325         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
64326         * lib/mkdir-p.c (make_dir_parents): Likewise.
64327         * lib/mkdir-p.h (make_dir_parents): Likewise.
64328
64329 2006-10-06  Eric Blake  <ebb9@byu.net>
64330
64331         Define several macros for use by the clean-temp module.
64332         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
64333         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
64334         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
64335
64336         * lib/clean-temp.h (close_stream_temp): New declaration.
64337         * lib/clean-temp.c (includes): Pull in headers according to what
64338         other modules are in use.
64339         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
64340
64341 2006-10-06  Bruno Haible  <bruno@clisp.org>
64342
64343         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
64344         instead of fopen, fwriteerror.
64345
64346 2006-10-06  Bruno Haible  <bruno@clisp.org>
64347
64348         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
64349         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
64350         int.
64351         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
64352         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
64353         Return an error indicator.
64354         Suggested by Eric Blake.
64355
64356 2006-10-06  Bruno Haible  <bruno@clisp.org>
64357
64358         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
64359         Reported by Eric Blake.
64360
64361 2006-10-06  Bruno Haible  <bruno@clisp.org>
64362
64363         * modules/closeout (Description): Mention stderr too.
64364
64365 2006-10-06  Bruno Haible  <bruno@clisp.org>
64366         and Paul Eggert  <eggert@cs.ucla.edu>
64367
64368         * lib/closeout.c (close_stdout): Also close stderr.
64369         * lib/closeout.h: Update comment.
64370
64371 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64372
64373         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
64374         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
64375         * lib/dirchownmod.c: Include lchown.h.
64376         * lib/lchown.c: Don't include files that lchown.h now includes.
64377         Don't declare chown, since lchown.h now does that.
64378         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
64379         (lchown): Define to rpl_chown if lchown is declared but
64380         does not exist.  Declare using a prototype if lchown is not
64381         declared.  Add a copyright notice.
64382         * lib/mkstemp.h: Include <unistd.h>.
64383         * lib/openat.c: Include lchown.h.
64384
64385         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
64386         we now test for that separately.
64387         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
64388         rather than O_NOFOLLOW, when testing whether it's possible to
64389         avoid a race condition reliably.
64390         * lib/savewd.c (savewd_chdir): Likewise.
64391
64392         Remove macros that are no longer needed now that stdint.h is
64393         reliable.
64394         * lib/fsusage.c (UINTMAX_MAX): Remove.
64395         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
64396         * lib/utimecmp.c (SIZE_MAX): Remove.
64397
64398         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
64399
64400         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
64401         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
64402         O_NOATIME works.
64403
64404 2006-10-05  Bruno Haible  <bruno@clisp.org>
64405
64406         * lib/gl_list.h (gl_sortedlist_search_from_to,
64407         gl_sortedlist_indexof_from_to): New declarations.
64408         (gl_list_implementation): New fields sortedlist_search_from_to,
64409         sortedlist_indexof_from_to.
64410         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
64411         inline functions.
64412         * lib/gl_list.c (gl_sortedlist_search_from_to,
64413         gl_sortedlist_indexof_from_to): New functions.
64414         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
64415         function.
64416         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
64417         (gl_array_sortedlist_search_from_to): New function.
64418         (gl_array_list_implementation): Update.
64419         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
64420         function.
64421         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
64422         (gl_carray_sortedlist_search_from_to): New function.
64423         (gl_carray_list_implementation): Update.
64424         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
64425         gl_linked_sortedlist_indexof_from_to): New functions.
64426         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64427         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64428         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
64429         gl_tree_sortedlist_indexof_from_to): New functions.
64430         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64431         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64432         Update.
64433         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64434         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
64435         Update.
64436
64437 2006-10-05  Bruno Haible  <bruno@clisp.org>
64438
64439         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
64440         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
64441         (struct gl_list_implementation): Add fields search_from_to,
64442         indexof_from_to. Remove fields search, indexof.
64443         (gl_list_search): Use the search_from_to method.
64444         (gl_list_search_from, gl_list_search_from_to): New functions.
64445         (gl_list_indexof): Use the indexof_from_to method.
64446         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64447         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
64448         (gl_list_search_from, gl_list_search_from_to): New functions.
64449         (gl_list_indexof): Use the indexof_from_to method.
64450         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64451         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
64452         gl_array_indexof. Add start_index, end_index arguments.
64453         (gl_array_search_from_to): Renamed from gl_array_search. Add
64454         start_index, end_index arguments.
64455         (gl_array_remove, gl_array_list_implementation): Update.
64456         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
64457         gl_carray_indexof. Add start_index, end_index arguments.
64458         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
64459         start_index, end_index arguments.
64460         (gl_carray_remove, gl_carray_list_implementation): Update.
64461         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
64462         gl_linked_search. Add start_index, end_index arguments.
64463         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
64464         start_index, end_index arguments.
64465         (gl_linked_remove): Update.
64466         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64467         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64468         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
64469         field to 'size_t'.
64470         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
64471         gl_tree_search. Add start_index, end_index arguments.
64472         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64473         start_index, end_index arguments.
64474         (gl_tree_remove): Update.
64475         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64476         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64477         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
64478         function.
64479         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
64480         gl_tree_search. Add start_index, end_index arguments.
64481         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64482         start_index, end_index arguments.
64483         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64484         Update.
64485         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
64486
64487 2006-10-05  Bruno Haible  <bruno@clisp.org>
64488
64489         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
64490
64491         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
64492         fwriteerror_temp): New declarations.
64493         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
64494         (descriptors): New variable.
64495         (cleanup): First, close the descriptors.
64496         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
64497         fclose_temp, fwriteerror_temp): New functions.
64498
64499 2006-10-04  Jim Meyering  <jim@meyering.net>
64500
64501         * lib/fts.c (fts_open): Tiny comment change.
64502
64503 2006-10-04  Bruno Haible  <bruno@clisp.org>
64504
64505         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
64506         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
64507         gl_LOCK_BODY.
64508         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
64509         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
64510         gl_LOCK_EARLY_BODY.
64511         (gl_LOCK): Require gl_LOCK_BODY.
64512
64513 2006-10-04  Bruno Haible  <bruno@clisp.org>
64514
64515         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
64516         (gl_oset_search_atleast): New declaration.
64517         (struct gl_oset_implementation): Add field 'search_atleast'.
64518         (gl_oset_search_atleast): New inline function.
64519         * lib/gl_oset.c (gl_oset_search_atleast): New function.
64520         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
64521         (gl_array_oset_implementation): Update.
64522         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
64523         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
64524         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
64525
64526 2006-10-04  Bruno Haible  <bruno@clisp.org>
64527
64528         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
64529
64530 2006-10-03  Bruno Haible  <bruno@clisp.org>
64531
64532         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
64533         from gl_avltreehash_list_implementation.
64534
64535 2006-10-03  Bruno Haible  <bruno@clisp.org>
64536
64537         * lib/gl_oset.c (gl_oset_add): Fix return type.
64538
64539 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
64540
64541         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
64542
64543 2006-10-02  Eric Blake  <ebb9@byu.net>
64544
64545         * modules/strnlen (Depends-on): Add extensions.
64546
64547 2006-10-02  Eric Blake  <ebb9@byu.net>
64548
64549         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
64550         definition in 2.60+.
64551
64552 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
64553
64554         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
64555         checks.
64556
64557 2006-10-02  Bruno Haible  <bruno@clisp.org>
64558
64559         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
64560         to the AUTOMAKE_OPTIONS.
64561         Reported by Jim Meyering.
64562
64563 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64564
64565         Work around bug in Solaris 10 /proc file system:
64566         /proc/self/fd/NNN/.. isn't the parent directory of
64567         the directory whose file descriptor is NNN.  This needs to
64568         be worked around at run time, not compile time, since a
64569         program might be built on Solaris 8, where things work, and
64570         run on Solaris 10.
64571         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
64572         to use the following interface instead:
64573         (OPENAT_BUFFER_SIZE): New macro.
64574         (openat_proc_name): New function.
64575         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
64576         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
64577         Likewise.
64578         * lib/openat-proc.c: New file.
64579         * modules/openat (Files): Add lib/openat-proc.c.
64580         (Depends-on): Add same-inode, stdbool.
64581         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
64582
64583 2006-09-29  Bruno Haible  <bruno@clisp.org>
64584
64585         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
64586         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
64587         argument. Set stdout_closed before testing for ferror, not after.
64588         (fwriteerror, fwriteerror_no_ebadf): New functions.
64589
64590 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64591
64592         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
64593
64594 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
64595
64596         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
64597         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
64598
64599 2006-09-28  Jim Meyering  <jim@meyering.net>
64600
64601         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
64602         Include <unistd.h>.
64603
64604 2006-09-28  Bruno Haible  <bruno@clisp.org>
64605
64606         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
64607         * modules/linkedhash-list (Depends-on): Likewise.
64608         * modules/rbtreehash-list (Depends-on): Likewise.
64609
64610 2006-09-28  Bruno Haible  <bruno@clisp.org>
64611
64612         * lib/strndup.h: Simplify the redefinition of strndup.
64613         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
64614         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
64615
64616 2006-09-28  Bruno Haible  <bruno@clisp.org>
64617
64618         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
64619         * lib/gl_linkedhash_list.c: Likewise.
64620         * lib/gl_rbtreehash_list.c: Likewise.
64621
64622 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64623
64624         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
64625         getaddrinfo.
64626
64627         * lib/__fpending.h: Don't include <stdio_ext.h> unless
64628         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
64629         it causes <stdio_ext.h> to cause a compile-time error.
64630         Problem reported by Nelson H. F. Beebe.
64631         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
64632         of HAVE_DECL___PENDING.
64633
64634         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
64635         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
64636         declaration.
64637
64638 2006-09-27  Jim Meyering  <jim@meyering.net>
64639
64640         This file could end up with a definition for a function
64641         named __strndup, rather than rpl_strndup on a system with
64642         incomplete weak_alias support.
64643         * lib/strndup.c (strndup): Rename from __strndup.
64644         Remove #defines that used to map __strndup to strndup.
64645         Don't use K&R prototypes.
64646         Remove LIBC-related code, since this file is not sync'd with glibc.
64647         * lib/strndup.h: Revamp, accordingly.
64648         * m4/strndup.m4: Modernize.
64649
64650 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64651
64652         * modules/savewd (Depends-on): Add 'raise'.
64653         * lib/savewd.c: Include <signal.h>, for 'raise'.
64654
64655 2006-09-26  Jim Meyering  <jim@meyering.net>
64656
64657         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
64658         when we detect Darwin 8.7.0's acl_get_file bug.
64659         Rearrange to perform the new (below) run-test while $LIBS
64660         contains any acl-related library.  Set USE_ACL at the end.
64661         (gl_ACL_GET_FILE): New function.
64662
64663 2006-09-26  Eric Blake  <ebb9@byu.net>
64664
64665         * lib/verror.c: Include <config.h> unconditionally.
64666
64667 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
64668
64669         * modules/clock-time (Maintainer): Add self.
64670         * modules/getlogin_r (Depends-on): Add extensions.
64671
64672 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64673
64674         * modules/clock-time: New module.
64675         * modules/nanosleep (Depends-on): Add clock-time.
64676         * modules/gethrxtime (Depends-on): Likewise.
64677         * modules/gettime (Depends-on): Likewise.
64678         * modules/settime (Depends-on): Likewise.
64679
64680         * modules/fts-lgpl: Depend on openat.
64681         * modules/mkancesdirs: Depend on savewd.
64682         * modules/mkdir-p: Likewise.
64683
64684 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64685
64686         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
64687
64688         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
64689         `gl_have_arbitrary_file_name_length_limit' to
64690         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
64691         actually works between configure runs.
64692
64693 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64694             Bruno Haible  <bruno@clisp.org>
64695
64696         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
64697
64698 2006-09-25  Jim Meyering  <jim@meyering.net>
64699
64700         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
64701         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
64702
64703 2006-09-25  Eric Blake  <ebb9@byu.net>
64704
64705         * gnulib-tool (func_import, func_create_testdir): Fix typos in
64706         exec's in 2006-09-18 patch when shuffling fds.
64707
64708 2006-09-25  Bruno Haible  <bruno@clisp.org>
64709
64710         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
64711         Reported by Jim Meyering.
64712
64713 2006-09-24  Jim Meyering  <jim@meyering.net>
64714
64715         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
64716         compare a pointer against a literal "0".  That caused failures with
64717         at least HP-UX's hpcc.
64718
64719 2006-09-22  Simon Josefsson  <jas@extundo.com>
64720
64721         * modules/gc-sha1:
64722         * modules/gc-md4:
64723         * modules/gc-hmac-sha1:
64724         * modules/gc-hmac-md5:
64725         * modules/gc-des:
64726         * modules/gc-arcfour: Distribute more files.
64727
64728 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64729
64730         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
64731         (gl_linked_iterator_from_to): Initialize struct completely.
64732         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
64733         (gl_tree_iterator_from_to): Likewise
64734         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
64735         * lib/gl_array_list.c [lint] (gl_array_iterator)
64736         (gl_array_iterator_from_to): Likewise.
64737         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
64738         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
64739         (gl_carray_iterator_from_to): Likewise.
64740
64741         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
64742         * lib/md4.c (md4_process_block): Remove unused variable.
64743         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
64744         parentheses for clarity.
64745
64746 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64747
64748         * modules/bison-i18n (Depends-on): Add gettext.
64749
64750 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64751
64752         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
64753         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64754         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
64755         also add missing comma that caused broken test.
64756         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
64757         stdlib.h, for `abort'.
64758         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
64759         variables.
64760         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
64761         include unistd.h if present, for `rmdir'.
64762         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
64763         variables.
64764         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
64765         in the process include standard headers for prototypes.
64766         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
64767         gets declared on GNU/Linux.
64768         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
64769         unistd.h, for `rmdir'.
64770         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
64771
64772         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
64773         always true.
64774         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
64775
64776         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
64777
64778 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64779
64780         * gnulib-tool (func_version): Create output all at once.  This
64781         may help avoid triggering unnecessary SIGPIPEs, and at any
64782         rate it doesn't hurt.
64783
64784 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64785             Bruno Haible  <bruno@clisp.org>
64786
64787         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
64788         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64789         * m4/signed.m4 (bh_C_SIGNED): Likewise.
64790
64791         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
64792         (gl_FUNC_VASPRINTF): Invoke it.
64793
64794 2006-09-22  Bruno Haible  <bruno@clisp.org>
64795
64796         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
64797         getloadavg.c as first argument.
64798
64799 2006-09-22  Bruno Haible  <bruno@clisp.org>
64800
64801         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
64802         at the beginning of the gl_INIT macro.
64803         * modules/getloadavg (configure.ac): Pass $gl_source_base to
64804         gl_GETLOADAVG.
64805
64806 2006-09-22  Bruno Haible  <bruno@clisp.org>
64807
64808         * gnulib-tool (func_create_megatestdir): Don't include the config-h
64809         module.
64810         Suggested by Ralf Wildenhues.
64811
64812 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64813
64814         Import this patch from libc:
64815
64816         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
64817
64818         * lib/regex_internal.c (re_string_reconstruct): Handle
64819         offset < pstr->valid_raw_len && pstr->offsets_needed case.
64820         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
64821         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
64822         re_string_context_at.
64823
64824         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
64825         now requires it.
64826         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
64827         gl_REGEX now does it for us.
64828         (gl_REGEX): Add test taken from
64829         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
64830
64831         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
64832         Check that large offsets work.  Modernize Autoconf usages.
64833         Prefer "yes" to mean a good thing rather than a bad.
64834         Don't put "#define mkstemp" in config.h, as this might interfere
64835         with standard system headers that "#define mkstemp mkstemp64".
64836
64837         * modules/mkstemp (Depends-on): Add extensions, so that
64838         mkstemp is visible on some platforms.
64839         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
64840         (Include): Change to "mkstemp.h" from <stdlib.h>.
64841         (Files): Add mkstemp.h.
64842
64843         * lib/mkstemp.h: New file, since some standard headers
64844         #define mkstemp.
64845         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
64846         Include "mkstemp.h".
64847         Make the _LIBC code resemble glibc original more,
64848         e.g., use K&R style.
64849         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
64850         (mkstemp): Remove, since mkstemp.h does this for us.
64851         * lib/stdlib--.h: Include mkstemp.h.
64852
64853         Import this patch from libc:
64854
64855         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64856
64857         * lib/tempname.c (__gen_tempname): Change attempts_min
64858         into a macro.  Use preprocessor to decide how to initialize
64859         attempts [Coverity CID 67].
64860
64861 2006-09-20  Bruno Haible  <bruno@clisp.org>
64862
64863         * lib/mkdtemp.c: Import from libc.
64864         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64865                 * sysdeps/posix/tempname.c (__gen_tempname): Change
64866                 attempts_min into a macro.  Use preprocessor to decide how to
64867                 initialize attempts [Coverity CID 67].
64868         2001-11-27  Paul Eggert  <eggert@twinsun.com>
64869                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
64870                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
64871
64872 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64873
64874         * gnulib-tool (func_exit): New function, to allow to pass the
64875         exit status portably through the trap.  Use everywhere.
64876         (--help, --version): Signal a write error.
64877         (trap): catch SIGPIPE, for write errors.
64878         Exit at the end of the trap, with the correct exit status.
64879
64880 2006-09-19  Karl Berry  <karl@gnu.org>
64881
64882         * doc/gnulib.texi: note about the license texinfo files.
64883
64884 2006-09-19  Eric Blake  <ebb9@byu.net>
64885
64886         * gnulib-tool: Avoid space-tab.
64887
64888 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64889
64890         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
64891         that prevented coreutils 6.1 from building.  Problem reported
64892         by Petter Reinholdtsen.
64893
64894 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64895
64896         * gnulib-tool (avoidlist): Fix typo that broke options like
64897         --avoid=lock that are used by coreutils bootstrap.
64898
64899 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
64900
64901         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
64902         more systematically.
64903
64904 2006-09-18  Jim Meyering  <jim@meyering.net>
64905
64906         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
64907
64908 2006-09-18  Bruno Haible  <bruno@clisp.org>
64909
64910         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
64911
64912 2006-09-18  Bruno Haible  <bruno@clisp.org>
64913
64914         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
64915         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
64916         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
64917         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
64918         * m4/gettext.m4: Require autoconf >= 2.52.
64919         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
64920         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
64921         of gl_cv_header_inttypes_h.
64922
64923 2006-09-18  Bruno Haible  <bruno@clisp.org>
64924
64925         * lib/javaversion.c: Include configmake.h.
64926
64927 2006-09-18  Bruno Haible  <bruno@clisp.org>
64928
64929         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
64930         avoid that the while loops be executed in a subshell.
64931
64932 2006-09-18  Bruno Haible  <bruno@clisp.org>
64933
64934         * MODULES.html.sh (func_module): Break long lines.
64935         Suggested by Bruce Korb <bkorb@gnu.org>.
64936
64937 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64938
64939         Speed up by a factor of 1.12.
64940         * gnulib-tool (nl): New variable.
64941         (func_import): Rewrite include directive extraction to only read each
64942         directive once.
64943
64944 2006-09-17  Bruno Haible  <bruno@clisp.org>
64945
64946         * modules/javaversion (Makefile.am): Remove DEFS setting.
64947         (Depends-on): Add configmake, for PKGDATADIR definition.
64948
64949 2006-09-17  Bruno Haible  <bruno@clisp.org>
64950
64951         * gnulib-tool (func_create_testdir): Rewrite all files at once.
64952
64953 2006-09-17  Bruno Haible  <bruno@clisp.org>
64954
64955         * gnulib-tool (func_append): New function, stolen from libtool.m4.
64956         (func_modules_transitive_closure, func_modules_add_dummy,
64957         func_modules_to_filelist, func_import, func_create_testdir,
64958         func_create_megatestdir, ...): Use it wherever possible.
64959         Suggested by Ralf Wildenhues.
64960
64961 2006-09-16  Karl Berry  <karl@gnu.org>
64962
64963         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
64964         to avoid sectioning errors.
64965         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
64966         [ifinfo]: blank line after @center-ed titles.
64967         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
64968         Spell FSF address consistently with others.
64969         (These changes approved by rms.)
64970
64971 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64972
64973         Speed up by a factor of 1.61.
64974         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64975         already checked module names again.
64976
64977 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64978
64979         Speed up by a factor of 1.13.
64980         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64981         for new_files, and the input to func_add_or_update.
64982
64983 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64984
64985         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64986         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64987
64988 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64989
64990         * modules/mkancesdirs (Depends-on): Add fcntl.
64991         * modules/savewd: New file.
64992         * MODULES.html.sh (File system functions): Add savewd.
64993
64994         * modules/configmake (Makefile.am): Add support for the
64995         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64996
64997 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64998
64999         * m4/savewd.m4: New file.
65000
65001 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65002
65003         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
65004         (dirchownmod): New arg FD.  All callers changed.
65005         Use FD rather than opening the directory ourself, as opening is
65006         now the caller's responsibility.
65007         * lib/dirchownmod.h: Likewise.
65008         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
65009         hosts that require <sys/types.h> before <sys/stat.h>.  Include
65010         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
65011         (test_dir): Remove.
65012         (mkancesdirs): Return length of prefix of FILE that has already
65013         been made, or -2 if there is a child doing the work.  Redo
65014         algorithm so that it is O(N) rather than O(N**2).  Optimize away
65015         ".", and treat ".." specially since it might stray back into
65016         already-created areas.  Use a subprocess if necessary.  New arg
65017         WD; all users changed.  MAKE_DIR function should now return 1
65018         if it creates a directory that is not readable.  Return -2 if
65019         a child process is spun off.
65020         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
65021         Adjust signature to match code.
65022         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
65023         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
65024         all users changed.
65025         * lib/savewd.c, lib/savewd.h: New files.
65026
65027 2006-09-15  Jim Meyering  <jim@meyering.net>
65028
65029         * modules/rename-dest-slash: New module.
65030         * MODULES.html.sh (posix_compat): Add it here.
65031
65032         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
65033
65034 2006-09-15  Jim Meyering  <jim@meyering.net>
65035
65036         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
65037         file.
65038
65039         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
65040
65041 2006-09-15  Jim Meyering  <jim@meyering.net>
65042
65043         * lib/rename-dest-slash.c (has_trailing_slash): Use
65044         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
65045         (rpl_rename_dest_slash): Perform the cheaper trailing slash
65046         test before testing whether SRC is a directory.
65047         Suggestions from Bruno Haible.
65048
65049         Avoid a warning about an unused variable.
65050         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
65051         into the #ifdef block where it's used.
65052
65053         * lib/rename-dest-slash.c: New file.
65054
65055 2006-09-14  Bruno Haible  <bruno@clisp.org>
65056
65057         * lib/allocsa.c: Include <config.h> unconditionally.
65058         * lib/asnprintf.c: Likewise.
65059         * lib/asprintf.c: Likewise.
65060         * lib/c-strcasecmp.c: Likewise.
65061         * lib/c-strcasestr.c: Likewise.
65062         * lib/c-strncasecmp.c: Likewise.
65063         * lib/c-strstr.c: Likewise.
65064         * lib/classpath.c: Likewise.
65065         * lib/clean-temp.c: Likewise.
65066         * lib/concatpath.c: Likewise.
65067         * lib/copy-file.c: Likewise.
65068         * lib/csharpcomp.c: Likewise.
65069         * lib/csharpexec.c: Likewise.
65070         * lib/execute.c: Likewise.
65071         * lib/fatal-signal.c: Likewise.
65072         * lib/findprog.c: Likewise.
65073         * lib/fwriteerror.c: Likewise.
65074         * lib/gl_array_list.c: Likewise.
65075         * lib/gl_array_oset.c: Likewise.
65076         * lib/gl_avltree_list.c: Likewise.
65077         * lib/gl_avltree_oset.c: Likewise.
65078         * lib/gl_avltreehash_list.c: Likewise.
65079         * lib/gl_carray_list.c: Likewise.
65080         * lib/gl_linked_list.c: Likewise.
65081         * lib/gl_linkedhash_list.c: Likewise.
65082         * lib/gl_list.c: Likewise.
65083         * lib/gl_oset.c: Likewise.
65084         * lib/gl_rbtree_list.c: Likewise.
65085         * lib/gl_rbtree_oset.c: Likewise.
65086         * lib/gl_rbtreehash_list.c: Likewise.
65087         * lib/imaxabs.c: Likewise.
65088         * lib/imaxdiv.c: Likewise.
65089         * lib/javacomp.c: Likewise.
65090         * lib/javaexec.c: Likewise.
65091         * lib/javaversion.c: Likewise.
65092         * lib/linebreak.c: Likewise.
65093         * lib/localcharset.c: Likewise.
65094         * lib/lock.c: Likewise.
65095         * lib/mbchar.c: Likewise.
65096         * lib/mbswidth.c: Likewise.
65097         * lib/mkdtemp.c: Likewise.
65098         * lib/pipe.c: Likewise.
65099         * lib/printf-args.c: Likewise.
65100         * lib/printf-parse.c: Likewise.
65101         * lib/progname.c: Likewise.
65102         * lib/progreloc.c: Likewise.
65103         * lib/readlink.c: Likewise.
65104         * lib/sh-quote.c: Likewise.
65105         * lib/stpcpy.c: Likewise.
65106         * lib/stpncpy.c: Likewise.
65107         * lib/strcasecmp.c: Likewise.
65108         * lib/strcasestr.c: Likewise.
65109         * lib/strcspn.c: Likewise.
65110         * lib/striconv.c: Likewise.
65111         * lib/strncasecmp.c: Likewise.
65112         * lib/strnlen1.c: Likewise.
65113         * lib/strstr.c: Likewise.
65114         * lib/strtok_r.c: Likewise.
65115         * lib/tls.c: Likewise.
65116         * lib/tmpdir.c: Likewise.
65117         * lib/unicodeio.c: Likewise.
65118         * lib/unsetenv.c: Likewise.
65119         * lib/vasnprintf.c: Likewise.
65120         * lib/vasprintf.c: Likewise.
65121         * lib/wait-process.c: Likewise.
65122         * lib/xallocsa.c: Likewise.
65123         * lib/xsetenv.c: Likewise.
65124         * lib/xstriconv.c: Likewise.
65125
65126 2006-09-13  Simon Josefsson  <jas@extundo.com>
65127
65128         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
65129         that internally, suggested by Ralf Wildenhues
65130         <Ralf.Wildenhues@gmx.de>.
65131
65132 2006-09-13  Simon Josefsson  <jas@extundo.com>
65133
65134         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
65135         @LIBOBJS@.
65136         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65137
65138 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65139
65140         * lib/_fpending.c: Include <config.h> unconditionally, since we no
65141         longer worry about uses that don't define HAVE_CONFIG_H.
65142         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
65143         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
65144         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
65145         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
65146         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
65147         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
65148         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
65149         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
65150         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
65151         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
65152         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
65153         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
65154         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
65155         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
65156         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
65157         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
65158         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
65159         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
65160         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
65161         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
65162         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
65163         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
65164         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
65165         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
65166         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
65167         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
65168         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
65169         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
65170         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
65171         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
65172         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
65173         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
65174         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
65175         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
65176         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
65177         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
65178         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
65179         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
65180         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
65181         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
65182         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
65183         Likewise.
65184
65185 2006-09-13  Eric Blake  <ebb9@byu.net>
65186
65187         * lib/getopt.c: Fix typo in last commit.
65188
65189 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65190
65191         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
65192         dgettext.
65193
65194 2006-09-12  Jim Meyering  <jim@meyering.net>
65195
65196         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
65197         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
65198         Reported by Nelson H. F. Beebe.
65199
65200 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65201
65202         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
65203         program_invocation_name and program_invocation_short_name are
65204         initialized.
65205         * lib/argp-namefrob.h: Move declarations of program_invocation_name
65206         and program_invocation_short_name to argp.h, so they are visible
65207         to user programs.
65208         * lib/argp.h: Likewise
65209
65210 2006-09-10  Bruno Haible  <bruno@clisp.org>
65211
65212         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65213         m4/inttypes_h.m4, m4/uintmax_t.m4.
65214
65215 2006-09-10  Bruno Haible  <bruno@clisp.org>
65216
65217         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
65218         gl_AC_TYPE_UINTMAX_T.
65219
65220 2006-09-10  Bruno Haible  <bruno@clisp.org>
65221
65222         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
65223
65224 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65225
65226         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
65227         convention.  Text proposed by Bruno Haible.
65228         (struct argp_option): Document the use of N_() wrappers.
65229
65230         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
65231         '\v', and translate the two parts separately, instead of feeding
65232         the whole string to gettext.  This allows to exclude
65233         '\v' from the strings visible to the translator by writing doc
65234         strings as N_("..") "\v" N_("..").
65235
65236 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
65237
65238         * config/srclist.txt: Undo latest change; the bug was fixed.
65239
65240 2006-09-09  Bruno Haible  <bruno@clisp.org>
65241
65242         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
65243         assignments if building a library without libtool.
65244         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
65245         in func_emit_lib_Makefile_am.
65246         (func_import): When building a static library libfoo.a, arrange to
65247         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
65248         (func_create_testdir): Likewise.
65249         * modules/gc (configure.ac, Makefile.am): If building statically,
65250         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
65251         * modules/iconvme (configure.ac, Makefile.am): Likewise.
65252         * modules/striconv (configure.ac, Makefile.am): Likewise.
65253         Based on a suggestion by Ralf Wildenhues.
65254
65255 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65256
65257         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65258         Check for unistd.h too, since Autoconf doesn't assume POSIX.
65259         Also:
65260
65261         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65262         Add year_2050_test to catch glibc bug 2821
65263         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65264
65265         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65266         Prefer #ifdef to #if.
65267
65268         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
65269         Return from 'main' instead of calling 'exit'.
65270
65271 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65272
65273         * lib/mktime.c (guess_time_tm): Fix bug where mktime
65274         returned the maximum time_t value rather than (time_t) -1.
65275         Problem originally reported by William Bardwell
65276         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65277
65278         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65279         Moved to here ...
65280         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65281         ... from here.
65282
65283 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65284
65285         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
65286         2821 is fixed.
65287
65288 2006-09-08  Jim Meyering  <jim@meyering.net>
65289
65290         Don't make generated files read-only.  That would bother too many
65291         people.  However, do retain the ability to work when targets are
65292         read-only: remove the destination and temporary files before writing
65293         them (when generated via sed or echo), or by using the -f option for
65294         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
65295         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65296         * modules/byteswap, modules/configmake, modules/fcntl:
65297         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65298         * modules/localcharset, modules/netinet_in, modules/poll:
65299         * modules/stdbool, modules/stdint, modules/sys_select:
65300         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65301
65302 2006-09-08  Jim Meyering  <jim@meyering.net>
65303
65304         Avoid new build failure on FreeBSD 6.0.
65305         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
65306         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
65307         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
65308
65309 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65310
65311         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
65312
65313 2006-09-07  Jim Meyering  <jim@meyering.net>
65314
65315         Fix global typo in last change: use chmod u-w, not chmod u-x.
65316         Spotted by Paul Eggert and Bruce Korb.
65317         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65318         * modules/byteswap, modules/configmake, modules/fcntl:
65319         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65320         * modules/localcharset, modules/netinet_in, modules/poll:
65321         * modules/stdbool, modules/stdint, modules/sys_select:
65322         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65323
65324 2006-09-06  Jim Meyering  <jim@meyering.net>
65325
65326         Make generated files be read-only.
65327         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
65328         Ensure that each generated file is now read-only.
65329         * modules/argz: Likewise.
65330         * modules/arpa_inet: Likewise.
65331         * modules/byteswap: Likewise.
65332         * modules/configmake: Likewise.
65333         * modules/fcntl: Likewise.
65334         * modules/fnmatch: Likewise.
65335         * modules/getopt: Likewise.
65336         * modules/glob: Likewise.
65337         * modules/inttypes: Likewise.
65338         * modules/netinet_in: Likewise.
65339         * modules/poll: Likewise.
65340         * modules/stdbool: Likewise.
65341         * modules/stdint: Likewise.
65342         * modules/sys_select: Likewise.
65343         * modules/sys_socket: Likewise.
65344         * modules/sys_stat: Likewise.
65345         * modules/sysexits: Likewise.
65346         * modules/localcharset: Same as above, but continue using temporary
65347         file named "t-$@" (why different?) rather than the "$@-t" used
65348         everywhere else.
65349
65350         * modules/sysexits (Makefile.am): Replace literal occurrences
65351         of "sysexit.h" more readable, and more consistent, "$@".
65352
65353 2006-09-06  Bruno Haible  <bruno@clisp.org>
65354
65355         * modules/striconv: New file.
65356         * modules/xstriconv: New file.
65357         * MODULES.html.sh (Internationalization functions): Add striconv,
65358         xstriconv.
65359
65360 2006-09-06  Bruno Haible  <bruno@clisp.org>
65361
65362         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
65363         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
65364         not using libtool correctly.
65365
65366 2006-09-06  Bruno Haible  <bruno@clisp.org>
65367
65368         * lib/striconv.h: New file.
65369         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
65370         iconvstring.c.
65371         * lib/xstriconv.h: New file.
65372         * lib/xstriconv.c: New file.
65373
65374 2006-09-06  Bruno Haible  <bruno@clisp.org>
65375
65376         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65377         lib_..._LDFLAGS.
65378
65379 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65380
65381         * lib/argz_.h: Sync from Libtool.
65382
65383         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
65384                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65385
65386         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
65387
65388 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65389
65390         * modules/trim: New file.
65391
65392 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65393
65394         * lib/trim.h: New file.
65395         * lib/trim.c: New file.
65396
65397 2006-09-05  Bruno Haible  <bruno@clisp.org>
65398
65399         * MODULES.html.sh (String handling): Add trim.
65400
65401 2006-09-04  Karl Berry  <karl@gnu.org>
65402
65403         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
65404         until next release.
65405
65406 2006-09-03  Bruno Haible  <bruno@clisp.org>
65407
65408         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
65409         correctly.
65410
65411 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65412
65413         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
65414         not gl_GETLOADAVG.  Omit unneeded semicolons.
65415         Problems reported by Ralf Wildenhues in
65416         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65417         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
65418         at the end, which is the usual gnulib style.
65419
65420         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
65421         of doing all the work ourselves.
65422         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
65423         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
65424
65425 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65426
65427         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
65428         Problem reported by Ralf Wildenhues in
65429         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65430
65431         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
65432         HAVE_STRUCT_STATFS_F_FSTYPENAME.
65433
65434 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65435
65436         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
65437         yesterday's patch by changing test -n to test -z.
65438
65439 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65440
65441         * modules/getloadavg (Files): Add m4/getloadavg.m4.
65442         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
65443         the former is now obsolescent.
65444
65445         * modules/chdir-long (Depends-on): Add fcntl.
65446
65447 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65448
65449         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
65450         obsolescent, and programs should use gnulib instead.
65451         * m4/getloadavg.m4: New file, with contents taken from Autoconf
65452         but with prefixes changed.
65453
65454 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65455
65456         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
65457         or stdbool.h, because they might not exist while configuring.
65458
65459         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
65460         Don't include unistd.h or limits.h; not needed, since chdir-long.h
65461         does that for us.
65462         (O_DIRECTORY): Remove.
65463
65464 2006-08-31  Eric Blake  <ebb9@byu.net>
65465
65466         * gnulib-tool: Don't let emacs change spaces to TAB.
65467
65468 2006-08-31  Bruno Haible  <bruno@clisp.org>
65469
65470         * gnulib-tool: When calling func_import more than once, do it in a
65471         subshell.
65472         Reported by Eric Blake <ebb9@byu.net>.
65473
65474 2006-08-31  Bruno Haible  <bruno@clisp.org>
65475
65476         * gnulib-tool (nl): Remove variable.
65477         (sed_transform_lib_file): Use more robust test for config-h module.
65478         (func_import): Fix typo in 2006-08-25 patch.
65479
65480 2006-08-31  Bruno Haible  <bruno@clisp.org>
65481
65482         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
65483         specified, augment Makefile.am variables instead of assigning them.
65484
65485 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65486
65487         Work around a bug in both the Linux and SunOS 64-bit kernels:
65488         nanosleep mishandles sleeps for longer than 2**31 seconds.
65489         Problem reported by Frank v Waveren in
65490         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65491         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
65492         Check for nanosleep bug.
65493         (LIB_NANOSLEEP): Append clock_gettime library if needed.
65494
65495 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65496
65497         Work around a bug in both the Linux and SunOS 64-bit kernels:
65498         nanosleep mishandles sleeps for longer than 2**31 seconds.
65499         Problem reported by Frank v Waveren in
65500         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65501         * lib/nanosleep.c (BILLION): New constant.
65502         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
65503         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
65504         implementation.
65505
65506 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65507
65508         * modules/nanosleep (Depends-on): Add gettime.
65509
65510 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65511         and Simon Josefsson  <jas@extundo.com>
65512         and Oskar Liljeblad  <oskar@osk.mine.nu>
65513
65514         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
65515         * gnulib-tool (func_import): New license type 'unmodifiable license
65516         text'.
65517         * modules/fdl: Use it.  Longer description.
65518         * module/gpl, module/lgpl: New files.
65519
65520 2006-08-30  Jim Meyering  <jim@meyering.net>
65521
65522         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
65523         shadowing the parameter.
65524
65525 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65526
65527         Sync from Libtool:
65528
65529         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65530
65531         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
65532         sharing with gnulib.  Report by Eric Blake.
65533
65534 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65535
65536         * modules/isapipe: New file.
65537         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
65538
65539 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65540
65541         * modules/configmake (Makefile.am): Add a comment, and omit
65542         the CONFIGMAKE_ prefix from generated macro names.  Suggested
65543         by Bruno Haible.
65544
65545 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65546
65547         * m4/isapipe.m4: New file.
65548
65549 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65550
65551         * lib/isapipe.c, lib/isapipe.h: New files.
65552
65553 2006-08-29  Jim Meyering  <jim@meyering.net>
65554
65555         * modules/configmake (Makefile.am): Make configmake.h depend on
65556         Makefile.  Otherwise, a stale configmake.h could hang around.
65557
65558 2006-08-29  Eric Blake  <ebb9@byu.net>
65559
65560         * lib/error.c (error_at_line, print_errno_message): Match libc, after
65561         resolution of upstream bug 3044.
65562
65563 2006-08-29  Bruno Haible  <bruno@clisp.org>
65564
65565         * modules/localcharset (Depends-on): Add configmake.
65566         (Makefile.am): Remove setting of LIBDIR through DEFS.
65567
65568 2006-08-29  Bruno Haible  <bruno@clisp.org>
65569
65570         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
65571         defined.
65572
65573 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65574
65575         * modules/fcntl: New file.
65576         * modules/chdir-safer (Depends-on): Add fcntl.
65577         * modules/fts: Likewise.
65578         * modules/mkdir-p: Likewise.
65579
65580         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
65581         This undoes the most recent change, since we're now addressing the
65582         problem in a different way.
65583
65584         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
65585         into output, since the output might be called Makefile.am even
65586         if $makefile_name is something different.
65587         (func_import): Use $makefile_am rather than
65588         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
65589         empty.
65590
65591         * modules/inttypes (Files): Add m4/inttypes-h.m4.
65592
65593 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65594
65595         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
65596         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
65597         recent change to stdint.m4, since we're now addressing the problem in a
65598         different way.
65599
65600 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65601
65602         * m4/fcntl_h.m4: New file.
65603
65604 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65605
65606         * lib/fcntl_.h: New file.
65607         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
65608         the fcntl module.
65609         * lib/dirchownmod.c: Likewise.
65610         * lib/fts.c: Likewise.
65611
65612         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
65613         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
65614         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
65615         just before including <inttypes.h>, to avoid circular inclusion.
65616
65617 2006-08-28  Jim Meyering  <jim@meyering.net>
65618
65619         * doc/visibility.texi: Actually read and correct the grammar of the
65620         sentence affected by yesterday's change.
65621
65622 2006-08-28  Eric Blake  <ebb9@byu.net>
65623
65624         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
65625         needs wrapper.
65626
65627 2006-08-28  Eric Blake  <ebb9@byu.net>
65628
65629         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
65630
65631 2006-08-28  Eric Blake  <ebb9@byu.net>
65632
65633         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
65634
65635 2006-08-28  Bruno Haible  <bruno@clisp.org>
65636
65637         * modules/c-strstr: New file, from GNU gettext.
65638         * MODULES.html.sh (String handling): Add c-strstr.
65639
65640 2006-08-28  Bruno Haible  <bruno@clisp.org>
65641
65642         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
65643         macros.
65644         Reported by Eric Blake.
65645
65646 2006-08-28  Bruno Haible  <bruno@clisp.org>
65647
65648         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
65649         (VASNPRINTF): Return a string of length > INT_MAX without failing.
65650         * lib/vasprintf.c: Include errno.h, limits.h.
65651         (EOVERFLOW): New fallback definition.
65652         (vasprintf): Test here whether the string length is > INT_MAX.
65653         * lib/vsnprintf.c: Include errno.h, limits.h.
65654         (EOVERFLOW): New fallback definition.
65655         (vsnprintf): Fix bug when generated string was too long for the buffer.
65656         Test here whether the string length is > INT_MAX.
65657
65658 2006-08-28  Bruno Haible  <bruno@clisp.org>
65659
65660         * lib/inttypes_.h (SCNX*): Remove definitions.
65661         Reported by Eric Blake.
65662
65663 2006-08-28  Bruno Haible  <bruno@clisp.org>
65664
65665         * lib/c-strstr.h: New file, from GNU gettext.
65666         * lib/c-strstr.c: New file, from GNU gettext.
65667
65668 2006-08-28  Bruno Haible  <bruno@clisp.org>
65669
65670         * gnulib-tool: Reorder some statements.
65671
65672 2006-08-28  Bruno Haible  <bruno@clisp.org>
65673
65674         * gnulib-tool: New option --makefile-name.
65675         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
65676         $makefile_name.
65677         (func_import): Write $makefile_name to the cache file, and read it from
65678         there unless explicitly specified. Use $makefile_name as file name
65679         instead of Makefile.am. Adjust the recommendations accordingly.
65680
65681 2006-08-28  Bruno Haible  <bruno@clisp.org>
65682
65683         * gnulib-tool (func_verify_module): Check against misapplying patch.
65684
65685 2006-08-28  Bruno Haible  <bruno@clisp.org>
65686
65687         * gnulib-tool (func_relativize, func_relconcat): New functions.
65688         Give an error if --local-dir is given with --update.
65689         Remove trailing slashes from $local_gnulib_dir.
65690         (func_import): Store the relativized $local_gnulib_dir in
65691         gnulib-cache.m4, and read it from there if not specified explicitly.
65692
65693 2006-08-28  Bruno Haible  <bruno@clisp.org>
65694
65695         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
65696         is the current directory. Respect also $local_gnulib_dir.
65697
65698 2006-08-28  Bruno Haible  <bruno@clisp.org>
65699             Simon Josefsson  <jas@extundo.com>
65700
65701         BeOS portability.
65702         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
65703
65704 2006-08-27  Jim Meyering  <jim@meyering.net>
65705
65706         * doc/visibility.texi: Remove duplicate word: "pointer".
65707
65708 2006-08-26  Bruno Haible  <bruno@clisp.org>
65709
65710         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
65711         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
65712         (Makefile.am): Create inttypes.h from inttypes_.h.
65713         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
65714
65715         * modules/imaxabs: New file.
65716
65717         * modules/imaxdiv: New file.
65718
65719 2006-08-26  Bruno Haible  <bruno@clisp.org>
65720
65721         * m4/inttypes.m4: New file.
65722         * m4/_inttypes_h.m4: Remove file.
65723         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
65724         PRI_MACROS_BROKEN.
65725         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
65726
65727         * m4/imaxabs.m4: New file.
65728
65729         * m4/imaxdiv.m4: New file.
65730
65731 2006-08-26  Bruno Haible  <bruno@clisp.org>
65732
65733         * lib/inttypes_.h: New file.
65734         * lib/inttypes.h: Remove file.
65735         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
65736
65737         * lib/imaxabs.c: New file.
65738
65739         * lib/imaxdiv.c: New file.
65740
65741 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65742
65743         New config-h module, so that "make" output needn't be cluttered
65744         by -DHAVE_CONFIG_H.
65745         * MODULES.html.sh (Support for building libraries and executables):
65746         Add config-h.
65747         * modules/config-h: New file.
65748         * gnulib-tool (nl, sed_transform_lib_file): New vars.
65749         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
65750         the config-h module is used.
65751
65752         New configmake module, so that "make" output needn't be cluttered
65753         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
65754         * MODULES.html.sh (Support for building libraries and executables):
65755         Add configmake.
65756         * modules/configmake: New file.
65757
65758 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65759
65760         * m4/config-h.m4: New file.
65761
65762 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65763
65764         * config/srclist.txt: Add elisp-comp.
65765
65766 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65767
65768         * MODULES.html.sh (Support for building libraries and executables):
65769         Add elisp-comp.
65770         * build-aux/elisp-comp: New file.
65771         * modules/elisp-comp: New file.
65772
65773 2006-08-24  Bruno Haible  <bruno@clisp.org>
65774
65775         * gnulib-tool (func_create_testdir): Use non-default values of
65776         sourcebase and m4base.
65777
65778 2006-08-24  Bruno Haible  <bruno@clisp.org>
65779
65780         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
65781         HTML structure.
65782
65783 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65784
65785         * modules/openat (Depends-on): Add lchown.
65786
65787 2006-08-23  Bruno Haible  <bruno@clisp.org>
65788
65789         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
65790         of gl_LOCK_EARLY instead of gl_LOCK.
65791
65792 2006-08-23  Bruno Haible  <bruno@clisp.org>
65793
65794         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
65795         on OSF/1 to no.
65796         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
65797
65798 2006-08-23  Bruno Haible  <bruno@clisp.org>
65799
65800         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
65801         as unusable.
65802
65803         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
65804         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
65805         (gl_LOCK): New macro.
65806
65807 2006-08-22  Simon Josefsson  <jas@extundo.com>
65808
65809         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
65810         to md5 module.
65811
65812 2006-08-22  Simon Josefsson  <jas@extundo.com>
65813
65814         * MODULES.html.sh: Add "Support for maintaining and release
65815         projects".
65816
65817         * build-aux/gnupload: New file, from coreutils.
65818
65819 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65820
65821         Avoid the need for AC_LIBSOURCES in m4 macros.
65822         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
65823         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
65824         * modules/check-version (EXTRA_DIST): Add check-version.h.
65825         * modules/crc (EXTRA_DIST): Add crc.h.
65826         * modules/des (EXTRA_DIST): Add des.h.
65827         * modules/gc (EXTRA_DIST): Add gc.h.
65828         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
65829         * modules/getline (EXTRA_DIST): Add getline.h.
65830         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
65831         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
65832         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
65833         * modules/md2 (EXTRA_DIST): Add md2.h.
65834         * modules/md4 (EXTRA_DIST): Add md4.h.
65835         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
65836         * modules/read-file (EXTRA_DIST): Add read-file.h.
65837         * modules/readline (EXTRA_DIST): Add readline.h.
65838         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
65839         rijndael-api-fst.h.
65840
65841 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65842
65843         * m4/rijndael.m4 (gl_ARCFOUR):
65844         * m4/arctwo.m4 (gl_ARCTWO):
65845         * m4/check-version.m4 (gl_CHECK_VERSION):
65846         * m4/crc.m4 (gl_CRC):
65847         * m4/des.m4 (gl_DES):
65848         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
65849         * m4/gc.m4 (gl_GC):
65850         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
65851         * m4/getline.m4 (gl_FUNC_GETLINE):
65852         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
65853         * m4/hmac-md5.m4 (gl_HMAC_MD5):
65854         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
65855         * m4/md2.m4 (gl_MD2):
65856         * m4/md4.m4 (gl_MD4):
65857         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
65858         * m4/read-file.m4 (gl_FUNC_READ_FILE):
65859         * m4/readline.m4 (gl_FUNC_READLINE):
65860         * m4/rijndael.m4 (gl_RIJNDAEL):
65861         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65862         to get the necessary .h files and whatnot.
65863
65864 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65865
65866         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
65867         gnulib rather than the other way around.
65868         * config/srclistvars.sh (COREUTILS): Remove.
65869
65870 2006-08-22  Jim Meyering  <jim@meyering.net>
65871
65872         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
65873
65874         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
65875
65876 2006-08-22  Eric Blake  <ebb9@byu.net>
65877
65878         * modules/regexprops-generic: New file.
65879         * MODULES.html.sh (Support for building documentation): List it.
65880
65881 2006-08-22  Eric Blake  <ebb9@byu.net>
65882
65883         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
65884         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65885         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
65886         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65887
65888 2006-08-22  Bruno Haible  <bruno@clisp.org>
65889
65890         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
65891         and lib_LTLIBRARIES like the other lib_* variables.
65892
65893 2006-08-22  Bruno Haible  <bruno@clisp.org>
65894
65895         * build-aux/x-to-1.in: New file, from GNU gettext.
65896
65897 2006-08-22  Bruno Haible  <bruno@clisp.org>
65898
65899         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
65900         <utmpx.h> exists.
65901
65902 2006-08-22  Bruno Haible  <bruno@clisp.org>
65903
65904         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
65905         <utmpx.h> exists.
65906
65907 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65908
65909         BeOS portability.
65910         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
65911         exist.
65912         Problem reported by Bruno Haible.
65913
65914 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65915
65916         Avoid the need for AC_LIBSOURCES in m4 macros.
65917         * modules/acl (EXTRA_DIST): Add acl.h.
65918         * modules/argmatch (Files): Add m4/argmatch.m4.
65919         (configure.ac): Add gl_ARGMATCH.
65920         (EXTRA_DIST): Renamed from lib_SOURCES, for
65921         consistency with the other modules.  Remove argmatch.c.
65922         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
65923         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
65924         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
65925         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
65926         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
65927         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
65928         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
65929         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
65930         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
65931         * modules/closeout (EXTRA_DIST): Add closeout.h.
65932         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
65933         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
65934         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
65935         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
65936         dirname.h; remove basename.c and stripslash.c.
65937         * modules/exclude (EXTRA_DIST): Add exclude.h.
65938         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
65939         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
65940         * modules/file-type (EXTRA_DIST): Add file-type.h.
65941         * modules/filemode (EXTRA_DIST): Add filemode.h.
65942         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
65943         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65944         * modules/fpending (EXTRA_DIST): Add __fpending.h.
65945         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
65946         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
65947         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
65948         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
65949         * modules/getdate (EXTRA_DIST): Add getdate.c.
65950         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
65951         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
65952         * modules/getpass (EXTRA_DIST): Add getpass.h.
65953         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
65954         * modules/group-member (EXTRA_DIST): Add group-member.h.
65955         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
65956         * modules/hash (EXTRA_DIST): Add hash.h.
65957         * modules/human (EXTRA_DIST): Add human.h.
65958         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
65959         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
65960         * modules/lchown (EXTRA_DIST): Add lchown.h.
65961         * modules/long-options (EXTRA_DIST): Add long-options.h.
65962         * modules/lstat (EXTRA_DIST): Add lstat.h.
65963         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
65964         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
65965         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
65966         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
65967         * modules/memxor (EXTRA_DIST): Add memxor.h.
65968         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
65969         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
65970         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
65971         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
65972         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
65973         * modules/physmem (EXTRA_DIST): Add physmem.h.
65974         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65975         * modules/posixver (EXTRA_DIST): Add posixver.h.
65976         * modules/quote (EXTRA_DIST): Add quote.h.
65977         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65978         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65979         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65980         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65981         regex_internal.h regexec.c.
65982         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65983         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65984         * modules/same (EXTRA_DIST): Add same.h.
65985         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65986         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65987         * modules/savedir (EXTRA_DIST): Add savedir.h.
65988         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65989         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65990         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65991         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65992         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65993         * modules/strdup (EXTRA_DIST): Add strdup.h.
65994         * modules/strftime (EXTRA_DIST): Add strftime.h.
65995         * modules/strndup (EXTRA_DIST): Add strndup.h.
65996         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65997         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65998         * modules/time_r (EXTRA_DIST): Add time_r.h.
65999         * modules/timespec (EXTRA_DIST): Add timespec.h.
66000         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
66001         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
66002         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
66003         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
66004         * modules/userspec (EXTRA_DIST): Add userspec.h.
66005         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
66006         * modules/utimens (EXTRA_DIST): Add utimens.h.
66007         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
66008         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
66009         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
66010         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
66011         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
66012         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
66013         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
66014         * modules/yesno (EXTRA_DIST): Add yesno.h.
66015
66016 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66017
66018         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
66019
66020         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
66021         * m4/dev-ino.m4, same-inode.m4: Remove.
66022
66023         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
66024         * m4/acl.m4 (AC_FUNC_ACL):
66025         * m4/backupfile.m4 (gl_BACKUPFILE):
66026         * m4/c-strtod.m4 (gl_C99_STRTOLD):
66027         * m4/canon-host.m4 (gl_CANON_HOST):
66028         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66029         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
66030         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
66031         * m4/cloexec.m4 (gl_CLOEXEC):
66032         * m4/close-stream.m4 (gl_CLOSE_STREAM):
66033         * m4/closeout.m4 (gl_CLOSEOUT):
66034         * m4/dirfd.m4 (gl_FUNC_DIRFD):
66035         * m4/dirname.m4 (gl_DIRNAME):
66036         * m4/exclude.m4 (gl_EXCLUDE):
66037         * m4/exitfail.m4 (gl_EXITFAIL):
66038         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
66039         * m4/file-type.m4 (gl_FILE_TYPE):
66040         * m4/filemode.m4 (gl_FILEMODE):
66041         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
66042         * m4/fpending.m4 (gl_FUNC_FPENDING):
66043         * m4/fprintftime.m4 (gl_FPRINTFTIME):
66044         * m4/fts.m4 (gl_FUNC_FTS):
66045         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
66046         * m4/getdate.m4 (gl_GETDATE):
66047         * m4/gethrxtime.m4 (gl_GETHRXTIME):
66048         * m4/getpagesize.m4 (gl_GETPAGESIZE):
66049         * m4/getpass.m4 (gl_FUNC_GETPASS):
66050         * m4/gettime.m4 (gl_GETTIME):
66051         * m4/getugroups.m4 (gl_GETUGROUPS):
66052         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
66053         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
66054         * m4/hard-locale.m4 (gl_HARD_LOCALE):
66055         * m4/hash.m4 (gl_HASH):
66056         * m4/idcache.m4 (gl_IDCACHE):
66057         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
66058         * m4/lchown.m4 (gl_FUNC_LCHOWN):
66059         * m4/long-options.m4 (gl_LONG_OPTIONS):
66060         * m4/lstat.m4 (gl_FUNC_LSTAT):
66061         * m4/md5.m4 (gl_MD5):
66062         * m4/memcasecmp.m4 (gl_MEMCASECMP):
66063         * m4/memcoll.m4 (gl_MEMCOLL):
66064         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
66065         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
66066         * m4/memxor.m4 (gl_MEMXOR):
66067         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
66068         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
66069         * m4/modechange.m4 (gl_MODECHANGE):
66070         * m4/mountlist.m4 (gl_MOUNTLIST):
66071         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66072         * m4/openat.m4 (gl_FUNC_OPENAT):
66073         * m4/pathmax.m4 (gl_PATHMAX):
66074         * m4/physmem.m4 (gl_PHYSMEM):
66075         * m4/posixtm.m4 (gl_POSIXTM):
66076         * m4/posixver.m4 (gl_POSIXVER):
66077         * m4/quote.m4 (gl_QUOTE):
66078         * m4/quotearg.m4 (gl_QUOTEARG):
66079         * m4/readtokens.m4 (gl_READTOKENS):
66080         * m4/readutmp.m4 (gl_READUTMP):
66081         * m4/regex.m4 (gl_REGEX):
66082         * m4/safe-read.m4 (gl_SAFE_READ):
66083         * m4/safe-write.m4 (gl_SAFE_WRITE):
66084         * m4/same.m4 (gl_SAME):
66085         * m4/save-cwd.m4 (gl_SAVE_CWD):
66086         * m4/savedir.m4 (gl_SAVEDIR):
66087         * m4/settime.m4 (gl_SETTIME):
66088         * m4/sha1.m4 (gl_SHA1):
66089         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
66090         * m4/stat-macros.m4 (gl_STAT_MACROS):
66091         * m4/stat-time.m4 (gl_STAT_TIME):
66092         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
66093         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
66094         * m4/strdup.m4 (gl_FUNC_STRDUP):
66095         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
66096         * m4/strndup.m4 (gl_FUNC_STRNDUP):
66097         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
66098         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
66099         * m4/time_r.m4 (gl_TIME_R):
66100         * m4/timespec.m4 (gl_TIMESPEC):
66101         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
66102         * m4/unlinkdir.m4 (gl_UNLINKDIR):
66103         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
66104         * m4/userspec.m4 (gl_USERSPEC):
66105         * m4/utimecmp.m4 (gl_UTIMECMP):
66106         * m4/utimens.m4 (gl_UTIMENS):
66107         * m4/xalloc.m4 (gl_XALLOC):
66108         * m4/xgetcwd.m4 (gl_XGETCWD):
66109         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
66110         * m4/xreadlink.m4 (gl_XREADLINK):
66111         * m4/xstrtod.m4 (gl_XSTRTOD):
66112         * m4/yesno.m4 (gl_YESNO):
66113         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66114         to get the necessary .h files and whatnot.
66115
66116 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
66117             Bruno Haible  <bruno@clisp.org>
66118
66119         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
66120         /bin/sh understanding of '!' conditional negation.
66121
66122 2006-08-21  Jim Meyering  <jim@meyering.net>
66123
66124         * modules/openat (Depends-on): Really alphabetize.
66125
66126         * modules/acl (Depends-on): Add error and quote.
66127
66128         * check-module (find_included_lib_files): Add at-func.c to the
66129         ok-to-include-more-than-once white list.
66130
66131         * modules/openat (Depends-on): Add lstat.  Alphabetize.
66132
66133 2006-08-21  Bruno Haible  <bruno@clisp.org>
66134
66135         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66136         Emit a pkgdata_DATA variable only if some snippets add contents to it.
66137         Reported by Martin Lambers <marlam@marlam.de>.
66138
66139 2006-08-21  Bruno Haible  <bruno@clisp.org>
66140
66141         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
66142         specify an installation location, don't emit a noinst_LIBRARIES or
66143         noinst_LTLIBRARIES assignment.
66144
66145 2006-08-21  Bruno Haible  <bruno@clisp.org>
66146
66147         BeOS portability.
66148         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
66149         BeOS has mbrtowc() but no <wctype.h>.
66150
66151 2006-08-21  Bruno Haible  <bruno@clisp.org>
66152
66153         BeOS portability.
66154         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
66155         exist.
66156
66157 2006-08-21  Bruno Haible  <bruno@clisp.org>
66158
66159         BeOS portability.
66160         * lib/mbchar.h: Include <wctype.h> only if it exists.
66161
66162 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66163
66164         Remove files that are no longer needed by their respective modules.
66165         * m4/obstack.m4: Remove.
66166         * m4/strerror_r.m4: Remove.
66167         * m4/uint32_t.m4: Remove.
66168         * m4/uintptr_t.m4: Remove.
66169         * m4/ullong_max.m4: Remove.
66170         * m4/xstrtoimax.m4: Remove.
66171         * m4/xstrtoumax.m4: Remove.
66172
66173         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
66174         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
66175         dependencies now capture this.
66176
66177         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
66178         Do not use AC_LIBSOURCES, since gnulib modules now do this.
66179         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
66180         * m4/human.m4 (gl_HUMAN): Likewise.
66181         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
66182         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
66183
66184         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
66185
66186         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
66187         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
66188         stdint.
66189         * m4/human.m4 (gl_HUMAN): Likewise.
66190         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
66191         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
66192         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66193         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66194         * m4/xstrtol (gl_XSTRTOL): Likewise.
66195
66196         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
66197         AC_TYPE_LONG_LONG_INT.
66198         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66199         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
66200         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
66201         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66202
66203         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
66204         on stdbool.
66205
66206         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
66207         (gl_PREREQ_XSTRTOUL): Remove.
66208
66209         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
66210
66211         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
66212         mode.
66213
66214 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66215
66216         Add and change modules to make it easier for coreutils to use
66217         gnulib-tool.
66218         * modules/backupfile (Files): Remove m4/d-ino.m4.
66219         (Depends-on): Add d-ino.
66220         * modules/cycle-check (Depends-on): Add stdint.
66221         (lib_SOURCES): Add cycle-check.h.
66222         * modules/d-ino: New module.
66223         * modules/d-type: New module.
66224         * modules/error (Files): Remove m4/strerror_r.m4.
66225         * modules/filemode (Files): Add m4/st_dm_mode.m4.
66226         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
66227         m4/inttypes_h.m4, m4/uintmax_t.m4.
66228         (Depends-on): Add stdint.
66229         (lib_SOURCES): Add fsusage.h.
66230         * modules/getcwd (Files): Remove d-ino.m4.
66231         (Depends-on): Add d-ino.
66232         * modules/getndelim2 (Depends-on): Add stdint.
66233         * modules/glob (Files): Remove m4/d-type.m4.
66234         (Depends-on): Add d-type.
66235         * modules/host-os: New module.
66236         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
66237         m4/inttypes_h.m4, m4/uintmax_t.m4.
66238         * Depends-on: Add stdint.
66239         (lib_SOURCES): Add human.h.
66240         * modules/inttostr (Files): Remove m4/intmax_t.m4,
66241         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
66242         m4/uintmax_t.m4, m4/ulonglong.m4.
66243         (Depends-on): Add stdint.
66244         (EXTRA_DIST): Add inttostr.h.
66245         * modules/lchmod: New module.
66246         * modules/link-follow: New module.
66247         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
66248         (Depends-on): Add lchmod.
66249         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
66250         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
66251         (Depends-on): Add stdint.
66252         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
66253         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
66254         (Depends-on): Add stdint.
66255         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
66256         * modules/perl: New module.
66257         * modules/regex (Depends-on): Add stdint.
66258         * modules/rmdir-errno: New module.
66259         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66260         m4/intmax_t.m4.
66261         (Depends-on): Add stdint.
66262         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66263         m4/uintmax_t.m4.
66264         (Depends-on): Add stdint.
66265         * modules/unlink-busy: New module.
66266         * modules/utimecmp (Depends-on): Add stdint.
66267         * modules/uptime: New module.
66268         * modules/winsz-ioctl: New module.
66269         * modules/winsz-termios: New module.
66270         * modules/xnanosleep (Depends-on): Add nanosleep.
66271         * modules/ullong_max: Remove.
66272         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
66273         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
66274         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
66275         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
66276         (Depends-on): Add inttypes.
66277         (lib_SOURCES): Add xstrtol.h.
66278         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
66279         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
66280         * MODULES.html.sh: Move 'assert' into the assert section.
66281         Move 'dummy' into the linking section.
66282         Remove ullong_max.
66283         Add section for compatibility checks for POSIX:2001 functions,
66284         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
66285         winsz-ioctl, and winsz-termios into it.
66286         Add lchmod.
66287         Add top-level Misc section and put host-os, perl, and uptime
66288         into it.
66289
66290 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66291
66292         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
66293         now assume the stdint module.  Do not include inttypes.h.
66294         * lib/fsusage.h: Likewise.
66295         * lib/getndelim2.c: Likewise.
66296         * lib/human.h: Likewise.
66297         * lib/inttostr.h: Likewise.
66298         * lib/obstack.c: Likewise.
66299         * lib/regex_internal.h: Likewise.
66300         * lib/tempname.c: Likewise.
66301         * lib/utimecmp.c: Likewise.
66302         * lib/xstrtol.h: Likewise.
66303
66304         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
66305
66306         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
66307         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
66308         * lib/xtime.h: Likewise.
66309
66310 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66311
66312         * modules/openat (Files): Add lib/fchmodat.c.
66313         Fixes problem reported by Jay Youngman.
66314
66315 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66316
66317         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
66318         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
66319
66320 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
66321             Bruno Haible  <bruno@clisp.org>
66322
66323         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
66324         and is a script that invokes bison. Tighten the code. Add comments.
66325
66326 2006-08-18  Jim Meyering  <jim@meyering.net>
66327
66328         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
66329         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
66330         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
66331         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
66332
66333 2006-08-18  Bruno Haible  <bruno@clisp.org>
66334
66335         * modules/bison-i18n: New file.
66336         * MODULES.html.sh (Internationalization functions): Add it.
66337
66338 2006-08-18  Bruno Haible  <bruno@clisp.org>
66339
66340         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
66341         sys/statvfs.h. When getmntinfo was found, check its declaration and
66342         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
66343
66344 2006-08-18  Bruno Haible  <bruno@clisp.org>
66345
66346         * m4/bison-i18n.m4: New file, from bison.
66347
66348 2006-08-18  Bruno Haible  <bruno@clisp.org>
66349
66350         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
66351         (ME_DUMMY): Treat "kernfs" as a dummy.
66352         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
66353
66354 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66355
66356         Update from coreutils.
66357
66358         2006-08-15  Jim Meyering  <jim@meyering.net>
66359
66360         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
66361
66362         2006-01-17  Jim Meyering  <jim@meyering.net>
66363
66364         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
66365
66366         2006-01-11  Jim Meyering  <jim@meyering.net>
66367
66368         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
66369         Check for the lchmod function.
66370
66371 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66372
66373         Update from coreutils.
66374
66375         * lib/__fpending.h: Add copyright notice.
66376         * lib/fprintftime.h: Likewise.
66377         * lib/savedir.c: Use (C) in copyright notice.
66378         * lib/savedir.h: Likewise.
66379
66380         2006-08-15  Jim Meyering  <jim@meyering.net>
66381
66382         * lib/at-func.c: New file, with the logic of all emulated at-functions.
66383         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
66384         in support of the EXPECTED_ERRNO macro.
66385         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
66386         definitions.  Instead, define the appropriate symbols and include
66387         "at-func.c".
66388         * lib/mkdirat.c (mkdirat): Likewise.
66389         * lib/fchmodat.c (fchmodat): Likewise.
66390         (ENOSYS): Remove definition.
66391         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
66392         it.  Don't include "unistd--.h" -- it wasn't ever used.
66393
66394         2006-01-17  Jim Meyering  <jim@meyering.net>
66395
66396         Rewrite fts.c not to change the current working directory,
66397         by using openat, fstatat, fdopendir, etc..
66398
66399         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
66400         (HAVE_OPENAT_SUPPORT): Define.
66401         [_LIBC] (fchdir): Don't undef or define; no longer used.
66402         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
66403         Now, this `function' always succeeds, and consumes its file descriptor
66404         parameter -- so callers must not close such FDs.  Update callers.
66405         (diropen_fd, opendirat, cwd_advance_fd): New functions.
66406         (diropen): Add parameter, SP.  Adjust all callers.
66407         Implement using diropen_fd, rather than open.
66408         (fts_open): Initialize new member, fts_cwd_fd.
66409         Remove fts_rft-setting code.
66410         (fts_close): Close fts_cwd_fd, if necessary.
66411         (__opendir2): Define in terms of opendir or opendirat,
66412         depending on whether the FST_NOCHDIR flag is set.
66413         (fts_build): Since fts_safe_changedir consumes its FD, and since
66414         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
66415         and close the dup'd file descriptor upon failure.
66416         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
66417         (fts_safe_changedir): Tweak semantics to reflect that this function
66418         now calls cwd_advance_fd and hence consumes its FD argument.
66419         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
66420         [struct FTS] (fts_rft): Remove now-unused member.
66421         [struct FTS] (fts_cycle.state): Improve comment.
66422
66423         * lib/openat.c (openat_needs_fchdir): New function.
66424         * lib/openat.h (openat_needs_fchdir): Declare it.
66425
66426 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66427
66428         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
66429         Problem and fix reported by Pádraig Brady in
66430         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
66431
66432 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66433
66434         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
66435
66436 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66437
66438         * lib/memcoll.c (memcoll): Optimize for the common case where the
66439         arguments are bytewise equal.
66440
66441 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66442
66443         * doc/regexprops-generic.texi: Add a copyright notice.
66444
66445 2006-08-15  Bruno Haible  <bruno@clisp.org>
66446
66447         * modules/tmpdir (License): Change to LGPL.
66448
66449 2006-08-15  Bruno Haible  <bruno@clisp.org>
66450
66451         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
66452         module.
66453
66454 2006-08-14  Simon Josefsson  <jas@extundo.com>
66455
66456         * config/srclist.txt: Add gnupload.
66457
66458 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66459
66460         Change copyright notice from LGPL 2 to GPL 2, since that's the
66461         standard form used in the gnulib repository.
66462         * tests/test-lock.c: Likewise.
66463         * tests/test-stdint.c: Likewise.
66464         * tests/test-tls.c: Likewise.
66465
66466         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
66467         prelude-manager.  User shorter URLs for GNU projects, without '?'.
66468         Add copyright notice.
66469
66470         * check-module: Add copyright notice.  Output a copyright
66471         notice if "--version" is specified.
66472         * modules/COPYING: New file.
66473         * tests/test-getaddrinfo.c: Add copyright notice.
66474         * tests/test-verify.c: Likewise.
66475
66476 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66477
66478         Change copyright notice from LGPL 2 to GPL 2, since that's the
66479         standard form used in the gnulib repository.
66480         * lib/lock.c: LGPL -> GPL.
66481         * lib/lock.h: Likewise.
66482         * lib/strnlen1.c: Likewise.
66483         * lib/strnlen1.h: Likewise.
66484         * lib/tls.c: Likewise.
66485         * lib/tls.h: Likewise.
66486         * lib/tmpdir.c: Likewise.
66487
66488         * lib/TODO: Remove; this belongs only in coreutils.
66489
66490 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66491
66492         Add copyright notices to long-enough files that lack them, since
66493         otherwise the files aren't clearly free.  Use the same notice that
66494         getdate.texi already uses.
66495         * doc/alloca-opt.texi: Add copyright notice.
66496         * doc/alloca.texi: Likewise.
66497         * doc/ctime.texi: Likewise.
66498         * doc/functions.texi: Likewise.
66499         * doc/gcd.texi: Likewise.
66500         * doc/gnulib-tool.texi: Likewise.
66501         * doc/inet_ntoa.texi: Likewise.
66502         * doc/visibility.texi: Likewise.
66503
66504         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
66505         * doc/quote.texi: Add copyright notice.
66506
66507         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
66508         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
66509         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
66510         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
66511         is now obsolete, and give a pointer to the Sun list.
66512         Add copyright notice.
66513
66514 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66515
66516         * config/srclistvars.sh: Add copyright notice.
66517
66518 2006-08-14  Eric Blake  <ebb9@byu.net>
66519
66520         Import the following change from libc:
66521
66522         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
66523
66524         Upstream bug 2997.
66525         * lib/misc/error.c: Add space between program name and message if file
66526         name is missing.
66527
66528 2006-08-12  Karl Berry  <karl@gnu.org>
66529
66530         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
66531         remove, these originate in gnulib now.
66532
66533 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66534
66535         * doc/Makefile (standards.info standards.html standards.dvi):
66536         Also depend on make-stds.texi.
66537
66538 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66539
66540         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
66541         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
66542
66543         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
66544         in wchar_t.  Problem reported by Eric Blake.
66545
66546         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
66547         LEN is smaller than SIZE.  Suggested by Bruno Haible.
66548         Also, help the compiler to keep LEN in a register.
66549
66550 2006-08-11  Eric Blake  <ebb9@byu.net>
66551
66552         * users.txt: Sort.  Add tar.
66553
66554 2006-08-11  Bruno Haible  <bruno@clisp.org>
66555
66556         * users.txt: New file.
66557
66558 2006-08-11  Bruno Haible  <bruno@clisp.org>
66559
66560         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
66561         before <wchar.h>. Needed for OSF/1 and BSD/OS.
66562
66563 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66564
66565         * modules/snprintf (Depends-on): Remove minmax.
66566         (Maintainer): Add self and Bruno.
66567
66568 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66569
66570         * lib/.cppi-disable: Add snprintf.h, socket_.h.
66571         * lib/snprintf.c: Include <errno.h> and <limits.h>.
66572         (EOVERFLOW): Define if the system does not.
66573         Do not include "minmax.h"; it wasn't used.
66574         (snprintf): Don't assume size_t promotes to an unsigned type.
66575         Fix bug when generated string was too long for the buffer: the
66576         buffer's contents are supposed to be the initial prefix of the
66577         output.  Don't assume vasnprintf returns EOVERFLOW if the size
66578         exceeds INT_MAX; do the check ourselves.
66579
66580         Import the following changes from libc:
66581
66582         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
66583
66584         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
66585         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
66586         set wc to the byte which couldn't be converted.
66587         (re_string_reconstruct): Don't clear valid_raw_len before calling
66588         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
66589         tip_context using re_string_context_at.
66590
66591         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
66592
66593         * lib/posix/regex.h: g++ still cannot handled [restrict].
66594
66595         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
66596
66597         * lib/posix/regex.h: Remove special handling for VMS.
66598
66599 2006-08-10  Jim Meyering  <jim@meyering.net>
66600
66601         * modules/same-inode: New module.
66602         * modules/dev-ino: New module.
66603         * modules/cycle-check: Depend on these modules, rather than simply
66604         including their .h files.
66605         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
66606         required via m4/cycle-check.m4.
66607         * modules/same: Depend on new same-inode module, rather than
66608         including same-inode.h.
66609         * modules/chdir-safer: New file.
66610
66611         * modules/chown (Depends-on): Add stat-macros.
66612
66613 2006-08-10  Jim Meyering  <jim@meyering.net>
66614
66615         * m4/cycle-check.m4: New file.
66616         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
66617         * m4/dev-ino.m4, m4/same-inode.m4: New files.
66618
66619 2006-08-10  Eric Blake  <ebb9@byu.net>
66620
66621         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
66622         in from original proposal.
66623
66624 2006-08-10  Eric Blake  <ebb9@byu.net>
66625         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66626
66627         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
66628         namespace.
66629
66630 2006-08-10  Bruno Haible  <bruno@clisp.org>
66631
66632         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
66633         as well.
66634
66635 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66636
66637         Sync from coreutils.
66638
66639         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
66640
66641         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
66642         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
66643
66644 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66645
66646         * modules/restrict: Remove; no longer needed now that we assume
66647         Autoconf 2.59 or later.
66648         * MODULES.html.sh: Remove 'restrict'.
66649         * modules/argp (Depends-on): Remove 'restrict'.
66650         * modules/base64 (Depends-on): Likewise.
66651         * modules/gc (Depends-on): Likewise.
66652         * modules/getaddrinfo (Depends-on): Likewise.
66653         * modules/glob (Depends-on): Likewise.
66654         * modules/inet_ntop (Depends-on): Likewise.
66655         * modules/inet_pton (Depends-on): Likewise.
66656         * modules/memxor (Depends-on): Likewise.
66657         * modules/regex (Depends-on): Likewise.
66658         * modules/strtok_r (Depends-on): Likewise.
66659         * modules/time_r (Depends-on): Likewise.
66660
66661 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66662
66663         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
66664         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
66665         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66666         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
66667         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
66668         * m4/memxor.m4 (gl_MEMXOR): Likewise.
66669         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
66670         gl_C_RESTRICT replaced by AC_C_RESTRICT.
66671
66672         Merge from coreutils.
66673         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
66674         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
66675         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66676         * m4/time_r.m4 (gl_TIME_R): Likewise.
66677
66678 2006-08-09  Karl Berry  <karl@gnu.org>
66679
66680         * config/srclist.txt: no more gettext-tools, per Bruno.
66681
66682 2006-08-08  Eric Blake  <ebb9@byu.net>
66683
66684         * modules/verror: New module.
66685         * MODULES.html.sh: Document it.
66686
66687 2006-08-08  Eric Blake  <ebb9@byu.net>
66688
66689         * lib/verror.h, lib/verror.c: New files.
66690
66691 2006-08-08  Eric Blake  <ebb9@byu.net>
66692
66693         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
66694         verror_at_line output complies with GNU Coding Standards even when
66695         file is NULL.
66696
66697 2006-08-07  Bruno Haible  <bruno@clisp.org>
66698
66699         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
66700         versions of AIX.
66701         Reported by Ralf Wildenhues.
66702
66703 2006-08-07  Bruno Haible  <bruno@clisp.org>
66704
66705         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
66706         in an AC_DEFUN. Needed so that the autoconf snippets can use
66707         AC_REQUIRE.
66708
66709 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66710
66711         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66712         Initialize pkgdata_DATA.
66713         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
66714         overriding it.
66715
66716 2006-08-06  Eric Blake  <ebb9@byu.net>
66717
66718         * lib/error.h: Fold in some upstream changes from glibc.
66719         * lib/error.c: Likewise.
66720
66721 2006-08-04  Bruno Haible  <bruno@clisp.org>
66722
66723         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66724         Make the mostlyclean-local rule depend on mostlyclean-generic.
66725         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
66726
66727 2006-07-31  Bruno Haible  <bruno@clisp.org>
66728
66729         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
66730         <stdlib.h>, <string.h>.
66731
66732 2006-07-30  Bruno Haible  <bruno@clisp.org>
66733
66734         * modules/readlink (License): Change to LGPL.
66735
66736 2006-07-30  Bruno Haible  <bruno@clisp.org>
66737
66738         * modules/javaversion (Makefile.am): Distribute javaversion.java and
66739         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
66740         set PKGDATADIR to point to it.
66741
66742 2006-07-30  Bruno Haible  <bruno@clisp.org>
66743
66744         * modules/csharpexec (configure.ac): Comment out macro invocation.
66745         * modules/javaexec (configure.ac): Likewise.
66746         * modules/javacomp-script (configure.ac): Likewise.
66747
66748         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
66749
66750 2006-07-30  Bruno Haible  <bruno@clisp.org>
66751
66752         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
66753         linked-list.
66754
66755 2006-07-30  Bruno Haible  <bruno@clisp.org>
66756
66757         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
66758
66759 2006-07-30  Bruno Haible  <bruno@clisp.org>
66760
66761         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66762         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
66763         get removed.
66764
66765 2006-07-29  Bruno Haible  <bruno@clisp.org>
66766
66767         Make it possible for gnulib-tool to work with locally modified or
66768         augmented gnulib repositories.
66769         * gnulib-tool (func_usage): Document --local-dir option.
66770         (local_gnulib_dir): New variable.
66771         Handle --local-dir option.
66772         (func_lookup_file): New function.
66773         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
66774         (func_get_description, func_get_filelist, func_get_description,
66775         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
66776         func_get_automake_snippet, func_get_include_directive,
66777         func_get_license, func_get_maintainer): Use func_lookup_file.
66778         (func_import, func_create_testdir): Use func_lookup_file.
66779
66780 2006-07-29  Bruno Haible  <bruno@clisp.org>
66781
66782         * modules/setenv (Depends-on): Add unistd.
66783
66784 2006-07-29  Bruno Haible  <bruno@clisp.org>
66785
66786         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
66787
66788 2006-07-29  Bruno Haible  <bruno@clisp.org>
66789
66790         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
66791
66792 2006-07-29  Bruno Haible  <bruno@clisp.org>
66793
66794         * gnulib-tool (import, update): If there is no Makefile.am, look at
66795         aclocal.m4, instead of bailing out.
66796
66797 2006-07-29  Bruno Haible  <bruno@clisp.org>
66798
66799         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
66800         Categorize the options by when they are useful.
66801
66802 2006-07-29  Bruno Haible  <bruno@clisp.org>
66803
66804         * gnulib-tool (func_usage): Document option --no-libtool.
66805         Handle option --no-libtool.
66806         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
66807         for changed semantics of $libtool variable.
66808         (func_import): Likewise. If libtool is not used, show this through
66809         an option --no-libtool.
66810         (func_create_testdir): Update.
66811
66812 2006-07-29  Bruno Haible  <bruno@clisp.org>
66813
66814         * gnulib-tool (func_import): Extend error message about missing
66815         --doc-base.
66816
66817 2006-07-29  Bruno Haible  <bruno@clisp.org>
66818
66819         * gnulib-tool (func_import): Don't create the $docbase directory if
66820         there is no file to store there.
66821
66822 2006-07-29  Bruno Haible  <bruno@clisp.org>
66823
66824         * gnulib-tool (autoconf_minversion): If a --dir option is given and
66825         relevant, look for configure.ac there, not in the current directory.
66826         Also use a simple search for AC_PREREQ, not "autoconf --trace".
66827
66828 2006-07-29  Bruno Haible  <bruno@clisp.org>
66829
66830         * gnulib-tool (SORT): New variable.
66831         (func_usage): Undocument --assume-autoconf option.
66832         Remove --assume-autoconf option handling.
66833         (autoconf_minversion): Determine from the contents of configure.ac.
66834         (func_import): Remove autoconf_minversion handling.
66835         Suggested by Eric Blake.
66836
66837 2006-07-29  Bruno Haible  <bruno@clisp.org>
66838
66839         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
66840
66841 2006-07-29  Bruno Haible  <bruno@clisp.org>
66842
66843         * config/srclist.txt (*setenv.[ch]): Remove rules.
66844
66845 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66846
66847         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
66848
66849 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66850
66851         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
66852         arpa/inet.h.
66853
66854 2006-07-28  Simon Josefsson  <jas@extundo.com>
66855
66856         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
66857         * modules/inet_pton (Depends-on): Likewise.
66858
66859 2006-07-28  Simon Josefsson  <jas@extundo.com>
66860
66861         * m4/netinet_in_h.m4: New file.
66862
66863 2006-07-28  Simon Josefsson  <jas@extundo.com>
66864
66865         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
66866         #include's.
66867
66868 2006-07-28  Simon Josefsson  <jas@extundo.com>
66869
66870         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
66871         #include's.
66872
66873 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
66874
66875         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
66876         setgid on directories only if they set these bits.
66877         * lib/modechange.h: Remove obsolete comment about masks.
66878
66879 2006-07-28  Eric Blake  <ebb9@byu.net>
66880
66881         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
66882         macro expansion.
66883
66884 2006-07-28  Bruno Haible  <bruno@clisp.org>
66885
66886         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
66887
66888 2006-07-28  Bruno Haible  <bruno@clisp.org>
66889
66890         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
66891
66892 2006-07-28  Bruno Haible  <bruno@clisp.org>
66893
66894         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
66895         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
66896         Define fallbacks.
66897         Avoids link error on FreeBSD 4.x.
66898         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66899
66900         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
66901         encoding.
66902         * lib/mbswidth.c (iswcntrl): Likewise.
66903
66904 2006-07-27  Bruno Haible  <bruno@clisp.org>
66905
66906         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
66907         test.
66908
66909 2006-07-27  Bruno Haible  <bruno@clisp.org>
66910
66911         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
66912         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
66913         defined.
66914
66915 2006-07-26  Eric Blake  <ebb9@byu.net>
66916
66917         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
66918
66919 2006-07-26  Eric Blake  <ebb9@byu.net>
66920
66921         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
66922         like mingw that lack mkstemp.
66923         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
66924         avoid compilation warning on mingw.
66925
66926 2006-07-26  Bruno Haible  <bruno@clisp.org>
66927
66928         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
66929         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
66930         INT_FAST*_MIN, INTPTR_MIN.
66931
66932 2006-07-25  Bruno Haible  <bruno@clisp.org>
66933
66934         * modules/version-etc (Depends-on): Add stdarg.
66935
66936 2006-07-25  Bruno Haible  <bruno@clisp.org>
66937
66938         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
66939         complex commands.
66940
66941 2006-07-25  Bruno Haible  <bruno@clisp.org>
66942
66943         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
66944         defined in <stdarg.h> or config.h.
66945
66946 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66947
66948         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
66949         (gl_STDIO_SAFER): Remove.
66950
66951 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66952
66953         * MODULES.html.sh (File stream based Input/Output):
66954         Add fopen-safer, tmpfile-safer; remove stdio-safer.
66955         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
66956         * modules/fopen-safer, modules/tmpfile-safer: New files.
66957         * modules/stdio-safer: Remove.
66958
66959 2006-07-24  Bruno Haible  <bruno@clisp.org>
66960
66961         * modules/tmpdir: New file.
66962         * MODULES.html.sh (File system functions): Add it.
66963
66964 2006-07-24  Bruno Haible  <bruno@clisp.org>
66965
66966         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
66967         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
66968
66969 2006-07-24  Bruno Haible  <bruno@clisp.org>
66970
66971         * modules/clean-temp: New file.
66972
66973 2006-07-24  Bruno Haible  <bruno@clisp.org>
66974
66975         * m4/tmpdir.m4: New file, from GNU gettext.
66976
66977 2006-07-24  Bruno Haible  <bruno@clisp.org>
66978
66979         * lib/tmpdir.h: New file, from GNU gettext.
66980         * lib/tmpdir.c: New file, from GNU gettext.
66981
66982 2006-07-24  Bruno Haible  <bruno@clisp.org>
66983
66984         * lib/clean-temp.h: New file, from GNU gettext.
66985         * lib/clean-temp.c: New file, from GNU gettext.
66986
66987 2006-07-23  Eric Blake  <ebb9@byu.net>
66988
66989         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66990         (Depends-on): Add binary-io.
66991
66992 2006-07-23  Eric Blake  <ebb9@byu.net>
66993
66994         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66995
66996 2006-07-23  Eric Blake  <ebb9@byu.net>
66997
66998         * lib/tmpfile-safer.c: New file.
66999         * lib/stdio-safer.h (fopen_safer): Add prototype.
67000         * lib/stdio--.h (tmpfile): Make safer.
67001
67002 2006-07-23  Bruno Haible  <bruno@clisp.org>
67003
67004         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
67005         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
67006         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
67007         gl_linked_remove_at): Use it.
67008
67009 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67010         and Simon Josefsson <jas@extundo.com>
67011
67012         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
67013
67014         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
67015
67016 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67017
67018         * modules/close-stream: New file.
67019         * modules/closeout (Description): Make it clear that it exits
67020         with a diagnostic on error.
67021         (Depends-on): Add close-stream.  Remove fpending, stdbool.
67022         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
67023
67024 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67025
67026         * m4/close-stream.m4: New file.
67027
67028 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67029
67030         * lib/close-stream.c, lib/close-stream.h: New files.
67031
67032 2006-07-22  Bruno Haible  <bruno@clisp.org>
67033
67034         Merge from GNU gettext 0.15.
67035
67036         2006-05-01  Bruno Haible  <bruno@clisp.org>
67037
67038                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
67039
67040         2006-07-22  Bruno Haible  <bruno@clisp.org>
67041
67042                 * modules/javaversion: New file.
67043                 * MODULES.html.sh (Java): Add javaversion.
67044
67045         2006-03-12  Bruno Haible  <bruno@clisp.org>
67046
67047                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
67048
67049         2005-12-04  Bruno Haible  <bruno@clisp.org>
67050
67051                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
67052                 (untested).
67053
67054         2006-06-21  Bruno Haible  <bruno@clisp.org>
67055
67056                 Avoid warnings from recent versions of mcs.
67057                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
67058                 -o, -L, -r any more. Use options documented since mcs-1.0
67059                 instead. Similarly for -g.
67060
67061         2005-12-04  Bruno Haible  <bruno@clisp.org>
67062
67063                 * build-aux/csharpcomp.sh.in: Suffix for resources is
67064                 .resources, not .resource.
67065
67066         2005-07-09  Bruno Haible  <bruno@clisp.org>
67067
67068                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
67069                 add a .dll suffix.
67070                 Reported by Mark Junker <mjscod@gmx.de>.
67071
67072         2006-07-22  Bruno Haible  <bruno@clisp.org>
67073
67074                 * modules/gettext: Upgrade to gettext-0.15.
67075                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
67076                 m4/visibility.m4.
67077                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
67078
67079 2006-07-22  Bruno Haible  <bruno@clisp.org>
67080
67081         Merge from GNU gettext 0.15.
67082
67083         2006-03-25  Bruno Haible  <bruno@clisp.org>
67084
67085                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
67086
67087         2006-07-21  Bruno Haible  <bruno@clisp.org>
67088
67089                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
67090                 "1.1".
67091
67092         2006-05-09  Bruno Haible  <bruno@clisp.org>
67093
67094                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
67095                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
67096                 for the conftestver execution.
67097
67098         2006-05-01  Bruno Haible  <bruno@clisp.org>
67099
67100                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
67101                 optional target-version argument. Verify that the compiler
67102                 groks source of the specified source-version, or add -source
67103                 option as necessary. Verify that the compiler produces
67104                 bytecode in the specified target-version, or add -target and
67105                 -source options as necessary. Make the result of the test
67106                 available as variable CONF_JAVAC. Also log error output in
67107                 config.log.
67108
67109         2006-03-11  Bruno Haible  <bruno@clisp.org>
67110
67111                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
67112
67113         2006-05-09  Bruno Haible  <bruno@clisp.org>
67114
67115                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
67116                 CLASSPATH_SEPARATOR to a semicolon.
67117
67118         2006-03-12  Bruno Haible  <bruno@clisp.org>
67119
67120                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
67121                 available as variable CONF_JAVA, for subsequent autoconf
67122                 tests. Also log error output in config.log.
67123
67124         2006-07-19  Bruno Haible  <bruno@clisp.org>
67125
67126                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
67127                 that getline works on glibc2 systems. Needed to avoid trouble
67128                 in relocatable.c.
67129                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
67130
67131         2005-12-04  Bruno Haible  <bruno@clisp.org>
67132
67133                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
67134                 launcher (untested).
67135
67136         2005-12-04  Bruno Haible  <bruno@clisp.org>
67137
67138                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
67139
67140         2006-07-22  Bruno Haible  <bruno@clisp.org>
67141
67142                 * gettext.m4: Update from GNU gettext-0.15.
67143                 * nls.m4: Likewise.
67144                 * po.m4: Likewise.
67145                 * inttypes-pri.m4: Likewise.
67146                 * inttypes-h.m4: Renamed from inttypes.m4.
67147                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
67148
67149 2006-07-22  Bruno Haible  <bruno@clisp.org>
67150
67151         Merge from GNU gettext 0.15.
67152
67153         2005-07-05  Bruno Haible  <bruno@clisp.org>
67154
67155                 * printf-args.c (printf_fetchargs): Work around broken
67156                 definition of wint_t on mingw.
67157
67158         2005-02-12  Bruno Haible  <bruno@clisp.org>
67159
67160                 * xallocsa.h: Add extern "C" for C++.
67161
67162         2006-05-17  Bruno Haible  <bruno@clisp.org>
67163
67164                 Cygwin portability.
67165                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
67166
67167         2006-04-30  Bruno Haible  <bruno@clisp.org>
67168
67169                 * progreloc.c: Include <mach-o/dyld.h> if available.
67170                 (find_executable): Use _NSGetExecutablePath when possible.
67171
67172         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67173
67174                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
67175                 function.
67176
67177         2005-12-29  Bruno Haible  <bruno@clisp.org>
67178
67179                 * progreloc.c (set_program_name_and_installdir): Fix
67180                 compilation error.
67181
67182         2005-12-04  Bruno Haible  <bruno@clisp.org>
67183
67184                 Cygwin portability.
67185                 * progreloc.c: Include <windows.h> also on Cygwin.
67186                 (find_executable): Add support for Cygwin.
67187                 (set_program_name_and_installdir): Handle also platforms with
67188                 nonempty EXEEXT.
67189
67190         2006-07-11  Bruno Haible  <bruno@clisp.org>
67191
67192                 * javacomp.c: Fix a comment.
67193                 Reported by Jim Meyering.
67194
67195         2006-04-30  Bruno Haible  <bruno@clisp.org>
67196
67197                 * javacomp.h (compile_java_class): Add source_version,
67198                 target_version arguments.
67199                 * javacomp.c: Rewritten to choose only a compiler that
67200                 respects the specified source_version and target_version.
67201
67202         2006-06-27  Bruno Haible  <bruno@clisp.org>
67203
67204                 Assume correct S_ISDIR macro.
67205                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
67206
67207         2006-07-22  Bruno Haible  <bruno@clisp.org>
67208
67209                 * javaversion.h: New file, from GNU gettext.
67210                 * javaversion.c: New file, from GNU gettext.
67211                 * javaversion.java: New file, from GNU gettext.
67212                 * javaversion.class: New file, from GNU gettext.
67213
67214         2006-05-17  Bruno Haible  <bruno@clisp.org>
67215
67216                 Cygwin portability.
67217                 * javaexec.c (execute_java_class): Test for jview program
67218                 also on Cygwin.
67219
67220         2006-04-09  Bruno Haible  <bruno@clisp.org>
67221
67222                 * fatal-signal.c: Don't include string.h.
67223                 (at_fatal_signal): Use a copying loop instead of memcpy.
67224
67225         2005-12-04  Bruno Haible  <bruno@clisp.org>
67226
67227                 * csharpexec.c: Add support for 'clix' launcher (untested).
67228                 (execute_csharp_using_sscli): New function.
67229                 (execute_csharp_program): Call it.
67230
67231         2006-06-21  Bruno Haible  <bruno@clisp.org>
67232
67233                 Avoid warnings from recent versions of mcs.
67234                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
67235                 -o, -L, -r any more. Use options documented since mcs-1.0
67236                 instead. Similarly for -g.
67237
67238         2005-07-09  Bruno Haible  <bruno@clisp.org>
67239
67240                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
67241                 add a .dll suffix.
67242                 Reported by Mark Junker <mjscod@gmx.de>.
67243
67244         2006-06-17  Bruno Haible  <bruno@clisp.org>
67245
67246                 * config.charset: Update for NetBSD 3.0.
67247
67248         2006-05-17  Bruno Haible  <bruno@clisp.org>
67249
67250                 Cygwin portability.
67251                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
67252
67253         2006-05-16  Bruno Haible  <bruno@clisp.org>
67254
67255                 * localcharset.c [CYGWIN]: Include <windows.h>.
67256                 (get_charset_aliases): For Cygwin, return the same CPxxx
67257                 aliases list as under WIN32.
67258                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
67259                 the environment variables. Fall back to GetACP().
67260
67261         2006-04-05  Bruno Haible  <bruno@clisp.org>
67262
67263                 * config.charset: Update Juan Manuel Guerrero's address.
67264
67265         2005-02-12  Bruno Haible  <bruno@clisp.org>
67266
67267                 * allocsa.h: Add extern "C" for C++.
67268
67269         2005-02-10  Bruno Haible  <bruno@clisp.org>
67270
67271                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
67272                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
67273
67274         2006-07-22  Bruno Haible  <bruno@clisp.org>
67275
67276                 * gettext.h: Update to GNU gettext-0.15.
67277
67278 2006-07-22  Bruno Haible  <bruno@clisp.org>
67279
67280         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
67281         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
67282         lib-prefix.m4, longdouble.m4, ssize_t.m4.
67283
67284 2006-07-21  Eric Blake  <ebb9@byu.net>
67285
67286         * modules/stdlib-safer: New file.
67287         * MODULES.html.sh (File stream based Input/Output): Add
67288         stdlib-safer.
67289
67290 2006-07-21  Eric Blake  <ebb9@byu.net>
67291
67292         * lib/stdlib-safer.h: New file from coreutils, required by
67293         stdlib--.h.
67294
67295 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
67296
67297         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
67298
67299 2006-07-20  Bruno Haible  <bruno@clisp.org>
67300
67301         * gnulib-tool: Recognize new option --assume-autoconf.
67302         (autoconf_minversion): New variable.
67303         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
67304
67305 2006-07-20  Bruno Haible  <bruno@clisp.org>
67306
67307         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
67308
67309 2006-07-19  Derek R. Price  <derek@ximbiot.com>
67310
67311         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
67312         Reindent and repaginate.
67313
67314 2006-07-19  Derek Price  <derek@ximbiot.com>
67315
67316         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
67317         Correct grammar.
67318
67319 2006-07-17  Bruno Haible  <bruno@clisp.org>
67320
67321         * modules/list: New file.
67322         * modules/array-list: New file.
67323         * modules/carray-list, modules/carray-list-tests: New files.
67324         * modules/linked-list, modules/linked-list-tests: New files.
67325         * modules/avltree-list, modules/avltree-list-tests: New files.
67326         * modules/rbtree-list, modules/rbtree-list-tests: New files.
67327         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
67328         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
67329         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
67330         * modules/oset: New file.
67331         * modules/array-oset: New file.
67332         * modules/avltree-oset, modules/avltree-oset-tests: New files.
67333         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
67334         * tests/test-carray_list.c: New file.
67335         * tests/test-linked_list.c: New file.
67336         * tests/test-avltree_list.c: New file.
67337         * tests/test-rbtree_list.c: New file.
67338         * tests/test-linkedhash_list.c: New file.
67339         * tests/test-avltreehash_list.c: New file.
67340         * tests/test-rbtreehash_list.c: New file.
67341         * tests/test-avltree_oset.c: New file.
67342         * tests/test-rbtree_oset.c: New file.
67343         * MODULES.html.sh (Container data structures): New section.
67344
67345 2006-07-17  Bruno Haible  <bruno@clisp.org>
67346
67347         * m4/gl_list.m4: New file.
67348
67349 2006-07-17  Bruno Haible  <bruno@clisp.org>
67350
67351         * lib/gl_list.h: New file.
67352         * lib/gl_list.c: New file.
67353         * lib/gl_array_list.h: New file.
67354         * lib/gl_array_list.c: New file.
67355         * lib/gl_carray_list.h: New file.
67356         * lib/gl_carray_list.c: New file.
67357         * lib/gl_linked_list.h: New file.
67358         * lib/gl_linked_list.c: New file.
67359         * lib/gl_anylinked_list1.h: New file.
67360         * lib/gl_anylinked_list2.h: New file.
67361         * lib/gl_avltree_list.h: New file.
67362         * lib/gl_avltree_list.c: New file.
67363         * lib/gl_anyavltree_list1.h: New file.
67364         * lib/gl_anyavltree_list2.h: New file.
67365         * lib/gl_rbtree_list.h: New file.
67366         * lib/gl_rbtree_list.c: New file.
67367         * lib/gl_anyrbtree_list1.h: New file.
67368         * lib/gl_anyrbtree_list2.h: New file.
67369         * lib/gl_anytree_list1.h: New file.
67370         * lib/gl_anytree_list2.h: New file.
67371         * lib/gl_linkedhash_list.h: New file.
67372         * lib/gl_linkedhash_list.c: New file.
67373         * lib/gl_anyhash_list1.h: New file.
67374         * lib/gl_anyhash_list2.h: New file.
67375         * lib/gl_avltreehash_list.h: New file.
67376         * lib/gl_avltreehash_list.c: New file.
67377         * lib/gl_rbtreehash_list.h: New file.
67378         * lib/gl_rbtreehash_list.c: New file.
67379         * lib/gl_anytreehash_list1.h: New file.
67380         * lib/gl_anytreehash_list2.h: New file.
67381
67382         * lib/gl_oset.h: New file.
67383         * lib/gl_oset.c: New file.
67384         * lib/gl_array_oset.h: New file.
67385         * lib/gl_array_oset.c: New file.
67386         * lib/gl_avltree_oset.h: New file.
67387         * lib/gl_avltree_oset.c: New file.
67388         * lib/gl_rbtree_oset.h: New file.
67389         * lib/gl_rbtree_oset.c: New file.
67390         * lib/gl_anytree_oset.h: New file.
67391
67392 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67393
67394         * m4/mkancesdirs.m4: New file.
67395         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
67396         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
67397         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
67398         it.
67399
67400 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67401
67402         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
67403         * lib/mkancesdirs.h: New files.
67404         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
67405         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
67406         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
67407         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
67408         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
67409         callers changed.  Revamp internals significantly, by not
67410         attempting to create directories that are temporarily more
67411         permissive than the final results.  Do not attempt to use
67412         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
67413         This removes some race conditions, fixes some bugs, and simplifies
67414         things.  Use new dirchownmod function to do owner and mode changes.
67415         * lib/mkdir-p.h: Likewise.
67416         * lib/modechange.c (octal_to_mode): New function.
67417         (struct mode_change): New member mentioned.
67418         (make_node_op_equals): New arg mentioned.  All callers changed.
67419         (mode_compile): Keep track of which mode bits the user has explicitly
67420         mentioned.
67421         (mode_adjust): New arg DIR, so that we implement the X op correctly.
67422         New arg PMODE_BITS, to keep track of which mode bits the user
67423         mentioned; it treats S_ISUID and S_ISGID speciall.
67424         All callers changed.
67425         * lib/modechange.h: Likewise.
67426
67427 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67428
67429         * MODULES.html.sh: Add mkancestors.
67430         * modules/mkancesdirs: New module.
67431         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
67432         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
67433         The chdir-safer and afs files are now orphans; I'll remove them
67434         unless someone speaks up.
67435         Add lib/dirchownmod.c, lib/dirchownmod.h.
67436         (Depends-on): Remove alloca, chown, save-cwd, dirname.
67437         Add lchown, mkancesdirs.
67438         (Maintainer): Add self.
67439
67440 2006-07-15  Karl Berry  <karl@gnu.org>
67441
67442         * gnulib-tool: help message wording/arrangement.
67443
67444 2006-07-14  Simon Josefsson  <jas@extundo.com>
67445
67446         * doc/gnulib.texi (Libtool and Windows): New section.
67447
67448 2006-07-12  Simon Josefsson  <jas@extundo.com>
67449
67450         * modules/gendocs (License): Fix license, approved by Karl.
67451
67452 2006-07-12  Eric Blake  <ebb9@byu.net>
67453
67454         * MODULES.html.sh: Add gendocs.
67455
67456 2006-07-11  Eric Blake  <ebb9@byu.net>
67457
67458         * modules/fdl: New module, to install doc/fdl.texi.
67459         * MODULES.html.sh: Add new section for documentation modules.
67460         * gnulib-tool: Avoid space-tab.
67461         (--doc-base): New option, to manage files from doc.
67462
67463 2006-07-11  Eric Blake  <ebb9@byu.net>
67464
67465         * m4/absolute-header.m4: Fix comments to match recent change.
67466
67467 2006-07-11  Eric Blake  <ebb9@byu.net>
67468
67469         * gnulib-tool: List --doc-base before --tests-base.
67470
67471 2006-07-11  Derek R. Price  <derek@ximbiot.com>
67472
67473         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
67474
67475 2006-07-11  Bruno Haible  <bruno@clisp.org>
67476
67477         * README: Mention where to put documentation.
67478
67479 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67480
67481         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
67482
67483 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67484
67485         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
67486         to stdint.m4.
67487
67488 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67489
67490         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
67491         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
67492         "no/such/file/stdint.h" when there is no such file, so that
67493         the resulting C code can be parsed by dodgy compilers.
67494         Problems reported by Bob Proulx.
67495
67496 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67497
67498         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
67499         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67500         macros into the GNU _D_EXACT_NAMLEN.
67501         * lib/savedir.c:  Likewise.
67502         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
67503
67504 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67505         and Paul Eggert  <eggert@cs.ucla.edu>
67506
67507         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
67508         * m4/savedir.m4:
67509         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67510         macros into the GNU _D_EXACT_NAMLEN.
67511
67512 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67513
67514         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
67515         around the absolute name, to work around a problem with the HP-UX
67516         11.23 native C compiler, reported by Bob Proulx.
67517
67518 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67519
67520         * doc/maintain.texi, make-stds.texi: Sync from
67521         <http://savannah.gnu.org/projects/gnustandards>.
67522
67523 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67524
67525         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
67526
67527 2006-07-09  Jim Meyering  <jim@meyering.net>
67528
67529         * m4/glob.m4: Remove a doubled word in a comment.
67530
67531 2006-07-09  Jim Meyering  <jim@meyering.net>
67532
67533         * lib/argp-pv.c: Remove a doubled word in a comment.
67534         * lib/check-version.c (check_version): Likewise.
67535         * lib/javacomp.c (compile_java_class): Likewise.
67536
67537 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67538
67539         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
67540         for the benefit of people using Autoconf 2.60.  If you want to
67541         support older Autoconf versions you can copy m4/onceonly_2_57.m4
67542         (or m4/onceonly.m4, if pre-2.57) manually.
67543
67544 2006-07-08  Jim Meyering  <jim@meyering.net>
67545
67546         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
67547         comment.
67548         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
67549         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
67550         comment.
67551
67552 2006-07-08  Jim Meyering  <jim@meyering.net>
67553
67554         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
67555
67556 2006-07-07  Simon Josefsson  <jas@extundo.com>
67557
67558         * tests/test-crc.c: Change expected crc value, the test vector
67559         were probably computed using the old broken crc.c?
67560
67561 2006-07-06  Simon Josefsson  <jas@extundo.com>
67562
67563         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
67564         now the canonical place for the M4 file).
67565
67566         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
67567         from the sys_socket dependency now.
67568
67569         * modules/inet_pton (Files): Ditto.
67570
67571         * modules/inet_ntop (Files): Ditto.
67572
67573 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67574
67575         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
67576         not gl_PREREQ_GETUSERSHELL.
67577
67578 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67579
67580         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
67581         with only one argument, for Autoconf 2.60.
67582         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
67583         expand to nothing, so add a shell command to avoid syntax error.
67584         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67585
67586 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67587
67588         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
67589
67590 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67591
67592         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
67593         no longer needed.  Check for isblank decl.
67594         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
67595         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
67596         of existence.
67597
67598 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67599
67600         * lib/getloadavg.c: Use __VMS, not VMS.
67601         * lib/getopt.c: Likewise.
67602         * lib/getpagesize.h: Likewise.
67603         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
67604         and probably does not work.
67605
67606 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67607
67608         * lib/.cppi-disable: Add wcwidth.
67609         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
67610         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
67611         (ISGRAPH): Remove.  All uses changed to isgraph.
67612         (FOLD) [!defined _LIBC]: Remove special case.
67613         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
67614         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
67615         HAVE_ISBLANK.
67616         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
67617         case.
67618
67619 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67620
67621         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
67622         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
67623         brackets.  Other minor changes to suppress some compiler
67624         warnings.
67625
67626 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67627         and Paul Eggert  <eggert@cs.ucla.edu>
67628
67629         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
67630         of invoking obsolescent AC_HEADER_DIRENT macro.
67631         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
67632         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
67633         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
67634         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
67635         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
67636         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67637         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
67638         * m4/readdir.m4: Remove; no longer needed.
67639
67640 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67641         and Paul Eggert  <eggert@cs.ucla.edu>
67642
67643         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
67644         Don't worry about this obsolete case any more.
67645         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
67646         directories.
67647         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
67648         worry about this obsolete case any more.
67649         * lib/fts.c: Likewise.
67650         * lib/getcwd.c: Likewise.
67651         * lib/glob.h: Likewise.
67652         * lib/savedir.c: Likewise.
67653
67654 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67655
67656         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
67657         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
67658         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
67659         needed.
67660         All uses removed.
67661         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67662         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67663         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
67664         needed.
67665         * m4/getdate.m4 (gl_GETDATE): Likewise.
67666         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67667         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67668         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67669         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67670         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67671         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67672         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
67673         needed.
67674
67675 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67676
67677         * lib/memcasecmp.c: Include <limits.h>.
67678         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
67679         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
67680         Don't assume isdigit succeeds only on '0' through '9'.
67681
67682 2006-07-05  Eric Blake  <ebb9@byu.net>
67683
67684         * modules/getaddrinfo (Depends-on): Add snprintf.
67685
67686 2006-07-05  Eric Blake  <ebb9@byu.net>
67687
67688         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
67689         to avoid 'header present but could not be compiled' on cygwin.
67690
67691 2006-07-05  Eric Blake  <ebb9@byu.net>
67692
67693         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
67694         missing from netdb.h.
67695         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
67696
67697 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67698
67699         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
67700         no longer needed.
67701         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
67702         * m4/getdate.m4 (gl_GETDATE): Likewise.
67703         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67704         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67705         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67706         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67707         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67708
67709 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67710
67711         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
67712         All uses of is_space replaced by isspace.
67713         * lib/exit.h: Don't talk about STDC_HEADERS.
67714         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
67715         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
67716         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
67717         replaced by isprint etc.
67718         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
67719         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67720         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
67721         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
67722         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
67723         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67724
67725 2006-07-05  Bruno Haible  <bruno@clisp.org>
67726
67727         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
67728         the function exists, before testing against AIX.
67729         Reported by Martin Lambers <marlam@marlam.de>.
67730
67731 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67732
67733         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
67734         From Mark D. Baushke.
67735
67736 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67737
67738         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
67739         to the absolute name, not just one, to bypass Sun C 5.8's
67740         "warning: #include of /usr/include/... may be non-portable".
67741
67742 2006-07-04  Eric Blake  <ebb9@byu.net>
67743
67744         * modules/dirname-tests: New test module.
67745         * tests/test-dirname.c: New file, replacing dirname.c
67746         TEST_DIRNAME section that was recently deleted.
67747
67748 2006-07-04  Bruno Haible  <bruno@clisp.org>
67749
67750         Assume ANSI C header files and <ctype.h> functions.
67751         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
67752         (mbsnwidth): Use isprint, iscntrl instead.
67753
67754 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67755
67756         Merge from coreutils.
67757         * MODULES.html.sh: Add xstrtold.
67758         * modules/xstrtold: New file.
67759         * modules/cycle-check (Files): Add lib/same-inode.h.
67760         * modules/dirname (Files): Add m4/double-slash-root.m4.
67761         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
67762         * modules/mkdir-p (Files): Add lib/same-inode.h.
67763         * modules/same (Files): Add lib/same-inode.h.
67764
67765 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67766
67767         * m4/absolute-header.m4: Renamed from full-header-path.m4.
67768         This is to keep the terminology clean; POSIX talks about
67769         "absolute pathnames", not "full pathnames", but the GNU
67770         Coding Standards say to use "path" for something else;
67771         so use "absolute" to keep both sides happy.
67772         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
67773         Set gl_absolute_header, not gl_full_header_path.
67774         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
67775         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
67776         All uses changed.
67777
67778         Merge from coreutils.
67779
67780         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67781
67782         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
67783         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
67784         want to require the building of c-strtod.o.
67785         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
67786         needs -lm directly.
67787         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
67788
67789         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67790
67791         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
67792         --as-needed option if available.  Problem reported by Albert Chin in
67793         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
67794         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
67795         cc merely issues a bunch of annoying warnings for --as-needed
67796         (this problem was reported by Bob Proulx).  Also, try linking with
67797         -lm to detect a bug in binutils 2.16 (this problem was reported
67798         by Ralf Wildenhues).
67799
67800         2006-06-18  Jim Meyering  <jim@meyering.net>
67801
67802         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
67803         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
67804         macro.
67805         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
67806         also check for glibc-2.4's abort-inducing bug.
67807
67808         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
67809         Low-probability clean-up should be to use rmdir to get rid of
67810         the just-created directory, not unlink.
67811
67812         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
67813         configure fail, and request a bug report to inform us about it.
67814         Add a comment that, barring reports to the contrary, in 2007 we'll
67815         assume ftruncate is universally available.
67816
67817         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67818
67819         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
67820
67821         2006-03-12  Jim Meyering  <jim@meyering.net>
67822
67823         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
67824         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
67825         * m4/same.m4 (gl_SAME): Likewise.
67826         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
67827
67828         2006-03-11  Eric Blake  <ebb9@byu.net>
67829
67830         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
67831         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
67832         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
67833         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
67834
67835 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67836
67837         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
67838         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
67839         reported by Mark D. Baushke, one in
67840         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
67841
67842         Merge from coreutils.
67843
67844         * lib/.cppi-disable: Add stdint_.h.
67845         * lib/.cvsignore: Add stdint.h.
67846
67847         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67848
67849         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
67850         both double and long double versions.
67851         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
67852         * lib/xstrtold.c: New file.
67853         * lib/xstrtod.h (xstrtold): New decl.
67854
67855         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67856
67857         * lib/filemode.c (setst): Remove.
67858         (strmode): Rewrite to avoid setst.  This makes the code shorter,
67859         (arguably) clearer, and the generated code is a bit smaller on my
67860         Debian GNU/Linux stable x86 host.
67861
67862         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67863
67864         * lib/filemode.c: Include "filemode.h" first, to test the interface.
67865         Assume that filemode.h includes sys/types.h and sys/stat.h.
67866         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
67867         (ftypelet): Reorder to put common cases first, for efficiency.
67868         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
67869         to do 'M'.
67870         (strmode): Renamed from mode_string, and now stores 12 bytes instead
67871         of 10, for compatibility with FreeBSD.  All callers changed.
67872         (filemodestring): Now stores 12 bytes instead of 10, and sets file
67873         types that can't be deduced solely from st_mode.  First arg is now a
67874         const pointer.
67875         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
67876         (strmode): Renamed from mode_string.
67877         (filemodestring): New decl.
67878         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
67879         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
67880         needed.
67881         (S_ISPORT, S_ISWHT): New macros, if not already defined.
67882
67883         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67884
67885         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
67886         fsusage.h now does that.  Include fsusage.h first, to test interface.
67887         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
67888         at most one method (the old code could have generated decls that
67889         didn't conform to C89, not that this was ever exercised).
67890         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
67891
67892         2006-03-19  Jim Meyering  <jim@meyering.net>
67893
67894         Work even in a chroot where d_ino values for entries in "/"
67895         don't match the stat.st_ino values for the same names.
67896         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
67897         number, iterate through all entries again, using lstat instead.
67898         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
67899         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
67900
67901         * lib/getcwd.c (__getcwd): Clarify a comment.
67902         Use memcpy in place of a call to strcpy.
67903
67904         2006-03-12  Jim Meyering  <jim@meyering.net>
67905
67906         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
67907         matches that of the current directory (which we're about to chdir ".."
67908         out of), then save the dev-ino of the parent, instead.
67909
67910         * lib/same-inode.h (SAME_INODE): New file/macro.
67911         * lib/chdir-safer.c (SAME_INODE): Remove definition.
67912         Include "same-inode.h", instead.
67913         * lib/same.c: Likewise.
67914         * lib/cycle-check.h: Include "same-inode.h".
67915         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
67916         * lib/cycle-check.c (SAME_INODE): Remove definition.
67917         * lib/root-dev-ino.h: Include "same-inode.h".
67918
67919         2006-03-11  Eric Blake  <ebb9@byu.net>
67920
67921         * lib/same.c (same_name): s/base_name/last_component/
67922         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
67923         * lib/filenamecat.c (file_name_concat): Likewise.
67924
67925         2006-03-11  Eric Blake  <ebb9@byu.net>,
67926                     Paul Eggert  <eggert@cs.ucla.edu>
67927
67928         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
67929         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
67930         drive prefix.
67931         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
67932         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
67933         (last_component): New method.
67934         * lib/dirname.c (dir_len): Determine when drive letters need a
67935         subsequent slash.  Preserve // when it is special.
67936         (dir_name): Don't append dot when drive letter is absolute.
67937         [TEST_DIRNAME]: Move into a full-blown gnulib test.
67938         * lib/basename.c (base_name): New semantics - malloc the result.
67939         Preserve // when it is special.  Preserve relative files that look
67940         like drive letters.
67941         (base_len): Preserve // when it is special.
67942         (last_component): New method, similar to old base_name semantics.
67943         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
67944         base_name.  Strip redundant slashes from ///.
67945
67946 2006-07-03  Jim Meyering  <jim@meyering.net>
67947
67948         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
67949         macro is used before the first cycle_check call.
67950
67951 2006-07-03  Eric Blake  <ebb9@byu.net>
67952
67953         * modules/dirname (Depends-on): Add xstrndup.
67954
67955 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67956
67957         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
67958         test cases, so that config.log is a bit easier to follow.
67959
67960 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67961
67962         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
67963         both are 64 bits, since this seems to be the tradition, and this
67964         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
67965         we ever run into a host that prefers long long to long in this
67966         case, we'll need another configure-time test.  Problem reported by
67967         Jim Meyering.
67968
67969 2006-07-02  Eric Blake  <ebb9@byu.net>
67970
67971         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
67972
67973 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67974
67975         * modules/inttypes (Depends-on): No longer depends on stdint.
67976         * modules/stdint (Description): Say more about assumptions.
67977         Say that the fast types might differ.  Say macros are used.
67978         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67979         (Makefile.am): Revise list of substituted symbols to match
67980         new stdint.m4.
67981         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67982         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67983         * tests/test-stdint.c (verify_same_types)
67984         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67985         the code conforms to C99/C89.
67986         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67987         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67988
67989 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67990
67991         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67992         but fix a bug, by requiring at least 64 bits.
67993         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67994         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67995         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67996         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67997
67998         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67999         changes.  Make 2.59 a prerequisite.  Check and substitute for
68000         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
68001         inttypes.h.  Do not use special include files; just use the
68002         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
68003         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
68004         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
68005         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
68006         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
68007         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
68008         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
68009         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
68010         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
68011         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
68012         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
68013         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
68014         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
68015         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
68016         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
68017         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
68018         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
68019         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
68020         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
68021         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
68022         WINT_MAX.  Check for C99 conformance more strictly, by detecting
68023         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
68024         not check for things that C99 does not require, e.g., int8_t.  If
68025         a test isn't needed unless <stdint.h> isn't working, and is
68026         unlikely to be needed for any other reason, then don't do it
68027         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
68028         size_t, since we assume C89 freestanding at least.  Do not check
68029         for sig_atomic_t, wchar_t, or wint_t, since the code now does
68030         the right thing even if the types are not defined.  Instead use:
68031         (gl_STDINT_TYPE_PROPERTIES): New macro.
68032         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
68033         testing whether <sys/types.h> clashes, as Autoconf does this for
68034         us now.  All uses removed.
68035         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
68036         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
68037         (gl_CHECK_TYPE_SAME):
68038         Remove; no longer needed.
68039         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
68040         exists, since we'll return 0 anyway in that case.
68041         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
68042
68043 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68044
68045         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
68046         possible collision with system files.
68047         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
68048         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
68049         WCHAR_MIN and WCHAR_MAX in this case.
68050         (<stddef.h>): Do not include; no longer needed.
68051         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
68052         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
68053         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
68054         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
68055         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
68056         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
68057         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
68058         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
68059         !defined(__c99))]: Include in this case too, since it's harmless
68060         now.
68061         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
68062         dangerous to do so.
68063         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
68064         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
68065         (_STDINT_MIN, _STDINT_MAX): New macros.
68066         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
68067         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
68068         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
68069         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
68070         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
68071         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
68072         macros, not typedefs; this simplifies things quite a bit.
68073         Use long int for all types narrower than int64_t.
68074         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
68075         Define in terms of long long int or int64_t or long int,
68076         not int64_t or int32_t.  This saves some compile-time testing.
68077         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
68078         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
68079         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
68080         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
68081         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
68082         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
68083         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
68084         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
68085         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
68086         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
68087         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68088         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68089         undef any previous version and define our own version, for
68090         simplicity and consistency with the new macros for types.
68091         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68092         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68093         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
68094         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
68095         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
68096         @WINT_T_SUFFIX@ to keep things simple here.
68097         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
68098         Simplify by assuming typical 8/16/32/64 host, since we're
68099         already doing that elsewhere anyway.
68100         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
68101         and assume long long int is 64 bits if available.  This
68102         speeds up 'configure'.
68103
68104 2006-07-01  Eric Blake  <ebb9@byu.net>
68105
68106         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
68107         Reported by Andreas Buening.
68108
68109 2006-07-01  Eric Blake  <ebb9@byu.net>
68110
68111         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
68112
68113 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
68114
68115         * lib/getaddrinfo.c: fixed typo
68116
68117 2006-06-29  Jim Meyering  <jim@meyering.net>
68118
68119         * modules/strftime (Maintainer): Add my name, since with the
68120         FPRINTFTIME changes strftime.c has forked from glibc.
68121
68122 2006-06-29  Eric Blake  <ebb9@byu.net>
68123
68124         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
68125
68126 2006-06-29  Eric Blake  <ebb9@byu.net>
68127
68128         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
68129
68130 2006-06-29  Eric Blake  <ebb9@byu.net>
68131
68132         * lib/stat_.h: New file.
68133
68134 2006-06-29  Eric Blake  <ebb9@byu.net>
68135
68136         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
68137         unused static function.
68138
68139 2006-06-29  Eric Blake  <ebb9@byu.net>
68140
68141         * doc/functions.texi (Function Portability): Document missing lstat
68142         on mingw.
68143
68144 2006-06-29  Eric Blake  <ebb9@byu.net>
68145
68146         * MODULES.html.sh: Add sys_stat.
68147         * modules/sys_stat: New module.
68148         * modules/mkstemp (Depends-on): Add sys_stat.
68149
68150 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68151
68152         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
68153
68154 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68155
68156         * m4/c-bs-a.m4: Removed.
68157
68158 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68159
68160         * lib/strftime.c: Assume strftime() exists.
68161
68162 2006-06-29  Derek Price  <derek@ximbiot.com>
68163
68164         * modules/c-bs-a: Removed - \a is C89.
68165         * MODULES.html.sh: Remove c-bs-a.
68166
68167 2006-06-29  Bruno Haible  <bruno@clisp.org>
68168
68169         * modules/wcwidth (License): Change to LGPL.
68170
68171 2006-06-28  Simon Josefsson  <jas@extundo.com>
68172
68173         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
68174         on _WIN32.
68175
68176         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
68177         getnameinfo.
68178
68179 2006-06-28  Simon Josefsson  <jas@extundo.com>
68180
68181         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
68182
68183 2006-06-28  Simon Josefsson  <jas@extundo.com>
68184
68185         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
68186         functions there.  It will succeed on Windows XP, but on Windows
68187         2000 and (presumably) earlier, it will fail, and use the internal
68188         re-implementation.
68189         (use_win32_p): New function.
68190         (getaddrinfo): Use strtoul on servname, to support numeric ports.
68191         Support AI_NUMERICSERV to disable getservbyname.
68192         (getnameinfo): New function, only supports
68193         NI_NUMERICHOST|NI_NUMERICSERV for now.
68194
68195         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
68196         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
68197         getnameinfo.
68198
68199 2006-06-28  Eric Blake  <ebb9@byu.net>
68200
68201         * modules/wcwidth: New file.
68202         * modules/mbchar (Depends-on): Add wcwidth.
68203         * modules/mbswidth (Depends-on): Add wcwidth.
68204         * MODULES.html.sh: Add wcwidth.
68205
68206 2006-06-28  Eric Blake  <ebb9@byu.net>
68207
68208         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
68209         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
68210
68211 2006-06-28  Eric Blake  <ebb9@byu.net>
68212
68213         * lib/xvasprintf.h: Fix comments.
68214
68215 2006-06-28  Eric Blake  <ebb9@byu.net>
68216
68217         * lib/mbchar.h (wcwidth): Include wcwidth.h.
68218         * lib/mbswidth.c (wcwidth): Move from here...
68219         * lib/wcwidth.h: ...to this new file.
68220
68221 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68222
68223         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
68224
68225         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
68226         it's obsolete.
68227         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
68228
68229 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68230
68231         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
68232         Autoconf 2.60 says this stuff was obsolete.
68233
68234 2006-06-28  Bruno Haible  <bruno@clisp.org>
68235
68236         * modules/wcwidth (Files): Add m4/wchar_t.m4.
68237
68238 2006-06-28  Bruno Haible  <bruno@clisp.org>
68239
68240         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
68241         gt_TYPE_WCHAR_T.
68242
68243 2006-06-28  Bruno Haible  <bruno@clisp.org>
68244
68245         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
68246         declaration for wcwidth.
68247         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
68248
68249 2006-06-28  Bruno Haible  <bruno@clisp.org>
68250
68251         * lib/mkdtemp.c [MINGW]: Include <io.h>.
68252         (mkdir): Define using _mkdir.
68253
68254 2006-06-28  Bruno Haible  <bruno@clisp.org>
68255
68256         * lib/getaddrinfo.h: Fix POSIX URL.
68257         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
68258         _WIN32.
68259         (use_win32_p): Make static.
68260         (getaddrinfo): Reject service name if it is empty or does not consist
68261         solely of decimal digits, or if its value is > 65535.
68262         (getnameinfo): Remove useless casts.
68263
68264 2006-06-27  Simon Josefsson  <jas@extundo.com>
68265
68266         * modules/sys_select: New file, suggested by Bruno Haible, Paul
68267         Eggert and Martin Lambers.
68268
68269 2006-06-27  Simon Josefsson  <jas@extundo.com>
68270
68271         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
68272         Eggert and Martin Lambers.
68273
68274 2006-06-27  Bruno Haible  <bruno@clisp.org>
68275
68276         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
68277         result to 0, not to empty.
68278         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
68279
68280 2006-06-27  Bruno Haible  <bruno@clisp.org>
68281
68282         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
68283
68284 2006-06-26  Simon Josefsson  <jas@extundo.com>
68285
68286         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
68287         present.
68288
68289 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
68290
68291         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
68292         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
68293         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
68294
68295 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
68296
68297         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
68298
68299 2006-06-26  Bruno Haible  <bruno@clisp.org>
68300
68301         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
68302
68303 2006-06-26  Bruno Haible  <bruno@clisp.org>
68304
68305         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
68306
68307 2006-06-26  Bruno Haible  <bruno@clisp.org>
68308
68309         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
68310         SGI C compiler in pre-C99 mode.
68311         Suggested by Mark D. Baushke and Larry Jones.
68312
68313 2006-06-26  Bruno Haible  <bruno@clisp.org>
68314
68315         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
68316         WCHAR_MAX.
68317         Reported by Mark D. Baushke and Larry Jones.
68318
68319 2006-06-26  Bruno Haible  <bruno@clisp.org>
68320
68321         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
68322         in pre-C99 mode.
68323         Suggested by Mark D. Baushke and Larry Jones.
68324
68325 2006-06-23  Simon Josefsson  <jas@extundo.com>
68326             Bruno Haible  <bruno@clisp.org>
68327
68328         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
68329         Emit mostlyclean-local rule.
68330         (func_emit_tests_Makefile_am): Likewise.
68331         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
68332
68333 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
68334
68335         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
68336
68337 2006-06-23  Bruno Haible  <bruno@clisp.org>
68338
68339         * tests/test-stdint.c: Update to match ISO C 99 Technical
68340         Corrigendum 1.
68341
68342 2006-06-23  Bruno Haible  <bruno@clisp.org>
68343
68344         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
68345
68346 2006-06-23  Bruno Haible  <bruno@clisp.org>
68347
68348         * lib/stdint_.h: Treat IRIX like OpenBSD.
68349
68350 2006-06-23  Bruno Haible  <bruno@clisp.org>
68351
68352         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
68353         ISO C 99 Technical Corrigendum 1.
68354
68355 2006-06-22  Simon Josefsson  <jas@extundo.com>
68356
68357         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
68358         MinGW.
68359
68360 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68361
68362         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
68363         needed.  Some compiler complained about some of them.  Problem reported
68364         by Larry Jones in
68365         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
68366
68367 2006-06-21  Simon Josefsson  <jas@extundo.com>
68368
68369         * tests/test-getaddrinfo.c: New file.
68370
68371         * modules/getaddrinfo-tests: New file.
68372
68373         * MODULES.html.sh: Add inet_pton.
68374
68375         * modules/inet_pton: New file.
68376
68377 2006-06-21  Simon Josefsson  <jas@extundo.com>
68378
68379         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
68380         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
68381         of using the (limited) gnulib implementation on Windows XP.
68382
68383         * m4/inet_pton.m4: New file.
68384
68385 2006-06-21  Simon Josefsson  <jas@extundo.com>
68386
68387         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
68388         variable.
68389
68390         * lib/socket_.h: Don't define WINVER.
68391
68392         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
68393         slightly modified to work in gnulib.
68394
68395 2006-06-21  Simon Josefsson  <jas@extundo.com>
68396
68397         * doc/gnulib.texi (Windows sockets): Add.
68398
68399 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68400
68401         * lib/read-file.c (fread_file): Start with buffer allocation of
68402         0 bytes rather than 1 byte; this simplifies the code.
68403         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
68404         code to free buffer and save/restore errno.
68405         (internal_read_file): Remove unused local.
68406
68407 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68408
68409         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
68410         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
68411         Problem reported by Denis Excoffier in
68412         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
68413
68414 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68415
68416         * modules/sys_socket, modules/socklen: Include sys/types since
68417         FreeBSD 4.x's sys/socket.h needs it.
68418
68419 2006-06-19  Simon Josefsson  <jas@extundo.com>
68420
68421         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
68422
68423 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68424
68425         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
68426
68427 2006-06-19  Bruno Haible  <bruno@clisp.org>
68428
68429         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
68430         and FULL_PATH_INTTYPES_H in angle brackets.
68431         Reported by Mark D. Baushke <mdb@gnu.org>.
68432
68433 2006-06-17  Eric Blake  <ebb9@byu.net>
68434
68435         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
68436         errno.
68437
68438 2006-06-17  Bruno Haible  <bruno@clisp.org>
68439
68440         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
68441         <sys/inttypes.h>.
68442
68443 2006-06-17  Bruno Haible  <bruno@clisp.org>
68444
68445         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
68446         whether errno is declared. Assume <errno.h> declares errno.
68447
68448 2006-06-17  Bruno Haible  <bruno@clisp.org>
68449
68450         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
68451
68452 2006-06-17  Bruno Haible  <bruno@clisp.org>
68453
68454         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
68455         problem on Solaris 2.5.1.
68456
68457 2006-06-16  Eric Blake  <ebb9@byu.net>
68458
68459         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
68460         * lib/unicodeio.c [!defined errno]: Likewise.
68461         * lib/strtol.c [!defined errno]: Likewise.
68462         * lib/strtod.c [!defined errno]: Likewise.
68463
68464 2006-06-15  Eric Blake  <ebb9@byu.net>
68465
68466         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
68467
68468 2006-06-15  Eric Blake  <ebb9@byu.net>
68469
68470         * config/srclist.txt (ssize_t.m4): Lose sync.
68471
68472 2006-06-15  Bruno Haible  <bruno@clisp.org>
68473
68474         * modules/stdint (Files): Include m4/full-header-path.m4,
68475         m4/size_max.m4, m4/wchar_t.m4.
68476         (Makefile.am): Many more substitutions.
68477         * modules/stdint-tests: New file.
68478         * tests/test-stdint.c: New file.
68479
68480 2006-06-15  Bruno Haible  <bruno@clisp.org>
68481
68482         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
68483         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
68484         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
68485         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
68486         gl_CHECK_TYPE_SAME): New macros.
68487
68488 2006-06-15  Bruno Haible  <bruno@clisp.org>
68489
68490         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
68491
68492 2006-06-15  Bruno Haible  <bruno@clisp.org>
68493
68494         * lib/stdint_.h: Rewritten to be fully auto-configured.
68495         Fixes bug on HP-UX/IA64.
68496
68497 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
68498
68499         * lib/getdate.y (__attribute__): Don't define if already defined.
68500         Problem reported by Larry Jones.
68501         * lib/utimens.c (__attribute__): Likewise.
68502
68503 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
68504
68505         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
68506         reported by Andreas Schwab.
68507
68508 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68509             Bruno Haible  <bruno@clisp.org>
68510
68511         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
68512         check for the declaration of strnlen and a run test that exposes the
68513         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
68514         rpl_strndup.
68515
68516 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68517             Bruno Haible  <bruno@clisp.org>
68518
68519         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
68520
68521 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68522
68523         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
68524         compile test, for Tru64 4.0D.
68525
68526 2006-05-28  Karl Berry  <karl@gnu.org>
68527
68528         * config/srclist.txt (printf-args.c): lose sync.
68529
68530 2006-05-26  Martin Lambers  <marlam@marlam.de>
68531
68532         * lib/getpass.c: Updates the test for the native W32 API, and adds
68533         missing includes, thus fixing compilation warnings.
68534
68535 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68536
68537         * lib/exclude.c (exclude_fnmatch): New function.
68538         (excluded_file_name): Call exclude_fnmatch.
68539         * lib/exclude.h (excluded_file_name): New prototype
68540
68541 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
68542
68543         * lib/tempname.c (small_open, large_open): New macros.
68544         (__open, __open64) [!_LIBC]: Remove.
68545         (__gen_tempname): Use small_open and large_open instead of __open
68546         and __open64.  This fixes a portability bug on HP-UX 11.11i
68547         reported by Simon Wing-Tang in
68548         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
68549
68550 2006-05-24  Bruno Haible  <bruno@clisp.org>
68551
68552         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
68553         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
68554         Reported by Thorsten Maerz <torte@netztorte.de> via
68555         Aaron Stone <aaron@serendipity.cx>.
68556
68557 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68558
68559         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
68560         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
68561         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
68562         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
68563         not really conditional on the cache.
68564         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
68565
68566 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68567
68568         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
68569         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
68570         (my_usleep): Don't mishandle maximum value.
68571
68572 2006-05-19  Jim Meyering  <jim@meyering.net>
68573
68574         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
68575
68576 2006-05-17  Bruno Haible  <bruno@clisp.org>
68577
68578         Cygwin portability.
68579         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
68580
68581 2006-05-17  Bruno Haible  <bruno@clisp.org>
68582
68583         * lib/stdint_.h: Fix recognition of Cygwin.
68584
68585 2006-05-15  Bruno Haible  <bruno@clisp.org>
68586
68587         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
68588         on libtool patch by Ralf Wildenhues.
68589
68590 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68591
68592         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
68593         test for C99 conformance; (bool) 0.5 is an integer constant
68594         expression, but (bool) -0.5 is not.  Problem reported by Fedor
68595         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
68596
68597 2006-05-11  Simon Josefsson  <jas@extundo.com>
68598
68599         * m4/xvasprintf.m4: Fix obvious typo.
68600
68601 2006-05-11  Jim Meyering  <jim@meyering.net>
68602
68603         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
68604         James Lemley.
68605
68606 2006-05-10  Simon Josefsson  <jas@extundo.com>
68607
68608         * lib/md4.c: Typo fix, update copyright years.
68609         (K1, K2): Don't use L because it turn computations into 64-bit on
68610         64-bit platforms.
68611
68612 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
68613
68614         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
68615         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
68616         unwanted sign propagation, e.g., on hosts with 64-bit int.
68617         There still are some problems with reeelly weird theoretical hosts
68618         (e.g., 33-bit int) but it's not worth worrying about now.
68619         * lib/sha1.c (rol): Likewise.
68620         (K1, K2, K3, K4): Remove unnecessary L suffix.
68621
68622 2006-05-10  Bruno Haible  <bruno@clisp.org>
68623
68624         * lib/des.c: Cast to avoid warnings.
68625
68626 2006-05-09  Bruno Haible  <bruno@clisp.org>
68627
68628         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
68629         (Depends-on): Depend also on xsize, stdarg.
68630         (configure.ac): Add gl_XVASPRINTF.
68631
68632 2006-05-09  Bruno Haible  <bruno@clisp.org>
68633
68634         * m4/xvasprintf.m4: New file.
68635
68636 2006-05-09  Bruno Haible  <bruno@clisp.org>
68637
68638         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
68639         (EOVERFLOW): Define fallback value.
68640         (xstrcat): New function.
68641         (xvasprintf): Recognize the special case of a string concatenation.
68642
68643 2006-05-08  Eric Blake  <ebb9@byu.net>
68644
68645         * gnulib-tool (func_version): Base copyright year on CVS date.
68646         (func_emit_copyright_notice): New function.
68647         (func_emit_lib_Makefile_am): Use it.
68648         (func_emit_tests_Makefile_am): Likewise.
68649         (func_import): Likewise.
68650
68651 2006-05-08  Bruno Haible  <bruno@clisp.org>
68652
68653         * modules/stdarg: New file.
68654         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
68655
68656 2006-05-08  Bruno Haible  <bruno@clisp.org>
68657
68658         * m4/stdarg.m4: New file, from GNU gettext.
68659
68660 2006-05-08  Bruno Haible  <bruno@clisp.org>
68661
68662         * config/srclist.txt (build-aux/config.rpath): different from latest
68663         release.
68664
68665 2006-05-08  Bruno Haible  <bruno@clisp.org>
68666
68667         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
68668
68669 2006-05-05  Jim Meyering  <jim@meyering.net>
68670
68671         * m4/warning.m4: New file, derived from bison's file by the same name.
68672
68673 2006-05-03  Bruno Haible  <bruno@clisp.org>
68674
68675         * lib/stdint_.h: Shorter URL.
68676         * lib/inttypes.h: Likewise.
68677
68678 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68679
68680         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
68681
68682 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68683
68684         * lib/verify.h: Document the internals better.  Most of this change
68685         was written by Bruno Haible.
68686
68687 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68688
68689         * doc/verify.texi: New file, partly based on a proposal by
68690         Bruno Haible.
68691
68692 2006-05-02  Bruno Haible  <bruno@clisp.org>
68693
68694         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
68695         test from here...
68696         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
68697
68698 2006-04-29  Bruno Haible  <bruno@clisp.org>
68699
68700         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
68701         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
68702
68703 2006-04-29  Bruno Haible  <bruno@clisp.org>
68704
68705         * gnulib-tool: Make --update option actually work.
68706
68707 2006-04-29  Bruno Haible  <bruno@clisp.org>
68708
68709         * doc/gcd.texi: New file.
68710         * doc/gnulib.texi: Include it.
68711
68712 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
68713
68714         * lib/getdate.y (get_date): When adding relative date, start with the
68715         initial time, not with the result of the first mktime call.
68716
68717 2006-04-25  Bruno Haible  <bruno@clisp.org>
68718
68719         * gnulib-tool (func_import): Output the include directives in three
68720         blocks, sorted separately.
68721         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68722
68723 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68724
68725         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
68726         to define main with arguments, for C++.  Reported by Eric Blake.
68727         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
68728         Prefer 'int main ()' to 'int main (void)', for C++.
68729         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
68730         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
68731         for 'main', for C99 and C++.
68732
68733 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68734
68735         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
68736         Don't assume that exit status -1 is valid.
68737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68738         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
68739         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
68740         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
68741         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
68742         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
68743         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
68744         functions can be used without declaring them, or that you can
68745         exit with status -1.
68746         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
68747
68748 2006-04-24  Karl Berry  <karl@gnu.org>
68749
68750         * config/srclist.txt (longdouble.m4): sync lost.
68751
68752 2006-04-24  Eric Blake  <ebb9@byu.net>
68753
68754         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
68755
68756 2006-04-24  Bruno Haible  <bruno@clisp.org>
68757
68758         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
68759         poll() implementation in AIX.
68760         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68761
68762 2006-04-24  Bruno Haible  <bruno@clisp.org>
68763
68764         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
68765         assigned exactly once.
68766
68767 2006-04-23  Claudio Fontana  <claudio@gnu.org>
68768             Bruno Haible  <bruno@clisp.org>
68769
68770         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
68771         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
68772         for AM_CPPFLAGS.
68773
68774 2006-04-23  Bruno Haible  <bruno@clisp.org>
68775
68776         * modules/copy-file: Depend on unistd.
68777         * modules/execute: Likewise.
68778         * modules/fatal-signal: Likewise.
68779         * modules/findprog: Likewise.
68780         * modules/mkdtemp : Likewise.
68781         * modules/pipe: Likewise.
68782         * modules/wait-process: Likewise.
68783
68784 2006-04-23  Bruno Haible  <bruno@clisp.org>
68785
68786         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
68787         condition was already detected.
68788         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68789
68790 2006-04-23  Bruno Haible  <bruno@clisp.org>
68791
68792         * lib/copy-file.c: Include <unistd.h> unconditionally.
68793         * lib/execute.c: Likewise.
68794         * lib/fatal-signal.c: Likewise.
68795         * lib/findprog.c: Likewise.
68796         * lib/mkdtemp.c: Likewise.
68797         * lib/pipe.h: Likewise.
68798         * lib/pipe.c: Likewise.
68799         * lib/wait-process.h: Likewise.
68800
68801 2006-04-23  Bruno Haible  <bruno@clisp.org>
68802
68803         * gnulib-tool (func_usage): Fix --import description. Document
68804         --update.
68805         (func_import): Create temporary file in a temporary directory, if
68806         --dry-run is specified. Silence errors from 'grep' when there are no
68807         m4 files in $m4dir.
68808         (func_create_testdir): Silence errors from 'grep' when there are no
68809         m4 files in $m4dir.
68810         Reported by Karl Berry <karl@freefriends.org>.
68811
68812 2006-04-20  Bruno Haible  <bruno@clisp.org>
68813
68814         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
68815         one argument, so that the code will be portable to Autoconf 2.60.
68816         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
68817         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68818         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
68819
68820 2006-04-19  Derek Price  <derek@ximbiot.com>
68821             Eric Blake  <ebb9@byu.net>
68822
68823         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
68824         rather than "/full/path.h".  Update comment to match.  Shorten &
68825         generalize m4_translit call via AS_TR_CPP.
68826
68827 2006-04-19  Derek Price  <derek@ximbiot.com>
68828             Eric Blake  <ebb9@byu.net>
68829
68830         * lib/inttypes.h: Correct grammar in comment.
68831
68832 2006-04-18  Derek Price  <derek@ximbiot.com>
68833             Paul Eggert  <eggert@cs.ucla.edu>
68834
68835         * modules/inttypes: New file.
68836         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
68837
68838 2006-04-18  Derek Price  <derek@ximbiot.com>
68839             Paul Eggert  <eggert@cs.ucla.edu>
68840
68841         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
68842         New files.
68843
68844 2006-04-18  Derek Price  <derek@ximbiot.com>
68845             Paul Eggert  <eggert@cs.ucla.edu>
68846
68847         * lib/inttypes.h: New file.
68848         * lib/strtoimax.c: Assume <inttypes.h>.
68849
68850 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
68851
68852         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
68853         isn't mounted.  Problem reported by Kir Kolyshkin.
68854
68855 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68856
68857         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
68858         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
68859         Derek R. Price.
68860         * lib/regex.h (RE_DUP_MAX): Update comment to match current
68861         implementation.
68862
68863 2006-04-12  Eric Blake  <ebb9@byu.net>
68864
68865         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
68866         is now done automatically by the corresponding Autoconf macro.
68867
68868 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
68869
68870         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
68871         time_r.h.
68872
68873 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68874
68875         Merge regex changes from libc, removing some of our
68876         POSIX-conformance changes that were rejected and redoing them in a
68877         less-intrusive way.
68878
68879         * lib/regcomp.c (re_compile_internal, init_dfa):
68880         Length arg is now size_t, not Idx.  All uses changed.
68881         (peek_token): Forward decl now says internal_function.
68882         (__re_error_msgid, __re_error_msgid_idx):
68883         Now static rather than extern with attribute_hidden.
68884         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
68885         For some reason libc prefers K&R style defns for external functions.
68886         (regerror) [!defined _LIBC]: Likewise.
68887         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
68888         (seek_collating_symbol_entry, lookup_collation_sequence_value):
68889         (build_range_exp, build_collating_symbol):
68890         Use K&R-style defn.
68891         (re_compile_fastmap): Use '\0' to memset, not 0.
68892         (utf8_sb_map): Make the calculations more obvious.
68893         (init_dfa, parse_bracket_exp, build_charclass_op):
68894         Call calloc and cast result, as glibc does.
68895         (init_word_char, fetch_token, peek_token, peek_token_bracket):
68896         (build_range_exp, build_collating_symbol):
68897         Now internal functions.
68898
68899         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
68900
68901         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
68902         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
68903         Don't depend on VMS; depend on __VMS instead, for POSIX
68904         namespace cleanness.
68905         (regoff_t): Define to ssize_t, not long int.
68906
68907         Remove the REG_ macros named below.  Instead, make the old names
68908         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
68909         __USE_GNU_REGEX.
68910         (REG_BACKSLASH_ESCAPE_IN_LISTS):
68911         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
68912         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
68913         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
68914         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
68915         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
68916         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
68917         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
68918         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
68919         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
68920         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
68921         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
68922         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
68923         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
68924         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
68925         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
68926         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
68927         (REG_NREGS):
68928         Remove.  All uses replaced by the old RE_* names.
68929         (RE_BACKSLASH_ESCAPE_IN_LISTS):
68930         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
68931         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
68932         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
68933         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
68934         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
68935         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
68936         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
68937         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
68938         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
68939         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
68940         Don't bother having these macros be independent of each others'
68941         values, since they no longer exist in the POSIX name space.
68942
68943         Rename the following member names back to their old names,
68944         unless !__USE_GNU_REGEX.  All uses changed back.
68945         (buffer): Renamed from re_buffer.
68946         (allocated): Renamed from re_allocated.
68947         (used): Renamed from re_used.
68948         (syntax): Renamed from re_syntax.
68949         (fastmap): Renamed from re_fastmap.
68950         (translate): Renamed from re_translate.
68951         (can_be_null): Renamed from re_can_be_null.
68952         (regs_allocated): Renamed from re_regs_allocated.
68953         (fastmap_accurate): Renamed from re_fastmap_accurate.
68954         (no_sub): Renamed from re_no_sub.
68955         (not_bol): Renamed from re_not_bol.
68956         (not_eol): Renamed from re_not_eol.
68957         (newline_anchor): Renamed from re_newline_anchor.
68958         (num_regs): Renamed from rm_num_regs.
68959         (start): Renamed from rm_start.
68960         (end): Renamed from rm_end.
68961
68962         (free_state): Move up a bit.
68963
68964         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
68965         #define to be empty.
68966         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
68967         when that is what is intended.
68968         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
68969         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
68970         (MAX): New macro.
68971         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
68972         All uses changed back to re_malloc, etc.  It's now the caller's
68973         responsibility to check for overflow; all callers changed.
68974         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68975         (re_x2nrealloc): Remove.
68976         (free_state): Remove decl.
68977
68978         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68979         (re_set_registers, re_exec):
68980         Use K&R-style defn.
68981
68982         2006-01-31  Roland McGrath  <roland@redhat.com>
68983
68984         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68985         Reported by Mike Frysinger <vapier@gentoo.org>.
68986
68987         2006-01-15  Andreas Jaeger  <aj@suse.de>
68988
68989         [BZ #1950]
68990         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68991         build_wcs_upper_buffer change.
68992         (build_wcs_upper_buffer): Change return type.
68993
68994         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68995
68996         * lib/regex_internal.h: Include <stdint.h> if available.
68997
68998         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68999
69000         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
69001
69002         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69003
69004         * lib/regcomp.c: Adjust for changed secondary hash function.
69005
69006         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
69007
69008         * lib/regex.h: Pretty printing.
69009         Clean up namespace a bit.
69010
69011         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
69012
69013         * lib/regexec.c (update_cur_sifted_state, check_arrival,
69014         check_arrival_add_next_nodes): Avoid using uninitialized variable.
69015
69016         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69017                     Ulrich Drepper  <drepper@redhat.com>
69018
69019         [BZ #1302]
69020         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
69021         changed.
69022         (bitset_word_t): Renamed from bitset_word.  All uses changed.
69023
69024         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
69025
69026         [BZ #281]
69027         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
69028         * lib/regcomp.c: Remove unnecessary uses of
69029         unsigned RE_TRANSLATE_TYPE.
69030         * lib/regex_internal.h: Likewise.
69031         * lib/regex_internal.c: Likewise.
69032         * lib/regexec.c: Likewise.
69033         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
69034
69035         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
69036
69037         * lib/regexec.c (find_recover_state): Remove unnecessary
69038         initialization.
69039         (transit_state_bkref): Make DFA a const pointer.
69040         (get_subexp): Likewise.
69041         (check_arrival): Likewise.
69042         (update_cur_sifted_state): Likewise.
69043         (re_search_internal): Likewise.
69044         (prune_impossible_nodes): Likewise.
69045         (acquire_init_state_context): Likewise.
69046         (proceed_next_node): Likewise.
69047         (set_regs): Likewise.
69048         (free_fail_stack_return): Likewise.
69049         (check_arrival_expand_ecl): Mark DFA parameter as const.
69050         (check_arrival_expand_ecl_sub): Likewise.
69051         (check_subexp_limits): Likewise.
69052         (sub_epsilon_src_nodes):  Likewise.
69053         (add_epsilon_src_nodes):  Likewise.
69054         (merge_state_array): Likewise.
69055         (update_regs): Likewise.
69056         (build_trtable): Likewise.
69057         (sift_states_backward): Mark MCTX parameter as const.
69058         (build_sifted_states): Likewise.
69059         (update_cur_sifted_state): Likewise.
69060         (sift_states_mkref): Likewise.
69061         (check_arrival_expand_ecl): Mark eclosure as const.
69062         (check_dst_limits_calc_pos_1): Likewise.
69063         * lib/regex_internal.h (re_match_context_t): Make dfa a const
69064         pointer.
69065
69066         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
69067
69068         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
69069         (transit_state_sb): Likewise.
69070         (transit_state_mb): Likewise.
69071         (sift_states_iter_mb): Likewise.
69072         (check_arrival_add_next_nodes): Likewise.
69073         (check_node_accept_bytes): Change first parameter to pointer-to-const.
69074         [_LIBC] (re_search_2_stub): Use mempcpy.
69075
69076         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
69077         mbrtowc for very simple UTF-8 case.
69078
69079         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
69080         a pointer-to-const.
69081         (re_acquire_state_context): Likewise.
69082         * lib/regex_internal.h: Adjust prototypes.
69083
69084         * lib/regex.c: Prevent using C++ compilers.
69085
69086         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
69087         (re_acquire_state_context): Likewise.
69088
69089 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69090
69091         * modules/regex (Depends-on): Add ssize_t.
69092
69093 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69094
69095         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
69096         translation table.
69097
69098 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69099
69100         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
69101
69102 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
69103             Bruno Haible  <bruno@clisp.org>
69104
69105         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
69106         <sys/types.h> and <inttypes.h>.
69107
69108 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69109
69110         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
69111         `__error_t_defined', so argp.h will not typedef the former.
69112
69113 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
69114
69115         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
69116         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
69117         glibc names.  Even if glibc is changed to conform to POSIX, the
69118         traditional names will be available anyway, since regex depends on
69119         the extensions module.  Also, fix a longstanding typo in the
69120         implementation of Spencer ERE test #75 from grep 2.3.  Problems
69121         reported by Emanuele Giaquinta.  Also, change sense of cached
69122         variable, so that the message makes sense.
69123
69124 2006-03-24  Simon Josefsson  <jas@extundo.com>
69125
69126         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
69127         including some doc fixes.
69128         (base64_encode_alloc): Fix +1 bug on allocation failures.
69129
69130 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69131
69132         * lib/base64.c (base64_encode): Do not read past end of array with
69133         unsanitized input on systems with CHAR_BIT > 8.
69134
69135 2006-03-24  Eric Blake  <ebb9@byu.net>
69136
69137         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
69138
69139 2006-03-22  Karl Berry  <karl@gnu.org>
69140
69141         * config/srclist.txt (*setenv.[ch]): get from coreutils.
69142         * config/srclistvars.sh (COREUTILS): new var.
69143
69144 2006-03-17  Jim Meyering  <jim@meyering.net>
69145
69146         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
69147         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
69148
69149 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69150
69151         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
69152         no longer needs it.  Instead, check that regoff_t is as least
69153         as wide as ptrdiff_t.
69154
69155         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
69156         so that our regex.h stays compatible with the installed regex.
69157         This is helpful for installers who configure --without-included-regex.
69158         Problem reported by Emanuele Giaquinta.
69159
69160 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69161
69162         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
69163         Typedef to long int, not to off_, as POSIX will likely change
69164         in that direction.
69165
69166 2006-03-15  Eric Blake  <ebb9@byu.net>
69167
69168         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
69169
69170 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69171
69172         * lib/argp-help.c (validate_uparams): Fix typo
69173         * lib/argp-parse.c (argp_default_options): Consistently begin help
69174         messages with a lowercase letter.
69175
69176 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
69177
69178         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
69179         overrun buffers and shouldn't be used (much as gets shouldn't be
69180         used).
69181         * lib/time_r.c (asctime_r, ctime_r): Likewise.
69182
69183 2006-03-08  Simon Josefsson  <jas@extundo.com>
69184
69185         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
69186         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69187
69188 2006-03-08  Simon Josefsson  <jas@extundo.com>
69189
69190         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
69191         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69192
69193 2006-03-08  Simon Josefsson  <jas@extundo.com>
69194
69195         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
69196         signal that configure disabled the device.
69197
69198 2006-03-08  Simon Josefsson  <jas@extundo.com>
69199
69200         * build-aux/maint.mk: Fix refresh-po, to handle no translated
69201         languages.
69202
69203 2006-03-07  Simon Josefsson  <jas@extundo.com>
69204
69205         * modules/getopt (Depends-on): Add unistd.
69206
69207         * modules/unistd: New file.
69208
69209 2006-03-07  Simon Josefsson  <jas@extundo.com>
69210
69211         * modules/gc-random: New file.
69212
69213 2006-03-07  Simon Josefsson  <jas@extundo.com>
69214
69215         * m4/unistd_h.m4: New file.
69216
69217 2006-03-07  Simon Josefsson  <jas@extundo.com>
69218
69219         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
69220         test to be side-effect free by storing the result in the cache
69221         variable gl_cv_lib_readline, and moving the assignment of
69222         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
69223         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69224
69225 2006-03-07  Simon Josefsson  <jas@extundo.com>
69226
69227         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
69228         error on missing devices (the functions will return an error).
69229
69230         * m4/gc.m4: Move random stuff to gc-random.m4
69231
69232 2006-03-07  Simon Josefsson  <jas@extundo.com>
69233
69234         * lib/unistd_.h: New file.
69235
69236 2006-03-07  Simon Josefsson  <jas@extundo.com>
69237
69238         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
69239
69240 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69241
69242         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
69243         Problem reported by Juan Manuel Guerrero.
69244
69245 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69246
69247         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
69248         the unistd module.
69249         * lib/getlogin_r.c: Likewise.
69250         * lib/getlogin_r.h: Likewise.
69251         * lib/glob.c: Likewise.
69252         * lib/pagealign_alloc.c: Likewise.
69253         * lib/unistd_.h: Remove; no longer needed.
69254
69255 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69256
69257         * MODULES.html.sh (Support for systems lacking POSIX:2001):
69258         Add unistd.
69259         * modules/c-stack (Depends-on): Add unistd.
69260         * modules/getlogin_r: Likewise.
69261         * modules/glob: Likewise.
69262         * modules/pagealign_alloc: Likewise.
69263         * modules/unistd (Files): Remove lib/unistd_.h.
69264         (EXTRA_DIST): Remove.
69265         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
69266         need unistd_.h.
69267         (MOSTLYCLEANFILES): Remove unistd.h-t.
69268
69269 2006-03-03  Simon Josefsson  <jas@extundo.com>
69270
69271         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
69272
69273 2006-03-03  Simon Josefsson  <jas@extundo.com>
69274
69275         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
69276         libidn and bison.
69277
69278 2006-03-03  Simon Josefsson  <jas@extundo.com>
69279
69280         * build-aux/maint.mk: Add indent target.
69281
69282 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
69283
69284         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
69285         our replacement poll.h in any case, to avoid a differing
69286         declaration from a system header.  Seen on AIX.
69287
69288 2006-03-01  Simon Josefsson  <jas@extundo.com>
69289
69290         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
69291         <kasal@ucw.cz>.
69292
69293 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69294
69295         * modules/gettime (Depends-on): Add extensions module.
69296         * modules/nanosleep (Depends-on): Likewise.
69297         * modules/settime (Depends-on): Likewise.
69298
69299 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69300
69301         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
69302         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
69303         pedantically.
69304         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69305         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
69306
69307         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
69308         not "==".  Reported by Ralf Wildenhues.
69309
69310 2006-03-01  Karl Berry  <karl@gnu.org>
69311
69312         * doc/Copyright/request-*: new files, synced from gnuorg.
69313
69314 2006-03-01  Karl Berry  <karl@gnu.org>
69315
69316         * config/srclist.txt (Copyright/*): new entries.
69317
69318 2006-02-28  Simon Josefsson  <jas@extundo.com>
69319
69320         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
69321
69322 2006-02-27  Simon Josefsson  <jas@extundo.com>
69323
69324         * lib/base64.h: Indent #define's.  From Jim Meyering
69325         <jim@meyering.net>.
69326
69327 2006-02-27  Jim Meyering  <jim@meyering.net>
69328
69329         Revert the change of 2006-02-24, so these files can continue
69330         to be sync'd from gettext.
69331         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
69332         of `config.h'.
69333
69334 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69335
69336         * modules/intprops: New file.
69337         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69338         Add intprops.
69339         * modules/getloadavg (Files): Remove lib/intprops.h.
69340         (Depends-on): Add intprops.
69341         * modules/human: Likewise.
69342         * modules/inttostr: Likewise.
69343         * modules/openat: Likewise.
69344         * modules/sig2str: Likewise.
69345         * modules/userspec: Likewise.
69346         * modules/utimecmp: Likewise.
69347         * modules/xnanosleep: Likewise.
69348         * modules/xstrtol: Likewise.
69349
69350 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
69351
69352         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
69353         * modules/lock-tests (TESTS): Use $(EXEEXT).
69354         * modules/tls-tests: Likewise.
69355         * modules/argp-tests: Likewise.
69356         (check_PROGRAMS): New var, replacing...
69357         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
69358
69359 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69360
69361         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
69362         `config.h'.
69363
69364 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69365
69366         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
69367
69368 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69369
69370         Sync from coreutils.
69371         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
69372         gl_CHDIR_SAFER.
69373
69374 2006-02-22  Jim Meyering  <jim@meyering.net>
69375
69376         Sync from coreutils.
69377         * m4/chdir-safer.m4: New file.
69378
69379 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69380
69381         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
69382         AT_FDCWD exceeds INT_MAX.
69383         * lib/openat.h (AT_FDCWD): Likewise.
69384
69385 2006-02-17  Eric Blake  <address@hidden>
69386
69387         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
69388
69389 2006-02-16  Simon Josefsson  <jas@extundo.com>
69390
69391         * modules/getaddrinfo (Depends-on): Add sys_socket.
69392
69393 2006-02-15  Simon Josefsson  <jas@extundo.com>
69394
69395         * build-aux/maint.mk: Add dsyntax-check rule.
69396
69397 2006-02-15  Eric Blake  <ebb9@byu.net>
69398
69399         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
69400         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
69401         'present but cannot compile' warnings on cygwin.
69402         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
69403         use ws2tcpip.h if sys/socket.h works.
69404         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
69405         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
69406
69407 2006-02-14  Simon Josefsson  <jas@extundo.com>
69408
69409         * modules/maintainer-makefile (Files): Rename.
69410
69411         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
69412         and (the local) Makefile.cfg to maint-cfg.mk.
69413
69414         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
69415         to the latter.
69416
69417         * modules/maintainer-makefile: New module.
69418
69419         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
69420         severaly stripped to make it possible to build it up from scratch
69421         with reliable tests.
69422
69423         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
69424         fixes to permit overriding the default actions when configure and
69425         makefile are not available.
69426
69427 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69428
69429         Sync from coreutils.
69430         * modules/lstat (Depends-on): Don't depend on xalloc.
69431         (License): Change from GPL to LGPL, since this is now simply a
69432         replacement for a libc function.
69433
69434 2006-02-14  Jim Meyering  <jim@meyering.net>
69435
69436         Sync from coreutils.
69437
69438         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
69439         failure on deficient systems, and simplify gnulib lgpl dependencies.
69440         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
69441         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
69442
69443         * lib/xalloc-die.c: Remove unused definition of N_.
69444
69445 2006-02-14  Jim Meyering  <jim@meyering.net>
69446
69447         Sync from coreutils.
69448         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
69449         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
69450         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
69451         double-quote uses of that variable, to accommodate the rare case in
69452         which getmntent is available in none of the libraries checked.  This
69453         happens at least on FreeBSD 5.0.
69454
69455 2006-02-13  Simon Josefsson  <jas@extundo.com>
69456
69457         * gnulib-tool (Usage): Fix --import, from
69458         karl@freefriends.org (Karl Berry).
69459
69460 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69461
69462         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
69463
69464 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
69465
69466         * lib/argp-namefrob.h: Restore changes accidentally lost during the
69467         "autoupdate" on 2005-12-12.
69468
69469 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69470
69471         * modules/closeout (Depends-on): Remove atexit.
69472
69473 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69474
69475         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
69476         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
69477
69478 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69479
69480         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
69481         __EXTENSIONS__ if this causes compilation to fail.  Problem
69482         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
69483         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
69484
69485 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
69486
69487         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
69488         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
69489         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
69490         All uses changed.
69491
69492 2006-01-26  Simon Josefsson  <jas@extundo.com>
69493
69494         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
69495         prototype is visible on mingw32.
69496
69497         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
69498         for mingw32.
69499
69500         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
69501         mingw32).
69502
69503 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69504
69505         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
69506         attempt to open for write; this always fails, at least on POSIX
69507         hosts.  This reinstates the 2006-01-09 change, which was
69508         inadvertently removed.
69509
69510 2006-01-26  Bruno Haible  <bruno@clisp.org>
69511
69512         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
69513         Reported by Paul Eggert.
69514
69515 2006-01-26  Bruno Haible  <bruno@clisp.org>
69516             Paul Eggert  <eggert@cs.ucla.edu>
69517
69518         * lib/stdbool_.h (_Bool)
69519         [(! (defined __cplusplus || defined __BEOS__)
69520           && !defined __GNUC__
69521           && !(defined __HP_cc || defined __xlc__
69522                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
69523                || defined __sgi))]:
69524         #define to signed char in these cases too; this simplifies
69525         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
69526         etc., separately) and makes it more conservative.
69527
69528 2006-01-25  Simon Josefsson  <jas@extundo.com>
69529
69530         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
69531         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
69532         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
69533
69534 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69535
69536         * lib/argp-namefrob.h: Bugfix. Remove stray #
69537
69538 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
69539
69540         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
69541         so that we test the test.
69542         Check for yet another HP-UX cc bug involving *bool |= bool.
69543
69544 2006-01-25  Karl Berry  <karl@gnu.org>
69545
69546         * config/srclist.txt (vasnprintf.c): sync lost.
69547
69548 2006-01-25  Jim Meyering  <jim@meyering.net>
69549
69550         Sync from the stable (b5) branch of coreutils:
69551
69552         * lib/fts.c (fts_children): Don't let close() clobber errno from
69553         failed fchdir().
69554
69555         * lib/fts.c (fts_stat): When following a symlink-to-directory,
69556         don't necessarily interpret stat-fails+lstat-succeeds as indicating
69557         a dangling symlink.  That can also happen at least for ELOOP.
69558         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
69559         FYI, this bug predates the inclusion of fts.c in coreutils.
69560
69561         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
69562         in their own block, so pre-c99 compilers don't object.
69563
69564         Avoid the double-free (first in fts_read, second in fts_close) that
69565         would occur when an `active' directory is made inaccessible (e.g.,
69566         via chmod a-x) during a traversal.
69567         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69568         before returning.  Reproduce this failure by
69569         mkdir -p a/b; cd a; chmod a-x . b
69570         Reported by Stavros Passas.
69571
69572 2006-01-25  Jim Meyering  <jim@meyering.net>
69573
69574         * lib/fileblocks.c: Remove more useless parentheses.
69575         * lib/readutmp.h: Likewise.
69576
69577 2006-01-25  Bruno Haible  <bruno@clisp.org>
69578
69579         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
69580         warnings.
69581         Reported by Paul Eggert.
69582
69583 2006-01-25  Bruno Haible  <bruno@clisp.org>
69584
69585         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
69586         rid of a trap command. For Solaris sh.
69587         Reported by Mark D. Baushke <mdb@gnu.org>.
69588
69589 2006-01-24  Simon Josefsson  <jas@extundo.com>
69590
69591         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
69592         Bruno.
69593
69594 2006-01-24  Karl Berry  <karl@gnu.org>
69595
69596         * config/srclist.txt (argp-namefrob.h): sync lost.
69597
69598 2006-01-24  Jim Meyering  <jim@meyering.net>
69599
69600         * modules/openat (Files): Add lib/intprops.h.
69601         From Mark D. Baushke.
69602
69603 2006-01-24  Jim Meyering  <jim@meyering.net>
69604
69605         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
69606         Reported by Mark D. Baushke.
69607
69608 2006-01-24  Jim Meyering  <jim@meyering.net>
69609
69610         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
69611
69612 2006-01-24  Bruno Haible  <bruno@clisp.org>
69613
69614         * modules/strnlen (Maintainer): Change from glibc to all.
69615
69616 2006-01-24  Bruno Haible  <bruno@clisp.org>
69617
69618         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
69619         Patch by Paul Eggert.
69620
69621 2006-01-24  Bruno Haible  <bruno@clisp.org>
69622
69623         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
69624         already has it.
69625         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
69626         2005-11-26.
69627
69628         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
69629         'signed char' to avoid problems with the built-in _Bool type.
69630         Reported by Paul Eggert on 2005-11-26.
69631
69632 2006-01-24  Bruno Haible  <bruno@clisp.org>
69633
69634         * gnulib-tool (func_import): Avoid constructing complicated sed
69635         expressions inside backquote.
69636         Report and solution by Mark D. Baushke <mdb@gnu.org>.
69637
69638 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
69639
69640         These changes imported from libc.
69641         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
69642         test and two separate function calls.
69643         * lib/strndup.c (__strndup): Add libc_hidden_def.
69644
69645 2006-01-23  Simon Josefsson  <jas@extundo.com>
69646
69647         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
69648         Remove the test_*_SOURCES variable: automake infers it by default.
69649         * modules/tls-tests: Likewise.
69650
69651 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69652
69653         Work around porting bugs reported by Dieter in
69654         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
69655         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
69656         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
69657         Include "getopt.h" first, to check interface.
69658         (getenv): Declare only if defined HAVE_DECL_GETENV &&
69659         !HAVE_DECL_GETENV.
69660         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
69661         (__strndup): Revert to K&R-style function dfns, the glibc style.
69662         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
69663         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
69664         Include strnlen.h first, to get prototype properly.
69665         (strnlen): Renamed from __strnlen.
69666         Remove weak alias.
69667
69668 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69669
69670         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
69671
69672 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69673
69674         * config/srclist.txt: Adjust to reflect glibc reorganization.
69675         This affects only comments.
69676
69677 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69678
69679          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
69680          Reported by Bruce Korb <bkorb@gnu.org>.
69681
69682 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69683
69684         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
69685         to pacify gcc -Wswitch-default.
69686
69687 2006-01-22  Bruno Haible  <bruno@clisp.org>
69688
69689         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
69690         temporary buffer for sprintf, take into account the precision also
69691         for 'd', 'i', 'u', 'o', 'x', 'X'.
69692
69693 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69694
69695         * modules/argp-tests: New module
69696         * tests/test-argp.c: New file
69697         * tests/test-argp-2.sh: New file
69698
69699 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69700
69701         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
69702         (__argp_base_name): Removed
69703         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
69704         typo.
69705         (__argp_base_name): Provide macro definition or extern declaration
69706         depending on the configuration
69707
69708 2006-01-20  Simon Josefsson  <jas@extundo.com>
69709
69710         * modules/inet_ntop (Depends-on): Depend on sys_socket.
69711
69712 2006-01-20  Simon Josefsson  <jas@extundo.com>
69713
69714         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
69715
69716 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69717
69718         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
69719         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
69720         Suggested by Bruno Haible.
69721
69722 2006-01-20  Karl Berry  <karl@gnu.org>
69723
69724         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
69725         until changes propagate, I guess.
69726
69727 2006-01-19  Simon Josefsson  <jas@extundo.com>
69728
69729         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
69730
69731 2006-01-19  Simon Josefsson  <jas@extundo.com>
69732
69733         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
69734
69735 2006-01-19  Simon Josefsson  <jas@extundo.com>
69736
69737         * gnulib-tool: Set check_PROGRAMS.
69738
69739         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69740         modules/des-tests, modules/gc-arcfour-tests,
69741         modules/gc-arctwo-tests, modules/gc-des-tests,
69742         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69743         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69744         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69745         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69746         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69747         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
69748         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
69749         test_*_SOURCES.
69750
69751 2006-01-18  Simon Josefsson  <jas@extundo.com>
69752
69753         * modules/socklen (Depends-on): Depend on sys_socket.
69754
69755 2006-01-18  Simon Josefsson  <jas@extundo.com>
69756
69757         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69758         modules/des-tests, modules/gc-arcfour-tests,
69759         modules/gc-arctwo-tests, modules/gc-des-tests,
69760         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69761         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69762         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69763         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69764         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69765         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
69766         $(EXEEXT) to automake TESTS variable, for mingw32.
69767
69768 2006-01-17  Simon Josefsson  <jas@extundo.com>
69769
69770         * modules/socklen (Include): Need sys/socket.h.
69771
69772 2006-01-17  Bruno Haible  <bruno@clisp.org>
69773
69774         * modules/ssize_t (Include): Add <sys/types.h>.
69775
69776 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
69777
69778         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
69779         it's not portable and it doesn't work with cross-compiles.
69780         Problem reported by Bruno Haible.  Fix missing-$ typo in
69781         'test "gl_cv_ignore_unused_libraries" ...' that prevented
69782         -zignore from being used with Sun's C compiler.
69783
69784 2006-01-12  Simon Josefsson  <jas@extundo.com>
69785
69786         * lib/base64.c: Fix warning, reported by Bruno Haible
69787         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
69788
69789 2006-01-12  Bruno Haible  <bruno@clisp.org>
69790
69791         * modules/ldd: New file.
69792         * build-aux/ldd.sh.in: New file.
69793         * MODULES.html.sh (Support for building libraries and executables): Add
69794         ldd.
69795
69796 2006-01-12  Bruno Haible  <bruno@clisp.org>
69797
69798         * m4/ldd.m4: New file.
69799
69800 2006-01-12  Bruno Haible  <bruno@clisp.org>
69801
69802         * gnulib-tool (func_import, func_create_testdir): Don't go into an
69803         endless loop while replacing $auxdir with build-aux.
69804
69805 2006-01-11  Simon Josefsson  <jas@extundo.com>
69806
69807         * lib/stdint_.h (SIZE_MAX): Add missing (.
69808
69809 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
69810
69811         Sync from coreutils.
69812         * lib/md5.c: Fix commentary typos.
69813         (alignof, UNALIGNED_P): No need for a GCC-specific version.
69814         * lib/md5.h (__attribute__): Remove; unused.
69815         * lib/sha1.c: Fix commentary to match md5 better.
69816         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
69817         so that we don't need to worry about alignment.  All uses changed.
69818         This merges the 2005-10-28 md5 change into sha1.
69819
69820 2006-01-11  Jim Meyering  <jim@meyering.net>
69821
69822         Sync from coreutils.
69823         * lib/md5.c (OP): Fix spacing.
69824
69825 2006-01-11  Bruno Haible  <bruno@clisp.org>
69826
69827         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69828         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
69829         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
69830
69831 2006-01-11  Bruno Haible  <bruno@clisp.org>
69832
69833         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69834         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
69835         the "early" section as well.
69836
69837 2006-01-11  Bruno Haible  <bruno@clisp.org>
69838
69839         Avoid "ar: no archive members specified" error on MacOS X.
69840         * gnulib-tool (func_modules_add_dummy): New function.
69841         (func_import, func_create_testdir): Invoke it.
69842
69843 2006-01-11  Bruno Haible  <bruno@clisp.org>
69844
69845         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
69846         with $auxdir in AC_CONFIG_FILES statements.
69847
69848 2006-01-11  Bruno Haible  <bruno@clisp.org>
69849
69850         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69851         Initialize also noinst_HEADERS to empty.
69852
69853 2006-01-11  Bruno Haible  <bruno@clisp.org>
69854
69855         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
69856         variables.
69857         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
69858         autoreconf.
69859
69860 2006-01-11  Bruno Haible  <bruno@clisp.org>
69861
69862         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
69863         overridable by the user.
69864         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69865
69866 2006-01-10  Simon Josefsson  <jas@extundo.com>
69867
69868         * modules/sys_socket: New file.
69869
69870 2006-01-10  Simon Josefsson  <jas@extundo.com>
69871
69872         * m4/sys_socket_h.m4: New file.
69873
69874 2006-01-10  Simon Josefsson  <jas@extundo.com>
69875
69876         * lib/socket_.h: New file.
69877
69878 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69879
69880         * modules/readutmp (Maintainer): Add myself.
69881
69882 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69883
69884         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
69885         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
69886         People who are still concerned with buggy memcmp implementations
69887         can invoke gl_FUNC_MEMCMP themselves.
69888
69889 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69890
69891         * lib/regex_internal.h (BITSET_WORD_BITS):
69892         Work around a bug in 64-bit PGC (before version 6.1-2), where the
69893         preprocessor mishandles large unsigned values as if they were signed.
69894         Problem reported by Claudio Fontana in
69895         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
69896
69897 2006-01-10  Jim Meyering  <jim@meyering.net>
69898
69899         Avoid the double-free (first in fts_read, second in fts_close) that
69900         would occur when an `active' directory is made inaccessible (e.g.,
69901         via chmod a-x) during a traversal.
69902         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69903         before returning.  Reproduce this failure by
69904         mkdir -p a/b; cd a; chmod a-x . b
69905         Reported by Stavros Passas.
69906
69907         Sync from coreutils.
69908         * lib/sha1.c: Tweak grammar in a comment.
69909
69910 2006-01-10  Jim Meyering  <jim@meyering.net>
69911
69912         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
69913         Patch by Joerg Sonnenberger.
69914
69915 2006-01-10  Bruno Haible  <bruno@clisp.org>
69916
69917         * modules/readutmp: Depend on module free.
69918         * modules/strtok_r: Depend on module restrict.
69919
69920 2006-01-10  Bruno Haible  <bruno@clisp.org>
69921
69922         * modules/gettext (configure.ac): Add an invocation of
69923         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
69924
69925 2006-01-10  Bruno Haible  <bruno@clisp.org>
69926
69927         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
69928         Reported by Werner Lemberg <wl@gnu.org>.
69929
69930 2006-01-10  Bruno Haible  <bruno@clisp.org>
69931
69932         * lib/localcharset.c: Update from GNU gettext.
69933
69934 2006-01-10  Bruno Haible  <bruno@clisp.org>
69935
69936         * lib/argp.h (__const): Remove macro. Use const instead.
69937         * lib/argp-fmtstream.h (__const): Likewise.
69938         * lib/glob_.h (__const): Remove macro.
69939         * lib/glob-libc.h: Use const instead of __const.
69940
69941 2006-01-10  Bruno Haible  <bruno@clisp.org>
69942
69943         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
69944         variable.
69945         Needed to avoid an automake error regarding the 'gettext' module.
69946
69947 2006-01-09  Simon Josefsson  <jas@extundo.com>
69948
69949         * modules/inet_ntop (Depends-on): Add restrict.
69950
69951 2006-01-09  Simon Josefsson  <jas@extundo.com>
69952
69953         * modules/gc-rijndael-tests (License): Put under LGPL.
69954
69955         * modules/gc-des-tests (License): Likewise.
69956
69957         * modules/gc-arcfour-tests (License): Likewise.
69958
69959         * modules/gc-arctwo-tests (License): Likewise.
69960
69961         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
69962
69963         * modules/gc-hmac-sha1-tests (Files): Likewise.
69964
69965         * modules/gc-hmac-md5-tests (License): Likewise.
69966
69967         * modules/gc-sha1-tests (License): Likewise.
69968
69969         * modules/gc-md5-tests (License): Likewise.
69970
69971         * modules/gc-md4-tests (License): Likewise.
69972
69973         * modules/gc-md2-tests (License): Likewise.
69974
69975         * modules/gc-tests (License): Likewise.
69976
69977         * modules/des-tests (License): Likewise.
69978
69979         * modules/md4-tests (License): Likewise.
69980
69981         * modules/md2-tests (License): Likewise.
69982
69983 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69984
69985         Sync from coreutils:
69986
69987         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69988         * modules/lib-ignore: New file.
69989         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69990         chdir-safer.m4, lchmod.m4.
69991         * modules/openat: Add mkdirat.c, openat-priv.h.
69992
69993 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69994
69995         Sync from coreutils.
69996         * m4/lib-ignore.m4: New file.
69997         * m4/lchmod.m4: New file.
69998
69999 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70000
70001         Sync from coreutils.
70002         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
70003         for write access: POSIX says that must fail.
70004         * lib/fts.c (diropen): Likewise.
70005         * lib/save-cwd.c (save_cwd): Likewise.
70006         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
70007         well, for minor improvements on hosts that lack O_DIRECTORY.
70008         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
70009         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
70010         Fall back on chown if open failed with EACCES.
70011
70012         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
70013         Report an error at compile-time if only a 1-second nominal clock
70014         resolution is found.
70015
70016         * lib/lchmod.h: New file.
70017         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
70018         (make_dir_parents): Use lchown rather than chown, and
70019         lchmod rather than chmod.
70020
70021         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
70022         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
70023         "proc" reported by n0dalus.
70024
70025         * lib/mountlist.c: Include <limits.h>.
70026         (dev_from_mount_options)
70027         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
70028         New function.  It no longer assumes "dev=" has the System V meaning
70029         on Linux (since it doesn't).  It also parses "dev=" more carefully.
70030         (read_file_system_list)
70031         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
70032         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
70033         dev= in that case.
70034
70035         * lib/posixtm.h (PDS_PRE_2000): New macro.
70036         * lib/posixtm.c (year): Arg is now syntax_bits rather than
70037         allow_century.  All usages changed.  Reject dates outside the range
70038         1969-1999 if PDS_PRE_2000 is used.
70039
70040 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70041
70042         Sync from coreutils.
70043         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
70044         (Time of day items): Mention the possibility of leap seconds.
70045         Problem reported by Dr. David Alan Gilbert.
70046
70047 2006-01-09  Jim Meyering  <jim@meyering.net>
70048
70049         Sync from coreutils.
70050
70051         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
70052
70053         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
70054
70055         * lib/modechange.c (mode_compile): Reject an invalid mode string
70056         that starts with an octal digit.  From Andreas Gruenbacher.
70057
70058         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
70059         and dup to open_safer and dup_safer, respectively.
70060         (openat_permissive): Fix typo in comment.
70061
70062         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
70063         "gettext.h"; either no longer needed or are guaranteed by openat.h.
70064         (_): Remove; no longer needed.
70065         (openat): Renamed from rpl_openat; no need for rpl_openat
70066         since openat.h renames openat for us.
70067         Replace most of the body with a call to openat_permissive,
70068         to avoid duplicate code.
70069         Port to (probably hypothetical) environments were mode_t is
70070         wider than int.
70071         (openat_permissive): Require mode arg, so that we can check
70072         types better.  Put it just after flags.  Change cwd failure
70073         indicator from pointer-to-bool to pointer-to-errno-value.
70074         All callers changed.
70075         Invoke openat_save_fail and/or openat_restore_fail if
70076         cwd_errno is null, so that openat can call us.
70077         (openat_permissive, fdopendir, fstatat, unlinkat):
70078         Simplify errno handling to avoid some duplicate code,
70079         as it's OK to set errno on success.
70080         * lib/openat.h: Revamp code so that function macros depend on
70081         __OPENAT_PREFIX only, not also on AT_FDCWD.
70082         (openat_ro): Remove.  Caller changed to use openat_permissive.
70083         (openat_permissive): Now a macro, if not a function.
70084         (openat_restore_fail, openat_save_fail): Now always functions,
70085         since mkdirat needs them even if __OPENAT_PREFIX is defined.
70086
70087         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
70088         and openat.c.
70089         * lib/mkdirat.c: Include openat-priv.h.
70090         Remove definitions of macros defined therein.
70091         * lib/openat.c: Likewise.
70092
70093         * lib/mkdirat.c (mkdirat): New file and function.
70094         * lib/openat.h (mkdirat): Declare.
70095
70096         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
70097
70098         * lib/openat.h (openat_permissive): Declare.
70099         (openat_ro): Define.
70100
70101         * lib/openat.c (EXPECTED_ERRNO): New macro.
70102         (openat_permissive): New function -- used in remove.c rewrite.
70103         (all functions): Set errno just before returning, only if there
70104         was an actual failure.
70105         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
70106
70107         Emulate openat-family functions using Linux's procfs, if possible.
70108         Idea and some code based on Ulrich Drepper's glibc changes.
70109
70110         * lib/openat.c: (BUILD_PROC_NAME): New macro.
70111         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
70112         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
70113         before falling back on save_cwd and restore_cwd.
70114         (fdopendir, fstatat, unlinkat): Likewise.
70115
70116         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
70117         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
70118
70119         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
70120         as second argument to va_arg.  Otherwise, some versions of gcc
70121         warn that `if this code is reached, the program will abort'.
70122
70123 2006-01-09  Jim Meyering  <jim@meyering.net>
70124
70125         Sync from coreutils.
70126         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
70127         Require openat-priv.h.
70128
70129 2006-01-09  Bruno Haible  <bruno@clisp.org>
70130
70131         * modules/strnlen (Include): Use strnlen.h.
70132
70133 2006-01-09  Bruno Haible  <bruno@clisp.org>
70134
70135         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
70136
70137 2006-01-09  Bruno Haible  <bruno@clisp.org>
70138
70139         * lib/sysexit_.h (EX_OK): New macro.
70140         Suggested by Martin Lambers <marlam@marlam.de>.
70141
70142 2006-01-09  Bruno Haible  <bruno@clisp.org>
70143
70144         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
70145         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
70146
70147 2006-01-09  Bruno Haible  <bruno@clisp.org>
70148
70149         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
70150         numbers.
70151
70152 2006-01-09  Bruno Haible  <bruno@clisp.org>
70153
70154         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
70155         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
70156         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
70157         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
70158
70159 2006-01-09  Bruno Haible  <bruno@clisp.org>
70160
70161         * build-aux/javacomp.sh.in: New file, moved from lib/.
70162         * modules/javacomp-script (Files): Update.
70163         (configure.ac): Add AC_CONFIG_FILES invocation.
70164         (EXTRA_DIST): Remove variable.
70165
70166         * build-aux/javaexec.sh.in: New file, moved from lib/.
70167         * modules/javaexec (Files): Update.
70168         (configure.ac): Add AC_CONFIG_FILES invocation.
70169         (EXTRA_DIST): Remove javaexec.sh.in.
70170
70171         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
70172         * modules/csharpcomp-script (Files): Update.
70173         (configure.ac): Add AC_CONFIG_FILES invocation.
70174         (EXTRA_DIST): Remove variable.
70175
70176         * build-aux/csharpexec.sh.in: New file, moved from lib/.
70177         * modules/csharpexec (Files): Update.
70178         (configure.ac): Add AC_CONFIG_FILES invocation.
70179         (EXTRA_DIST): Remove csharpexec.sh.in.
70180
70181 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70182
70183         Sync from coreutils.
70184
70185         Add POSIX ACL support
70186         * lib/acl.h (copy_acl, set_acl): Add declarations.
70187         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
70188         systems other than Linux.
70189         (chmod_or_fchmod): New function: use fchmod when possible,
70190         and chmod otherwise.
70191         (file_has_acl): Add a POSIX ACL implementation, with a
70192         Linux-specific subcase.
70193         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
70194         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
70195         acls are unsupported.
70196         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
70197         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
70198         are unsupported.
70199
70200 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70201
70202         Sync from coreutils.
70203         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
70204
70205 2006-01-07  Bruno Haible  <bruno@clisp.org>
70206
70207         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
70208         gl_EARLY.
70209
70210 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70211
70212         * lib/strftime.c (tzname): Don't declare if it is already #defined.
70213         Problem reported for Mingw by Mark Junker.
70214
70215 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70216
70217         * README: Gnulib normally doesn't generate a tarball.
70218
70219 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
70220
70221         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
70222         long int, not int, for nanosecond counts, so that people who are
70223         used to POSIX struct timespec won't be surprised.  Reported by Jim
70224         Meyering.
70225
70226 2005-12-28  Bruno Haible  <bruno@clisp.org>
70227
70228         * build-aux/config.rpath: Update from GNU gettext.
70229
70230 2005-12-16  Jim Meyering  <jim@meyering.net>
70231
70232         * modules/fprintftime: New module.
70233         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
70234
70235 2005-12-16  Jim Meyering  <jim@meyering.net>
70236
70237         * m4/fprintftime.m4: New file.
70238
70239 2005-12-16  Jim Meyering  <jim@meyering.net>
70240
70241         * lib/fprintftime.c, lib/fprintftime.h: New files.
70242
70243 2005-12-15  Simon Josefsson  <jas@extundo.com>
70244
70245         * modules/socklen (configure.ac): Fix M4 macro name, to align with
70246         new m4/socklen.m4.
70247
70248 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70249
70250         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
70251         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
70252
70253 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70254
70255         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
70256         * lib/argp-help.c (fill_in_uparams): Check if the constructed
70257         struct uparams is valid. Fall back to the default values if it is
70258         not.
70259
70260 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70261
70262         * modules/argp (Files): Add argp-pin.c
70263         (Depends-on): dirname
70264         (lib_SOURCES): Add argp-pin.c
70265
70266 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70267
70268         * m4/argp.m4:  Check if program_invocation_name and
70269         program_invocation_short_name are declared and define appropriate
70270         macros if they are not.
70271
70272 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70273
70274         * lib/argp-help.c (__argp_base_name): New function
70275         (__argp_short_program_name): Rewrite using __argp_base_name
70276         * lib/argp-namefrob.h: Define program_invocation_name and
70277         program_invocation_short_name if requested
70278         (__argp_base_name): Add prototype
70279         * lib/argp-parse.c (argp_def): Use gettext wrappers
70280         (argp_default_parser): Use __argp_base_name
70281         * lib/argp-pin.c: New file. Defines program_invocation_name and
70282         program_invocation_short_name on systems that lack them.
70283
70284 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70285
70286         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
70287         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70288         porting problem reported by Georg Schwarz in
70289         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70290
70291 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70292
70293         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
70294         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70295         porting problem reported by Georg Schwarz in
70296         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70297
70298 2005-12-05  Bruno Haible  <bruno@clisp.org>
70299
70300         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
70301         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
70302         Reported by Mark Junker <mjscod@gmx.de>.
70303
70304 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
70305
70306         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
70307         Use implementation from Albert Chin, with some
70308         comments/corrections by Stepan Kasal and myself.
70309
70310 2005-12-02  Bruno Haible  <bruno@clisp.org>
70311
70312         * gnulib-tool (func_import): Accept GPLed build tool modules when
70313         --lgpl is given.
70314         * modules/csharpcomp-script: New file.
70315         * modules/csharpcomp: Depend on it.
70316         * modules/javacomp-script: New file.
70317         * modules/javacomp: Depend on it.
70318         Suggested by Simon Josefsson.
70319
70320 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
70321
70322         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
70323         statement, to work around an HP-UX 10.20 compiler bug reported by
70324         Peter O'Gorman.
70325
70326 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70327
70328         * modules/savedir (Depends-on): Add openat.
70329
70330 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70331
70332         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
70333         (uintmax_t) [defined uintmax_t]: Do not declare.
70334         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
70335         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
70336         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
70337         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
70338         sake of portability to weird hosts that C allows (though we don't
70339         know of any practical examples).
70340
70341         * lib/savedir.h (fdsavedir): New decl.
70342         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
70343         contains most of the former guts of savedir.
70344         (savedir): Use savedirstream.
70345         Include "openat.h".
70346
70347 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70348
70349         * modules/obstack (Files): Add m4/ulonglong.m4.
70350         Problem reported by Davide Angelocola.
70351
70352 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
70353
70354         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
70355         coreutils no longer futzes with rounding modes.
70356
70357 2005-11-14  Jim Meyering  <jim@meyering.net>
70358
70359         * lib/mkstemp-safer.c: Include <config.h>, required for possible
70360         replacement of mkstemp.
70361
70362 2005-11-10  Simon Josefsson  <jas@extundo.com>
70363
70364         * lib/readline.c: Remove EOL.
70365
70366 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70367
70368         * modules/gethrxtime (Depends-on): Add gettime.
70369
70370 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70371
70372         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
70373         or gettimeofday; no longer needed.
70374
70375 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70376
70377         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
70378         time business.
70379         (gethrxtime) [! (HAVE_NANOUPTIME
70380         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
70381         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
70382         our own approximation.
70383
70384 2005-11-08  Eric Blake  <ebb9@byu.net>
70385
70386         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70387
70388 2005-11-08  Eric Blake  <ebb9@byu.net>
70389
70390         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70391
70392 2005-11-04  Bruno Haible  <bruno@clisp.org>
70393
70394         * gnulib-tool: Implement --update mode.
70395
70396 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70397
70398         Fix porting problem reported by Theodoros V. Kalamatianos.
70399         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
70400         Don't assume that futimes failing means we must fail.
70401
70402 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70403
70404         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
70405         variables to suggest the intended function of the PATH_MAX check.
70406
70407 2005-10-30  Kean Johnston  <jkj@sco.com>
70408
70409         Trivial changes to support SCO systems.
70410         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
70411         as PATH_MAX.
70412         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
70413         where __ptr is null when no I/O is pending.
70414
70415 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70416
70417         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
70418         leave errno alone.  Problem reported by Dmitry V. Levin.
70419
70420 2005-10-28  Simon Josefsson  <jas@extundo.com>
70421
70422         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
70423         Test more.
70424
70425         * tests/test-gc-md2.c, tests/test-md2.c: New files.
70426
70427         * modules/md2, modules/md2-tests: New files.
70428
70429 2005-10-28  Simon Josefsson  <jas@extundo.com>
70430
70431         * m4/inet_ntop.m4: More tests.
70432
70433         * m4/gc-md2.m4, md2.m4: New file.
70434
70435 2005-10-28  Simon Josefsson  <jas@extundo.com>
70436
70437         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
70438         "restrict" keywords, as per POSIX.  Protect the function
70439         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
70440         Don't use K&R prototypes.  Check the sprintf return values.
70441         Re-define EAFNOSUPPORT if not present.  Indent.
70442
70443         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
70444         suggested by Bruno Haible <bruno@clisp.org>.
70445
70446         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
70447
70448         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
70449
70450         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
70451         libgcrypt).
70452
70453         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
70454
70455         * lib/md2.h, lib/md2.c: New files.
70456
70457 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
70458
70459         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
70460         errno alone.  Problem reported by Frederic Jolliton.
70461
70462 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
70463
70464         * modules/verify (License): Change from GPL to LGPL.  This is a
70465         tiny module and there are apparently near-equivalents that are
70466         under the BSD license.
70467
70468 2005-10-24  Simon Josefsson  <jas@extundo.com>
70469
70470         * modules/sha1: Relicense to LGPL.
70471
70472 2005-10-24  Simon Josefsson  <jas@extundo.com>
70473
70474         * lib/md4.h: Shrink buffer size, now that we changed the type.
70475
70476 2005-10-23  Simon Josefsson  <jas@extundo.com>
70477
70478         * gnulib-tool (func_import): Fix --tests-base.
70479
70480 2005-10-22  Simon Josefsson  <jas@extundo.com>
70481
70482         * modules/arcfour (Depends-on): Need stdint.
70483
70484 2005-10-22  Simon Josefsson  <jas@extundo.com>
70485
70486         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
70487         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
70488
70489 2005-10-22  Simon Josefsson  <jas@extundo.com>
70490
70491         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
70492         suggested by Bruno Haible <bruno@clisp.org>.
70493
70494 2005-10-22  Simon Josefsson  <jas@extundo.com>
70495
70496         * lib/crc.h: Include stddef.h, for size_t.
70497
70498 2005-10-22  Simon Josefsson  <jas@extundo.com>
70499
70500         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
70501         arcfour_context struct (simplify test vector testing in GNU
70502         Shishi).
70503
70504 2005-10-21  Simon Josefsson  <jas@extundo.com>
70505
70506         * modules/des, modules/des-tests: New files.
70507
70508         * modules/gc-des, modules/gc-des-tests: New files.
70509
70510         * tests/test-des.c, tests/test-gc-des.c: New file.
70511
70512 2005-10-21  Simon Josefsson  <jas@extundo.com>
70513
70514         * modules/arctwo, modules/arctwo-tests: New files.
70515
70516         * tests/test-arctwo.c: New file.
70517
70518         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
70519
70520         * tests/test-gc-arctwo.c: New file.
70521
70522 2005-10-21  Simon Josefsson  <jas@extundo.com>
70523
70524         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
70525         Bruno Haible <bruno@clisp.org>.
70526
70527         * m4/gc-des.m4: New file.
70528
70529 2005-10-21  Simon Josefsson  <jas@extundo.com>
70530
70531         * m4/arctwo.m4: New file.
70532
70533         * m4/gc-arctwo.m4: New file.
70534
70535 2005-10-21  Simon Josefsson  <jas@extundo.com>
70536
70537         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
70538         block.
70539
70540 2005-10-21  Simon Josefsson  <jas@extundo.com>
70541
70542         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
70543         <bruno@clisp.org>.
70544
70545         * lib/hmac-sha1.c (hmac_sha1): Likewise.
70546
70547         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
70548         Bruno Haible <bruno@clisp.org>.
70549
70550         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
70551         <bruno@clisp.org>.
70552
70553 2005-10-21  Simon Josefsson  <jas@extundo.com>
70554
70555         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
70556
70557 2005-10-21  Simon Josefsson  <jas@extundo.com>
70558
70559         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
70560
70561 2005-10-21  Simon Josefsson  <jas@extundo.com>
70562
70563         * lib/des.h, lib/des.c: New files.
70564
70565         * lib/gc-gnulib.c: Support DES.c
70566
70567 2005-10-21  Simon Josefsson  <jas@extundo.com>
70568
70569         * lib/arctwo.h, lib/arctwo.c: New files.
70570
70571         * lib/gc-gnulib.c: Support ARCTWO.
70572
70573 2005-10-21  Simon Josefsson  <jas@extundo.com>
70574
70575         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
70576         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70577
70578 2005-10-21  Simon Josefsson  <jas@extundo.com>
70579
70580         * gnulib-tool (func_import, func_create_testdir): Define automake
70581         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
70582         Makefile.am snippet),
70583         suggested by Bruno Haible <bruno@clisp.org>.
70584
70585         * modules/gc (Makefile.am): Use it.
70586
70587 2005-10-21  Bruno Haible  <bruno@clisp.org>
70588
70589         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
70590         patch.
70591
70592 2005-10-19  Simon Josefsson  <jas@extundo.com>
70593
70594         * tests/test-gc-rijndael.c: New file.
70595
70596         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
70597
70598 2005-10-19  Simon Josefsson  <jas@extundo.com>
70599
70600         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
70601         interface too.
70602
70603 2005-10-19  Simon Josefsson  <jas@extundo.com>
70604
70605         * tests/test-gc-arcfour.c: New file.
70606
70607         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
70608
70609 2005-10-19  Simon Josefsson  <jas@extundo.com>
70610
70611         * modules/gc-md4, modules/gc-md4-tests: New file.
70612
70613         * tests/test-gc-md4.c: New file.
70614
70615 2005-10-19  Simon Josefsson  <jas@extundo.com>
70616
70617         * m4/gc-md4.m4: New file.
70618
70619 2005-10-19  Simon Josefsson  <jas@extundo.com>
70620
70621         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
70622         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
70623         <kasal@ucw.cz>.
70624
70625 2005-10-19  Simon Josefsson  <jas@extundo.com>
70626
70627         * m4/gc-arcfour.m4: New file.
70628
70629         * m4/gc-rijndael.m4: New file.
70630
70631 2005-10-19  Simon Josefsson  <jas@extundo.com>
70632
70633         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
70634
70635 2005-10-19  Simon Josefsson  <jas@extundo.com>
70636
70637         * lib/gc-gnulib.c: Support ARCFOUR.
70638
70639 2005-10-19  Simon Josefsson  <jas@extundo.com>
70640
70641         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
70642         support.
70643
70644         * lib/gc.h: Add ECB enum type.
70645
70646         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
70647
70648 2005-10-18  Simon Josefsson  <jas@extundo.com>
70649
70650         * tests/test-md5.c: New file.
70651
70652         * modules/md5-tests: New file.
70653
70654 2005-10-18  Simon Josefsson  <jas@extundo.com>
70655
70656         * tests/test-md4.c: New file.
70657
70658         * modules/md4, modules/md4-tests: New files.
70659
70660 2005-10-18  Simon Josefsson  <jas@extundo.com>
70661
70662         * m4/md4.m4: New file.
70663
70664 2005-10-18  Simon Josefsson  <jas@extundo.com>
70665
70666         * lib/md4.h, lib/md4.c: New files, based on md5.?.
70667
70668 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
70669
70670         * gnulib-tool (func_create_testdir): Omit the second check whether
70671         BUILT_SOURCES in nonempty.
70672
70673 2005-10-17  Simon Josefsson  <jas@extundo.com>
70674
70675         * tests/test-rijndael.c: New file.
70676
70677 2005-10-17  Simon Josefsson  <jas@extundo.com>
70678
70679         * modules/sha1: Depend on stdint instead of md5.
70680
70681         * modules/md5: Depend on stdint, remove uint32_t.
70682
70683 2005-10-17  Simon Josefsson  <jas@extundo.com>
70684
70685         * modules/gc-sha1-tests: New file.
70686
70687         * tests/test-gc-sha1.c: New file.
70688
70689 2005-10-17  Simon Josefsson  <jas@extundo.com>
70690
70691         * m4/md5.m4: Remove call to uint32_t.m4.
70692
70693 2005-10-17  Simon Josefsson  <jas@extundo.com>
70694
70695         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
70696
70697         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
70698         md5.h.
70699
70700         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
70701
70702         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
70703
70704 2005-10-17  Simon Josefsson  <jas@extundo.com>
70705
70706         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
70707
70708 2005-10-17  Simon Josefsson  <jas@extundo.com>
70709
70710         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
70711
70712 2005-10-17  Simon Josefsson  <jas@extundo.com>
70713
70714         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
70715
70716         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
70717
70718 2005-10-17  Bruno Haible  <bruno@clisp.org>
70719
70720         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
70721         that it can also be used in a test.
70722
70723 2005-10-16  Bruno Haible  <bruno@clisp.org>
70724
70725         * gnulib-tool (func_emit_tests_Makefile_am): Also define
70726         TESTS_ENVIRONMENT, so that individual tests can augment it.
70727
70728         * gnulib-tool (func_create_testdir): Use an intermediate target for
70729         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
70730         macros, like $(ALLOCA_H), which cannot be passed through the command
70731         line.
70732
70733 2005-10-15  Simon Josefsson  <jas@extundo.com>
70734
70735         * modules/rijndael-tests: New file.
70736
70737         * modules/rijndael: New file.
70738
70739 2005-10-15  Simon Josefsson  <jas@extundo.com>
70740
70741         * m4/rijndael.m4: New file.
70742
70743 2005-10-15  Simon Josefsson  <jas@extundo.com>
70744
70745         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
70746
70747         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
70748
70749 2005-10-14  Simon Josefsson  <jas@extundo.com>
70750
70751         * tests/test-arcfour.c: New file.
70752
70753         * modules/arcfour, modules/arcfour-tests: New files.
70754
70755 2005-10-14  Simon Josefsson  <jas@extundo.com>
70756
70757         * m4/arcfour.m4: New file.
70758
70759 2005-10-14  Simon Josefsson  <jas@extundo.com>
70760
70761         * lib/arcfour.h, lib/arcfour.c: New files.
70762
70763 2005-10-14  Roland McGrath  <roland@redhat.com>
70764
70765         Import from libc.  [BZ #1331]
70766         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
70767         macro argument.
70768         Reported by Matej Vela <vela@debian.org>.
70769
70770 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70771
70772         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
70773         include <wchar.h>; no longer needed.
70774
70775 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70776
70777         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
70778
70779 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
70780         and  Ulrich Drepper  <drepper@redhat.com>
70781
70782         Import from libc.
70783         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
70784         instead of inline stream orientation test and two separate
70785         function calls.  Pay no attention to USE_IN_LIBIO.
70786
70787 2005-10-13  Simon Josefsson  <jas@extundo.com>
70788
70789         * modules/gc-hmac-md5-tests: New file.
70790
70791         * tests/test-gc-hmac-sha1.c: New file.
70792
70793         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
70794
70795         * modules/gc-hmac-md5-tests: New file.
70796
70797         * tests/test-gc-md5.c: New file.
70798
70799         * modules/gc-md5-tests: New file.
70800
70801 2005-10-13  Simon Josefsson  <jas@extundo.com>
70802
70803         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
70804         Move memory allocation outside of loop.
70805
70806 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
70807
70808         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
70809         intermediate directory is in a read-only file system.  Problem
70810         reported by Eric Blake.
70811
70812 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
70813
70814         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
70815
70816 2005-10-12  Simon Josefsson  <jas@extundo.com>
70817
70818         * tests/test-hmac-sha1.c: New file.
70819
70820         * modules/hmac-sha1-tests: New file.
70821
70822         * modules/hmac-sha1: New file.
70823
70824 2005-10-12  Simon Josefsson  <jas@extundo.com>
70825
70826         * modules/gc-sha1: New file.
70827
70828 2005-10-12  Simon Josefsson  <jas@extundo.com>
70829
70830         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
70831
70832         * tests/test-gc-pbkdf2-sha1.c: New file.
70833
70834 2005-10-12  Simon Josefsson  <jas@extundo.com>
70835
70836         * modules/gc-md5, modules/gc-hmac-md5: New files.
70837
70838         * modules/gc (Files): Remove md5, memxor and hmac files.
70839
70840 2005-10-12  Simon Josefsson  <jas@extundo.com>
70841
70842         * m4/gc-pbkdf2-sha1.m4: New file.
70843
70844         * m4/gc-hmac-sha1.m4: New file.
70845
70846         * m4/gc-sha1: New file.
70847
70848         * m4/hmac-sha1.m4: New file.
70849
70850 2005-10-12  Simon Josefsson  <jas@extundo.com>
70851
70852         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
70853
70854         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
70855
70856 2005-10-12  Simon Josefsson  <jas@extundo.com>
70857
70858         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
70859         suggested by Bruno Haible <bruno@clisp.org>.
70860
70861 2005-10-12  Simon Josefsson  <jas@extundo.com>
70862
70863         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
70864
70865 2005-10-12  Simon Josefsson  <jas@extundo.com>
70866
70867         * lib/gc-pbkdf2-sha1.c: New file.
70868
70869         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
70870
70871 2005-10-12  Simon Josefsson  <jas@extundo.com>
70872
70873         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
70874
70875         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
70876
70877 2005-10-12  Simon Josefsson  <jas@extundo.com>
70878
70879         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
70880         GC_USE_HMAC_MD5, respectively.
70881
70882         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
70883         (gc_md5): Fix typo.
70884
70885         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
70886
70887         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
70888
70889         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
70890
70891 2005-10-12  Bruno Haible  <bruno@clisp.org>
70892
70893         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
70894         Reported by Stepan Kasal <kasal@ucw.cz>.
70895
70896 2005-10-11  Simon Josefsson  <jas@extundo.com>
70897
70898         * tests/test-crc.c: New file.
70899
70900         * modules/crc, modules/crc-tests: New files.
70901
70902 2005-10-11  Simon Josefsson  <jas@extundo.com>
70903
70904         * m4/crc.m4: New file.
70905
70906 2005-10-11  Simon Josefsson  <jas@extundo.com>
70907
70908         * lib/gc.h: Add gc_hash and gc_hash_buffer.
70909
70910         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
70911
70912         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
70913
70914 2005-10-11  Simon Josefsson  <jas@extundo.com>
70915
70916         * lib/crc.h, lib/crc.c: New files.
70917
70918         * lib/gc.h (gc_hash_buffer): Add doc.
70919
70920 2005-10-11  Bruno Haible  <bruno@clisp.org>
70921
70922         * modules/c-strcasestr: New file.
70923         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
70924
70925 2005-10-11  Bruno Haible  <bruno@clisp.org>
70926
70927         * modules/c-strcase: New file.
70928         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
70929
70930 2005-10-11  Bruno Haible  <bruno@clisp.org>
70931
70932         * lib/strcasecmp.c: Include limits.h.
70933         (strcasecmp): Avoid integer overflow on exotic platforms.
70934         * lib/strncasecmp.c: Include limits.h.
70935         (strncasecmp): Avoid integer overflow on exotic platforms.
70936         Reported by Paul Eggert.
70937
70938 2005-10-11  Bruno Haible  <bruno@clisp.org>
70939
70940         * lib/c-strcasestr.h: New file, from GNU gettext.
70941         * lib/c-strcasestr.c: New file, from GNU gettext.
70942
70943 2005-10-11  Bruno Haible  <bruno@clisp.org>
70944
70945         * lib/c-strcase.h: New file, from GNU gettext.
70946         * lib/c-strcasecmp.c: New file, from GNU gettext.
70947         * lib/c-strncasecmp.c: New file, from GNU gettext.
70948
70949 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70950
70951         * modules/mempcpy (License): GPL -> LGPL.
70952         * modules/strchrnul (License): Likewise.
70953         * modules/sysexits (License): Likewise.
70954
70955 2005-10-08  Simon Josefsson  <jas@extundo.com>
70956
70957         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
70958
70959 2005-10-07  Simon Josefsson  <jas@extundo.com>
70960
70961         * m4/memxor.m4: Remove gl_C_RESTRICT call.
70962
70963 2005-10-06  Simon Josefsson  <jas@extundo.com>
70964
70965         * tests/test-hmac-md5.c: New file.
70966
70967         * modules/hmac-md5-tests: New file.
70968
70969         * modules/hmac-md5: New file.
70970
70971 2005-10-06  Simon Josefsson  <jas@extundo.com>
70972
70973         * m4/hmac-md5.m4: New file.
70974
70975         * m4/memxor.m4: Require gl_C_RESTRICT.
70976
70977 2005-10-06  Simon Josefsson  <jas@extundo.com>
70978
70979         * lib/memxor.c (memxor): Avoid casts and warnings.
70980
70981 2005-10-06  Simon Josefsson  <jas@extundo.com>
70982
70983         * lib/hmac-md5.c: New file.
70984
70985         * lib/hmac.h: New file.
70986
70987 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70988
70989         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70990         promotes to int, not unsigned int, to catch the AIX 5.3
70991         compiler bug.
70992
70993 2005-10-05  Simon Josefsson  <jas@extundo.com>
70994
70995         * modules/memxor: New file.
70996
70997         * modules/iconv (Files): Move config.rpath to havelib, it is used
70998         there.
70999
71000         * modules/havelib (Files): Add config.rpath.
71001
71002 2005-10-05  Simon Josefsson  <jas@extundo.com>
71003
71004         * m4/memxor.m4: New file.
71005
71006 2005-10-05  Simon Josefsson  <jas@extundo.com>
71007
71008         * lib/memxor.c (memxor): Fix compiler error.
71009
71010         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
71011         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
71012
71013         * lib/memxor.h, lib/memxor.c: New files.
71014
71015         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
71016         we assume all systems have it, suggested by Jim Meyering
71017         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
71018         any systems lack sys/socket.h; mingw32 is known to lack it, but we
71019         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
71020         same reasons.
71021
71022 2005-10-05  Simon Josefsson  <jas@extundo.com>
71023
71024         * config/srclist.txt: Add glibc bug 1423 for md5.h.
71025
71026 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
71027
71028         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
71029         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
71030         needed, since the source code now assumes these .h files.
71031
71032 2005-10-05  Derek Price  <derek@ximbiot.com>
71033
71034         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
71035
71036 2005-10-05  Bruno Haible  <bruno@clisp.org>
71037
71038         * modules/stdint (License): Change to LGPL.
71039
71040 2005-10-04  Simon Josefsson  <jas@extundo.com>
71041
71042         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
71043         D. Baushke" <mdb@gnu.org>.
71044
71045 2005-10-04  Bruno Haible  <bruno@clisp.org>
71046
71047         * lib/verify.h (verify_true): Provide alternative definition for C++.
71048
71049 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
71050
71051         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
71052         (SSIZE_MAX): New macro, if not already defined.
71053         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
71054         than 2 GiB.
71055
71056 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71057
71058         Sync from coreutils.
71059         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
71060         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
71061         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
71062         ULLONG_MAX doesn't work with 2.7.2.1.
71063
71064 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71065
71066         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
71067         From Ben Pfaff.
71068
71069         * modules/exclude (Depends-on): Depend on verify.
71070         * modules/strtoimax (Depends-on): Likewise.
71071         * modules/utimecmp (Depends-on): Likewise.
71072
71073 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71074
71075         * lib/exclude.c: Include verify.h.
71076         (verify): Remove.  All callers changed to use verify.h's version.
71077         * lib/strtoimax.c: Likewise.
71078         * lib/utimecmp.c: Likewis.e
71079
71080         Sync from coreutils.
71081         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
71082         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
71083         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
71084         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
71085         bother returning ENOSYS if settimeofday or stime fails; just let
71086         them return whatever errno they want to return.
71087         * lib/utimens.c: Include unistd.h, for dup2.
71088         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
71089         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
71090
71091 2005-10-02  Jim Meyering  <jim@meyering.net>
71092
71093         Sync from coreutils.
71094         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
71095         from glibc-2.2.5 that fails for read-only files.
71096
71097 2005-10-02  Jim Meyering  <jim@meyering.net>
71098
71099         Sync from coreutils.
71100         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
71101         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
71102         `#if HAVE_CONFIG_H'.
71103         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
71104         Remove AT_FDCWD test.
71105         Do not consume the fd unless successful.
71106         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
71107         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
71108         block, so that we don't even try to compile it if settimeofday is
71109         available.  This works around a compilation failure on OSF1 V5.1,
71110         due to stime requiring a `long int*' while tv_sec is `int'.
71111
71112 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
71113
71114         Sync from coreutils.
71115         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
71116         against `yes', rather than just testing for nonempty.
71117
71118 2005-10-01  Simon Josefsson  <jas@extundo.com>
71119
71120         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
71121         and Darwin.
71122
71123         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
71124         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
71125         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
71126         freeaddrinfo and gai_strerror are declared by the POSIX headers.
71127         Check if struct addrinfo is declared.
71128
71129 2005-10-01  Simon Josefsson  <jas@extundo.com>
71130
71131         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
71132         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
71133         AI_* and EAI_* definitions.  Protect function declarations.
71134
71135 2005-10-01  Jim Meyering  <jim@meyering.net>
71136
71137         Sync from coreutils.
71138
71139         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
71140         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
71141         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
71142         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71143         in the inet and nsl libraries.  Required on Solaris 5.7.
71144
71145 2005-10-01  Jim Meyering  <jim@meyering.net>
71146
71147         Sync from coreutils.
71148         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71149         in the inet and nsl libraries.  Required on Solaris 5.7.
71150
71151 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
71152
71153         * lib/getdelim.c (getdelim): Remove unused variables.
71154
71155 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
71156
71157         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
71158         so that the code works even with ancient cpp.  Portability problem
71159         with GCC 2.7.2.1 reported by Thomas M.Ott.
71160
71161 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
71162
71163         * modules/regex (Depends-on): Add strcase.
71164
71165         * modules/gethostname (Licence): Change from GPL to LGPL, since
71166         gethostname.c is a trivial implementation of a standard library
71167         function.
71168         * modules/poll (License): Change from GPL to LGPL, since it's
71169         derived from LGPL code.
71170
71171 2005-09-27  Jim Meyering  <jim@meyering.net>
71172
71173         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
71174         HAVE_CONFIG_H.
71175
71176         * lib/intprops.h (signed_type_or_expr__): Define.
71177         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
71178         for unsigned types.
71179
71180 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
71181
71182         * lib/verify.h (verify_expr): Remove, replacing with:
71183         (verify_true): New macro that returns true instead of void.
71184         (verify_type__): Remove.
71185         (verify): Use verify_true rather than verify_type__.
71186
71187 2005-09-26  Bruno Haible  <bruno@clisp.org>
71188
71189         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
71190         is necessary.
71191         (lib_SOURCES): Remove mbchar.c.
71192         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
71193         (Files): Add m4/mbrtowc.m4.
71194         * modules/mbiter: Likewise.
71195         * modules/mbuiter: Likewise.
71196
71197 2005-09-26  Bruno Haible  <bruno@clisp.org>
71198
71199         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
71200         compile mbchar.c if they are not both present.
71201         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
71202         * m4/mbiter.m4 (gl_MBITER): Likewise.
71203         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
71204         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
71205         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
71206
71207 2005-09-25  Jim Meyering  <jim@meyering.net>
71208
71209         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
71210         also uses socklen_t.
71211
71212 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
71213
71214         * lib/utimens.c (ENOSYS): Define if not already defined.
71215         (futimens): Support having a null PATH if the file descriptor
71216         is nonnegative.
71217
71218         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
71219         Remove.
71220         (__attribute): Define to empty unless GCC 3.1 or later.
71221         This works around a core dump on OpenBSD 3.4, which has GCC
71222         2.95.3, which dumps core when given __attribute__(()).  It also
71223         simplifies other tests, since we really don't want to bother with
71224         worrying about which ancient version of GCC supported what.
71225         Original problem reported by Yoann Vandoorselaere, with part of
71226         the fix suggested by Derek Price.
71227
71228 2005-09-24  Jim Meyering  <jim@meyering.net>
71229
71230         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
71231         so we can once again use a positive bitfield width of 1 -- now we
71232         don't have to explain why we were using a bitfield width of 2.
71233
71234 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71235
71236         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
71237         and similarly for the other external symbols.  Problem reported
71238         by James Gallager.
71239
71240         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
71241         bug reported by Jim Meyering.
71242
71243         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
71244         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
71245         not needed, since socklen is a prerequisite module.
71246
71247 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71248
71249         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
71250         Problem reported by Eric Blake.
71251         (getaddrinfo): Initialize se so that it's not garbage.
71252         Redo internal storage allocation so that it doesn't make unportable
71253         assumptions about alignment.
71254         Fix a memory leak.
71255
71256         * lib/utimens.c (futimens): Use futimesat if available.
71257         Prefer it to futimes since it doesn't have the futimes bug.
71258
71259         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
71260         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
71261         Instead, declare a function that returns a pointer to an array,
71262         and use verify_type__ to declare the size of the array.
71263         Problem and germ of a solution reported by Bruno Haible.
71264         (verify_type__): Use 2, not 1, for bitfield size, to avoid
71265         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
71266
71267 2005-09-23  Jim Meyering  <jim@meyering.net>
71268
71269         Sync from coreutils.
71270         Correct build failure (socklen_t not defined) on at least
71271         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
71272         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
71273
71274 2005-09-23  Jim Meyering  <jim@meyering.net>
71275
71276         * modules/getaddrinfo (Depends-on): Add socklen.
71277
71278 2005-09-23  Bruno Haible  <bruno@clisp.org>
71279
71280         * tests/test-verify.c: New file.
71281
71282 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71283
71284         Sync from coreutils.
71285
71286         * modules/argmatch (Depends-on): Add verify.
71287         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
71288         unistd-safer.
71289         * modules/save-cwd (Depends-on): Likewise.
71290
71291         * modules/openat (Files): Add lib/openat-die.c.
71292         (Depends-on): Remove error, exitfail.
71293         Add dirname.
71294
71295         * modules/verify: New file.
71296         * MODULES.html.sh (Diagnostics <assert.h>): New section,
71297         with "verify" module.
71298
71299 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71300
71301         Sync from coreutils.
71302
71303         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
71304         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
71305         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
71306         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
71307         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
71308         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
71309         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
71310         Don't bother checking for string.h, stdlib.h, unistd.h.
71311         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
71312         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
71313         module's job.
71314         * m4/jm-macros.m4 (gl_MACROS): Likewise.
71315         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
71316
71317         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
71318         (gl_GETDATE): Use it.
71319
71320         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
71321
71322 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71323
71324         Sync from coreutils.
71325
71326         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
71327         stat-time.h.
71328         * lib/argmatch.h: Include verify.h
71329         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
71330         (ARGMATCH_ASSERT): Remove; unused.
71331         * lib/canonicalize.c: Assume STDC_HEADERS.
71332         * lib/exclude.c: Include "strcase.h".
71333         * lib/regex_internal.h [!defined _LIBC]: Likewise.
71334         * lib/getusershell.c: Include stdio--.h rather than stdio.h
71335         and stdio-safer.h.
71336         (getusershell): Call fopen, not fopen_safer.
71337         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
71338         Do not include unistd-safer.h.
71339         (save_cwd): Don't call fd_safer; no longer needed
71340         now that we include fcntl--.h.
71341
71342         * lib/getdate.y (relative_time): New type.
71343         (RELATIVE_TIME_0): New constant.
71344         (parser_control): Use relative_time instead of doing it ourselves.
71345         (%union): Add new relative_time rel member.
71346         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
71347         Now typeless.
71348         (relunit, relunit_snumber): Now of type rel.
71349         (zone, rel, relunit, get_date): Adjust to above changes.
71350
71351         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
71352         Do not include unistd-safer.h.
71353         (getloadavg): Don't call fd_safer; no longer needed
71354         now that we include fcntl--.h.
71355
71356         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
71357         (make_dir_parents): Treat ENOSYS like EEXIST.
71358
71359         Improve quality of diagnostics on restore_cwd failure.
71360         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
71361         (make_dir_parents): Last arg is now int * (for errno), not bool *.
71362         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
71363         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
71364         each time through the loop.  Do not diagnose restore_cwd failure;
71365         that is the caller's job (and perhaps the caller does not care).
71366
71367         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
71368         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
71369         If the file already exists but is not a directory, don't bother
71370         to try to make its parents.
71371         Close potential file descriptor leak if we can't chdir("/") (!).
71372         Don't always return true if chdir($PWD) fails; return true only
71373         if the requested action was done successfully (except for the
71374         chdir($PWD)).
71375         Don't log final directory unless we actually made it.
71376         Refactor to avoid duplicate code to fix up permissions.
71377         Don't attempt to fix up parent permissions if chdir($PWD) fails.
71378
71379         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
71380         to make it a bit faster and (I hope) clearer.
71381         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
71382         Fix bug in formats like %2N.
71383
71384         * lib/verify.h: New file.
71385
71386 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71387
71388         Sync from coreutils.
71389         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
71390
71391 2005-09-22  Jim Meyering  <jim@meyering.net>
71392
71393         Sync from coreutils.
71394
71395         * m4/lstat.m4 (gl_FUNC_LSTAT):
71396         Use AC_LIBSOURCES to require lstat.c and lstat.h.
71397         Remove obsolete comment.
71398         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
71399         * m4/xstrtod.m4: Likewise.
71400
71401         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
71402
71403 2005-09-22  Jim Meyering  <jim@meyering.net>
71404
71405         Sync from coreutils.
71406
71407         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
71408
71409         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
71410         the .tm_year member, since otherwise gcc-4.0 would now warn about
71411         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
71412
71413         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
71414         order to avoid an unsuppressible warning from gcc on 64-bit systems.
71415
71416         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
71417         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
71418         when run in a time zone for which daylight savings time is in effect
71419         for the starting date.
71420
71421         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
71422         stop us from restricting permissions of just-created absolute-named
71423         directories.
71424         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
71425         to restore initial working directory.
71426         * lib/mkdir-p.c (make_dir_parents): New parameter:
71427         different_working_dir, to tell caller if/when we change the working
71428         directory and are unable to return to the initial one.
71429         * lib/mkdir-p.h (make_dir_parents): Update prototype.
71430         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
71431         `return false'.  This fixes a bug introduced on 2004-07-30.
71432
71433         * lib/openat.c (fdopendir): Be sure to close the supplied
71434         file descriptor before returning.  This makes our replacement
71435         implementation a little closer to Solaris's, where fdopendir
71436         ties the file descriptor to the returned DIR* pointer.
71437         * lib/openat.c (unlinkat): New function.
71438         * lib/openat.h (unlinkat): Add prototype.
71439         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
71440         (openat_restore_fail): Rename from openat_restore_die.
71441         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
71442
71443         Provide an alternative to exiting immediately upon save_cwd or
71444         restore_cwd failure.  Now, an application can arrange e.g.,
71445         to perform a longjump in that case.
71446         * lib/openat.c: Include dirname.h.
71447         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
71448         (rpl_openat, fdopendir, fstatat): Call openat_save_die
71449         and openat_restore_die rather than calling error directly.
71450         Don't include "error.h" or "exitfail.h"; they're no longer needed.
71451
71452         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
71453         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
71454         define.
71455
71456         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
71457         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
71458                             int utc, int nanoseconds);
71459         Background:
71460         date should not have to allocate a megabyte of virtual memory to
71461         handle a format argument like +%1048575T.  When implemented with
71462         strftime, it must allocate such a buffer, use strftime to fill it
71463         in, print it, then free it.
71464         With fprintftime, it simply prints everything and exits.
71465         With no need for memory allocation, that's one fewer way to fail.
71466         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
71467         optional field width, not before, so we accept %9:z, not %:9z.
71468         (my_strftime): Be sure to use L_('x') for literals.
71469
71470         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
71471         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
71472         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
71473         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
71474         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
71475         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
71476         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
71477         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
71478         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
71479         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
71480         * lib/xgethostname.c, lib/xreadlink.c:
71481         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
71482
71483         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
71484         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
71485         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
71486         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71487         and don't include <sys/file.h>).
71488
71489 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
71490
71491         Sync from coreutils.
71492
71493         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
71494         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
71495         [!LDAV_DONE]: Avoid unused variable warning.
71496
71497 2005-09-21  Bruno Haible  <bruno@clisp.org>
71498
71499         * lib/unicodeio.h (unicode_to_mb): New declaration.
71500
71501 2005-09-20  Derek Price  <derek@ximbiot.com>
71502
71503         * lib/getaddrinfo.c: Don't include <netdb.h> included from
71504         getaddrinfo.h.
71505
71506 2005-09-20  Bruno Haible  <bruno@clisp.org>
71507
71508         * gnulib-tool: Remove trailing slashes from the values specified for
71509         --source-base, --m4-base, --tests-base, --aux-dir.
71510         Suggested by Simon Josefsson <jas@extundo.com>.
71511
71512 2005-09-20  Bruno Haible  <bruno@clisp.org>
71513
71514         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
71515         func_modules_to_filelist, func_import, func_create_testdir): Make all
71516         sorting results locale-independent, so that gnulib-cache.m4 doesn't
71517         change when gnulib-tool is invoked in a different locale.
71518
71519 2005-09-19  Simon Josefsson  <jas@extundo.com>
71520
71521         * m4/socklen.m4: Fix typo.
71522
71523 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71524
71525         Use a consistent style for including <config.h>.
71526         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
71527         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
71528         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
71529         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
71530         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
71531         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
71532         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
71533         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
71534         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
71535         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
71536         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
71537         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
71538         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
71539         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
71540         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
71541         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
71542         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
71543         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
71544         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
71545         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
71546         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
71547         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
71548         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
71549         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
71550         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
71551         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
71552         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
71553         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
71554         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
71555         lib/xstrtoumax.c, lib/yesno.c:
71556         Standardize inclusion of config.h.
71557         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
71558         lib/inttostr.h:  Removed inclusion of config.h from header files.
71559         * lib/inttostr.c:  Adjusted in-tree users.
71560         * lib/timespec.h: Remove superfluous warning to include config.h.
71561         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
71562         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
71563         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
71564         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
71565         config.h with HAVE_CONFIG_H.
71566
71567 2005-09-19  Jim Meyering  <jim@meyering.net>
71568
71569         * modules/pathmax (License): Change to LGPL.
71570
71571 2005-09-19  Derek Price  <derek@ximbiot.com>
71572
71573         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
71574
71575 2005-09-19  Bruno Haible  <bruno@clisp.org>
71576
71577         * gnulib-tool (import): Provide default for --tests-base.
71578
71579 2005-09-19  Bruno Haible  <bruno@clisp.org>
71580
71581         * doc/quote.texi: New file, extracted from gnulib.texi.
71582         * doc/ctime.texi: New file, extracted from gnulib.texi.
71583         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
71584         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
71585         * doc/gnulib.texi: Include them.
71586
71587 2005-09-18  Bruno Haible  <bruno@clisp.org>
71588
71589         Portability fix.
71590         * gnulib-tool (func_readlink): New function.
71591         (func_ln_if_changed): Use it.
71592
71593 2005-09-18  Bruno Haible  <bruno@clisp.org>
71594
71595         * gnulib-tool: Support --with-tests also with --import.
71596         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
71597         (func_import): Use variables $testsbase and $inctests. Emit a
71598         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
71599         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
71600         SUBDIRS += $testsdir.
71601         (func_create_testdir): Update.
71602
71603 2005-09-18  Bruno Haible  <bruno@clisp.org>
71604
71605         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
71606         instead of $dry_run.
71607         (func_cp_if_changed, func_mv_if_changed): Remove functions.
71608         (func_ln_if_changed): Don't handle dry-run here.
71609         (func_import): In dry-run mode, detect more precisely which actions
71610         would be performed, and don't use "...ing" verbs.
71611
71612 2005-09-18  Bruno Haible  <bruno@clisp.org>
71613
71614         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
71615         (func_import): Use join on two temporary files instead of three nested
71616         loops, in order to determine which files are new or old.
71617
71618 2005-09-18  Bruno Haible  <bruno@clisp.org>
71619
71620         * gnulib-tool (func_import): Comment out code that spits out the
71621         new files with --dry-run.
71622
71623 2005-09-18  Bruno Haible  <bruno@clisp.org>
71624
71625         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
71626
71627 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71628
71629         * lib/stat-time.h: New file.
71630         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
71631         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
71632         in a different way.
71633         (timespec_cmp): New function.
71634         * lib/utimecmp.c: Include stat-time.h.
71635         (SYSCALL_RESOLUTION): Depend on whether various struct stat
71636         members exist, not on the obsolescent ST_MTIM_NSEC.
71637         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
71638
71639 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71640
71641         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
71642
71643 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71644
71645         * MODULES.html.sh (File system functions): Add stat-time.
71646         * modules/stat-time: New file.
71647         * modules/timespec (Files): Remove m4/st_mtim.m4; this
71648         is now done in a different way, by the stat-time module.
71649         * modules/utimecmp (Depends-on): Add stat-time.
71650
71651 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71652
71653         * m4/st_mtim.m4: Remove.  Superseded by...
71654         * m4/stat-time.m4: New file.
71655         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
71656         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
71657
71658 2005-09-15  Derek Price  <derek@ximbiot.com>
71659
71660         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
71661
71662 2005-09-15  Derek Price  <derek@ximbiot.com>
71663
71664         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
71665         * lib/regex_internal.c: Ditto, using this...
71666         (__GNUC_PREREQ): ...new macro.
71667         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
71668         using...
71669         (__GNUC_PREREQ): ...this new macro.
71670
71671         * lib/strstr.h: Include string.h. Define strstr as a macro here.
71672
71673 2005-09-15  Derek Price  <derek@ximbiot.com>
71674             Paul Eggert  <eggert@cs.ucla.edu>
71675
71676         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
71677         changes, consolidating in...
71678         * lib/regex_internal.h: ...this file.
71679
71680 2005-09-13  Jim Meyering  <jim@meyering.net>
71681
71682         * lib/canon-host.c: Filter through gnu indent and reword comments
71683         slightly.
71684         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
71685
71686 2005-09-13  Derek Price  <derek@ximbiot.com>
71687
71688         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
71689         failure.
71690         Reported by Jim Meyering  <jim@meyering.net>.
71691
71692 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71693
71694         * lib/base64.c: Typo.
71695         (base64_encode): Put b64str in initialized data section.
71696
71697 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
71698
71699         Merge glibc and coreutils changes into gnulib, plus a few
71700         extra fixes.
71701         * lib/md5.c: Use #error rather than a string.
71702         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
71703         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
71704         (__attribute__): Define to empty for non recent-GCC.
71705         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
71706         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
71707         Renamed from their non-__ counterparts, with new macros replacing
71708         them if not _LIBC.  Add __THROW attribute.
71709         (rol): Remove.
71710         (struct md5_ctx): Align buffer if using GCC.
71711         * lib/sha1.h (struct sha1_ctx): Likewise.
71712         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
71713         The old name was backwards.
71714         (NOTSWAP): Remove; not used.
71715         (rol): New macro, moved here from md5.h.
71716         (sha1_process_block): Remove a FIXME that doesn't make sense.
71717
71718 2005-09-12  Derek Price  <derek@ximbiot.com>
71719
71720         Return usable errors from canon-host.
71721         * lib/canon-host.h: New file.
71722         * lib/canon-host.c (canon_host): Wrap...
71723         (canon_host_r): ...this new function, which now relies exclusively on
71724         getaddrinfo.
71725         (ch_strerror): New function.
71726         (last_cherror): New global.
71727         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
71728         interface.
71729         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
71730         void *.
71731         (freeaddrinfo): Free ai->ai_canonname when set.
71732
71733 2005-09-12  Derek Price  <derek@ximbiot.com>
71734
71735         Make canon-host require getaddrinfo.
71736         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
71737         AC_LIBSOURCE canon-host.h.  Call...
71738         (gl_PREREQ_CANON_HOST): ...this new function, which requires
71739         gl_GETADDRINFO.
71740         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
71741
71742 2005-09-12  Derek Price  <derek@ximbiot.com>
71743
71744         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
71745         LGPL.
71746         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
71747
71748 2005-09-12  Derek Price  <derek@ximbiot.com>
71749
71750         * lib/gai_strerror.c: Include config.h when available.  Include
71751         getaddrinfo.h before other headers to test interface.
71752         Reported by Larry Jones <lawrence.jones@ugs.com>.
71753
71754 2005-09-12  Derek Price  <derek@ximbiot.com>
71755             Paul Eggert  <eggert@cs.ucla.edu>
71756
71757         * modules/glob (Files): Add glob-libc.h.
71758
71759 2005-09-12  Derek Price  <derek@ximbiot.com>
71760             Paul Eggert  <eggert@cs.ucla.edu>
71761
71762         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
71763         glob_.h, glob-libc.h.
71764         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
71765
71766 2005-09-12  Derek Price  <derek@ximbiot.com>
71767             Paul Eggert  <eggert@cs.ucla.edu>
71768
71769         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
71770         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
71771         protecting things that should be done only in gnulib contexts.
71772         * lib/glob_.h: New file, containing only the glob things needed for
71773         gnulib.
71774         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
71775         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
71776         (glob, globfree, glob_pattern_p): Now defined simply in terms of
71777         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
71778         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
71779         and to respect the namespace rules better.
71780
71781 2005-09-08  Simon Josefsson  <jas@extundo.com>
71782
71783         * modules/socklen: New file.
71784
71785 2005-09-08  Simon Josefsson  <jas@extundo.com>
71786
71787         * m4/socklen.m4: New file.
71788
71789 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71790
71791         * modules/utimens (Files): Add m4/utimbuf.m4, since
71792         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
71793         Reported by Sergey Poznyakoff.
71794
71795 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71796
71797         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
71798         definitions, since that's the preferred style in glibc.
71799         Fix a minor spacing issue, and update copyright notice to match
71800         glibc's.
71801
71802 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71803
71804         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
71805
71806 2005-09-06  Simon Josefsson  <jas@extundo.com>
71807
71808         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
71809         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
71810
71811 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71812
71813         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
71814         warning.
71815
71816 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71817
71818         * config/srclist.txt: Add glibc bug 1302.
71819
71820 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
71821
71822         Change bitset word type from unsigned int to unsigned long int,
71823         as this has better performance on typical 64-bit hosts.
71824         Port bitset code to hosts with unusual word sizes.
71825         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
71826         (build_collating_symbol):
71827         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
71828         argument is a bitset.  This is merely a style issue, but it makes
71829         it clearer that an entire array is expected.
71830         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
71831         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
71832         Port to the case where bitset_word is not the same as unsigned int.
71833         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71834         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
71835         Likewise.
71836         * lib/regexec.c (check_dst_limits_calc_pos_1,
71837         check_subexp_matching_top):
71838         (build_trtable, group_nodes_into_DFAstates):
71839         Likewise.
71840         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
71841         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
71842         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
71843         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
71844         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
71845         * lib/regcomp.c (optimize_subexps, lower_subexp):
71846         Work even if bitset_word has holes in its bitwise representation.
71847         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
71848         * lib/regexec.c (check_dst_limits_calc_pos_1,
71849         check_subexp_matching_top):
71850         Likewise.
71851         * lib/regex_internal.c (re_string_reconstruct):
71852         Don't assume UCHAR_MAX == 255.
71853         * lib/regex_internal.h (bitset_set_all): Likewise.
71854         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
71855         All uses changed.
71856         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
71857         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
71858         All uses changed.
71859         (BITSET_WORD_MAX): New macro.
71860         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
71861         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
71862         (bitset_empty, bitset_copy):
71863         Prefer sizeof (bitset) to multiplying it out ourselves.
71864         (bitset_not_merge): Remove; unused.
71865         (bitset_contain): Return bool, not unsigned int with one bit on.
71866         All callers changed.
71867         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
71868         alignment than re_node_set; do this by defining a new internal
71869         type struct dests_alloc and using it to allocate memory.
71870
71871 2005-09-05  Bruno Haible  <bruno@clisp.org>
71872
71873         * gnulib-tool (func_import): Fix comparison in handling of symbolic
71874         links.
71875
71876 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
71877
71878         * modules/size_max (Makefile.am): Add size_max.h
71879
71880 2005-09-04  Derek Price  <derek@ximbiot.com>
71881
71882         * gnulib-tool (func_import): Fix reversed $symbolic logic.
71883
71884 2005-09-03  Simon Josefsson  <jas@extundo.com>
71885
71886         * gnulib-tool: Fix typo.
71887
71888 2005-09-03  Simon Josefsson  <jas@extundo.com>
71889
71890         * config/srclist.txt: Add glibc bug 1293.
71891
71892 2005-09-03  Derek Price  <derek@ximbiot.com>
71893
71894         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
71895         From Larry Jones <lawrence.jones@ugs.com>.
71896
71897 2005-09-02  Simon Josefsson  <jas@extundo.com>
71898
71899         * modules/socklen: New file.
71900
71901 2005-09-02  Simon Josefsson  <jas@extundo.com>
71902
71903         * modules/havelib: New module.
71904
71905         * modules/gettext, modules/iconv, modules/lock, modules/readline:
71906         Use havelib.
71907
71908 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71909
71910         Check for arithmetic overflow when calculating sizes, to prevent
71911         some buffer-overflow issues.  These patches are conservative, in the
71912         sense that when I couldn't determine whether an overflow was possible,
71913         I inserted a run-time check.
71914         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
71915         macros.
71916         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
71917         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
71918         (re_xnrealloc, re_x2nrealloc): New inline functions.
71919         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
71920         parse_bracket_exp):
71921         (build_equiv_class, build_charclass): Check for arithmetic overflow
71922         in size expression calculations.
71923         * lib/regex_internal.c (re_string_realloc_buffers):
71924         (build_wcs_upper_buffer, re_node_set_add_intersect):
71925         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
71926         (re_dfa_add_node, register_state): Likewise.
71927         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
71928         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
71929         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
71930         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
71931
71932 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71933
71934         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71935         m4/ulonglong.m4.  Problem reported by Martin Lambers.
71936
71937 2005-09-02  Bruno Haible  <bruno@clisp.org>
71938
71939         Support for lib vs. lib64 distinction on biarch platforms.
71940         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
71941         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
71942         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
71943
71944 2005-09-02  Bruno Haible  <bruno@clisp.org>
71945
71946         * gnulib-tool (import): In the other first-use case, provide defaults
71947         as well.
71948
71949 2005-09-02  Bruno Haible  <bruno@clisp.org>
71950
71951         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
71952         patches not yet found in the latest gettext release.
71953
71954 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71955
71956         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
71957         to avoid a collision with bits/local_lim.h in glibc.
71958         All uses changed.  Problem reported by Dmitry V. Levin in
71959         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
71960
71961         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
71962         bugs in int versus size_t comparisons.
71963         (re_string_context_at): Fix bug where the code assumed that
71964         Idx is signed.
71965
71966         Use bool where appropriate.
71967         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
71968         All callers changed.
71969         (calc_eclosure_iter): Likewise, for ROOT arg.
71970         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
71971         (build_charclass_op): Likewise, for NON_MATCH arg.
71972         * lib/regex_internal.c (re_string_allocate, re_string_construct):
71973         (re_string_construct_common): Likewise, for ICASE arg.
71974         * lib/regexec.c (re_search_2_stub, re_search_stub):
71975         Likewise, for RET_LEN arg.
71976         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71977         (set_regs): Likewise, for FL_BACKTRACK arg.
71978         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71979         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71980         (calc_eclosure_iter, parse_bracket_exp):
71981         Use bool for internal variables that are booleans.
71982         * lib/regexec.c (re_search_internal, check_matching,
71983         proceed_next_node):
71984         (set_regs, build_sifted_states, sift_states_bkref):
71985         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71986         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71987         (find_collation_sequence_value):
71988         Likewise.
71989         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71990         (re_node_set_compare):
71991         Return bool, not int. All callers changed.
71992         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71993         (build_trtable, check_node_accept): Likewise.
71994         * lib/regex_internal.h: Include stdbool.h.
71995
71996         Fix bugs uncovered when converting to bool.
71997         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71998         failure instead of charging ahead blindly.
71999         * lib/regex_internal.c (register_state): Likewise.
72000         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
72001         for freeing internal storage.
72002         (group_nodes_into_DFA_states): Use unsigned int, not int, for
72003         bitset pieces used as boolean, to avoid undefined behavior
72004         on hosts that do int overflow checking.
72005
72006 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72007
72008         * config/srclist.txt: Add glibc bugs 1285-1287.
72009
72010 2005-09-01  Jim Meyering  <jim@meyering.net>
72011
72012         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
72013         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
72014         Require gl_STAT_MACROS, too.
72015
72016 2005-09-01  Bruno Haible  <bruno@clisp.org>
72017
72018         * gnulib-tool (import): In the first-use case, provide defaults.
72019
72020 2005-09-01  Bruno Haible  <bruno@clisp.org>
72021
72022         * gnulib-tool (func_import): Remove the .tmp files.
72023
72024 2005-09-01  Bruno Haible  <bruno@clisp.org>
72025
72026         * gnulib-tool (func_import): Fix handling of symbolic links.
72027
72028 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72029
72030         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
72031         old glibc regex code mishandles strings longer than 2**31 bytes.
72032         This patch fixes this when the regex code is used in gnulib
72033         (i.e., outside glibc).
72034
72035         This patch should not affect the use of the regex code inside
72036         glibc.  No doubt this problem also needs to be handled for glibc
72037         as well, but the result will be an incompatible change to the
72038         glibc ABI, and the old ABI will have to be supported too.  That
72039         can be the the subject for another patch.
72040
72041         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
72042         governing whether the rest of this patch is active.  By default,
72043         the macro is disabled and the patch has no effect.
72044         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
72045         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
72046         (struct re_pattern_buffer, re_search, re_search_2, re_match):
72047         (re_match_2, re_set_registers): Use the new types.
72048         * lib/regex_internal.h (Idx, re_hashval_t): New types.
72049         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
72050         New macros.
72051         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
72052         (re_string_context_at, bin_tree_t, re_dfastate_t):
72053         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
72054         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
72055         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
72056         (re_string_char_size_at, re_string_wchar_at):
72057         (re_string_elem_size_at):
72058         Use the new types and macros to port to 64-bit hosts.
72059         Use unsigned types for internal values, so that the code
72060         mostly works even for arrays larger than SSIZE_MAX.
72061         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
72062         (search_duplicated_node, calc_eclosure_iter, fetch_number):
72063         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
72064         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
72065         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
72066         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
72067         (calc_inveclosure, parse_dup_op, build_range_exp):
72068         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
72069         (fetch_number, create_token_tree, mark_opt_subexp):
72070         Likewise.
72071         * lib/regex_internal.c (re_string_construct_common,
72072         create_ci_newstate):
72073         (create_cd_newstate, re_string_allocate, re_string_construct):
72074         (re_string_realloc_buffers, build_wcs_upper_buffer):
72075         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72076         (re_string_reconstruct, re_string_peek_byte_case):
72077         (re_string_fetch_byte_case, re_string_context_at):
72078         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72079         (re_node_set_init_copy, re_node_set_add_intersect):
72080         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72081         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72082         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72083         (re_acquire_state, re_acquire_state_context, register_state):
72084         Likewise.
72085         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
72086         search_cur_bkref_entry):
72087         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
72088         (re_search_internal, re_search_2_stub, re_search_stub)
72089         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
72090         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
72091         (update_cur_sifted_state, check_dst_limits):
72092         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72093         (check_subexp_limits, sift_states_bkref, merge_state_array):
72094         (check_subexp_matching_top, get_subexp, get_subexp_sub):
72095         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
72096         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72097         (expand_bkref_cache, check_node_accept_bytes):
72098         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
72099         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
72100         (acquire_init_state_context, check_halt_node_context):
72101         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
72102         (sift_states_backward, clean_state_log_if_needed):
72103         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
72104         (find_recover_state, transit_state_sb, transit_state_mb):
72105         (transit_state_bkref, build_trtable, match_ctx_clean):
72106         Likewise.
72107         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
72108         to work around an assumption that REG_MISSING is negative.
72109
72110         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
72111         (seek_collating_symbol_entry) [defined _LIBC]:
72112         (lookup_collation_sequence_value) [defined _LIBC]:
72113         (build_range_exp, build_collating_symbol) [defined _LIBC]:
72114         Use prototypes rather than old-style function definitions.
72115         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
72116         (transit_state_sb) [0]:
72117         (find_collation_sequence_value) [defined _LIBC]: Likewise.
72118
72119         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
72120         rm_eo.
72121
72122         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
72123         (optimize_subexps, lower_subexp):
72124         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
72125         since the signed shift might overflow.  Use 1u<<31 instead.
72126         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
72127         Likewise.
72128         * lib/regexec.c (check_dst_limits_calc_pos_1,
72129         check_subexp_matching_top): Likewise.
72130
72131         * lib/regcomp.c (optimize_subexps, lower_subexp):
72132         Use CHAR_BIT rather than 8, for clarity.
72133         * lib/regexec.c (check_dst_limits_calc_pos_1):
72134         (check_subexp_matching_top): Likewise.
72135         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
72136         have to worry about portability issues when shifting it left.
72137         Remove no-longer-needed test for table_size > 0.
72138         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
72139         in a word, as the resulting behavior is undefined.
72140         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
72141         in one case, a <= should have been an <, and in another case the
72142         whole test was missing.
72143         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
72144         the standard name CHAR_BIT.
72145         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
72146         this is not true on one's complement and signed-magnitude hosts.
72147
72148         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
72149         next_last_offset.
72150         (struct re_dfa_t): Remove unused member states_alloc.
72151         * lib/regcomp.c (init_dfa): Don't initialize unused members.
72152
72153 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72154
72155         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
72156         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
72157         and large-file glibc and in 32-bit large-file Solaris.
72158
72159 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72160
72161         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
72162         lengths fit in regoff_t; this isn't true if regoff_t is the same
72163         width as size_t.
72164         * lib/regex.c (re_search_internal): 5th arg is LAST_START
72165         (= START + RANGE) instead of RANGE.  This avoids overflow
72166         problems when regoff_t is the same width as size_t.
72167         All callers changed.
72168         (re_search_2_stub): Check for overflow when adding the
72169         sizes of the two strings.
72170         (re_search_stub): Check for overflow when adding START
72171         to RANGE; if it occurs, substitute the extreme value.
72172
72173 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72174
72175         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
72176
72177 2005-08-31  Jim Meyering  <jim@meyering.net>
72178
72179         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
72180         a pointer-to-const.
72181         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
72182         (register_state): Likewise.
72183         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
72184         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72185         (group_nodes_into_DFAstates): Likewise.
72186
72187 2005-08-31  Jim Meyering  <jim@meyering.net>
72188
72189         * check-module: Add a FIXME comment.
72190
72191 2005-08-31  Eric Blake  <ebb9@byu.net>
72192
72193         * modules/unistd-safer (Files): Add unistd--.h.
72194         * modules/stdio-safer (Files): Add stdio--.h.
72195
72196 2005-08-31  Derek Price  <derek@ximbiot.com>
72197
72198         * lib/getdelim.c (getdelim): Return EOF on EOF.
72199         Reported by Larry Jones <lawrence.jones@ugs.com>.
72200
72201 2005-08-31  Bruno Haible  <bruno@clisp.org>
72202
72203         Avoid unnecessary diffs in the generated lib/Makefile.am.
72204         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
72205         the generated files.
72206         (func_import): Don't set cmd.
72207
72208 2005-08-31  Bruno Haible  <bruno@clisp.org>
72209
72210         * lib/strstr.c: Include <stddef.h>, for NULL.
72211         * lib/strcasestr.c: Likewise.
72212         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72213
72214 2005-08-31  Bruno Haible  <bruno@clisp.org>
72215
72216         * gnulib-tool: New option --macro-prefix.
72217         (func_import): Use macro_prefix.
72218         (import): Handle option --macro-prefix.
72219
72220 2005-08-31  Bruno Haible  <bruno@clisp.org>
72221
72222         * gnulib-tool (import): Rename most ac_* variables to cached_*.
72223         Also use new variables cached_lgpl, cached_libtool.
72224
72225 2005-08-31  Bruno Haible  <bruno@clisp.org>
72226
72227         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
72228         always instantiating them.
72229
72230 2005-08-31  Bruno Haible  <bruno@clisp.org>
72231
72232         * gnulib-tool (func_import): Read the previous cached settings
72233         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
72234         earlier added by gnulib but are now dropped. Warn when a gnulib file
72235         overwrites a non-gnulib file.
72236
72237 2005-08-31  Bruno Haible  <bruno@clisp.org>
72238
72239         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
72240         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
72241         projects that don't keep autogenerated files in CVS. Put into
72242         actioncmd only the specified modules, not the transitive closure.
72243
72244 2005-08-31  Bruno Haible  <bruno@clisp.org>
72245
72246         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
72247         Create directories that shall be filled.
72248         (import): Don't look for gl_* macros in configure.ac. Recurse across
72249         all directories containing a gnulib-cache.m4 files, if meaningful.
72250
72251 2005-08-31  Bruno Haible  <bruno@clisp.org>
72252
72253         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
72254         (import): Set seen_libtool when we see gl_LIBTOOL.
72255
72256 2005-08-31  Bruno Haible  <bruno@clisp.org>
72257
72258         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
72259         declaration macro definitions from generated gnulib.m4.
72260
72261 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
72262
72263         * lib/iconvme.h: Add prototype for iconv_alloc.
72264
72265 2005-08-29  Simon Josefsson  <jas@extundo.com>
72266
72267         * lib/iconvme.c: Fix errno.
72268
72269 2005-08-29  Bruno Haible  <bruno@clisp.org>
72270
72271         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
72272         that it works when the directory contains spaces.
72273
72274 2005-08-29  Bruno Haible  <bruno@clisp.org>
72275
72276         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
72277
72278 2005-08-29  Bruno Haible  <bruno@clisp.org>
72279
72280         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
72281         Emit more advice.
72282
72283 2005-08-29  Bruno Haible  <bruno@clisp.org>
72284         and Stepan Kasal  <kasal@ucw.cz>
72285
72286         * check-module: If more parameters are given, check each of them
72287         separately; add more exceptions, as noted by Jim Meyering.
72288         (check_module): New procedure.
72289         (%exempt_header): Now contains all exceptions.
72290
72291 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
72292
72293         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
72294
72295 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72296
72297         * lib/iconvme.c: Split iconv_string into iconv_alloc.
72298
72299 2005-08-28  Bruno Haible  <bruno@clisp.org>
72300
72301         * m4/gnulib-tool.m4: New file.
72302
72303 2005-08-27  Jim Meyering  <jim@meyering.net>
72304
72305         * modules/unistd-safer (Files): Add pipe-safer.c.
72306         * modules/fcntl-safer (Files): Add creat-safer.c.
72307
72308 2005-08-27  Jim Meyering  <jim@meyering.net>
72309
72310         * m4/stdlib-safer.m4: New file.  From coreutils.
72311         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
72312         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
72313         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
72314         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
72315         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
72316
72317 2005-08-27  Jim Meyering  <jim@meyering.net>
72318
72319         * lib/fopen-safer.c: Merge minor changes from coreutils.
72320         * lib/dup-safer.c: Likewise.
72321         * lib/fd-safer.c: Likewise.
72322
72323         Merge from coreutils.
72324         * lib/stdio--.h: New file.
72325         * lib/stdlib--.h: New file.
72326         * lib/mkstemp-safer.c: New file.
72327
72328         GNU tar needs these.
72329         * lib/pipe-safer.c: New file.
72330         * lib/creat-safer.c: New file.
72331         * lib/fcntl--.h (creat): Define to creat_safer.
72332         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
72333         * lib/unistd--.h (pipe): Define to pipe_safer.
72334         * lib/unistd-safer.h: Declare pipe_safer.
72335
72336 2005-08-26  Simon Josefsson  <jas@extundo.com>
72337
72338         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
72339         Haible <bruno@clisp.org>.
72340
72341 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
72342
72343         * lib/regex_internal.h: Remove all references to
72344         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
72345         or better.
72346         (bitset_not, bitset_merge, bitset_not_merge):
72347         (bitset_mask, re_string_allocate, re_string_construct):
72348         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
72349         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
72350         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
72351         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
72352         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72353         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72354         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
72355         (re_acquire_state_context):
72356         Remove unnecessary forward decls.
72357         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
72358         Put __attribute at function definition,
72359         now that the function decl has been removed.
72360         * lib/regex_internal.c (re_string_peek_byte_case):
72361         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
72362         Likewise.
72363
72364 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
72365
72366         * m4/regex.m4: Add AC_PREREQ(2.50).
72367         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
72368
72369 2005-08-25  Simon Josefsson  <jas@extundo.com>
72370
72371         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
72372         __fsetlocking.
72373
72374 2005-08-25  Simon Josefsson  <jas@extundo.com>
72375
72376         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
72377         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
72378         GLIBC specific code.
72379
72380 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72381
72382         Make regex safe for g++.  This fixes one real bug (an "err"
72383         that should have been "*err").  g++ problem reported by
72384         Sam Steingold.
72385         * lib/regex_internal.h (re_calloc): New macro, consistent with
72386         re_malloc etc.  All callers of calloc changed to use re_calloc.
72387         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
72388         not int.  All callers changed.
72389         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
72390         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
72391         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
72392         (find_recover_state): Change "err" to "*err"; this fixes what
72393         appears to be a real bug.
72394         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
72395         versus int.
72396
72397 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72398
72399         * modules/regex (Depends-on): Add malloc, since the code
72400         assumes that !malloc(0) means failure.
72401
72402 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72403
72404         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
72405
72406         alloca modernization/simplification for regex.
72407         * lib/regex.c: Remove portability cruft for alloca.  This no longer
72408         needs to be at the start of the file, and can be moved into
72409         regex_internal.h and simplified.
72410         * lib/regex_internal.h: Include <alloca.h>.
72411         (__libc_use_alloca) [!defined _LIBC]: New macro.
72412         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
72413         now works outside glibc.
72414
72415 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72416
72417         * config/srclist.txt: Add glibc bugs 1241, 1245.
72418
72419 2005-08-25  Jim Meyering  <jim@meyering.net>
72420
72421         * lib/open-safer.c: Include <config.h>.
72422         Otherwise, we'd lose LARGEFILE support in any file using
72423         e.g. "fcntl--.h"
72424
72425 2005-08-25  Bruno Haible  <bruno@clisp.org>
72426
72427         * m4/minmax.m4: Require autoconf 2.52.
72428         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
72429         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
72430         alternatives of translit over the alphabet.
72431         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
72432
72433 2005-08-24  Simon Josefsson  <jas@extundo.com>
72434
72435         * tests/test-getpass.c: New file.
72436
72437 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72438
72439         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
72440         for GNU regex features.
72441
72442 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72443
72444         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
72445         * lib/regex.h (regerror): Likewise.
72446
72447         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
72448         requires this.  (The code never needed it.)
72449
72450         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
72451         All uses of recently-renamed identifiers changed to use the new,
72452         POSIX-compliant names.  The code will build and run just fine
72453         without these changes, but it's better to eat our own dog food
72454         and use the standard-conforming names.
72455
72456         * lib/regex.h: Fix a multitude of POSIX name space violations.
72457         These changes have an effect only for programs that define
72458         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
72459         do not change anything for programs compiled in the normal way.
72460         Also, there is no effect on the ABI.
72461
72462         (_REGEX_SOURCE): New macro.
72463         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
72464         defined and _GNU_SOURCE is not; this fixes a name space violation.
72465
72466         Rename the following macros to obey POSIX requirements.
72467         The old names are still visible as macros if _REGEX_SOURCE is defined.
72468         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
72469         RE_BACKSLASH_ESCAPE_IN_LISTS.
72470         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
72471         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
72472         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
72473         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
72474         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
72475         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
72476         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
72477         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
72478         (REG_INTERVALS): renamed from RE_INTERVALS.
72479         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
72480         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
72481         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
72482         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
72483         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
72484         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
72485         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
72486         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
72487         RE_UNMATCHED_RIGHT_PAREN_ORD.
72488         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
72489         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
72490         (REG_DEBUG): renamed from RE_DEBUG.
72491         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
72492         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
72493         unusual, since we can't clash with the POSIX REG_ICASE.
72494         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
72495         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
72496         (REG_NO_SUB): renamed from RE_NO_SUB.
72497         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
72498         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
72499         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
72500         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
72501         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
72502         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
72503         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
72504         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
72505         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
72506         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
72507         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
72508         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
72509         RE_SYNTAX_POSIX_MINIMAL_BASIC.
72510         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
72511         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
72512         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
72513         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
72514         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
72515         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
72516         (REG_FIXED): Renamed from REGS_FIXED.
72517         (REG_NREGS): Renamed from RE_NREGS.
72518
72519         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
72520         of other REG_* macros, since POSIX says the user is allowed to
72521         #undef these macros selectively.
72522
72523         (reg_errcode_t): Update comment stating what other tables need
72524         to be consistent.
72525
72526         Rename the following enum values to obey POSIX requirements.
72527         The old names are still visible as macros.
72528         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
72529         is not defined, since GNU is supposed to be a superset of POSIX as
72530         much as possible, and since we want reg_errcode_t to be a signed
72531         type for implementation consistency.
72532         (_REG_NOERROR): Renamed from REG_NOERROR.
72533         (_REG_NOMATCH): Renamed from REG_NOMATCH.
72534         (_REG_BADPAT): Renamed from REG_BADPAT.
72535         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
72536         (_REG_ECTYPE): Renamed from REG_ECTYPE.
72537         (_REG_EESCAPE): Renamed from REG_EESCAPE.
72538         (_REG_ESUBREG): Renamed from REG_ESUBREG.
72539         (_REG_EBRACK): Renamed from REG_EBRACK.
72540         (_REG_EPAREN): Renamed from REG_EPAREN.
72541         (_REG_EBRACE): Renamed from REG_EBRACE.
72542         (_REG_BADBR): Renamed from REG_BADBR.
72543         (_REG_ERANGE): Renamed from REG_ERANGE.
72544         (_REG_ESPACE): Renamed from REG_ESPACE.
72545         (_REG_BADRPT): Renamed from REG_BADRPT.
72546         (_REG_EEND): Renamed from REG_EEND.
72547         (_REG_ESIZE): Renamed from REG_ESIZE.
72548         (_REG_ERPAREN): Renamed from REG_ERPAREN.
72549         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
72550         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
72551         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
72552         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
72553
72554         (_REG_RE_NAME, _REG_RM_NAME): New macros.
72555         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
72556         changed.  But support the old name if the new one is not defined
72557         and if _REGEX_SOURCE.
72558
72559         Change the following member names in struct re_pattern_buffer.
72560         The old names are still supported if !_REGEX_SOURCE.
72561         The new names are always supported, regardless of _REGEX_SOURCE.
72562         (re_buffer): Renamed from buffer.
72563         (re_allocated): Renamed from allocated.
72564         (re_used): Renamed from used.
72565         (re_syntax): Renamed from syntax.
72566         (re_fastmap): Renamed from fastmap.
72567         (re_translate): Renamed from translate.
72568         (re_can_be_null): Renamed from can_be_null.
72569         (re_regs_allocated): Renamed from regs_allocated.
72570         (re_fastmap_accurate): Renamed from fastmap_accurate.
72571         (re_no_sub): Renamed from no_sub.
72572         (re_not_bol): Renamed from not_bol.
72573         (re_not_eol): Renamed from not_eol.
72574         (re_newline_anchor): Renamed from newline_anchor.
72575
72576         Change the following member names in struct re_registers.
72577         The old names are still supported if !_REGEX_SOURCE.
72578         The new names are always supported, regardless of _REGEX_SOURCE.
72579         (rm_num_regs): Renamed from num_regs.
72580         (rm_start): Renamed from start.
72581         (rm_end): Renamed from end.
72582
72583         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
72584         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
72585         Prepend __ to parameter names.
72586
72587         Undo yesterday's changes.
72588
72589 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72590
72591         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
72592         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
72593         lib/regex.c.
72594
72595 2005-08-24  Jim Meyering  <jim@meyering.net>
72596
72597         Sync from coreutils.
72598         * m4/fcntl-safer.m4: New file.
72599
72600         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
72601         and object files for this module.
72602
72603 2005-08-24  Jim Meyering  <jim@meyering.net>
72604
72605         Sync from coreutils.
72606         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
72607
72608 2005-08-24  Jim Meyering  <jim@meyering.net>
72609
72610         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
72611         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
72612
72613 2005-08-24  Jim Meyering  <jim@meyering.net>
72614
72615         * modules/fcntl-safer: New module.
72616         * modules/fts (Depends-on): Add fcntl-safer.
72617         * MODULES.html.sh (File descriptor based Input/Output):
72618         Add fcntl-safer.
72619
72620 2005-08-24  Bruno Haible  <bruno@clisp.org>
72621
72622         Support for unit test modules.
72623         * modules/README: Mention tests modules.
72624         * modules/TEMPLATE-TESTS: New file.
72625         * gnulib-tool: New options --extract-tests-module, --with-tests and
72626         --tests-base (unused for the moment).
72627         (testsbase, inctests): New variables.
72628         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
72629         (func_verify_module): Exclude TEMPLATE-TESTS.
72630         (func_verify_nontests_module, func_verify_tests_module): New functions.
72631         (func_get_dependencies): Add implicit dependency for tests modules.
72632         (func_get_tests_module): New function.
72633         (func_modules_transitive_closure): When --with-tests was specified,
72634         include the unit tests as well, unless explicitly avoided.
72635         (func_emit_lib_Makefile_am): Ignore the tests modules here.
72636         (func_emit_tests_Makefile_am): New function.
72637         (func_create_testdir): When --with-tests was specified, emit a
72638         tests/ directory.
72639         * MODULES.html.sh (Future developments): Update.
72640
72641 2005-08-24  Bruno Haible  <bruno@clisp.org>
72642
72643         * modules/tls-tests: New file.
72644         * tests/test-tls.c: New file, from GNU gettext.
72645
72646 2005-08-24  Bruno Haible  <bruno@clisp.org>
72647
72648         * modules/lock-tests: New file.
72649         * tests/test-lock.c: New file, from GNU gettext.
72650
72651 2005-08-24  Bruno Haible  <bruno@clisp.org>
72652
72653         * lib/lock.h: Add multiple inclusion guard.
72654         * lib/tls.h: Add multiple inclusion guard.
72655
72656 2005-08-24  Bruno Haible  <bruno@clisp.org>
72657
72658         * gnulib-tool: Add support for the --aux-dir option to
72659         --create-testdir, --create-megatestdir, --test, --megatest.
72660         (func_create_testdir, func_create_megatestdir): Optionally emit a
72661         AC_CONFIG_AUX_DIR directive.
72662         (create-testdir, create-megatestdir, test, megatest): Provide a
72663         default value for $auxdir.
72664
72665 2005-08-24  Bruno Haible  <bruno@clisp.org>
72666
72667         * gnulib-tool (import): Use compound statement instead of subshell
72668         where possible.
72669
72670 2005-08-24  Bruno Haible  <bruno@clisp.org>
72671
72672         * gnulib-tool (import): Change --aux-dir default to "build-aux".
72673
72674 2005-08-24  Bruno Haible  <bruno@clisp.org>
72675
72676         * gnulib-tool (func_version): Update.
72677
72678 2005-08-24  Bruno Haible  <bruno@clisp.org>
72679
72680         * gnulib-tool (func_import, func_create_testdir,
72681         func_create_megatestdir): Quote all autoconf macro arguments.
72682
72683 2005-08-24  Bruno Haible  <bruno@clisp.org>
72684
72685         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
72686         option --force, because --force causes the aclocal.m4 of each
72687         subdirectory to be newer than the corresponding config.h.in.
72688
72689 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72690
72691         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
72692         All contents moved to gl_REGEX.
72693         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
72694         assume that it does.
72695
72696 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72697
72698         * lib/regex.h (REG_NOSYS)
72699         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
72700         Define, since POSIX requires it as of 2001.
72701         (_REG_ENOSYS)
72702         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
72703         New private symbol, used to keep the enum signed in all cases.
72704         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
72705         Youngman in
72706         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
72707
72708         * lib/regex_internal.c (re_string_skip_chars, register_state):
72709         (calc_state_hash):
72710         Remove forward decls; no longer needed now that we use prototypes.
72711         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
72712         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
72713         (clean_state_log_if_needed): Likewise.
72714
72715 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72716
72717         * config/srclist.txt: Add glibc bugs 1231-1233.
72718
72719 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72720
72721         Fix problems reported by Sam Steingold in
72722         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
72723         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
72724         assumed that reg_errcode_t is a signed type, which is not
72725         necessarily true if _XOPEN_SOURCE is not defined.
72726         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
72727         since some compilers warn about it otherwise.
72728
72729 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72730
72731         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
72732         (init_word_char, create_initial_state, duplicate_node_closure):
72733         (fetch_token, peek_token_bracket, build_range_exp):
72734         (build_collating_symbol): Remove forward decls; no longer needed
72735         now that we use prototypes.
72736
72737         * lib/regcomp.c:
72738         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
72739         (re_compile_fastmap_iter, regcomp, regerror, regfree):
72740         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
72741         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
72742         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
72743         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
72744         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
72745         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
72746         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
72747         (build_range_exp, build_collating_symbol, parse_bracket_exp):
72748         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
72749         (build_charclass, build_charclass_op, fetch_number, create_tree):
72750         (create_token_tree, mark_opt_subexp, duplicate_tree):
72751         Use prototypes rather than old-style definitions.
72752
72753         * lib/regex_internal.c:
72754         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
72755         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
72756         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72757         (re_string_reconstruct, re_string_peek_byte_case):
72758         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
72759         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72760         (re_node_set_init_copy, re_node_set_add_intersect):
72761         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72762         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72763         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72764         (re_acquire_state, re_acquire_state_context, register_state):
72765         (create_ci_newstate, create_cd_newstate, free_state):
72766         Likewise.
72767         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
72768         re_search_2):
72769         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
72770         (re_search_internal, prune_impossible_nodes):
72771         (acquire_init_state_context, check_matching, static):
72772         (check_halt_node_context, check_halt_state_context, proceed_next_node):
72773         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
72774         (update_regs, sift_states_backward, build_sifted_states):
72775         (clean_state_log_if_needed, merge_state_array):
72776         (update_cur_sifted_state, add_epsilon_src_nodes):
72777         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
72778         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
72779         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
72780         (find_recover_state, check_subexp_matching_top, transit_state_mb):
72781         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
72782         (check_arrival, check_arrival_add_next_nodes):
72783         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72784         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72785         (check_node_accept_bytes, check_node_accept, extend_buffers):
72786         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
72787         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
72788         (sift_ctx_init):
72789         Likewise.
72790
72791         * lib/regex_internal.h:
72792         (re_string_allocate, re_string_construct, re_string_reconstruct):
72793         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
72794         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
72795         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
72796         (re_string_context_at, re_string_peek_byte_case):
72797         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
72798         is defined, since we now use prototypes always.
72799
72800         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
72801         C89 or better.  All uses removed.
72802
72803 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72804
72805         * config/srclist.txt: Add glibc bugs 1220-1227.
72806
72807 2005-08-20  Jim Meyering  <jim@meyering.net>
72808
72809         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
72810         of unused local, dfa.
72811
72812 2005-08-20  Bruno Haible  <bruno@clisp.org>
72813
72814         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
72815
72816 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72817
72818         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
72819         (re_node_set_insert_last, re_dfa_add_node):
72820         Rename local variables to avoid GCC shadowing warnings.
72821
72822 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72823
72824         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
72825         [defined lint]: Suppress bogus uninitialized-variable warnings.
72826
72827         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
72828         and let the caller return REG_ESPACE if out of space.  This
72829         removes an uninitialied-variable warning with GCC 4.0.1, and also
72830         avoids taking the address of a local variable.  All callers
72831         changed.
72832
72833 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72834
72835         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
72836         $LIBCSRC/posix/regexec.c.
72837         Add glibc bug 1217 for regcomp.c.
72838
72839 2005-08-19  Jim Meyering  <jim@meyering.net>
72840
72841         * lib/regexec.c (proceed_next_node): Redo local variables to
72842         avoid GCC shadowing warnings.
72843
72844 2005-08-18  Bruno Haible  <bruno@clisp.org>
72845
72846         * lib/strstr.c (strstr): Fix return value in multibyte case.
72847         * lib/strcasestr.c (strcasestr): Likewise.
72848
72849 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72850
72851         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
72852
72853 2005-08-17  Jim Meyering  <jim@meyering.net>
72854
72855         Make the %s format (seconds since the epoch) work for a negative
72856         number and when used with a zero-padded field width, e.g. %015s.
72857
72858         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
72859         label so that it precedes the code to set `digits'.  Otherwise,
72860         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
72861         print `00-22'.  Now, it prints `-0022', as it should.
72862
72863 2005-08-17  Bruno Haible  <bruno@clisp.org>
72864
72865         * modules/strstr (Files): Add m4/mbrtowc.m4.
72866         (Depends-on): Add mbuiter.
72867
72868 2005-08-17  Bruno Haible  <bruno@clisp.org>
72869
72870         * modules/strcasestr: New file.
72871         * MODULES.html.sh (String handling, based on ANSI C 89): Add
72872         strcasestr.
72873
72874 2005-08-17  Bruno Haible  <bruno@clisp.org>
72875
72876         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
72877
72878 2005-08-17  Bruno Haible  <bruno@clisp.org>
72879
72880         * modules/mbuiter: New file.
72881         * MODULES.html.sh (Extended multibyte and wide character utilities):
72882         Add mbuiter.
72883
72884 2005-08-17  Bruno Haible  <bruno@clisp.org>
72885
72886         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
72887         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
72888
72889 2005-08-17  Bruno Haible  <bruno@clisp.org>
72890
72891         * m4/strcasestr.m4: New file.
72892
72893 2005-08-17  Bruno Haible  <bruno@clisp.org>
72894
72895         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
72896         * lib/strstr.c: Completely rewritten, with multibyte locale support.
72897
72898 2005-08-17  Bruno Haible  <bruno@clisp.org>
72899
72900         * lib/strcasestr.h: New file.
72901         * lib/strcasestr.c: New file.
72902
72903 2005-08-17  Bruno Haible  <bruno@clisp.org>
72904
72905         * lib/strcasecmp.c: Use mbuiter.h.
72906
72907 2005-08-17  Bruno Haible  <bruno@clisp.org>
72908
72909         * lib/mbuiter.h: New file.
72910
72911 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72912
72913         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
72914         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
72915         and gl_GETOPT are both invoked via different paths (as happens
72916         with GNU tar CVS because it uses both argp and getopt), the former
72917         wins.
72918
72919 2005-08-16  Bruno Haible  <bruno@clisp.org>
72920
72921         * modules/tls: New file.
72922         * MODULES.html.sh (Multithreading): Add tls.
72923
72924 2005-08-16  Bruno Haible  <bruno@clisp.org>
72925
72926         * modules/strnlen1: New file.
72927         * MODULES.html.sh (String handling): Add strnlen1.
72928
72929 2005-08-16  Bruno Haible  <bruno@clisp.org>
72930
72931         * modules/strcase (Files): Add m4/mbrtowc.m4.
72932         (Depends-on): Add strnlen1, mbchar.
72933
72934 2005-08-16  Bruno Haible  <bruno@clisp.org>
72935
72936         * modules/mbiter: New file.
72937         * MODULES.html.sh (Extended multibyte and wide character utilities):
72938         Add mbiter.
72939
72940 2005-08-16  Bruno Haible  <bruno@clisp.org>
72941
72942         * modules/mbfile: New file.
72943         * MODULES.html.sh (Extended multibyte and wide character utilities):
72944         Add mbfile.
72945
72946 2005-08-16  Bruno Haible  <bruno@clisp.org>
72947
72948         * modules/mbchar: New file.
72949         * MODULES.html.sh (Extended multibyte and wide character utilities):
72950         New section.
72951
72952 2005-08-16  Bruno Haible  <bruno@clisp.org>
72953
72954         * m4/tls.m4: New file, from GNU gettext.
72955
72956 2005-08-16  Bruno Haible  <bruno@clisp.org>
72957
72958         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
72959         always.
72960         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
72961
72962 2005-08-16  Bruno Haible  <bruno@clisp.org>
72963
72964         * m4/mbiter.m4: New file.
72965
72966 2005-08-16  Bruno Haible  <bruno@clisp.org>
72967
72968         * m4/mbfile.m4: New file.
72969
72970 2005-08-16  Bruno Haible  <bruno@clisp.org>
72971
72972         * m4/mbchar.m4: New file.
72973
72974 2005-08-16  Bruno Haible  <bruno@clisp.org>
72975
72976         * lib/tls.h: New file, from GNU gettext.
72977         * lib/tls.c: New file, from GNU gettext.
72978
72979 2005-08-16  Bruno Haible  <bruno@clisp.org>
72980
72981         * lib/strnlen1.h: New file.
72982         * lib/strnlen1.c: New file.
72983
72984 2005-08-16  Bruno Haible  <bruno@clisp.org>
72985
72986         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72987         (mbi_init): Update.
72988         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72989         NUL byte, not after it.
72990
72991 2005-08-16  Bruno Haible  <bruno@clisp.org>
72992
72993         * lib/strcase.h (strcasecmp): Add note in comments.
72994         * lib/strncasecmp.c: Use code from strcasecmp.c.
72995         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72996         (strcasecmp): Work correctly in multibyte locales.
72997
72998 2005-08-16  Bruno Haible  <bruno@clisp.org>
72999
73000         * lib/mbiter.h: New file.
73001
73002 2005-08-16  Bruno Haible  <bruno@clisp.org>
73003
73004         * lib/mbfile.h: New file.
73005
73006 2005-08-16  Bruno Haible  <bruno@clisp.org>
73007
73008         * lib/mbchar.h: New file.
73009         * lib/mbchar.c: New file.
73010
73011 2005-08-16  Bruno Haible  <bruno@clisp.org>
73012
73013         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
73014         the valid ones. Makes the comparison operations transitive:
73015         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
73016         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
73017
73018 2005-08-15  Simon Josefsson  <jas@extundo.com>
73019
73020         * modules/ssize_t (License): Change to 'unlimited'.
73021
73022         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
73023
73024 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73025
73026         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
73027         Add comments for each pending glibc patch.
73028
73029 2005-08-15  Bruno Haible  <bruno@clisp.org>
73030
73031         * lib/regex.h (__restrict_arr): Don't define to __restrict if
73032         __cplusplus is defined.
73033
73034 2005-08-14  Jim Meyering  <jim@meyering.net>
73035
73036         Sync from coreutils.
73037
73038         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
73039         Use the hash-table-based cycle-detection code not just when
73040         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
73041         Reported by James Youngman in
73042         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
73043         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
73044         FTS_TIGHT_CYCLE_CHECK.
73045         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
73046         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
73047         once again.
73048         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
73049         * lib/fts.c (fd_safer): Remove decl.
73050         Include fcntl--.h rather than unistd-safer.h
73051         (fts_safe_changedir): Don't call fd_safer; no longer needed
73052         now that we include fcntl--.h.
73053
73054 2005-08-12  Simon Josefsson  <jas@extundo.com>
73055
73056         * modules/getndelim2: Use ssize_t module.
73057         * modules/getnline: Likewise.
73058         * modules/safe-read: Likewise.
73059         * modules/xreadlink: Likewise.
73060
73061         * modules/ssize_t: New file.
73062
73063 2005-08-12  Simon Josefsson  <jas@extundo.com>
73064
73065         * m4/readline.m4: Look for termcap, curses or ncurses if required.
73066
73067 2005-08-12  Simon Josefsson  <jas@extundo.com>
73068
73069         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73070         ssize_t.
73071
73072 2005-08-12  Simon Josefsson  <jas@extundo.com>
73073
73074         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
73075         readline, getdelim and check_version.
73076         (Support for systems lacking ISO C 99: Sizes of integer types):
73077         Add size_max.
73078
73079 2005-08-12  Bruno Haible  <bruno@clisp.org>
73080
73081         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
73082
73083 2005-08-11  Simon Josefsson  <jas@extundo.com>
73084
73085         * modules/readline: New file.
73086
73087         * modules/strnlen (Files): Add strnlen.h.
73088
73089 2005-08-11  Simon Josefsson  <jas@extundo.com>
73090
73091         * m4/readline.m4: New file.
73092
73093 2005-08-11  Simon Josefsson  <jas@extundo.com>
73094
73095         * lib/readline.h, readline.c: New file.
73096
73097 2005-08-11  Simon Josefsson  <jas@extundo.com>
73098
73099         * doc/gnulib.texi (Initial import, Finishing touches): Mention
73100         gl_AVOID.
73101
73102 2005-08-11  Bruno Haible  <bruno@clisp.org>
73103
73104         * lib/strnlen.h (strnlen): Change parameter name to match comment.
73105
73106 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
73107
73108         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
73109
73110 2005-08-10  Simon Josefsson  <jas@extundo.com>
73111
73112         * tests/test-iconvme.c: New file.
73113
73114 2005-08-10  Simon Josefsson  <jas@extundo.com>
73115
73116         * m4/strnlen.m4: New file.
73117
73118         * m4/strndup.m4: Don't check for strnlen declaration, done in
73119         strnlen.m4.
73120
73121 2005-08-10  Simon Josefsson  <jas@extundo.com>
73122
73123         * lib/strndup.c: Use strnlen.h.
73124
73125         * lib/strnlen.h: New file.
73126
73127 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73128
73129         * README: Typos.
73130
73131 2005-08-02  Simon Josefsson  <jas@extundo.com>
73132
73133         * modules/readline: New file.
73134
73135 2005-08-02  Simon Josefsson  <jas@extundo.com>
73136
73137         * modules/getdelim: New file.
73138
73139         * modules/getline: Rewrite, don't use getndelim2.
73140
73141 2005-08-02  Simon Josefsson  <jas@extundo.com>
73142
73143         * m4/getline.m4: Separate out getdelim stuff into separate module.
73144
73145         * m4/getdelim.m4: New file.
73146
73147 2005-08-02  Simon Josefsson  <jas@extundo.com>
73148
73149         * lib/getline.h, getline.c: Rewrite.
73150
73151         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
73152
73153 2005-07-31  Bruno Haible  <bruno@clisp.org>
73154
73155         * lib/lock.h (gl_lock_initializer): New macro.
73156         (gl_lock_define_initialized): Use it.
73157         (gl_rwlock_initializer): New macro.
73158         (gl_rwlock_define_initialized): Use it.
73159         (gl_recursive_lock_initializer): New macro.
73160         (gl_recursive_lock_define_initialized): Use it.
73161
73162 2005-07-30  Karl Berry  <karl@gnu.org>
73163
73164         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
73165         Report from Ben Pfaff, regarding getopt.
73166
73167 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
73168
73169         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
73170         normal way.
73171         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
73172         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
73173         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
73174         (gl_GETOPT): Use the new macros.  Most of the implementation
73175         is moved to the new macros.  This is for programs like Emacs
73176         that don't want all the functionality of gl_GETOPT.
73177
73178 2005-07-26  Bruno Haible  <bruno@clisp.org>
73179
73180         * m4/lock.m4: Update from GNU gettext.
73181
73182 2005-07-26  Bruno Haible  <bruno@clisp.org>
73183
73184         * lib/lock.h: Update from GNU gettext.
73185         * lib/lock.c: Update from GNU gettext.
73186
73187 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
73188
73189         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
73190         obsolescent AC_TRY_RUN.  Include the default includes files, for
73191         'exit'.
73192
73193 2005-07-24  Bruno Haible  <bruno@clisp.org>
73194
73195         * modules/visibility: New file.
73196         * MODULES.html.sh (Misc): Add visibility.
73197
73198 2005-07-24  Bruno Haible  <bruno@clisp.org>
73199
73200         * m4/visibility.m4: New file.
73201
73202 2005-07-24  Bruno Haible  <bruno@clisp.org>
73203
73204         * doc/visibility.texi: New file.
73205
73206 2005-07-22  Bruno Haible  <bruno@clisp.org>
73207
73208         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
73209         $(ALLOCA_H), redundant through BUILT_SOURCES.
73210         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
73211         redundant through BUILT_SOURCES.
73212         * modules/byteswap (Makefile.am): Remove explicit dependency on
73213         $(BYTESWAP_H), redundant through BUILT_SOURCES.
73214         * modules/fnmatch (Makefile.am): Remove explicit dependency on
73215         $(FNMATCH_H), redundant through BUILT_SOURCES.
73216         * modules/getopt (Makefile.am): Remove explicit dependency on
73217         $(GETOPT_H), redundant through BUILT_SOURCES.
73218         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
73219         redundant through BUILT_SOURCES.
73220         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
73221         redundant through BUILT_SOURCES.
73222         * modules/stdbool (Makefile.am): Remove explicit dependency on
73223         $(STDBOOL_H), redundant through BUILT_SOURCES.
73224         * modules/stdint (Makefile.am): Remove explicit dependency on
73225         $(STDINT_H), redundant through BUILT_SOURCES.
73226         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
73227         Remove explicit dependency on $(SYSEXITS_H).
73228         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
73229
73230 2005-07-18  Simon Josefsson  <jas@extundo.com>
73231
73232         * lib/check-version.c (check_version): Accept identical versions too.
73233
73234 2005-07-18  Bruno Haible  <bruno@clisp.org>
73235
73236         * modules/lock: New file.
73237         * MODULES.html.sh (Multithreading): New section.
73238
73239 2005-07-18  Bruno Haible  <bruno@clisp.org>
73240
73241         * m4/lock.m4: New file, from GNU gettext.
73242
73243 2005-07-18  Bruno Haible  <bruno@clisp.org>
73244
73245         * lib/lock.h: New file, from GNU gettext.
73246         * lib/lock.c: New file, from GNU gettext.
73247
73248 2005-07-18  Bruno Haible  <bruno@clisp.org>
73249
73250         * lib/lock.h (gl_once_t): New type.
73251         (gl_once_define, gl_once): New macros.
73252         * lib/lock.c (fresh_once): New variable.
73253         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
73254         functions.
73255
73256 2005-07-16  Simon Josefsson  <jas@extundo.com>
73257
73258         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
73259         workaround, suggested by Bruno.
73260
73261 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73262
73263         * modules/xalloc (Depends-on): Add xalloc-die.
73264         * modules/xvasprintf (Depends-on): Add xalloc-die.
73265
73266 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73267
73268         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
73269         with a minor change.
73270
73271 2005-07-15  Bruno Haible  <bruno@clisp.org>
73272
73273         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
73274         When using lib/poll.c, define poll as rpl_poll.
73275
73276 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
73277
73278         * modules/argp (Depends-on): Remove unlocked-io.
73279
73280 2005-07-14  Derek Price  <derek@ximbiot.com>
73281
73282         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
73283         for glob symlink bug.
73284
73285 2005-07-14  Bruno Haible  <bruno@clisp.org>
73286
73287         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
73288         Instead, test for *_unlocked function declarations directly.
73289
73290 2005-07-11  Simon Josefsson  <jas@extundo.com>
73291
73292         * modules/size_max: New file.
73293
73294         * modules/xsize: Depend on size_max module for size_max.m4.
73295
73296 2005-07-11  Simon Josefsson  <jas@extundo.com>
73297
73298         * lib/size_max.h: New file.
73299
73300 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
73301
73302         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
73303         copyright symbol and the year.
73304         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
73305         (version_etc_va): Use parameterized copyright notice.
73306         Reword to conform to the current GNU coding standards.
73307
73308 2005-07-11  Karl Berry  <karl@gnu.org>
73309
73310         * doc/gnulib.texi (Quoting): new node.
73311         (Initial import): more info, from Patrice.
73312
73313 2005-07-11  Bruno Haible  <bruno@clisp.org>
73314
73315         * gnulib-tool (func_usage): Document option --avoid.
73316         (Command line options): Handle --avoid.
73317         (func_acceptable): New function.
73318         (func_modules_transitive_closure): Use it.
73319
73320 2005-07-11  Bruno Haible  <bruno@clisp.org>
73321
73322         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
73323         Reported by Jim Meyering.
73324
73325 2005-07-10  Bruno Haible  <bruno@clisp.org>
73326
73327         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
73328         Needed when size_t is smaller than 'unsigned int'.
73329         Reported by Paul Eggert.
73330
73331 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73332
73333         * modules/argp (Depends-on): Add unlocked-io
73334
73335 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73336
73337         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
73338         block of defines.
73339
73340 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73341
73342         * config/srclist.txt: Comment out regcomp.c, since we have a porting
73343         fix now.
73344
73345 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
73346         and Paul Eggert  <eggert@cs.ucla.edu>
73347
73348         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
73349         in wint_t, not wchar_t.  Remove now-unnecessary cast.
73350
73351 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73352
73353         * modules/regex (Files): Add lib/regex_internal.c,
73354         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
73355         (Depends-on): Add extensions.
73356         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
73357
73358 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73359
73360         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
73361         pathconf.
73362         * m4/same.m4 (gl_SAME): Likewise.
73363         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
73364
73365         * m4/regex.m4: Adjust to new libc regex implementation.
73366         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
73367         all the .c and .h parts of (the new) regex.
73368         Quote the m4 stuff better.
73369         Check for RE_ICASE bug of old gnulib.
73370         Check for REG_STARTEND of recent libc.
73371         Rename local variables from jm_* to gl_*.
73372         Quote operand of "test -f".
73373         Say "recent enough" version of libc, not "version 2".
73374         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
73375         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
73376         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
73377         Remove check for btowc, isascii.
73378         Require AM_LANGINFO_CODESET.
73379
73380 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73381
73382         * lib/regex.c, regex.h: Sync from libc.
73383         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
73384         * lib/regexec.c:
73385         New files, synced from libc, except that regex_internal.h
73386         currently has a small porting fix.
73387
73388 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73389
73390         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
73391         regex_internal.c, regexec.c.
73392         Add regex_internal.h too, but as a comment, since the libc version
73393         is currently broken in gnulib mode.
73394
73395 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73396
73397         Support programs like Emacs that use gnulib but not gettext.
73398         * MODULES.html.sh (Internationalization functions): Add gettext-h.
73399         * modules/gettext-h: New file.
73400         * modules/gettext (Files): Remove lib/gettext.h.
73401         (Depends-on): Add gettext-h.
73402         (Makefile.am): Remove lib_SOURCES.
73403         * modules/argmatch, modules/c-stack, modules/closeout:
73404         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
73405         * modules/execute, modules/file-type, modules/getaddrinfo:
73406         * modules/getopt, modules/human, modules/javacomp:
73407         * modules/javaexec, modules/mkdir-p, modules/obstack:
73408         * modules/openat, modules/pagealign_alloc, modules/pipe:
73409         * modules/quotearg, modules/regex, modules/rpmatch:
73410         * modules/unicodeio, modules/userspec, modules/version-etc:
73411         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
73412         * modules/xsetenv:
73413         Depend on gettext-h, not gettext.
73414
73415 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73416
73417         * gnulib-tool (func_import): Add support for 'public domain' license.
73418         * modules/alloca, modules/atexit, modules/memmove:
73419         Now public domain, not GPL.
73420         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
73421         * modules/realloc, modules/strerror, modules/strtod:
73422         Now LGPL, not GPL.
73423
73424 2005-07-05  Bruno Haible  <bruno@clisp.org>
73425
73426         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
73427         autoconf CVS. Needed for mingw.
73428
73429 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73430
73431         Remove the dependency of the strftime module on the tzset module.
73432         * modules/strftime (Depends-on): Remove dependency on tzset.
73433
73434 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73435
73436         Remove the dependency of the strftime module on the tzset module.
73437         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
73438         gl_FUNC_TZSET_CLOBBER.
73439
73440 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73441
73442         Remove the dependency of the strftime module on the tzset module.
73443         * lib/strftime.c (my_strftime)
73444         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
73445         Copy the input structure, to work around some of the bug with
73446         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
73447         Solaris releases, you should also use the tzset module, but we won't
73448         require it as a dependency any more since we don't want LGPLed code
73449         to depend on GPLed code.
73450
73451 2005-07-02  Jim Meyering  <jim@meyering.net>
73452
73453         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
73454         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
73455         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
73456         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
73457
73458 2005-07-02  Jim Meyering  <jim@meyering.net>
73459
73460         * lib/backupfile.c (backup_args): Change a `0' to NULL.
73461
73462 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73463
73464         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
73465         declares only 'struct timespec;' (!).
73466
73467 2005-07-01  Jim Meyering  <jim@meyering.net>
73468
73469         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
73470         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
73471         * lib/save-cwd.c, tempname.c:
73472         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73473         and don't include <sys/file.h>).
73474
73475 2005-06-29  Jim Meyering  <jim@meyering.net>
73476
73477         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
73478         type name.  Use the variable name instead.
73479         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
73480         Likewise.
73481
73482 2005-06-28  Simon Josefsson  <jas@extundo.com>
73483
73484         * modules/check-version (Files): Add check-version.m4.
73485
73486 2005-06-28  Simon Josefsson  <jas@extundo.com>
73487
73488         * m4/check-version.m4: New file, suggested by Jim Meyering
73489         <jim@meyering.net>.
73490
73491 2005-06-28  Simon Josefsson  <jas@extundo.com>
73492
73493         * lib/check-version.h, lib/check-version.c: New files.
73494
73495 2005-06-28  Simon Josefsson  <jas@extundo.com>
73496
73497         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
73498         collision with global variable.  Better indentation.  Don't
73499         increment buffer pointer beyond buffer end.  Based on comments
73500         from Paul Eggert <eggert@cs.ucla.edu>.
73501
73502         * lib/base64.h: Indent.
73503
73504 2005-06-28  Simon Josefsson  <jas@extundo.com>
73505
73506         * doc/gnulib.texi (Library version handling): New section.
73507
73508 2005-06-28  Jim Meyering  <jim@meyering.net>
73509
73510         * check-module (find_included_lib_files): Hard-code another
73511         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
73512         but modules/fts-lgpl (correctly) does not list those files.
73513
73514         * modules/canonicalize (Files): Add lib/pathmax.h.
73515
73516 2005-06-25  Simon Josefsson  <jas@extundo.com>
73517
73518         * modules/check-version: New file.
73519
73520 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
73521
73522         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
73523         initializer of struct addrinfo, as an indication that we don't
73524         care how many members the structure has.
73525
73526 2005-06-24  Derek Price  <derek@ximbiot.com>
73527         and Bruno Haible  <bruno@clisp.org>
73528
73529         Remove stat module & update lstat.
73530         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
73531         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73532         * m4/stat.m4: Remove this file.
73533
73534 2005-06-24  Derek Price  <derek@ximbiot.com>
73535         and Bruno Haible  <bruno@clisp.org>
73536
73537         Remove stat module & update lstat.
73538         * lib/stat.c: Remove this file...
73539         (slash_aware_lstat): ...moving this content and its support...
73540         * lib/lstat.c (rpl_lstat): ...into here.
73541         * lib/lstat.h: New file.
73542
73543 2005-06-24  Derek Price  <derek@ximbiot.com>
73544         and Bruno Haible  <bruno@clisp.org>
73545
73546         Remove stat module & update lstat.
73547         * config/srclist.txt (libc sources): Remove stat.
73548
73549 2005-06-24  Derek Price  <derek@ximbiot.com>
73550         and Bruno Haible  <bruno@clisp.org>
73551
73552         Remove stat module & update lstat.
73553         * MODULES.html.sh (stat): Remove.
73554         * MODULES.html: Regenerated.
73555         * modules/lstat (Description): Correct function name.
73556         (Files): Add "lstat.h".
73557         (Depends-on): Remove stat, add xalloc, stat-macros.
73558         * modules/stat: Remove this file.
73559         (Include): Add "lstat.h", remove <sys/stat.h>.
73560
73561 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
73562
73563         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
73564         (ranged_convert): Don't save conversion in a temporary struct.
73565         This causes a warning with GCC 4.0.0, and anyway in the typical
73566         case it's not worth the extra 100 bytes or so of code.
73567         (ranged_convert, __mktime_internal): When calling a function via a
73568         pointer P, use P () rather than (*P) (), as we now assume C89 or
73569         better.
73570
73571 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73572
73573         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
73574         "who -r" failed to give output.  Problem reported by Tim Waugh.
73575
73576         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
73577         (xcalloc): Use it to avoid needless tests.
73578         Problem reported by Jim Meyering.
73579
73580 2005-06-20  Derek Price  <derek@ximbiot.com>
73581
73582         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
73583         unnecessary for Autoconfs > 2.59c.
73584
73585 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73586
73587         * lib/argp.h (__option_is_short): Check upper limit of
73588         __key. Isprint() requires its argument to have the value
73589         of an unsigned char or EOF.
73590
73591 2005-06-16  Jim Meyering  <jim@meyering.net>
73592
73593         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
73594         when either N or S is zero.
73595
73596 2005-06-16  Derek Price  <derek@ximbiot.com>
73597
73598         * m4/bison.m4: Declare YACC & YFLAGS precious.
73599
73600 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
73601
73602         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
73603         multibyte string or pattern, fall back on unibyte matching.
73604         Problem reported by James Youngman.
73605
73606 2005-06-08  Bruno Haible  <bruno@clisp.org>
73607
73608         * modules/csharpcomp: New file.
73609         * MODULES.html.sh (C#): Add csharpcomp.
73610
73611 2005-06-08  Bruno Haible  <bruno@clisp.org>
73612
73613         * m4/csharpcomp.m4: New file, from GNU gettext.
73614
73615 2005-06-08  Bruno Haible  <bruno@clisp.org>
73616
73617         * lib/csharpcomp.h: New file, from GNU gettext.
73618         * lib/csharpcomp.c: New file, from GNU gettext.
73619         * lib/csharpcomp.sh.in: New file, from GNU gettext.
73620
73621 2005-06-08  Bruno Haible  <bruno@clisp.org>
73622
73623         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
73624         warning on mingw.
73625
73626 2005-06-07  Derek Price  <derek@ximbiot.com>
73627
73628         Sync from CVS.
73629         * lib/glob_.h: Indent nested #ifdef.
73630
73631 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73632
73633         Sync from coreutils.
73634         Use "file name" when talking about file names, instead of "filename"
73635         or "path", as per the GNU coding standards.
73636         * lib/mkdir-p.c: Renamed from makepath.c.
73637         (make_dir_parents): Renamed from make_path.  All callers changed.
73638         * lib/mkdir-p.h: Likewise.  All includers changed.
73639         * lib/filenamecat.c: Renamed from path-concat.c.
73640         (file_name_concat): Renamed from path_concat.  All callers changed.
73641         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
73642         * lib/filenamecat.h: Likewise.  All includers changed.
73643         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
73644         in comments or local variable names.
73645         * lib/basename.c: Likewise.
73646         * lib/canonicalize.c, canonicalize.h: Likewise.
73647         * lib/dirname.c, dirname.h: Likewise.
73648         * lib/euidaccess.c: Likewise.
73649         * lib/exclude.c: Likewise
73650         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
73651         * lib/fsusage.c, fsuage.h: Likewise.
73652         * lib/fts.c, fts_.h: Likewise.
73653         * lib/getcwd.c: Likewise.
73654         * lib/getloadavg.c: Likewise.
73655         * lib/mkstemp.c: Likewise.
73656         * lib/mountlist.c, mountlist.h: Likewise.
73657         * lib/openat.c, openat.h: Likewise.
73658         * lib/readlink-stub.c: Likewise.
73659         * lib/readutmp.c, readutmp.h: Likewise.
73660         * lib/rename.c: Likewise.
73661         * lib/rmdir.c: Likewise.
73662         * lib/same.c: Likewise.
73663         * lib/savedir.c: Likewise.
73664         * lib/stripslash.c: Likewise.
73665         * lib/tempname.c: Likewise.
73666         * lib/xreadlink.c: Likewise.
73667         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
73668         All uses changed.
73669         * lib/exclude.h: Likewise.
73670
73671         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
73672         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73673         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
73674         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73675         * lib/pathmax.h: Include <limits.h> unconditionally, since other
73676         files have been getting away with it for years (MORE/BSD 4.3
73677         is extinct now).
73678         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
73679         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73680
73681         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
73682         Define to 256, not 255, as per modern POSIX.
73683
73684 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73685
73686         Sync from coreutils.
73687         Use "file name" when talking about file names, instead of "filename"
73688         or "path", as per the GNU coding standards.
73689         * MODULES.html.sh: mkdir-p renamed from makepath.
73690         filenamecat renamed from path-concat.
73691         * modules/filenamecat: Renamed from modules/path-concat.
73692         (Files): filenamecat.h and filenamecat.c renamed from
73693         path-concat.h and path-concat.c.
73694         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
73695         (Include): filenamecat.h, not path-concat.h.
73696         * modules/mkdir-p: Renamed from modules/makepath.
73697         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
73698         makepath.c.
73699         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
73700         (Include): mkdir-p.h, not makepath.h.
73701
73702 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73703
73704         Sync from coreutils.
73705         * m4/mkdir-p.m4: Renamed from makepath.m4.
73706         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
73707         Rename files from makepath.c to mkdir-p.c, and from
73708         makepath.h to mkdir-p.h.
73709         * m4/filenamecat.m4: Renamed from path-concat.m4.
73710         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
73711         Rename files from path-concat.c to filenamecat.c,
73712         and from path-concat.h to filenamecat.h.
73713         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
73714         "file name" in local variables or comments.
73715         * m4/rename.m4: Likewise.
73716
73717 2005-06-01  Bruno Haible  <bruno@clisp.org>
73718
73719         * modules/csharpexec: New file.
73720         * MODULES.html.sh (C#): New section.
73721
73722 2005-06-01  Bruno Haible  <bruno@clisp.org>
73723
73724         * m4/csharp.m4: New file, from GNU gettext.
73725         * m4/csharpexec.m4: New file, from GNU gettext.
73726
73727 2005-06-01  Bruno Haible  <bruno@clisp.org>
73728
73729         * lib/csharpexec.h: New file, from GNU gettext.
73730         * lib/csharpexec.c: New file, from GNU gettext.
73731         * lib/csharpexec.sh.in: New file, from GNU gettext.
73732
73733 2005-05-31  Derek Price  <derek@ximbiot.com>
73734             Paul Eggert  <eggert@cs.ucla.edu>
73735
73736         Sync from cvs.
73737         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73738
73739 2005-05-31  Derek Price  <derek@ximbiot.com>
73740             Paul Eggert  <eggert@cs.ucla.edu>
73741
73742         Sync from cvs.
73743         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73744
73745 2005-05-29  Derek Price  <derek@ximbiot.com>
73746
73747         * config/srclist.txt (glob_.h, glob.c): Add these files.
73748
73749 2005-05-29  Derek Price  <derek@ximbiot.com>
73750
73751         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
73752         * modules/glob: New file.
73753         * modules/getlogin_r: Add link to POSIX spec in description.
73754
73755 2005-05-29  Derek Price  <derek@ximbiot.com>
73756             Paul Eggert  <eggert@cs.ucla.edu>
73757
73758         * m4/glob.m4: New file.
73759
73760 2005-05-29  Derek Price  <derek@ximbiot.com>
73761             Paul Eggert  <eggert@cs.ucla.edu>
73762
73763         * lib/glob_.h, lib/glob.c: New files.
73764
73765 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73766
73767         * modules/fts (Files): Remove m4/inttypes-pri.m4.
73768         * modules/fts-lgpl (Depends-on): Remove gettext.
73769
73770 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73771
73772         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
73773         and don't require gt_INTTYPES_PRI.
73774
73775 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73776
73777         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
73778
73779         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
73780         the configuration hassle isn't worth it.
73781         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
73782         (LONGEST_MODIFIER, PRIuMAX): Remove.
73783
73784 2005-05-27  Bruno Haible  <bruno@clisp.org>
73785
73786         * lib/getlogin_r.h: Remove second include of <stddef.h>.
73787
73788 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
73789
73790         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
73791         _POSIX_PTHREAD_SEMANTICS for Solaris.
73792
73793 2005-05-25  Derek Price  <derek@ximbiot.com>
73794
73795         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
73796
73797 2005-05-25  Derek Price  <derek@ximbiot.com>
73798             Paul Eggert  <eggert@cs.ucla.edu>
73799
73800         * modules/getlogin_r, m4/getlogin_r.m4: New files.
73801         * lib/getlogin_r.c, getlogin_r.h: New files.
73802
73803 2005-05-25  Bruno Haible  <bruno@clisp.org>
73804             Derek Price  <derek@ximbiot.com>
73805
73806         * lib/getlogin_r.h: Simplify API documentation.
73807
73808 2005-05-23  Derek Price  <derek@ximbiot.com>
73809
73810         * modules/minmax (Files): Add m4/minmax.m4.
73811         (configure.ac): Add gl_MINMAX.
73812
73813 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73814
73815         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
73816         so that unistd-safer.h (GPL'ed code) need not be included.
73817
73818 2005-05-22  Bruno Haible  <bruno@clisp.org>
73819
73820         * m4/minmax.m4: New file.
73821         Based on a patch by Derek Price <derek@ximbiot.com>.
73822
73823 2005-05-22  Bruno Haible  <bruno@clisp.org>
73824
73825         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
73826         (INT64_MIN): Fix definition.
73827         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
73828
73829         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
73830         NEED_SIGNED_INT_TYPES.
73831
73832         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
73833         HAVE_SYSTEM_INTTYPES.
73834
73835 2005-05-22  Bruno Haible  <bruno@clisp.org>
73836
73837         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
73838         Also include <sys/param.h> if it defines MIN, MAX.
73839         Based on a patch by Derek Price <derek@ximbiot.com>.
73840
73841 2005-05-21  Jim Meyering  <jim@meyering.net>
73842
73843         * modules/fts (Files): Add m4/inttypes-pri.m4.
73844         (Depends-on): Add lstat and remove gettext.  Alphabetize.
73845
73846 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73847
73848         New fts module.
73849         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
73850         (setup_dir, free_dir): New functions.
73851         (enter_dir, leave_dir): Define trivial
73852         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
73853         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
73854         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
73855         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
73856         Move to fts-cycle.c.
73857         (fts_open): Use setup_dir.
73858         (fts_close): Use free_dir.
73859         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
73860         This adds a label and some gotos, but the alternatives were messier.
73861         Check for memory allocation failure when entering a dir.
73862         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
73863         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
73864         (FTS): New member fts_cycle, that is a union that contains the
73865         old active_dir_ht and cycle_state.  All uses changed to mention
73866         fts_cycle.ht and fts_cycle.state.
73867         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
73868         fts.c, with the following changes:
73869         (setup_dir, free_dir): New functions.
73870         (enter_dir): Now returns bool.  Return true if successful, false
73871         if memory exhausted.  All callers changed.
73872         Do not bother partly cleaning up on
73873         memory allocation failure; that is free_dir's job.
73874         However, free ad if hash_insert fails, to avoid memory leak.
73875         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
73876         fts->fts_options to see which union member to use.
73877
73878 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73879
73880         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
73881         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
73882
73883 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73884
73885         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
73886
73887 2005-05-20  Jim Meyering  <jim@meyering.net>
73888
73889         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
73890         Now a macro, to pacify GCC.
73891
73892 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73893
73894         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
73895         of -1.
73896
73897 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73898
73899         * lib/chown.c (rpl_chown): Return -1 on failure.
73900
73901 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73902
73903         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
73904         Don't check for stddef.h.
73905         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
73906         don't use its results.
73907         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
73908         since we include them unconditionally.  Don't require
73909         AM_STDBOOL_H, since stdbool is a prerequisite.
73910         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
73911         since we assume C89 or better.
73912         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
73913         as we don't use their results.
73914         Don't check for fchdir, memmove, memset, strrchr, as we use
73915         them unconditionally.
73916         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
73917         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
73918
73919 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73920
73921         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
73922         Include <stddef.h> unconditionally, since we assume C89 now.
73923         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
73924         * lib/fts.c: Include fts_.h first, to check interface.
73925         Do not include intprops.h; no longer needed.
73926         Include cycle-check.h and hash.h, since fts_.h no longer does.
73927         Remove unnecessary casts of closedir to void.
73928         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
73929         decide whether to decrement nlinks.
73930         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
73931         (FTS): Use struct hash_table * instead of Hash_table, so that
73932         we no longer need to include hash.h here.
73933
73934 2005-05-18  Jim Meyering  <jim@meyering.net>
73935
73936         * modules/dirfd (License): Change to LGPL.  Most of the code
73937         is already in the public domain.
73938
73939 2005-05-18  Jim Meyering  <jim@meyering.net>
73940
73941         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
73942         Reported by Yoann Vandoorselaere.
73943
73944 2005-05-17  Jim Meyering  <jim@meyering.net>
73945
73946         * m4/fts.m4: New file, from coreutils.
73947
73948 2005-05-17  Jim Meyering  <jim@meyering.net>
73949
73950         * lib/fts.c, lib/fts_.h: New files, from coreutils.
73951
73952 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73953
73954         Sync from coreutils.
73955         * m4/unlinkdir.m4: New file.
73956
73957 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73958
73959         Sync from coreutils.
73960         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
73961         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
73962         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
73963         White space changes only.
73964         * lib/makepath.c (make_path): Port to hosts where leading "//" is
73965         special.
73966         * lib/yesno.c: Include getline.h, not ctype.h.
73967         (yesno): Don't remove leading white space; POSIX doesn't allow it.
73968         Use getline to remove arbitrary restriction on response length.
73969
73970 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73971
73972         * config/srclist-update: Spell out "Street" in FSF postal
73973         mail address; this is the style the FSF seems to prefer.
73974
73975         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73976         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73977         this updates FSF postal mail address.
73978
73979         Sync from coreutils.
73980         * modules/unlinkdir: New file.
73981         * modules/yesno (Depends-on): Add getline.
73982         * MODULES.html.sh (File system functions): Add unlinkdir.
73983
73984 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73985
73986         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73987         lib/strsep.h:
73988         Change the initial comment to refer to GPL, not LGPL.
73989         gnulib-tool will change it to LGPL as needed.
73990
73991         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73992         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73993         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73994         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73995         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73996         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73997         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73998         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73999         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
74000         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
74001         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
74002         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
74003         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
74004         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
74005         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
74006         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
74007         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
74008         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
74009         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
74010         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
74011         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
74012         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
74013         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
74014         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
74015         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
74016         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
74017         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
74018         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
74019         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
74020         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
74021         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
74022         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
74023         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
74024         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
74025         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
74026         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
74027         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
74028         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
74029         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
74030         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
74031         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
74032         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
74033         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
74034         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
74035         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
74036         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
74037         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
74038         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
74039         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
74040         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
74041         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74042         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
74043         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
74044         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
74045         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
74046         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
74047         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
74048         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
74049         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
74050         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
74051         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
74052         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
74053         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
74054         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
74055         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
74056         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
74057         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
74058         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
74059         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
74060         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
74061         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
74062         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
74063         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
74064         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
74065         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
74066         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
74067         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
74068         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
74069         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
74070         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
74071         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
74072         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
74073         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
74074         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
74075         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
74076         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
74077         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
74078         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
74079         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
74080         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
74081         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
74082         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
74083         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
74084         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
74085         lib/yesno.c, lib/yesno.h:
74086         Update FSF postal mail address.
74087
74088 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74089
74090         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
74091         tests/test-memmem.c, tests/test-stpncpy.c:
74092         Update FSF postal mail address.
74093
74094 2005-05-13  Bruno Haible  <bruno@clisp.org>
74095
74096         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
74097         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
74098         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
74099         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
74100         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
74101         Add support for 64-bit integers in the MSVC compiler.
74102
74103 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74104
74105         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
74106
74107 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
74108
74109         * gnulib-tool (func_import): Sort and uniquify recommended includes.
74110
74111 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
74112
74113         * doc/getdate.texi (General date syntax): Don't say that date
74114         date --iso-8601=ns generates acceptable dates; it doesn't yet.
74115         Problem reported by Nic Ferrier.
74116
74117 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74118
74119         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
74120         specified in ai_socktype. Fix invalid ai_protocol
74121         check. ai_protocol is usually set to 0 or depending on
74122         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
74123         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
74124         ai_socktype / ai_protocol in the returned addrinfo structure.
74125
74126 2005-05-10  Simon Josefsson  <jas@extundo.com>
74127
74128         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
74129         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74130
74131 2005-05-10  Karl Berry  <karl@gnu.org>
74132
74133         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
74134         (from http://www.gnu.org/licenses).
74135         * doc/COPYING.LIB: also rename to COPYING.LESSER.
74136         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
74137         fdl.texi suffices.
74138
74139 2005-05-10  Karl Berry  <karl@gnu.org>
74140
74141         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
74142         (COPYING.DOC): remove.
74143
74144         * config/srclist-update: new FSF address.
74145
74146 2005-05-10  Derek Price  <derek@ximbiot.com>
74147
74148         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
74149         possible.
74150
74151 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74152             Bruno Haible  <bruno@clisp.org>
74153
74154         * modules/inet_ntop: New file.
74155         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74156         inet_ntop.
74157
74158 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74159             Bruno Haible  <bruno@clisp.org>
74160
74161         * m4/inet_ntop.m4: New file.
74162
74163 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74164             Bruno Haible  <bruno@clisp.org>
74165
74166         * lib/inet_ntop.h: New file.
74167         * lib/inet_ntop.c: New file, from glibc with modifications.
74168
74169 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
74170
74171         * modules/time_r (License): Change to LGPL.
74172         * modules/extensions (License): Change to LGPL.  Actually,
74173         the license is more permissive than that, but currently gnulib-tool
74174         doesn't know how to handle more-permissive licenses.
74175
74176         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
74177         Problem reported by Dave Love.
74178
74179 2005-05-08  Jim Meyering  <jim@meyering.net>
74180
74181         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
74182         blank.
74183
74184 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74185
74186         * modules/argmatch (Depends-on): Add stdbool.
74187         * modules/backupfile (Depends-on): Likewise.
74188         * modules/chdir-long (Depends-on): Likewise.
74189         * modules/closeout (Depends-on): Likewise.
74190         * modules/cycle-check (Depends-on): Likewise.
74191         * modules/dirname (Depends-on): Likewise.
74192         * modules/fnmatch (Depends-on): Likewise.
74193         * modules/fsusage (Depends-on): Likewise.
74194         * modules/fwriteerror (Depends-on): Likewise.
74195         * modules/getcwd (Depends-on): Likewise.
74196         * modules/getloadavg (Depends-on): Likewise.
74197         * modules/hard-locale (Depends-on): Likewise.
74198         * modules/makepath (Depends-on): Likewise.
74199         * modules/mountlist (Depends-on): Likewise.
74200         * modules/nanosleep (Depends-on): Likewise.
74201         * modules/posixtm (Depends-on): Likewise.
74202         * modules/quotearg (Depends-on): Likewise.
74203         * modules/readtokens (Depends-on): Likewise.
74204         * modules/readtokens0 (Depends-on): Likewise.
74205         * modules/readutmp (Depends-on): Likewise.
74206         * modules/save-cwd (Depends-on): Likewise.
74207         * modules/strftime (Depends-on): Likewise.
74208         * modules/userspec (Depends-on): Likewise.
74209         * modules/utimecmp (Depends-on): Likewise.
74210         * modules/xgetcwd (Depends-on): Likewise.
74211         * modules/xnanosleep (Depends-on): Likewise.
74212         * modules/xstrtod (Depends-on): Likewise.
74213         * modules/yesno (Depends-on): Likewise.
74214
74215 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
74216
74217         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
74218         needless checks.
74219
74220 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74221
74222         Merge from coreutils.  Among other things,
74223         add bulletproofing for cases where stdin, stdout, or stderr are closed.
74224         * lib/fd-safer.c: New file.
74225         * lib/fcntl-safer.h, open-safer.c: Remove.
74226         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
74227         * lib/dup-safer.c: Include unistd-safer.h first.
74228         Don't include errno.h.
74229         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
74230         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
74231         * lib/file-type.c: Rely on file-type.h change.
74232         * lib/getloadavg.c: Include unistd-safer.h.
74233         (getloadavg): Use safer open.
74234         * lib/getusershell.c: Include "stdio-safer.h".
74235         (getusershell): Use safer fopen.
74236         * lib/long-options.c (long_options): Use NULL rather than 0.
74237         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
74238         'free'.
74239         * lib/modechange.c: Likewise.
74240         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
74241         (MODE_DONE): New constant.
74242         (struct mode_change): Remove 'next' member.
74243         (make_node_op_equals): New function; like the old one of the
74244         same name, except it allocates an array.
74245         (mode_compile, mode_create_from_ref): Use it.
74246         (mode_compile): Allocate result as an array, not a linked list.
74247         Parse octal string ourself, so that we catch mistakes like "+0".
74248         (mode_adjust): Arg is an array, not a linked list.
74249         * lib/modechange.c: Include stat-macros.h, xalloc.h.
74250         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
74251         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
74252         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
74253         Remove.  This is now stat-macros.h's job.
74254         (talloc): Remove.  All callers replaced by xalloc, so that
74255         our invokers don't have to worry about reporting memory failures.
74256         (make_node_op_equals): Remove.
74257         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74258         New constants.
74259         (struct mode_change): Moved here from modechange.h.
74260         (mode_append_entry): Remove.
74261         (mode_compile): Remove MASKED_OPS arg, since it encouraged
74262         apps to have incorrect behavior.  Use simpler algorithm for head
74263         and tail.  Don't futz with umask; that's now the job of mode_adjust.
74264         Detect more invalid usages rather than having somewhat-random behavior.
74265         Don't insert an "a=" action, as that leads to incorrect behavior.
74266         (mode_compile, mode_create_from_ref): Return NULL on error instead
74267         of an enum, since now there's only one way to have an error.  All
74268         callers changed.
74269         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
74270         at the correct time.  Simplify calculation of "+u" and its ilk.
74271         Don't mishandle "+X".
74272         (mode_free): Remove "register" and localize decls.
74273         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74274         (struct mode_change): Move to modechange.c; callers don't
74275         need to see this stuff.
74276         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
74277         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
74278         (mode_change, mode_adjust): Reflect the new signatures noted above.
74279         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
74280         that might redefine system include files.
74281         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
74282         (my_usleep): Use NULL rather than (void *) 0.
74283         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
74284         Use siginterrupt to specify that system calls should be interrupted.
74285         (rpl_nanosleep): Move initialization of suspended closer to call of
74286         my_usleep.
74287         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
74288         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
74289         (desirable_utmp_entry): New function.
74290         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
74291         using x2nrealloc, to simplify logic.
74292         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
74293         size calculation.  Do not assume utmp file is a regular file.
74294         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
74295         (READ_UTMP_CHECK_PIDS): New constant.
74296         * lib/save-cwd.c: Include unistd-safer.h.
74297         (save_cwd): Use fd_safer.
74298         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
74299         [!_LIBC] Include "stat-macros.h" instead.
74300         * lib/unistd-safer.h (fd_safer): New decl.
74301
74302 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74303
74304         * modules/getloadavg (Depends-on): Add unistd-safer.
74305         * modules/getusershell (Depends-on): Add stdio-safer.
74306         * modules/lstat (Depends-on): Remove xalloc.
74307         * modules/mkstemp (Depends-on): Add stat-macros.
74308         * modules/modechange (Depends-on): Remove xstrtol.
74309         Add stat-macros, xalloc.
74310         * modules/save-cwd (Depends-on): Add unistd-safer.
74311         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
74312         * modules/unistd-safer (Files): Add lib/fd-safer.c
74313         (Makefile.am): Remove lib_SOURCES.
74314
74315         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
74316         Remove fcntl-safer; unistd-safer supersedes it.
74317
74318 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74319
74320         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
74321         AC_HEADER_STAT.
74322         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
74323         (gl_PREREQ_CHOWN): Remove.
74324         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
74325         it.  Don't require AC_HEADER_STAT.
74326         (gl_PREREQ_LSTAT): Remove.
74327         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
74328         Don't require AC_HEADER_STAT.
74329         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
74330         (gl_PREREQ_RMDIR): Remove.
74331         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
74332         mention stat-macros.h or AC_HEADER_STAT, since we'll make
74333         the stat-macros module a prerequisite.
74334         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
74335         * m4/filemode.m4 (gl_FILEMODE): Likewise.
74336         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
74337         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
74338         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
74339         variable names.
74340         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
74341         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
74342         variable prefixes.
74343         * m4/fcntl-safer.m4: Remove.
74344         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
74345         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
74346         Invoke gl_PREREQ_FD_SAFER.
74347         (gl_PREREQ_FD_SAFER): New macro.
74348         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
74349         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
74350         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
74351         Remove duplicate call to AC_LIBOBJ(readutmp).
74352         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
74353
74354         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
74355         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
74356
74357 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74358
74359         * MODULES.html.sh (Misc): Add byteswap.
74360
74361 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74362
74363         * modules/getcwd (Depends-on): Add extensions.
74364         * modules/openat (Depends-on): Likewise.
74365
74366 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74367
74368         * modules/byteswap: New file.
74369
74370 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74371
74372         * m4/byteswap.m4: New file.
74373
74374 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74375
74376         * lib/byteswap_.h: New file.
74377
74378 2005-04-25  Karl Berry  <karl@gnu.org>
74379
74380         * m4/gettext.m4: Update from GNU gettext 0.14.4.
74381
74382 2005-04-25  Albert Chin  <china@thewrittenword.com>
74383
74384         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
74385         Toolkit C bug.
74386
74387 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
74388
74389         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
74390         (func_ln_if_changed): Remove forcibly for no error message
74391         in case file does not exist.
74392
74393 2005-04-19  Simon Josefsson  <jas@extundo.com>
74394
74395         * gnulib-tool (Options): Make --symlink mean --symbolic.
74396
74397 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
74398
74399         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
74400
74401 2005-04-16  Simon Josefsson  <jas@extundo.com>
74402
74403         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
74404
74405 2005-04-15  Simon Josefsson  <jas@extundo.com>
74406
74407         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
74408
74409 2005-04-15  Simon Josefsson  <jas@extundo.com>
74410
74411         * gnulib-tool: Rename --symlink to --symbolic.
74412
74413 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
74414
74415         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
74416         symbolic links to files instead of copying/moving.  Add --aux-dir,
74417         specifying directory relative --dir where auxiliary build tools
74418         are placed.
74419
74420 2005-04-14  Bruno Haible  <bruno@clisp.org>
74421
74422         * modules/allocsa (License): Change to LGPL.
74423         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74424
74425 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74426
74427         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
74428         that "UTC +1 second" continues to work.  Problem reported
74429         by Dmitry V. Levin.
74430         (relunit_snumber): New rule.
74431         (relunit): Use it.
74432
74433 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
74434
74435         * lib/getdate.y (universal_time_zone_table): New constant.
74436         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
74437         universal_time_zone_table.
74438         (lookup_zone): Prefer universal_time_zone_table to
74439         local_time_zone_table, so that "GMT" time stamps are allowed in
74440         London during the summer.  Problem reported by Ian Abbott.
74441
74442 2005-04-12  Jim Meyering  <jim@meyering.net>
74443
74444         * lib/human.c (humblock): Set *options even when returning due to
74445         xstrtoumax conversion failure.  Thanks to a used-uninitialized
74446         warning from gcc-4.
74447
74448 2005-04-09  Jim Meyering  <jim@meyering.net>
74449
74450         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
74451         -Wuninitialized: initialize tm0.tm_year.
74452
74453 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
74454
74455         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
74456         count, since there's no maximum.  All uses changed.
74457         Add member dsts_seen.
74458         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
74459         not being INT_MAX.
74460         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
74461         Use pc_rels_seen to decide whther a date is absolute.
74462
74463         * lib/getdate.y (number): Don't overwrite year.
74464         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
74465         check.
74466
74467 2005-04-02  Simon Josefsson  <jas@extundo.com>
74468
74469         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
74470         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
74471
74472 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
74473
74474         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
74475         where no absolute path name can be longer than PATH_MAX.
74476
74477 2005-03-27  Jim Meyering  <jim@meyering.net>
74478
74479         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
74480
74481 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
74482
74483         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
74484         "one's complement" -> "ones' complement" in comment, as per Knuth.
74485         "value of type" -> "type or expression" in comment.
74486         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
74487
74488 2005-03-26  Jim Meyering  <jim@meyering.net>
74489
74490         Comment nits.
74491         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
74492         Correct typos: s/or/of/.
74493
74494 2005-03-26  Jim Meyering  <jim@meyering.net>
74495
74496         * modules/check-include-files: Move to ../ and rename to...
74497         * check-module: ...this.
74498
74499 2005-03-25  Jim Meyering  <jim@meyering.net>
74500
74501         * modules/xvasprintf (Files): Add xalloc.h.
74502
74503 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
74504
74505         * modules/gettext (Files): config/config.rpath ->
74506         build-aux/config.rpath
74507         * modules/iconv (Files): Likewise.
74508         Problem reported by Oskar Liljeblad.
74509
74510 2005-03-23  Jim Meyering  <jim@meyering.net>
74511
74512         * modules/check-include-files: New script to check for
74513         missing dependencies, multiple includes, etc.
74514
74515         * modules/c-strtold (Depends-on): Add xalloc.
74516         * modules/c-strtod (Depends-on): Add xalloc.
74517         * modules/hash (Depends-on): Add xalloc.
74518         (Files): Remove lib/xalloc.h.
74519
74520         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
74521         * modules/userspec (Files): Add lib/inttostr.h.
74522
74523 2005-03-23  Jim Meyering  <jim@meyering.net>
74524
74525         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
74526
74527 2005-03-22  Jim Meyering  <jim@meyering.net>
74528
74529         * modules/stat-macros: New module.
74530         * modules/canonicalize, modules/euidaccess, modules/file-type,
74531         * modules/filemode, modules/lchown, modules/makepath,
74532         * modules/rmdir, modules/stat: Depend on new stat-macros module
74533         rather than listing lib/stat-macros.h manually.
74534         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
74535
74536 2005-03-22  Jim Meyering  <jim@meyering.net>
74537
74538         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
74539
74540 2005-03-22  Bruno Haible  <bruno@clisp.org>
74541
74542         * config/srclist.txt: Replace target directory 'config' with
74543         'build-aux'.
74544         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
74545         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
74546         ../build-aux/.
74547
74548 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
74549
74550         * modules/chdir-long (Depends-on): Add mempcpy.
74551
74552         * modules/acl, modules/backupfile, modules/c-strtod,
74553         modules/c-strtold, modules/canon-host, modules/canonicalize,
74554         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
74555         modules/exclude, modules/exitfail, modules/file-type,
74556         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
74557         modules/getdate, modules/getline, modules/getpagesize,
74558         modules/getpass, modules/getugroups, modules/group-member,
74559         modules/hard-locale, modules/hash, modules/human, modules/idcache,
74560         modules/inttostr, modules/long-options, modules/makepath,
74561         modules/md5, modules/memcasecmp, modules/memcoll,
74562         modules/modechange, modules/mountlist, modules/path-concat,
74563         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
74564         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
74565         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
74566         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
74567         modules/strftime, modules/strndup, modules/strverscmp,
74568         modules/timespec, modules/unlocked-io, modules/userspec,
74569         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
74570         modules/yesno:
74571         Remove lib_SOURCES line from Makefile.am section, as this is now
74572         done automatically by the corresponding Autoconf macro.
74573
74574 2005-03-21  Jim Meyering  <jim@meyering.net>
74575
74576         Changes imported from coreutils.
74577
74578         * lib/cycle-check.c: Don't include xalloc.h.
74579
74580         * lib/path-concat.c: Don't include assert.h.
74581         (path_concat): Remove assertion that would have triggered
74582         for ABASE starting with more than one slash.
74583         Reported by Andreas Schwab.
74584
74585         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
74586         properly when ABASE is an absolute file name.
74587         Correct the description of this function.
74588         Include <assert.h>.
74589         Add an assertion and a test driver.
74590         This fixes a bug introduced on 2004-07-02.
74591         Andreas Schwab reported the resulting failure of cp --parents:
74592         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
74593
74594 2005-03-21  Jim Meyering  <jim@meyering.net>
74595
74596         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
74597         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
74598
74599 2005-03-21  Jim Meyering  <jim@meyering.net>
74600         and  Paul Eggert  <eggert@cs.ucla.edu>
74601
74602         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
74603         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
74604         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
74605         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
74606         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
74607         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
74608         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
74609         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
74610         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
74611         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
74612         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
74613         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
74614         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
74615         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
74616         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
74617         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
74618         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
74619         for these modules.
74620
74621 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
74622
74623         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
74624         (which shouldn't happen), generate nothing instead of returning 0
74625         immediately, so that nstrftime (NULL, ...) doesn't return 0.
74626
74627 2005-03-16  Bruno Haible  <bruno@clisp.org>
74628
74629         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
74630         HAVE_LONGLONG_64BIT.
74631
74632 2005-03-16  Bruno Haible  <bruno@clisp.org>
74633
74634         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
74635         HAVE_LONGLONG_64BIT.
74636
74637 2005-03-16  Bruno Haible  <bruno@clisp.org>
74638
74639         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
74640         HAVE_LONGLONG_64BIT.
74641
74642 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74643
74644         * lib/strftime.c (my_strftime): Prepend space to format so that we can
74645         reliably distinguish strftime failure from empty output on POSIX
74646         hosts.
74647
74648 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74649
74650         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
74651         (iconv_string): Don't guess a size-zero buffer, as that might cause
74652         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
74653         result would be 'too large', where 'too large' is (heuristically)
74654         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
74655         overflow concerns.  This will prevent some unwanted malloc failures
74656         when the inputs are very large.
74657
74658 2005-03-15  Karl Berry  <karl@gnu.org>
74659
74660         * config/srclist.txt (config.rpath): from gettext.
74661         * config/config.rpath: update.
74662
74663 2005-03-15  Bruno Haible  <bruno@clisp.org>
74664
74665         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
74666         to 'negate'.
74667
74668         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
74669         variable.
74670
74671         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
74672         results.
74673
74674 2005-03-14  Simon Josefsson  <jas@extundo.com>
74675
74676         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
74677         <fx@gnu.org>.
74678
74679 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
74680
74681         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
74682         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
74683         intprops.h.
74684         * lib/strtol.c: Likewise.
74685
74686 2005-03-14  Jim Meyering  <jim@meyering.net>
74687
74688         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
74689         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
74690         to be nonzero so that we (and caller) can detect the difference
74691         between a valid zero-length expansion and an error return, even
74692         when the underlying strftime fails before writing anything into
74693         that location.
74694
74695 2005-03-14  Bruno Haible  <bruno@clisp.org>
74696
74697         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
74698         Update from GNU gettext 0.14.3.
74699
74700 2005-03-10  Jim Meyering  <jim@meyering.net>
74701
74702         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
74703
74704 2005-03-10  Jim Meyering  <jim@meyering.net>
74705
74706         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
74707         so that this module works on systems without fchdir.
74708
74709 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
74710
74711         Factor int-properties macros into a single file, except for
74712         glibc-related files.
74713         * lib/intprops.h: New file.
74714         * lib/getloadavg.c: Include it instead of limits.h.
74715         (INT_STRLEN_BOUND): Remove.
74716         * lib/human.c: Include intprops.h.
74717         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
74718         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
74719         302/1000.
74720         * lib/inttostr.h: Include intprops.h instead of limits.h.
74721         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
74722         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
74723         for consistency with intprops.h.
74724         (time_t_is_integer, twos_complement_arithmetic): Use them.
74725         * lib/sig2str.h: Include <signal.h>, intprops.h.
74726         (INT_STRLEN_BOUND): Remove.
74727         * lib/strftime.c (TYPE_SIGNED): Remove.
74728         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
74729         * lib/strtol.c: Adjust comments to match intprops.h.
74730         * lib/userspec.c: Include intprops.h.
74731         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
74732         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
74733         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
74734         instead of rolling our own expressions.
74735         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
74736
74737         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
74738         instead of int.
74739         (my_strftime): Do not mishandle years close to INT_MAX, by doing
74740         the right thing even if adding 1900 would overflow.  Similarly
74741         for tm_mon + 1 and tm_yday + 1.
74742         Make %Y always equivalent to %C%y, and similarly for %G and %g.
74743         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
74744         (DO_SIGNED_NUMBER): New macro.
74745         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
74746
74747 2005-03-07  Bruno Haible  <bruno@clisp.org>
74748
74749         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
74750
74751 2005-03-07  Bruno Haible  <bruno@clisp.org>
74752
74753         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
74754
74755 2005-03-04  Derek R. Price  <derek@ximbiot.com>
74756
74757         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
74758         (func_import): Only replace files via --import when they have actually
74759         changed.
74760
74761 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74762
74763         * m4/mmap-anon.m4: New file.
74764         * m4/pagealign_alloc.m4: New file.
74765
74766 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74767             Bruno Haible  <bruno@clisp.org>
74768
74769         * modules/pagealign_alloc: New file.
74770         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
74771
74772 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74773             Bruno Haible  <bruno@clisp.org>
74774
74775         * lib/pagealign_alloc.h: New file.
74776         * lib/pagealign_alloc.c: New file.
74777
74778 2005-03-03  Bruno Haible  <bruno@clisp.org>
74779
74780         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
74781         Use an all-permissive copyright notice, recommended by RMS.
74782
74783 2005-03-02  Bruno Haible  <bruno@clisp.org>
74784
74785         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
74786         of AIX, the replacement has to be done only after <string.h> is
74787         included, therefore not in config.h. stpncpy.h does the replacement,
74788         and stpncpy.c uses it.
74789
74790 2005-03-02  Bruno Haible  <bruno@clisp.org>
74791
74792         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
74793         stpncpy.c uses it.
74794
74795 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74796
74797         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
74798         The workaround isn't strictly needed for POSIX conformance, and
74799         it's too much of a pain to configure and maintain.  We'll ask
74800         people to fix their kernels instead.
74801         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
74802         (NANOSLEEP_BUG_WORKAROUND): Remove.
74803         (xnanosleep): Remove the workaround.
74804
74805 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74806
74807         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
74808         Reported by Derek Price.
74809         (Include): Add "timespec.h".
74810
74811         * modules/xnanosleep (Depends-on): Remove gethrxtime.
74812
74813 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74814
74815         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
74816         to detect nanosleep bug.
74817
74818 2005-03-01  Bruno Haible  <bruno@clisp.org>
74819
74820         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
74821
74822 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74823
74824         * modules/gethrxtime: New file.
74825         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
74826         (Depends-on): Add gethrxtime.
74827         (configure.ac): Add gl_XNANOSLEEP.
74828         (Makefile.am): Remove lib_SOURCES line.
74829
74830 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74831
74832         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
74833         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
74834
74835 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74836
74837         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
74838         * lib/timespec.h (gettime): Return void, since it always
74839         succeeds now.  All uses changed.
74840         * lib/gettime.c (gettime): Likewise.
74841         [HAVE_NANOTIME]: Prefer nanotime.
74842         Assume gettimeofday succeeds, as POSIX requires.
74843         Assime time () succeeds, since other code already does.
74844         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
74845         (timespec_subtract): Remove.
74846         (NANOSLEEP_BUG_WORKAROUND): New constant.
74847         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
74848         things considerably.  Use it only on GNU/Linux hosts, since the
74849         workaround shouldn't be needed elsewhere.
74850
74851 2005-02-24  Bruno Haible  <bruno@clisp.org>
74852
74853         * modules/gettext (Files): Add m4/glibc2.m4.
74854
74855 2005-02-24  Bruno Haible  <bruno@clisp.org>
74856
74857         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
74858         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
74859         * m4/progtest.m4:
74860         Update from GNU gettext 0.14.2.
74861         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
74862
74863 2005-02-24  Bruno Haible  <bruno@clisp.org>
74864
74865         * lib/localcharset.c: Update from GNU gettext 0.14.2.
74866         * lib/config.charset: Update from GNU gettext 0.14.2.
74867
74868 2005-02-24  Bruno Haible  <bruno@clisp.org>
74869
74870         * lib/gettext.h: Update from GNU gettext 0.14.2.
74871
74872 2005-02-23  Simon Josefsson  <jas@extundo.com>
74873
74874         * m4/iconvme.m4: New file.
74875
74876 2005-02-23  Jim Meyering  <jim@meyering.net>
74877
74878         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
74879         change.
74880         Thanks to Bruno Haible for catching it.
74881
74882 2005-02-22  Simon Josefsson  <jas@extundo.com>
74883
74884         * modules/iconvme: New file.
74885
74886         * MODULES.html.sh: Add iconvme.
74887
74888 2005-02-22  Simon Josefsson  <jas@extundo.com>
74889
74890         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
74891
74892 2005-02-22  Simon Josefsson  <jas@extundo.com>
74893
74894         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
74895
74896 2005-02-22  Jim Meyering  <jim@meyering.net>
74897
74898         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
74899         s/ifndef/ifdef/.
74900
74901 2005-02-20  Neil Conway  <neilc@samurai.com>
74902
74903         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
74904         returned by OSX/Darwin if the specified buffer is not large
74905         enough for the hostname.
74906
74907 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74908
74909         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
74910         pass it to _help, otherwise the latter coredumps trying to
74911         dereference state.root_argp.
74912
74913 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74914
74915         * modules/chdir-long (Depends-on): Add memrchr.
74916         * modules/memrchr (Files): Add lib/memrchr.h.
74917         (Include): "memrchr.h".
74918
74919 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74920
74921         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
74922
74923 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74924
74925         * lib/memrchr.h: New file.
74926         * lib/chdir-long.c: Include it.
74927         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
74928         Don't bother including stddef.h.
74929
74930 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74931
74932         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
74933         inclusion.
74934         Include <sys/types.h>, for dev_t.
74935         (ME_DUMMY, ME_REMOTE): Move from here....
74936         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
74937         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
74938         Dmitry V. Levin.
74939         Include mountlist.h first, to test the interface.
74940
74941 2005-01-29  Bruno Haible  <bruno@clisp.org>
74942
74943         * lib/progname.c (program_name): Initialize.
74944         Needed when linking statically on MacOS X.
74945
74946 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74947
74948         Sync from coreutils.
74949         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
74950         (Depends-on): Add c-strtod.
74951         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
74952
74953 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74954
74955         Sync from coreutils.
74956         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
74957
74958         Remove files that are specific to coreutils.
74959         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
74960
74961 2005-01-28  Bruno Haible  <bruno@clisp.org>
74962
74963         * modules/javacomp: New file.
74964         * MODULES.html.sh (Java): Add javacomp.
74965
74966 2005-01-28  Bruno Haible  <bruno@clisp.org>
74967
74968         * m4/javacomp.m4: New file, from GNU gettext.
74969
74970 2005-01-28  Bruno Haible  <bruno@clisp.org>
74971
74972         * lib/javacomp.sh.in: New file, from GNU gettext.
74973         * lib/javacomp.h: New file, from GNU gettext.
74974         * lib/javacomp.c: New file, from GNU gettext.
74975
74976 2005-01-26  Simon Josefsson  <jas@extundo.com>
74977
74978         * lib/gai_strerror.c: Use GPL in header.
74979
74980 2005-01-26  Bruno Haible  <bruno@clisp.org>
74981
74982         * modules/javaexec: New file.
74983         * MODULES.html.sh (Java): Add javaexec.
74984
74985 2005-01-26  Bruno Haible  <bruno@clisp.org>
74986
74987         * m4/javaexec.m4: New file, from GNU gettext.
74988
74989 2005-01-26  Bruno Haible  <bruno@clisp.org>
74990
74991         * lib/javaexec.sh.in: New file, from GNU gettext.
74992         * lib/javaexec.h: New file, from GNU gettext.
74993         * lib/javaexec.c: New file, from GNU gettext.
74994
74995 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74996
74997         * modules/lchown (Depends-on): Remove lchown.h
74998
74999 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75000
75001         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
75002         must be defined if the header file was not found, in order
75003         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
75004
75005 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75006
75007         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
75008         initializers for struct pentry_state.
75009         (__argp_error): Check return value of __asprintf
75010         (__argp_failure): Translate error message
75011
75012         * lib/argp-parse.c: Removed braces around the expansion of N_()
75013
75014 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75015
75016         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
75017         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
75018         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
75019         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
75020         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
75021         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
75022         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
75023         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
75024         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
75025         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
75026         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
75027         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
75028         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
75029         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
75030         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
75031         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
75032         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
75033         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
75034         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
75035         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
75036         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
75037         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
75038         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
75039         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
75040         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
75041         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
75042         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
75043         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
75044         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
75045         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
75046         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
75047         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
75048         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
75049         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
75050         xstrtol.m4, xstrtoumax.m4, yesno.m4:
75051         Use an all-permissive copyright notice, recommended by RMS.
75052
75053 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
75054
75055         * modules/chdir-long (Depends-on): Remove mempcpy.
75056
75057 2005-01-21  Jim Meyering  <jim@meyering.net>
75058
75059         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
75060         same value as for Solaris 9.
75061
75062         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
75063         component length.  This included changing the parameter to be
75064         of type `char *' rather than `char const *'.
75065         * lib/chdir-long.h (chdir_long): Update prototype.
75066
75067         * lib/openat.c (fdopendir, fstatat): New functions.
75068         * lib/openat.h: Include headers required for use of DIR and struct
75069         stat.
75070         [AT_SYMLINK_NOFOLLOW]: Define.
75071         (fdopendir, fstatat): Add prototypes.
75072
75073 2005-01-21  Bruno Haible  <bruno@clisp.org>
75074
75075         * modules/classpath: New file.
75076         * MODULES.html.sh (Java): Add classpath.
75077
75078 2005-01-21  Bruno Haible  <bruno@clisp.org>
75079
75080         * lib/classpath.h: New file, from GNU gettext.
75081         * lib/classpath.c: New file, from GNU gettext.
75082
75083 2005-01-20  Simon Josefsson  <jas@extundo.com>
75084
75085         * modules/version-etc-fsf: New file.
75086
75087 2005-01-20  Simon Josefsson  <jas@extundo.com>
75088
75089         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
75090         * lib/version-etc.c: Remove version_etc_copyright.
75091         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
75092         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
75093
75094 2005-01-20  Simon Josefsson  <jas@extundo.com>
75095
75096         * lib/base64.h (isbase64): Add.
75097
75098         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
75099         using a unsigned prototype, don't inline.
75100         (base64_decode): Use it.
75101
75102 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75103
75104         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
75105         it.
75106
75107 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75108
75109         * lib/save-cwd.c (save_cwd): Remove code to support the case
75110         where fchdir is missing or flaky.
75111
75112 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75113
75114         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
75115
75116 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75117
75118         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
75119         AC_LIBSOURCES now does this.
75120         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
75121         with new ullong_max module.
75122
75123 2005-01-19  Bruno Haible  <bruno@clisp.org>
75124
75125         * modules/sh-quote: New file.
75126         * MODULES.html.sh (Executing programs): Add sh-quote.
75127
75128 2005-01-19  Bruno Haible  <bruno@clisp.org>
75129
75130         * lib/sh-quote.h: New file, from GNU gettext.
75131         * lib/sh-quote.c: New file, from GNU gettext.
75132
75133 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75134
75135         Merge from coreutils.
75136         * m4/ullong_max.m4: New file.
75137         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
75138         (gl_MACROS): Assume localeconv exists.
75139
75140 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75141
75142         Merge changes from coreutils, as described below in several
75143         changelogs dated today.
75144
75145         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
75146         (O_DIRECTORY): Remove; not needed here, since "." must be
75147         a directory.  All uses removed.
75148         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
75149         universal on Suns, and we also need to test for IRIX.
75150         Revamp code to use 'if' rather than '#if'.
75151         Avoid unnecessary comparison of cwd->desc to 0.
75152
75153         * lib/utimens.c (futimens): Robustify the previous patch, by checking
75154         for known valid error numbers rather than observed invalid ones.
75155
75156 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75157
75158         * modules/ullong_max: New file.
75159
75160         * modules/chdir-long, modules/openat: New files.
75161         * modules/save-cwd (Depends-on): Depend on chdir-long.
75162         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
75163
75164 2005-01-18  Jim Meyering  <jim@meyering.net>
75165
75166         Merge from coreutils.
75167         * m4/chdir-long.m4, m4/openat.m4: New files.
75168         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
75169         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
75170         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
75171         is sane and DOES follow symlinks.  Besides, testing 20 different
75172         systems found no broken chown implementations.
75173         Prompted by a change in rsync's copy of this macro.
75174         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
75175
75176         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
75177
75178         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
75179         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
75180         NULL-means-set-to-current-time semantics.
75181         Remove temporary file immediately, rather than waiting
75182         for configure's at-exit trap code to do it.
75183
75184 2005-01-18  Jim Meyering  <jim@meyering.net>
75185
75186         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75187
75188         * lib/utimens.c (futimens): Account for the fact that futimes
75189         can also fail with errno == ENOSYS or errno == ENOENT.
75190         Patch from Dmitry V. Levin.
75191
75192         Change the name of the robust chdir function from chdir to chdir_long.
75193         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
75194         (restore_cwd): Use chdir_long, not chdir.
75195         * lib/chdir-long.c: Renamed from chdir.c.
75196         * lib/chdir-long.h: Renamed from chdir.h.
75197         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
75198         Hurd.
75199
75200 2005-01-18  Bruno Haible  <bruno@clisp.org>
75201
75202         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
75203         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
75204         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
75205         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
75206         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
75207         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
75208         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
75209         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
75210         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
75211         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
75212         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
75213         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
75214         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
75215         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
75216         Use an all-permissive copyright notice, recommended by RMS.
75217
75218 2005-01-18  Bob Proulx  <bob@proulx.com>
75219
75220         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
75221         simplify offsetof() macro construct to avoid compile failure with
75222         native HP-UX 11.0 ANSI C compiler.
75223
75224 2005-01-17  Bruno Haible  <bruno@clisp.org>
75225
75226         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
75227         redundant because stpncpy.m4 takes care of it.
75228
75229 2005-01-17  Bruno Haible  <bruno@clisp.org>
75230
75231         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
75232
75233 2005-01-17  Bruno Haible  <bruno@clisp.org>
75234
75235         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
75236         used.
75237
75238 2005-01-17  Bruno Haible  <bruno@clisp.org>
75239
75240         * lib/fwriteerror.h (fwriteerror): Change specification to include
75241         fclose.
75242         * lib/fwriteerror.c: Include <stdbool.h>.
75243         (fwriteerror): At the end, close the file stream. Record whether
75244         stdout was already closed.
75245
75246 2005-01-17  Bruno Haible  <bruno@clisp.org>
75247
75248         * lib/execute.c (environ): Declare if needed.
75249         * lib/pipe.c (environ): Likewise.
75250         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
75251
75252 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75253
75254         * modules/argp: Depend on vsnprintf
75255
75256 2005-01-10  Jim Meyering  <jim@meyering.net>
75257
75258         * modules/closeout (Depends-on): Add atexit.
75259
75260 2005-01-06  Bruno Haible  <bruno@clisp.org>
75261
75262         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
75263
75264 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75265
75266         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
75267         definitions to be after all include files, to avoid collisions.
75268         Problem reported by Bob Proulx.
75269
75270 2005-01-04  Jim Meyering  <jim@meyering.net>
75271
75272         Changes imported from coreutils.
75273         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
75274         as the mkstemp template, use a temporary directory and an
75275         8.3-friendly template to avoid trouble on systems like DJGPP.
75276         Reported by Juan M. Guerrero via Stepan Kasal.
75277         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
75278         close. Remove the temporary directory right away, rather than waiting
75279         for configure's at-exit trap code to do it.
75280         Suggestion from Stepan Kasal.
75281
75282 2005-01-01  Simon Josefsson  <jas@extundo.com>
75283
75284         * gnulib-tool: Print #include directives when --import'ing.
75285
75286 2004-12-28  Simon Josefsson  <jas@extundo.com>
75287
75288         * tests/test-base64.c: Include required header files.  Remove
75289         unused variables.
75290
75291 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75292
75293         * modules/error (Depends-on): Remove gettext.
75294
75295 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75296
75297         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
75298         not needed.  This removes a dependency on the gettext module.
75299         [defined _LIBC]: Do not include <libintl.h>; not needed.
75300
75301 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75302
75303         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
75304         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
75305
75306 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75307
75308         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
75309         HAVE_DECL_STRTOLD.
75310
75311 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75312
75313         * modules/getdate (Depends-on): Remove alloca-opt.
75314
75315 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75316
75317         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
75318
75319 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75320
75321         * lib/argp-parse.c: Include <stddef.h>.
75322         (alignof, alignto): New macros.
75323         (parser_init): Don't assume that void * is aligned sufficiently
75324         for struct option.
75325
75326         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
75327         need to extend the stack.
75328         (YYINITDEPTH): New macro, so that the initial stack isn't overly
75329         large.
75330
75331 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75332
75333         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
75334
75335 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75336
75337         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
75338         (2004-10-24) change.  Apparently this was a false alarm.
75339
75340         * modules/getdate: Depend on alloca-opt, not alloca.
75341
75342 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75343
75344         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
75345         Remove now-obsolete comment about AIX.
75346         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
75347         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
75348         (YYMAXDEPTH): New macro.
75349
75350 2004-12-18  Simon Josefsson  <jas@extundo.com>
75351
75352         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
75353
75354 2004-12-18  Bruno Haible  <bruno@clisp.org>
75355
75356         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
75357
75358 2004-12-18  Bruno Haible  <bruno@clisp.org>
75359
75360         * lib/fatal-signal.c (fatal_signals): Make non-const.
75361         (init_fatal_signals): New function.
75362         (uninstall_handlers, install_handlers): Ignore signals that were set to
75363         SIG_IGN.
75364         (at_fatal_signal): Call init_fatal_signals.
75365         (init_fatal_signal_set): Likewise. Ignore signals that were set to
75366         SIG_IGN.
75367         Reported by Paul Eggert.
75368
75369 2004-12-18  Bruno Haible  <bruno@clisp.org>
75370
75371         * doc/alloca.texi: New file.
75372         * doc/alloca-opt.texi: New file.
75373
75374 2004-12-17  Jim Meyering  <jim@meyering.net>
75375
75376         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
75377         Otherwise, install-sh could exit with improper exit status when
75378         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
75379
75380 2004-12-16  Simon Josefsson  <jas@extundo.com>
75381
75382         * tests/test-base64.c: Add license.
75383
75384 2004-12-15  Stepan Kasal  <address@hidden>
75385
75386         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
75387
75388 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
75389
75390         * modules/getcwd (Files): Add m4/d-ino.m4.
75391         Suggested by Mark D. Baushke.
75392
75393 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75394
75395         * lib/getdate.y (textint): New member "negative".
75396         (time_zone_hhmm): New function.
75397         Expect 14 shift-reduce conflicts, not 13.
75398         (o_colon_minutes): New rule.
75399         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
75400         (yylex): Set the "negative" member of signed numbers.
75401
75402 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75403
75404         * doc/getdate.texi (Time of day items, Time zone items):
75405         Describe new formats +00:00, UTC+00:00.
75406
75407 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75408
75409         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
75410         spurious "-l"s.  Problem reported by Stepan Kasal.
75411
75412 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
75413
75414         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
75415         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
75416
75417 2004-12-04  Simon Josefsson  <jas@extundo.com>
75418
75419         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
75420         Vandoorselaere <yoann@prelude-ids.org>.
75421
75422 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75423
75424         Changes imported from coreutils.
75425         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
75426         exist.
75427         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
75428
75429 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75430
75431         Changes imported from coreutils.
75432         * lib/hard-locale.c: Assume <locale.h> exists.
75433         Include "strdup.h".
75434         (GLIBC_VERSION): New macro.
75435         (hard_locale): Assume setlocale exists.
75436         Rewrite to avoid #ifdef.
75437         Use strdup rather than malloc + strcpy.
75438         * lib/human.c: Assume <locale.h> exists.
75439         (human_readable): Assume localeconv exists.
75440
75441 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75442
75443         * modules/hard-locale (Depends-on): Add strdup.
75444
75445 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75446
75447         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
75448         convert T2, not T.  (Imported from libc.)
75449
75450 2004-11-30  Simon Josefsson  <jas@extundo.com>
75451
75452         * modules/restrict (License): Change to LGPL.
75453
75454 2004-11-30  Simon Josefsson  <jas@extundo.com>
75455
75456         * m4/restrict.m4: Add copyright and copying conditions.
75457
75458 2004-11-30  Simon Josefsson  <jas@extundo.com>
75459
75460         * m4/base64.m4: New file.
75461
75462 2004-11-30  Simon Josefsson  <jas@extundo.com>
75463
75464         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
75465         base64.
75466
75467         * tests/test-base64.c: New file.
75468
75469         * modules/base64: New file.
75470
75471 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75472
75473         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
75474         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
75475
75476         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
75477
75478 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75479
75480         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
75481         (__getcwd.c): Don't restore errno; glibc doesn't.
75482         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
75483         first, falling back to our code only if its results look suspicious.
75484         Ensure that the resulting buffer is only as large as necessary.
75485
75486         * lib/readutmp.c: Include readutmp.h first.
75487         Include <errno.h>, since readutmp.h no longer does that.
75488         * lib/readutmp.h: Don't include <errno.h>,
75489         <sys/param.h>, <time.h>; not needed to establish interface.
75490         (errno): Remove decl.
75491         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
75492         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
75493         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
75494
75495 2004-11-28  Simon Josefsson  <jas@extundo.com>
75496
75497         * lib/base64.h, base64.c: New file.
75498
75499 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75500
75501         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
75502
75503 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75504
75505         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
75506         (Depends-on): Remove pathmax, same.  Add mempcpy.
75507         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
75508         (Makefile.am): Append getcwd.h to lib_SOURCES.
75509         (Include): Add getcwd.h.
75510         (Maintainer): Change from Jim Meyering to "all, glibc",
75511         since getdate now uses intended-for-glibc code.
75512         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
75513         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
75514
75515 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75516
75517         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
75518         HP's ANSI C compiler.
75519         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
75520         Declaring int functions causes warnings on some modern systems and
75521         shouldn't be needed to compile on ancient ones.
75522         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
75523         defined.
75524
75525         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
75526         with the following changes.
75527         (__set_errno): Parenthesize properly.
75528         Include <stdbool.h>.
75529         (MIN, MAX, MATCHING_INO): New macros.
75530         (__getcwd): Define with prototype, not K&R form.
75531         Use heuristics to allocate default buffer on stack if possible.
75532         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
75533         behavior, and to avoid the PATH_MAX limit when computing
75534         ../../../../...
75535         Use MATCHING_INO to compare inode number to file.
75536         Check for arithmetic overflow in size calculations.
75537         Fix bug in reallocation of dot array that caused getcwd to fail
75538         on directories nested deeper than 75.
75539         Be more careful about saving errno on error.
75540         Do not use realloc; use only free+malloc, as this is a bit
75541         more flexible and avoids a needless copy operation.
75542         Do not inspect st_dev and st_ino for symbolic links; POSIX
75543         doesn't specify the latter.
75544         Check for closedir errors.
75545         Avoid needless casts.
75546         Use "#ifdef weak_alias" around weak_alias, to be like other
75547         glibc code.
75548         The following changes to getcwd.c have effect only when used in
75549         gnulib; they have no effect inside glibc proper.
75550         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
75551         as alloca isn't used.
75552         (alloca, __alloca): Likewise.
75553         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
75554         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75555         unconditionally, as gnulib assumes C89 or better.
75556         Do not include <sys/param.h>.
75557         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
75558         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
75559         better.
75560         (NULL) [!defined NULL]: Remove; we assume C89 or better.
75561         Include <dirent.h> in a way that is compatible with modern Autoconf.
75562         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
75563         New macros, if not already defined.
75564         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
75565         Use "_LIBC", not "defined _LIBC", for consistency.
75566         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
75567         a mempcpy module.
75568         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
75569         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
75570         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
75571         credit only to Jim Meyering and adjust the copyright dates.
75572         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
75573         <stdlib.h>, <unistd.h>, "pathmax.h".
75574         Instead, include "xgetcwd.h" (first) and "getcwd.h".
75575         (INITIAL_BUFFER_SIZE): Remove.
75576         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
75577
75578 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75579
75580         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
75581         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
75582         Use the _ONCE methods, for efficiency.
75583         Check for fcntl.h.  In test program, include <errno.h>
75584         and <fcntl.h> if available.  Remove old K&R cruft from
75585         test program.  Check for common errors in GNU/Linux,
75586         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
75587         don't do AC_LIBOBJ, as that's getcwd.m4's job.
75588         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
75589         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
75590         name accordingly.
75591         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
75592         accommodate new getcwd.c.
75593         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
75594         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
75595         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
75596         that's all we need now.
75597
75598 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75599
75600         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
75601         argp-parse.c depends on getopt internals, that means we should
75602         always use our getopt, to be on the safe side.
75603         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
75604         order not to spoil the result of an eventual previous invocation
75605         of gl_GETOPT_SUBSTITUTE.
75606
75607 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75608
75609         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
75610         redefinition warnings. To avoid them, include the defines
75611         in `#if !defined __need_getopt ... #endif'. The only place
75612         where __getopt_argv_const is used is in definitions
75613         of getopt_long and getopt_long_only below, which are as well
75614         protected by `#ifndef __need_getopt'.
75615         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
75616         __need_getopt after including <stdio.h> and <unistd.h> These
75617         headers might have defined it.
75618
75619 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75620
75621         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
75622
75623 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75624
75625         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
75626         (futimens): New function, which uses futimes if available.
75627         (futimens, utimens): Support timespec==NULL, with same semantics
75628         as utime and utimens.
75629         * lib/utimens.h (futimens): New decl.
75630
75631 2004-11-23  Jim Meyering  <jim@meyering.net>
75632
75633         * lib/getopt_.h: Remove trailing blanks.
75634
75635 2004-11-23  Jim Meyering  <jim@meyering.net>
75636
75637         * lib/__fpending.c: Add comment.
75638
75639 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
75640
75641         * modules/canonicalize (Depends-on): Add xreadlink.
75642         Problem reported by James Youngman.
75643
75644 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75645
75646         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
75647         New macros.
75648         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
75649         optopt): Use them instead of invoking ## directly; otherwise, the
75650         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
75651
75652 2004-11-19  Bruno Haible  <bruno@clisp.org>
75653
75654         * lib/strtok_r.c: Move comments from here...
75655         * lib/strtok_r.h: ... to here.
75656
75657 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75658
75659         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
75660         implementations that mishandle size_t overflow.
75661
75662 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75663
75664         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
75665         might fail.  Problem reported by Yoann Vandoorselaere.
75666         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
75667         implementations that mishandle size_t overflow.
75668
75669 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75670
75671         * modules/canon-host (Depends-on): Add strdup.
75672
75673 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75674
75675         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
75676
75677 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75678
75679         * lib/canon-host.c: Include "strdup.h".
75680         (canon_host): Use getaddrinfo if available, so that IPv6 works.
75681         Use strdup instead of malloc/strcpy to duplicate strings.
75682
75683         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
75684         (human_space_before_unit): New constant.
75685         * lib/human.c (human_readable): Support it.
75686
75687         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
75688         (xgetcwd): Set errno correctly when failing.
75689         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
75690         the failure is actually due to a PATH_MAX problem.
75691
75692         Further getopt changes to make it more likely that glibc will
75693         buy the changes back.
75694         * lib/getopt.c (POSIXLY_CORRECT): New constant.
75695         (getopt): Use it, so to preserve glibc semantic
75696         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
75697         when compiling for libc.
75698         * lib/getopt_.h (__getopt_argv_const): Bring it back.
75699         (getopt_long, getopt_long_only): Use it.
75700
75701         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75702         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
75703         (getopt): Argv is now char * const *, as per standard.
75704         (_getopt_internal_r, _getopt_internal): Argv is now char **,
75705         not char *__getopt_argv_const *.
75706         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75707         _getopt_long_only_r): Likewise.
75708         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
75709         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75710         _getopt_long_r, _getopt_long_only_r): Likewise.
75711         * lib/getopt_.h (__getopt_argv_const): Remove.
75712         (getopt): Argv is now char * const *, as per standard.
75713
75714         * lib/getdate.y (tORDINAL): New token.
75715         (day, relunit): Allow it for relative times.
75716         (relative_time_table): Use tORDINAL for ordinals.
75717
75718 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75719
75720         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
75721         Document that "second" isn't allowed as an ordinal number.
75722
75723 2004-11-16  Jim Meyering  <jim@meyering.net>
75724
75725         * modules/closeout (Depends-on): Add fpending.
75726
75727 2004-11-15  Jim Meyering  <jim@meyering.net>
75728
75729         * lib/closeout.c: Include "__fpending.h" once again.
75730         Include <stdbool.h>.
75731         (close_stdout): Don't fail just because stdout was closed initially,
75732         since some programs don't write to stdout in the normal course of
75733         operation (other than --version and --help), and we don't want this
75734         function to make e.g. `touch file >&-' fail.
75735         But do fail if it was closed and someone has tried to write to it.
75736         E.g., `printf foo >&-' must fail.
75737
75738 2004-11-13  Jim Meyering  <jim@meyering.net>
75739
75740         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
75741
75742 2004-11-12  Simon Josefsson  <jas@extundo.com>
75743
75744         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
75745         small doc fix is still pending.
75746
75747 2004-11-11  Simon Josefsson  <jas@extundo.com>
75748
75749         * modules/strtok_r: New file.
75750
75751         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75752         strtok_r.
75753
75754 2004-11-11  Simon Josefsson  <jas@extundo.com>
75755
75756         * m4/strtok_r.m4: New file.
75757
75758         * m4/getopt.m4: Replace opterr.
75759
75760 2004-11-11  Simon Josefsson  <jas@extundo.com>
75761
75762         * lib/strtok_r.h, strtok_r.c: New file.
75763
75764 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75765
75766         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
75767         of replacing opterr, getopt, etc.  This should handle the
75768         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
75769
75770 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75771
75772         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
75773         we can stop lying to compilers about the constness of argv when we
75774         are compiled outside glibc.
75775         (getopt, getopt_long, getopt_long_only): Use it.
75776         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75777         _getopt_internal, getopt): Likewise.
75778         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75779         _getopt_long_only_r): Likewise.
75780         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75781         _getopt_long_r, _getopt_long_only_r): Likewise.
75782
75783         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
75784         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
75785         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
75786         the other external symbols.
75787         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
75788         declaration, since the above renaming now works around collisions.
75789
75790 2004-11-11  Jim Meyering  <jim@meyering.net>
75791
75792         * lib/linebreak.c: Remove trailing blanks.
75793         * lib/alloca_.h: Likewise.
75794         * lib/acosl.c: Likewise.
75795         * lib/euidaccess.c: Likewise.
75796         * lib/allocsa.h: Likewise.
75797
75798 2004-11-10  Simon Josefsson  <jas@extundo.com>
75799
75800         * m4/getaddrinfo.m4: New file.
75801
75802 2004-11-10  Simon Josefsson  <jas@extundo.com>
75803
75804         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
75805
75806 2004-11-10  Simon Josefsson  <jas@extundo.com>
75807
75808         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75809         getaddrinfo.
75810
75811         * modules/getaddrinfo: New file.
75812
75813 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75814
75815         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
75816
75817 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75818
75819         * lib/mktime.c (SHR): New macro, which is a portable
75820         substitute for >> that should work even on Crays.
75821         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
75822         Problem reported by Mark D. Baushke in
75823         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
75824         * lib/getdate.y (SHR): Likewise.
75825         (tm_diff): Use it.
75826         * lib/strftime.c (SHR): Likewise.
75827         (tm_diff): Use it.
75828         * lib/quotearg.c (struct quoting_options): Use unsigned int for
75829         quote_these_too, so that right shifts are well defined.  All uses
75830         changed.
75831
75832 2004-11-10  Jim Meyering  <jim@meyering.net>
75833
75834         Ensure that no close failure goes unreported.
75835         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
75836         return early when it seems there's nothing to flush.
75837         Don't include __fpending.h.
75838
75839 2004-11-10  Jim Meyering  <jim@meyering.net>
75840
75841         * modules/closeout (Depends-on): Remove fpending.
75842
75843 2004-11-10  Jim Meyering  <jim@meyering.net>
75844
75845         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
75846
75847 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75848
75849         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
75850         gl_FUNC_STRFTIME.
75851         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
75852         and AC_REQUIRE when possible, to avoid duplicate checks.
75853         Check for <wchar.h>.
75854
75855 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75856
75857         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
75858
75859 2004-11-09  Bruno Haible  <bruno@clisp.org>
75860
75861         * m4/sockpfaf.m4: New file.
75862
75863 2004-11-05  Bruno Haible  <bruno@clisp.org>
75864
75865         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
75866         Reported by Mark D. Baushke <mdb@cvshome.org>.
75867
75868 2004-11-04  Bruno Haible  <bruno@clisp.org>
75869
75870         2004-09-11  Bruno Haible  <bruno@clisp.org>
75871                 * allocsa.valgrind: New file.
75872         2004-02-06  Bruno Haible  <bruno@clisp.org>
75873                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
75874                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
75875                 Reported by Christopher Seip <chris.seip@hp.com>.
75876
75877 2004-11-04  Bruno Haible  <bruno@clisp.org>
75878
75879         * modules/allocsa (Files): Add lib/allocsa.valgrind.
75880         (Makefile.am): Distribute it.
75881
75882 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75883
75884         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
75885         with errno == ERANGE if the buffer is too small.
75886         Problem reported by Mark D. Baushke.
75887
75888 2004-11-03  Albert Chin  <china@thewrittenword.com>
75889             Paul Eggert  <eggert@cs.ucla.edu>
75890
75891         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
75892         equivalent, substitute $ac_type for equivalent type rather than
75893         blindly using uint32_t *always* which won't work if uint32_t is not
75894         available.  Define _UINT32_T to work around typedef of uint32_t if
75895         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
75896         2.5.1.
75897
75898 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75899
75900         * m4/jm-macros.m4: Sync from coreutils.
75901         (gl_MACROS): Check for mbrlen, for pathchk.
75902         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
75903
75904 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75905
75906         * lib/xreadlink.c (MAXSIZE): New macro.
75907         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
75908         size does not exceed MAXSIZE.  Avoid cast.
75909         As suggested by Mark D. Baushke in
75910         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
75911         if readlink fails with buffer size just under MAXSIZE, try again
75912         with MAXSIZE.
75913
75914 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75915
75916         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
75917
75918 2004-11-02  Derek R. Price  <derek@ximbiot.com>
75919         and  Paul Eggert  <eggert@cs.ucla.edu>
75920
75921         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
75922         (get_date): Overparenthesize to avoid GCC warning.
75923
75924 2004-11-02  Bruno Haible  <bruno@clisp.org>
75925
75926         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
75927         returns void.
75928
75929 2004-11-02  Bruno Haible  <bruno@clisp.org>
75930
75931         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
75932         function returns void.
75933
75934 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75935
75936         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
75937         fflush_unlocked, flockfile, funlockfile, funlockfile,
75938         fputs_unlocked, putc_unlocked.
75939
75940 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75941
75942         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75943         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
75944         already declared.
75945
75946 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75947
75948         * modules/getdate (Files): Add doc/getdate.texi.
75949         (Depends-on): Add setenv, xalloc.
75950
75951 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75952
75953         * lib/getdate.y: Add support for TZ="foo" within a date string.
75954         Fix some bugs near time_t boundaries.  Reject dates with
75955         out-of-range components, e.g., "Sept 31".
75956         Include <stdlib.h>, "setenv.h", "xalloc.h".
75957         (ISDIGIT_LOCALE): Remove; unused.
75958         Note that the TZ and time functions used here are not reentrant.
75959         (mktime_ok, get_tz): New functions.
75960         (TZBUFSIZE): New constant.
75961         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
75962         This requires that we sometimes generate our own TZ="XXX..." setting.
75963
75964 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75965
75966         * doc/getdate.texi: New file, from coreutils with modifications for
75967         the new TZ parsing.
75968
75969 2004-10-27  Derek R. Price  <derek@ximbiot.com>
75970
75971         * lib/mktime.c (not_equal_tm): Remove redundant check.
75972
75973 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75974
75975         * modules/regex (lib_SOURCES): Add regex.c.
75976         Reported by James Youngman in
75977         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75978
75979 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75980
75981         * lib/getdate.y: Use Bison 1.875 features, and some minor
75982         code cleanups.  This change does not affect semantics.
75983         Don't include <stdlib.h>; no longer needed.
75984         Don't include unlocked-io.h; only the "#if TEST" code uses
75985         stdio, and performance isn't crucial there.
75986         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75987         Bison 1.875 features as described below.
75988         All uses of "PC." replaced by "pc->".
75989         (YYSTYPE): Add a forward declaration.
75990         (yylex, yyerror): Use full prototypes in forward decls.
75991         Use "%pure-parser" rather than obsolescent "%pure_parser".
75992         Use %parse-param and %lex-param instead of obsolescent
75993         YYPARSE_PARAM and YYLEX_PARAM.
75994         (meridian_table, month_and_day_table, time_units_table,
75995         relative_time_table, time_zone_table, military_table,
75996         lookup_zone, lookup_word, get_date):
75997         Use NULL instead of 0 where appropriate.
75998         (to_hour): Avoid abort (), to avoid a dependency on
75999         stdlib.h.
76000         (yyerror, yylex): Now accepts parser_control * arg.
76001         (main) [TEST]: Use '\0' rather than 0 for char.
76002
76003 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76004
76005         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
76006
76007 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76008
76009         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
76010         It's now the caller's responsibility to handle the case where
76011         !HAVE_GETPAGESIZE && !defined getpagesize.
76012
76013         * lib/mktime.c (leapyear): Arg is long int, not int.
76014
76015 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
76016
76017         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
76018
76019 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76020
76021         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
76022         missing.  Problem reported by James Youngman.
76023
76024 2004-10-16  Simon Josefsson  <jas@extundo.com>
76025
76026         * gnulib-tool: Fix comments.  Fix parse problem.
76027         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
76028
76029 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
76030
76031         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
76032         implementation of getopt_long.  Problem reported by Alexander Taler in:
76033         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
76034
76035 2004-10-15  Bruno Haible  <bruno@clisp.org>
76036
76037         * gnulib-tool: Untabify. Initialize supplied_libname.
76038         (func_usage): More homogenous output.
76039         (func_modules_transitive_closure, func_modules_to_filelist,
76040         func_emit_lib_Makefile_am): New functions.
76041         (func_import): New function, extracted from big case statement. Use
76042         func_get_license, func_modules_transitive_closure,
76043         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
76044         opt_lgpl. Don't use test -a, as it's not portable.
76045         (func_create_testdir): Use func_modules_transitive_closure,
76046         func_modules_to_filelist, func_emit_lib_Makefile_am.
76047
76048 2004-10-15  Bruno Haible  <bruno@clisp.org>
76049
76050         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
76051
76052 2004-10-15  Bruno Haible  <bruno@clisp.org>
76053
76054         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
76055         the portions belonging to each module.
76056         Suggested by Derek Robert Price <derek@ximbiot.com>.
76057
76058 2004-10-12  Simon Josefsson  <jas@extundo.com>
76059
76060         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
76061         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
76062         to real functions.
76063
76064 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76065
76066         * modules/vsnprintf: New file.
76067
76068 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76069
76070         * m4/vsnprintf.m4: New file.
76071
76072 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76073
76074         * lib/vsnprintf.h: New file.
76075         * lib/vsnprintf.c: New file.
76076
76077 2004-10-11  Bruno Haible  <bruno@clisp.org>
76078
76079         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
76080         vsnprintf.
76081
76082 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76083
76084         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
76085
76086 2004-10-07  Bruno Haible  <bruno@clisp.org>
76087
76088         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
76089         fits into the provided buffer.
76090
76091 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76092
76093         * lib/diacrit.c, diacrit.h: Add GPL notice.
76094
76095         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
76096         notice.
76097         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
76098         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
76099         This avoids a potential constant-folding bug.
76100
76101 2004-10-05  Bruno Haible  <bruno@clisp.org>
76102
76103         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
76104         for the declaration of strsep.
76105
76106 2004-10-05  Bruno Haible  <bruno@clisp.org>
76107
76108         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
76109
76110 2004-10-04  Simon Josefsson  <jas@extundo.com>
76111
76112         * modules/memmem: New file.
76113         * tests/test-memmem.c: New file.
76114         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
76115
76116 2004-10-04  Simon Josefsson  <jas@extundo.com>
76117
76118         * m4/memmem.m4: New file.
76119
76120 2004-10-04  Simon Josefsson  <jas@extundo.com>
76121
76122         * lib/memmem.h: New file.
76123         * lib/memmem.c: New file, taken from glibc.
76124
76125 2004-10-04  Simon Josefsson  <jas@extundo.com>
76126
76127         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
76128         '#ifdef USE_UNLOCKED_IO'.
76129
76130 2004-10-04  Simon Josefsson  <jas@extundo.com>
76131
76132         * config/srclist.txt: Add memmem from glibc.
76133
76134 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76135
76136         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
76137
76138         * modules/argmatch, modules/argp, modules/closeout, modules/error,
76139         modules/exclude, modules/getdate, modules/getline,
76140         modules/getndelim2, modules/getpass, modules/getpass-gnu,
76141         modules/getusershell, modules/linebuffer, modules/md5,
76142         modules/mountlist, modules/posixtm, modules/readtokens,
76143         modules/readutmp, modules/regex, modules/sha1,
76144         modules/version-etc, modules/yesno:
76145         Remove dependency on unlocked-io.
76146
76147 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76148
76149         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
76150
76151         * m4/unlocked-io.m4: Add copyright notice.
76152         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
76153
76154 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76155
76156         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
76157         * lib/xmalloc.c (xmemdup): Likewise.
76158         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
76159         XFREE): Remove these long-obsolescent macros.
76160         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
76161         * lib/xstrdup.c: Remove.
76162
76163         * lib/regex.c (re_comp): Cast gettext return value to char *,
76164         Problem reported by Martin Neitzel via Mark D. Baushke.
76165
76166 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76167
76168         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
76169         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
76170         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
76171         regex.c, sha1.c, version-etc.c, yesno.c:
76172         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
76173         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
76174         the includer's responsibility.
76175
76176         Sync from coreutils.
76177
76178         * lib/modechange.c (mode_compile): Don't decrement a pointer that
76179         points to the start of a string, as the C Standard says the
76180         resulting behavior is undefined.
76181
76182         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
76183         simple -> simple_backups, numbered_existing ->
76184         numbered_existing_backups, numbered -> numbered_backups
76185         to avoid shadowing problems.  All uses changed.
76186         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
76187         * lib/backupfile.c (check_extension, numbered_backup):
76188         Rename locals to avoid shadowing 'basename'.
76189         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
76190         once.
76191
76192         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
76193         * lib/.cvsignore: Add getopt.h.
76194
76195 2004-10-04  Bruno Haible  <bruno@clisp.org>
76196
76197         * modules/README: New file.
76198         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
76199         not a module.
76200
76201 2004-10-02  Jim Meyering  <jim@meyering.net>
76202
76203         * lib/dirfd.h, getpagesize.h: Add copyright notice.
76204
76205 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76206
76207         * modules/strsep: New file.
76208
76209 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76210
76211         * m4/strsep.m4: New file.
76212
76213 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76214
76215         * lib/strsep.h: New file.
76216         * lib/strsep.c: New file.
76217
76218 2004-10-01  Simon Josefsson  <jas@extundo.com>
76219
76220         * lib/snprintf.c (snprintf): Handle size==0.
76221
76222 2004-10-01  Simon Josefsson  <jas@extundo.com>
76223             Bruno Haible  <bruno@clisp.org>
76224
76225         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
76226         (snprintf): Declare 'args'.
76227
76228 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
76229
76230         * lib/snprintf.c: Remove comments as to why each header is needed.
76231
76232 2004-10-01  Bruno Haible  <bruno@clisp.org>
76233
76234         * MODULES.html.sh: Add strsep.
76235
76236 2004-09-30  Simon Josefsson  <jas@extundo.com>
76237
76238         * modules/snprintf: New file.
76239
76240 2004-09-30  Simon Josefsson  <jas@extundo.com>
76241
76242         * m4/snprintf.m4: New file.
76243
76244 2004-09-30  Simon Josefsson  <jas@extundo.com>
76245
76246         * lib/snprintf.h, lib/snprintf.c: New files.
76247
76248 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76249
76250         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
76251         (hol_entry_help): Never translate an empty string.
76252         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
76253         * lib/argp.h (OPTION_NO_TRANS): New option.
76254
76255 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76256
76257         * modules/argp (Maintainer): Replace Simon Josefsson
76258         by Sergey Poznyakoff.
76259
76260 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76261
76262         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
76263         changes merged back into glibc.
76264
76265 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76266
76267         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
76268
76269 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76270
76271         * lib/xvasprintf.c: Include xalloc.h.
76272         (xvasprintf): Use xalloc_die, not xmalloc_die.
76273
76274 2004-09-29  Bruno Haible  <bruno@clisp.org>
76275
76276         * modules/alloca-opt: New file, derived from modules/alloca.
76277         * modules/allocsa: Depend on alloca-opt instead of alloca.
76278         * modules/setenv: Likewise.
76279         * modules/vasnprintf: Likewise.
76280         * MODULES.html.sh: Add alloca-opt.
76281
76282 2004-09-28  Simon Josefsson  <jas@extundo.com>
76283
76284         * gnulib-tool: New parameter --lgpl, to asseert that modules are
76285         LGPL, and to replace license template from GPL to LGPL.
76286
76287 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76288
76289         * modules/dummy: Change license to LGPL.
76290
76291 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76292
76293         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
76294
76295 2004-09-24  Simon Josefsson  <jas@extundo.com>
76296
76297         * modules/minmax (License): Change from GPL to LGPL.
76298
76299 2004-09-23  Simon Josefsson  <jas@extundo.com>
76300
76301         * gnulib-tool (--import): Typo.
76302
76303 2004-09-23  Simon Josefsson  <jas@extundo.com>
76304
76305         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
76306
76307 2004-09-22  Bruno Haible  <bruno@clisp.org>
76308
76309         * modules/*: Add 'License' field.
76310         * gnulib-tool: Accept --extract-license option.
76311         (func_get_license): New function.
76312
76313 2004-09-21  Bruno Haible  <bruno@clisp.org>
76314
76315         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
76316         Reported by Simon Josefsson.
76317
76318 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76319
76320         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
76321         gl_AC_TYPE_LONG_LONG.
76322
76323 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76324
76325         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
76326
76327 2004-09-18  Simon Josefsson  <jas@extundo.com>
76328         and  Paul Eggert  <eggert@cs.ucla.edu>
76329
76330         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
76331         calls with autoreconf.  Define GL_LIB.
76332
76333 2004-09-14  Karl Berry  <karl@gnu.org>
76334
76335         * config/srclist.txt: unsync setenv.c, sigh.
76336
76337 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76338
76339         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
76340         Problem reported by Bruno Haible in:
76341         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
76342
76343 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76344
76345         * config/srclist.txt: Comment out argp-pvh.c.
76346
76347 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
76348
76349         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
76350         in case some system header has #define'd it.  Problem reported by
76351         Soeren D. Schulze in
76352         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
76353
76354 2004-09-09  Karl Berry  <karl@gnu.org>
76355
76356         * regex.[ch]: delete from the root.  These were supposed to be
76357                 synced with emacs cvs, but this has not happened for about
76358                 a year, and anyway nothing else uses emacs regex.[ch].
76359                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
76360                 lib/regex[.ch] is untouched.
76361
76362 2004-09-09  Bruno Haible  <bruno@clisp.org>
76363
76364         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
76365
76366 2004-09-09  Bruno Haible  <bruno@clisp.org>
76367
76368         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
76369         modifications.
76370         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
76371
76372 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76373
76374         * modules/xvasprintf: New file.
76375         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
76376
76377 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76378
76379         * lib/xvasprintf.h: New file.
76380         * lib/xvasprintf.c: New file.
76381         * lib/xasprintf.c: New file.
76382
76383 2004-09-08  Bruno Haible  <bruno@clisp.org>
76384
76385         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
76386
76387 2004-09-08  Bruno Haible  <bruno@clisp.org>
76388
76389         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
76390         length is > INT_MAX.
76391         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
76392         more.
76393
76394 2004-09-08  Bruno Haible  <bruno@clisp.org>
76395
76396         * lib/stdint_.h: New file, taken from GNU clisp.
76397
76398 2004-09-08  Bruno Haible  <bruno@clisp.org>
76399             Oskar Liljeblad  <oskar@osk.mine.nu>
76400
76401         * modules/stdint: New file.
76402         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
76403
76404 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76405
76406         Import from coreutils.
76407         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
76408         strings on unbounded length.  alloca's performance benefits aren't
76409         that important here.
76410         (V_STRDUP): Remove.
76411         (parse_with_separator): New function, with most of the internals
76412         of the old parse_user_spec.  Allow user to omit both user and group,
76413         for compatibility with FreeBSD.
76414         Clone only the user name, not the entire spec.
76415         Do not set *uid, *gid unless entirely successful.
76416         Avoid memory leak in some failing cases.
76417         Fix regression for USER.GROUP reported by Dmitry V. Levin in
76418         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
76419         (parse_user_spec): Rewrite to use parse_with_separator.
76420
76421 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76422
76423         * modules/userspec: Don't depend on alloca.
76424
76425 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76426
76427         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
76428
76429 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76430
76431         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
76432         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
76433         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
76434
76435 2004-08-16  Simon Josefsson  <jas@extundo.com>
76436
76437         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
76438         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
76439         Add --dry-run for --import.
76440         Let user provided command line parameters override configure.ac
76441         settings.
76442
76443 2004-08-12  Simon Josefsson  <jas@extundo.com>
76444
76445         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
76446         as discussed with Paul Eggert in threads rooted at
76447         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
76448         and
76449         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
76450         Before, the test was empty, and relied on ELIDE_CODE in source
76451         code.)
76452         (gl_PREREQ_GETOPT): New macro.
76453         (gl_GETOPT): Use them.
76454
76455 2004-08-12  Simon Josefsson  <jas@extundo.com>
76456
76457         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
76458         * lib/getopt_.h: Renamed from getopt.h.
76459
76460 2004-08-12  Simon Josefsson  <jas@extundo.com>
76461
76462         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
76463         Change default library name from libfoo to libgnu.
76464         Now, if you have a configure.ac that says:
76465                 gl_SOURCE_BASE(gl)
76466                 gl_M4_BASE(gl/m4)
76467                 gl_MODULES(error getopt etcetera)
76468                 gl_INIT
76469         you can import all you need by running:
76470                 ../gnulib/gnulib-tool --import
76471
76472         * modules/getopt (Files): Rename getopt.h to getopt_.h.
76473         (Makefile.am): Rewrite, use logic from argz.
76474         (Include): Use <getopt.h> instead of "getopt.h".
76475
76476 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76477
76478         * modules/argp (Files): Add m4/unlocked-io.m4.
76479         (Depends-on): Add extensions.
76480
76481 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76482
76483         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
76484         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
76485         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
76486         Check for program_invocation_name, program_invocation_short_name,
76487         flockfile, funlockfile, features.h, _getopt_long_only_r.
76488
76489 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76490
76491         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
76492         its complicated substitute.
76493         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
76494         and program_invocation_name.
76495         (__argp_basename) [!_LIBC]: Remove; the only use was
76496         replaced by its body.
76497         (__argp_short_program_name): Change condition from
76498         !defined __argp_short_program_name to
76499         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
76500         to match argp-namefrob.h.
76501         (__argp_failure): Don't assume strerror_r returns char *.
76502         * lib/argp-parse.c (N_): Define unconditionally.
76503         (argp_default_options): Fill out initializers with 0 to avoid
76504         gcc warnings.
76505
76506 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76507
76508         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
76509         getopt1.c.
76510
76511 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76512
76513         Merge from coreutils.
76514
76515         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
76516
76517         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
76518         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
76519
76520 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76521
76522         Merge from coreutils.
76523
76524         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
76525         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
76526         for Reliant Unix 5.43.
76527
76528         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
76529         (union fooround): Use uintmax_t, not long int.
76530         The rest is a merge from libc:
76531         [defined _LIBC]: Include <shlib-compat.h>.
76532         (_obstack) [defined _LIBC]: Remove after 2.3.4.
76533
76534         * lib/settime.c (settime): Recode to avoid warning with
76535         Sun Forte C 6U2.
76536
76537         * lib/strverscmp.c: Convert to UTF-8.
76538
76539 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76540
76541         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76542         m4/uintmax_t.m4.
76543
76544 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76545
76546         * modules/xalloc-die: New file.
76547         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
76548
76549         * modules/md5 (Files): Add m4/uint32_t.m4.
76550         * modules/sha1: Renamed from modules/sha.
76551         (Files):
76552         Rename lib/sha.h to lib/sha1.h.
76553         Rename lib/sha.c to lib/sha1.c.
76554         Rename m4/sha.m4 to m4/sha1.m4.
76555         (lib_SOURCES): Likewise.
76556         (configure.ac): Rename gl_SHA to gl_SHA1.
76557         (Include): sha.h -> sha1.h.
76558
76559 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76560
76561         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
76562         * m4/sha1.m4: Renamed from sha.m4.
76563         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
76564
76565 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76566
76567         * lib/obstack.h (obstack_empty_p):
76568         Don't assume that chunk->contents is suitably aligned.
76569         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
76570         Likewise. Problem reported by Benno in
76571         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
76572
76573         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
76574         readable.  This could be improved further but it'd take some work.
76575
76576 2004-08-08  Simon Josefsson  <jas@extundo.com>
76577
76578         * modules/xgethostname (Depends-on): Remove exit and error (not
76579         used).
76580
76581         * modules/getpass-gnu: Add getpass.h.
76582         (Depends-on): Add stdbool.
76583         * modules/getpass: Add getpass.h.
76584
76585 2004-08-08  Simon Josefsson  <jas@extundo.com>
76586
76587         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
76588         Check getpass declaration.
76589
76590 2004-08-08  Simon Josefsson  <jas@extundo.com>
76591
76592         * lib/xgethostname.c: Don't include error.h (not used).
76593
76594         * lib/getpass.h: Add.
76595         * lib/getpass.c: Include getpass.h first.
76596
76597 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
76598
76599         * lib/xalloc-die.c: New file.
76600         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
76601         All uses removed.
76602         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
76603         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
76604         xalloc-die.c.
76605         (_, N_, xalloc_die): Move to xalloc-die.c.
76606         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
76607         so that we needn't mess with xalloc_msg_memory_exhausted.
76608
76609         * lib/sha1.h: Renamed from sha.h.
76610         (SHA1_H): Renamed from _SHA_H.
76611         (sha1_ctx): Renamed from sha_ctx.
76612         (sha1_init_ctx): Renamed from sha_init_ctx.
76613         (sha1_process_block): Renamed from sha_process_block.
76614         (sha1_process_bytes): Renamed from sha_process_bytes.
76615         (sha1_finish_ctx): Renamed from sha_finish_ctx.
76616         (sha1_read_ctx): Renamed from sha_read_ctx.
76617         (sha1_stream): Renamed from sha_stream.
76618         (sha1_buffer): Renamed from sha_buffer.
76619         * lib/sha1.c: Likewise; renamed from sha.c.
76620         Do not include <sys/types.h>.
76621         Include <stddef.h> rather than <stdlib.h>.
76622
76623 2004-08-08  Bruno Haible  <bruno@clisp.org>
76624
76625         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
76626         FILESYSTEM_PREFIX_LEN.
76627         * lib/progreloc.c: Likewise.
76628         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
76629
76630 2004-08-06  Simon Josefsson  <jas@extundo.com>
76631
76632         * modules/progname (Depends-on): Don't depend on stdbool.
76633
76634 2004-08-06  Simon Josefsson  <jas@extundo.com>
76635
76636         * modules/getsubopt: New file.
76637         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76638         getsubopt.
76639
76640 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76641
76642         More merge from coreutils.
76643
76644         * m4/utimens.m4, m4/utimecmp.m4: New files.
76645         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
76646         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
76647         prereq.m4, sha.m4: Import changes from coreutils.
76648
76649 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76650
76651         More merge from coreutils.
76652         * modules/raise, modules/readtokens0, modules/utimens:
76653         * modules/utimecmp, module/xnanosleep: New files.
76654         * modules/strftime: Add lib/strftime.h.
76655         Change include from <time.h> to "strftime.h".
76656         * modules/yesno: Add lib/yesno.h.
76657         * modules/backupfile: Remove lib/addext.c.
76658         * modules/euidaccess: Add stat-macros.h.
76659         * modules/canonicalize, modules/euidaccess,
76660         modules/filemode, modules/lchown, modules/makepath,
76661         modules/rmdir, modules/stat: Likewise.
76662
76663 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76664
76665         Merge from tar.
76666         * lib/argp-help.c (make_hol, hol_append): Don't assume that
76667         SIZE_MAX is a valid preprocessor constant.
76668         (__argp_basename): Change from "#ifndef _LIBC"
76669         to "#ifndef __argp_short_program_name", so that
76670         we don't compile these functions for tar.
76671
76672         More merges from coreutils.
76673         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
76674         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
76675         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
76676         * lib/addext.c: Remove; no longer needed.
76677         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
76678         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
76679         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
76680         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
76681         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
76682         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
76683         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
76684         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
76685         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
76686         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76687         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
76688         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
76689         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
76690         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
76691         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
76692         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
76693         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
76694         Import changes from coreutils.
76695
76696 2004-08-05  Simon Josefsson  <jas@extundo.com>
76697
76698         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
76699
76700 2004-08-05  Simon Josefsson  <jas@extundo.com>
76701
76702         * m4/getsubopt.m4: New file.
76703
76704 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76705
76706         Merge from coreutils.
76707
76708         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
76709         * m4/getcwd-path-max.m4: New files.
76710
76711         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
76712         FILESYSTEM_PREFIX_LEN ->
76713         FILE_SYSTEM_PREFIX_LEN.
76714         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
76715         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
76716         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
76717         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
76718
76719         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
76720         prerequisite modules now handle the DOS stuff.
76721         Don't check for unistd.h.
76722
76723 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76724
76725         Merge from coreutils.
76726
76727         * lib/.gdb-history: Remove; this doesn't belong here.
76728
76729         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
76730         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
76731         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
76732         * lib/getcwd.c: New files.
76733
76734         * lib/dirname.h: Include <stdbool.h>.
76735         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
76736         for consistency with POSIX terminology.  All uses changed.
76737         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
76738         (strip_trailing_slashes): Use bool for booleans.
76739         * lib/stripslash.c (strip_trailing_slashes): Likewise.
76740
76741         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
76742         sometimes returns a positive errno value even when it succeeds.
76743         (print_errno_message) [!LIBC]: Fall back on strerror if
76744         __strerror_r fails.
76745
76746         * lib/path-concat.c (mempcpy): Don't define if a system header defines
76747         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
76748         (longest_relative_suffix): New function.
76749         (path_concat): Use it.  Assume first argument is not NULL.
76750         Port to DOS.  Omit redundant separators.
76751         Report an error instead of returning NULL.
76752         Use mempcpy instead of memcpy.
76753         (xpath_concat): Remove: not declared or used.
76754
76755         * lib/same.h: Include <stdbool.h>
76756         (same_name): Return bool, not int.
76757         * lib/same.c (same_name): Likewise.
76758         (errno): Don't declare; we assume C89 or better now.
76759
76760         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
76761         if not already defined.
76762
76763         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
76764         * lib/dup-safer.c (errno): Likewise.
76765
76766 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76767
76768         Merge from coreutils.
76769         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
76770         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
76771         * modules/path-concat: Don't depend on strdup.
76772
76773 2004-08-03  Simon Josefsson  <jas@extundo.com>
76774
76775         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
76776         * lib/progname.h: Don't include stdbool.h.
76777
76778 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76779
76780         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
76781         * MODULES.html.sh (func_all_modules): Remove fatal.
76782
76783 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76784
76785         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
76786
76787 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76788
76789         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
76790         working.
76791
76792 2004-08-02  Simon Josefsson  <jas@extundo.com>
76793
76794         * lib/getsubopt.h: New file, with comments from Bruno Haible.
76795         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
76796         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
76797
76798 2004-08-01  Simon Josefsson  <jas@extundo.com>
76799
76800         * lib/xgetdomainname.c: Include stdlib.h, for free().
76801
76802 2004-07-19  Bruno Haible  <bruno@clisp.org>
76803
76804         * MODULES.html.sh (func_all_modules): Add dummy.
76805
76806 2004-07-16  Simon Josefsson  <jas@extundo.com>
76807
76808         * modules/dummy: New file.
76809
76810 2004-07-16  Simon Josefsson  <jas@extundo.com>
76811
76812         * lib/dummy.c: New file.
76813
76814 2004-07-16  Bruno Haible  <bruno@clisp.org>
76815
76816         * lib/backupfile.h: Add extern "C" for C++.
76817         * lib/closeout.h: Likewise.
76818         * lib/copy-file.h: Likewise.
76819         * lib/findprog.h: Likewise.
76820         * lib/full-write.h: Likewise.
76821         * lib/pathname.h: Likewise.
76822         * lib/progname.h: Likewise.
76823         * lib/stpcpy.h: Likewise.
76824         * lib/stpncpy.h: Likewise.
76825         * lib/strcase.h: Likewise.
76826         * lib/strstr.h: Likewise.
76827         * lib/xalloc.h: Likewise.
76828
76829         * lib/mbswidth.h: Add extern "C" for C++.
76830         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
76831
76832 2004-07-13  Robert Millan  <robertmh@gnu.org>
76833
76834         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
76835
76836 2004-07-09  Simon Josefsson  <jas@extundo.com>
76837
76838         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
76839         failed without this.)
76840
76841 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76842
76843         * modules/chown (Files): Add lib/fchown-stub.c, since
76844         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
76845
76846 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76847
76848         * lib/fchown-stub.c: New file.
76849
76850 2004-06-24  Jim Meyering  <jim@meyering.net>
76851
76852         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
76853
76854 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76855
76856         * modules/argz: Omit "#include".
76857
76858         * MODULES.html.sh (func_all_modules): Add calloc, to match
76859         2004-06-01 addition of calloc module.
76860
76861 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76862
76863         * m4/argz.m4: New file, which is autoupdated from libtool.
76864
76865 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76866
76867         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
76868         libtool.
76869
76870 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76871
76872         * config/srclist-update: Don't insist on "USA." before the
76873         close-comment, as libtool omits the period and puts the */ on a
76874         separate line.
76875         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
76876         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
76877
76878 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
76879
76880         * modules/argz: New file.
76881         * MODULES.html.sh (func_all_modules): Add argz.
76882
76883 2004-06-12  Jim Meyering  <jim@meyering.net>
76884         and  Paul Eggert  <eggert@cs.ucla.edu>
76885
76886         * modules/hash (Files): Add lib/xalloc.h.
76887         * modules/pipe (Depends-on): Add wait-process.
76888         * modules/stat (Depends-on): Add xalloc.
76889         * modules/userspec (Files): Add lib/userspec.h.
76890         * modules/xstrto
76891
76892         Upgrade from gettext-0.13.
76893         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
76894         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
76895         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
76896
76897 2004-06-10  Jim Meyering  <jim@meyering.net>
76898
76899         * lib/calloc.c: New file.
76900
76901 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
76902
76903         * lib/getdate.y (yylex): Allow space between sign and number.
76904         Problem reported by Dan Jacobson.
76905
76906 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76907
76908         Merge from coreutils CVS.
76909
76910         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
76911         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
76912         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
76913         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
76914         xstrtol.m4: Fix copyright date and/or serial number.
76915
76916         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
76917         See if we need an fchown replacement.
76918         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
76919         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
76920         and use the replacement function if we detect either defect.
76921
76922         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
76923         gl_UTIMECMP.
76924
76925 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76926         and  Jim Meyering  <jim@meyering.net>
76927
76928         Merge from coreutils CVS.
76929
76930         * lib/stat-macros.h: New file, with contents from file-type.h
76931         and coreutils' system.h.
76932         * lib/file-type.c: Include "stat-macros.h".
76933         * lib/file-type.h (file_type): Move all macro definitions to new file,
76934         stat-macros.h.
76935
76936         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
76937         Wrap old code with this conditional.
76938         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
76939         function that does not dereference symlinks.
76940         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
76941
76942         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
76943         dependency problems.
76944         (xreadlink): Accept new arg SIZE, for efficiency.
76945         All decls and uses changed.
76946         * lib/xreadlink.h: Include <stddef.h>, for size_t.
76947
76948         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
76949         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
76950
76951         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
76952         sysexits.h.
76953
76954 2004-06-01  Jim Meyering  <jim@meyering.net>
76955
76956         * m4/calloc.m4: New file.
76957
76958 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
76959
76960         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
76961         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
76962         Also, fix a typo in a diagnostic.
76963
76964 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76965
76966         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
76967         or AC_FUNC_REALLOC.
76968
76969 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76970
76971         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
76972         macros to be defined.
76973         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76974         the allocator returns NULL because the requested size is zero.
76975
76976 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76977
76978         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76979         var.  Add comment explaining why libc still defines it.  This
76980         merges the following patch from glibc:
76981         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76982
76983 2004-05-20  Andreas Schwab  <schwab@suse.de>
76984
76985         * m4/free.m4: Replace free if it not known to work, not the other
76986         way round.
76987
76988 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76989
76990         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76991         present in glibc since revision 1.1 of this file.
76992         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76993         obstack_alignment_mask, obstack_alloc, obstack_base,
76994         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76995         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76996         obstack_grow0, obstack_init, obstack_int_grow,
76997         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76998         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76999         obstack_ptr_grow_fast, obstack_room): Remove declarations of
77000         nonexistent functions.
77001
77002 2004-05-18  Karl Berry  <karl@gnu.org>
77003
77004         * config/srclist.txt: break link for vasnprintf.c.
77005
77006 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
77007
77008         Port obstack to the AS/400, where pointers are 16 bytes wide and
77009         you cannot cast an integer to a valid pointer.  This patch is
77010         currently waiting to be integrated into glibc; see
77011         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
77012
77013         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
77014         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
77015         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
77016         (struct obstack): temp member is now a union of a pointer and
77017         an integer, instead of an integer.  All integer uses changed.
77018         This does not affect the physical layout of struct obstack,
77019         except on hosts (like the AS/400) where the size or alignment of
77020         void * is greater than that of ptrdiff_t.
77021         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
77022         __STDC__)]: Store temporary in pointer member of union, not
77023         integer member.
77024         * lib/obstack.c: Include <stddef.h>, for offsetof.
77025         (struct fooalign): Remove; it doesn't need a name.
77026         (union fooround): Change double to long double, and add void *.
77027         (DEFAULT_ALIGNMENT): Use offsetof to compute.
77028         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
77029         not a macro.  Hence the values are always int; so remove all
77030         casts-to-int in uses.
77031
77032 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
77033
77034         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
77035         we can get this patch merged into glibc.
77036
77037 2004-05-17  Derek R. Price  <derek@ximbiot.com>
77038             Paul Eggert  <eggert@cs.ucla.edu>
77039
77040         * m4/argp: Depend on alloca.
77041
77042 2004-05-17  Derek R. Price  <derek@ximbiot.com>
77043             Paul Eggert  <eggert@cs.ucla.edu>
77044
77045         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
77046         freecoding.
77047
77048 2004-05-17  Bruno Haible  <bruno@clisp.org>
77049
77050         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
77051         precision that consists of a '.' followed by an empty digit string.
77052         Patch by Tor Lillqvist <tml@iki.fi>.
77053
77054 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
77055
77056         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
77057         for backward compatibility with older code.  We need our own
77058         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
77059         it under some other name, and our alloca.h will define it.
77060
77061 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
77062             Derek Price  <derek@ximbiot.com>
77063
77064         * lib/alloca.c: Include <alloca.h>, to get our interface.
77065         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
77066         include <alloca.h> first.  Use C89 prototype for alloca; this
77067         requires including <stddef.h> for size_t.  Use extern "C" if C++.
77068         Use #elif for simplicity, since we can assume C89 now.
77069         Don't try to source the system alloca.h since it will not be found
77070         and to prevent recursively including its replacement.
77071         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
77072         * lib/regex.c: Likewise.
77073
77074 2004-05-16  Derek Price  <derek@ximbiot.com>
77075             Paul Eggert  <eggert@cs.ucla.edu>
77076
77077         getline cleanup.  This changes the getndelim2 API: both order of
77078         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
77079         no delimiter).
77080
77081         * lib/getline.c: Don't include stddef.h or stdio.h, since our
77082         interface does that.
77083         (getline): Always use getdelim, so that we don't have two
77084         copies of this code.
77085         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
77086         if available.
77087         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
77088         (GETNDELIM2_MAXIMUM): New macro.
77089         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
77090         instead of the old practice of delim2==0.  All callers changed.
77091         Return -1 on overflow, instead of returning junk.
77092         Do not set *linesize unless allocation succeeds.
77093         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
77094         that we include sys/types.h.
77095         * lib/getnline.h: Likewise.
77096         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
77097         (getndelim2): Reorder arguments.
77098         * lib/getnline.c (getnline, getndelim):
77099         Don't discard the NMAX argument.
77100         (getnline): Invoke getndelim, to avoid code duplication.
77101         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
77102         of (size_t) -1 by callers of the getnline family.
77103
77104 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77105
77106         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
77107         Check for gettimeofday.
77108         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
77109         Check for settimeofday, stime.
77110
77111 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77112
77113         * lib/nanosleep.c (suspended): Change its type from int to
77114         sig_atomic_t volatile.
77115         (first_call): Make it private to rpl_nanosleep, and have it
77116         be zero initially as that's a bit faster.
77117         (my_usleep): Round up fractional times instead of truncating them,
77118         as this is the usual meaning for 'sleep'.
77119
77120         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
77121         doesn't work.
77122         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
77123         (ENOSYS): Define if not defined.
77124         (settime): Fall back on stime if it exists and settimeofday fails.
77125         But don't bother with fallbacks if a method fails with errno == EPERM.
77126
77127 2004-05-11  Jim Meyering  <jim@meyering.net>
77128
77129         Prior to this change, the save_cwd caller required read access to the
77130         current directory on most systems (ones with the fchdir function).
77131
77132         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
77133         fails, try write-only, and finally, resort to using xgetcwd.
77134
77135 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77136
77137         * lib/obstack.c, obstack.h: Import changes from libc.
77138
77139 2004-04-28  Bruno Haible  <bruno@clisp.org>
77140
77141         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
77142         also implicitly appends .exe to executables.
77143         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
77144         accepts Windows pathnames.
77145         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77146         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77147         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77148         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77149         Reported by Derek Robert Price <derek@ximbiot.com>.
77150
77151 2004-04-21  Karl Berry  <karl@gnu.org>
77152
77153         * config/srclist.txt (localcharset.c): break sync.
77154
77155 2004-04-20  Paul Eggert  <eggert@twinsun.com>
77156
77157         * m4/host-os.m4: Add a copyright notice.
77158
77159 2004-04-20  Jim Meyering  <jim@meyering.net>
77160
77161         Change UTILS_ to gl_ in AC_DEFINE'd names.
77162         Change utils_- and jm_-prefixed variables, too.
77163         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
77164         UTILS_FUNC_MKDIR_TRAILING_SLASH.
77165         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
77166
77167         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
77168         Don't emit trailing blanks.
77169         Also rename jm_-prefixed variables to have gl_ prefix.
77170
77171         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
77172         Also rename jm_-prefixed variables to have gl_ prefix.
77173
77174         * m4/jm-macros.m4: Reflect the renamings.
77175         * m4/prereq.m4: Likewise.
77176
77177 2004-04-20  Jim Meyering  <jim@meyering.net>
77178
77179         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
77180         memory.
77181
77182 2004-04-20  Jim Meyering  <jim@meyering.net>
77183             Bruno Haible  <bruno@clisp.org>
77184
77185         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
77186         memory when realloc fails.
77187
77188 2004-04-19  Jim Meyering  <jim@meyering.net>
77189
77190         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
77191         now that readutmp.c may call `free (0)'.
77192
77193 2004-04-19  Bruno Haible  <bruno@clisp.org>
77194
77195         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
77196         * m4/inttypes_h.m4: Likewise.
77197         * m4/stdint_h.m4: Likewise.
77198         * m4/intmax_t.m4: Likewise.
77199         * m4/uintmax_t.m4: Likewise.
77200
77201 2004-04-18  Jim Meyering  <jim@meyering.net>
77202
77203         * m4/prereq.m4: Don't forbid jm_ prefix.
77204
77205         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
77206         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
77207         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
77208         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
77209         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
77210         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
77211         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
77212         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
77213         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
77214         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
77215         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
77216         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
77217         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
77218         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
77219         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
77220         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
77221         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
77222         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
77223         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
77224
77225 2004-04-18  Jim Meyering  <jim@meyering.net>
77226
77227         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
77228         failure, don't leak memory and do call END_UTMP_ENT.
77229
77230 2004-04-16  Jim Meyering  <jim@meyering.net>
77231
77232         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
77233         coreutils' stat program.
77234         (gl_PREREQ): Don't require jm_PREREQ_STAT.
77235
77236 2004-04-11  Paul Eggert  <eggert@twinsun.com>
77237
77238         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
77239         C89.
77240         (CHAR_BIT): Remove, since we assume C89.
77241         Include <stdint.h> if available, as per current Autoconf CVS advice.
77242
77243 2004-03-31  Jim Meyering  <jim@meyering.net>
77244
77245         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
77246         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
77247         * m4/xalloc.m4: Likewise.
77248
77249 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77250
77251         Merge from coreutils.
77252
77253         * m4/inttostr.m4: New file.
77254         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
77255         Require AM_STDBOOL_H and gl_TIMESPEC instead.
77256         Require gl_CLOCK_TIME.
77257         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
77258
77259 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77260
77261         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
77262         not bool, to be more consistent with Unix conventions.
77263         Suggested by Bruno Haible.
77264
77265         Merge from coreutils.
77266
77267         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
77268         * lib/umaxtostr.c: New files.
77269
77270         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
77271         the usual <time.h> dance.
77272         (get_date): Change signature to support fractional time stamps.
77273         All callers changed.
77274         * lib/getdate.y: Include "getdate.h" first, as we can now
77275         assume C89 and don't need to worry about 'const'.
77276         Similarly, include "unlocked-io.h" near start, not in middle.
77277         Include <limits.h>.
77278         (textint.value): Use long int rather than int.
77279         (textint.digits): Use size_t rather than int.
77280         (BILLION, LOG10_BILLION): New constants.
77281         (parser_control): New member rel_ns.  Members day_ordinal,
77282         time_zone, month, day, hour, minutes, rel_year, rel_month,
77283         rel_day, rel_hour, rel_minutes, rel_seconds
77284         are now long int, not int.  Member seconds is now struct timespec,
77285         not int.  New member timespec_seen.  Members dates_seen, days_seen,
77286         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
77287         not int.
77288         (%union.intval): Now long int, not int.
77289         New member timespec.
77290         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
77291         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
77292         (spec): Now is a timespec or an item list.
77293         (timespec, items): New nonterminals.
77294         (time, rel, relunit, number, get_date):
77295         Add support for fractional seconds.
77296         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
77297         (gmtime, localtime, mktime): Remove decls; not needed with C89.
77298         (to_hour): First arg is now long int, not int.
77299         (to_year): Returns long int, not int.
77300         Don't treat year -70 like 70.
77301         (tm_diff): Returns long int, not int.
77302         (lookup_word): Use bool instead of int when appropriate.
77303         (yylex): Use size_t for count, not int.
77304         Detect overflow when parsing large integer constants.
77305         Add support for fractions.
77306         (get_date): Make pointers 'const' if possible.
77307         Use more-portable code to detect integer overflow.
77308         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
77309         Don't use ctime; it's not reliable if the year has >4 digits.
77310
77311         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
77312         This is for compatibility with BSD.
77313
77314         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
77315         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
77316         From coreutils' system.h.
77317
77318         * lib/userspec.c: Don't include "posixver.h".
77319         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
77320         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
77321         compatible extension.  Simplify code by removing a boolean int
77322         that was always nonzero if a string was nonnull.
77323
77324 2004-03-30  Jim Meyering  <jim@meyering.net>
77325
77326         Merge from coreutils.
77327
77328         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
77329         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
77330         on some systems one must include <grp.h> before it.
77331         Reported by Christian Krackowizer.
77332
77333 2004-03-30  Jim Meyering  <jim@meyering.net>
77334
77335         Merge from coreutils.
77336
77337         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
77338
77339         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
77340         an empty input stream.
77341
77342         * lib/readtokens.c: Include <stdbool.h>.
77343         (readtoken): Use `size_t' rather than int/long.
77344         All callers adjusted.
77345         Use `bool' rather than `int' where appropriate.
77346         Use memset rather than an explicit loop.
77347         Use x2nrealloc rather than xrealloc.
77348         Allow the use of `\0' as a delimiter.
77349         (readtokens): Likewise.
77350         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
77351
77352 2004-03-30  Jim Meyering  <jim@meyering.net>
77353
77354         * m4/realloc.m4: Remove file, since now it does no more than
77355         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
77356         the `configure.ac' section of module/realloc.
77357         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
77358
77359 2004-03-30  Bruno Haible  <bruno@clisp.org>
77360
77361         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
77362         nonnull.
77363
77364 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77365
77366         Merge changes to getloadavg.c from coreutils and Emacs.
77367
77368         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
77369         Define to an expression, not to the empty string.
77370         Include cloexec.h and xalloc.h.
77371         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
77372         Use set_cloexec_flag rather than rolling our own.
77373         * lib/cloexec.c, lib/cloexec.h: New files.
77374
77375 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77376
77377         * m4/cloexec.m4: New file.
77378
77379 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77380
77381         * lib/getopt.h: Sync with libc CVS.
77382
77383 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77384             Bruno Haible  <bruno@clisp.org>
77385
77386         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
77387         mbswidth.
77388
77389 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77390             Bruno Haible  <bruno@clisp.org>
77391
77392         * lib/mbswidth.h: Include <wchar.h> only if
77393         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
77394         <wchar.h>.
77395         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
77396
77397 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77398
77399         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
77400         Sync with libc CVS.
77401         * lib/getopt_int.h: New file, also synced from libc.
77402
77403 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77404
77405         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
77406         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
77407         Bring back getopt.c, getopt.h, getopt1.c.
77408
77409 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77410
77411         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
77412         All uses changed.  Check for sa_sigaction member; this fixes
77413         a bug first reported by Jason Andrade in
77414         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77415
77416 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77417
77418         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
77419         '#if' expressions.  Unlike the code it replaces, it does not
77420         depend on (defined _SC_PAGESIZE).  However, it does depend on
77421         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
77422         first reported by Jason Andrade in
77423         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77424
77425 2004-02-25  Simon Josefsson  <jas@extundo.com>
77426
77427         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
77428
77429 2004-02-25  Simon Josefsson  <jas@extundo.com>
77430
77431         * lib/strdup.h: New file.
77432         * lib/strdup.c: Include it.
77433         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
77434         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
77435
77436 2004-02-23  Karl Berry  <karl@gnu.org>
77437
77438         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
77439         (from fencepost.gnu.org:/gd/gnuorg).
77440
77441 2004-02-23  Karl Berry  <karl@gnu.org>
77442
77443         * config/srclistvars.sh (GNUORG) [karl]: redefine.
77444         * config/srclist.txt: add maintain/standards documents.
77445
77446 2004-02-18  Bruno Haible  <bruno@clisp.org>
77447
77448         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
77449         Reported by Derek Robert Price <derek@ximbiot.com>.
77450
77451 2004-02-16  Karl Berry  <karl@gnu.org>
77452
77453         * config/mkinstalldirs, install-sh: update from automake.
77454
77455 2004-02-06  Karl Berry  <karl@gnu.org>
77456
77457         * m4/po.m4: update from gettext 0.14.1.
77458
77459 2004-02-06  Karl Berry  <karl@gnu.org>
77460
77461         * lib/config.charset: update from gettext 0.14.1.
77462
77463 2004-02-05  Paul Eggert  <eggert@twinsun.com>
77464
77465         Add comments and code, prompted by suggestions from Bruno Haible
77466         for sh-quote.
77467         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
77468         describing the enum quoting_style values.
77469         * lib/quotearg.c (quotearg_alloc): New function.
77470         (quotearg_buffer_restyled): Treat lone { and } as special.
77471         Treat = as special.  Work around bug with older shells
77472         that "see" a '\' that is really the 2nd byte of a multibyte char.
77473         Quote empty string with shell_quoting_style.
77474
77475 2004-02-03  Bruno Haible  <bruno@clisp.org>
77476
77477         * m4/pipe.m4: New file, from GNU gettext.
77478
77479 2004-02-03  Bruno Haible  <bruno@clisp.org>
77480
77481         * lib/pipe.h: New file, from GNU gettext.
77482         * lib/pipe.c: New file, from GNU gettext.
77483
77484 2004-01-27  Bruno Haible  <bruno@clisp.org>
77485
77486         * m4/execute.m4: New file, from GNU gettext.
77487
77488 2004-01-27  Bruno Haible  <bruno@clisp.org>
77489
77490         * lib/execute.h: New file, from GNU gettext.
77491         * lib/execute.c: New file, from GNU gettext.
77492         * lib/w32spawn.h: New file, from GNU gettext.
77493
77494 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77495
77496         Merge from diffutils.
77497
77498         * lib/file-type.c (file_type): Add typed memory objects.
77499         * lib/file-type.h (S_TYPEISTMO): New macro.
77500
77501         * lib/c-stack.h (c_stack_action): Remove argv argument.
77502         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
77503         (die): Don't calculate message unless segv_action returns.
77504         (get_stack_location, min_address_from_argv, max_address_from_argv,
77505         volatile stack_base, volatile_stack_size): Remove.
77506         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
77507         that every segmentation violation is a stack overflow.  (Ouch!)
77508         See Debian bug 136249 (still outstanding) for more info about why
77509         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
77510
77511 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77512
77513         Exit-status fix from coreutils.
77514
77515         Use exit_failure consistently in place of EXIT_FAILURE,
77516         so that program exit statuses are consistent on failure.
77517
77518         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
77519         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
77520         * lib/argmatch.h: Comment fix to match the above.
77521         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
77522         Now a macro referring to exit_failure, instead of a separate
77523         variable.  Include "exitfail.h" to get it.
77524         * lib/xstrtol.h: Include "exitfail.h".
77525         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
77526
77527         * lib/long-options.c (parse_long_options): Use prototype
77528         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
77529         for clarity.
77530
77531 2004-01-21  Jim Meyering  <jim@meyering.net>
77532
77533         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
77534         so as not to conflict with a different-sized __mktime_internal
77535         function in GNU libc.
77536         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
77537         Problem building statically-linked `ls' reported by Michael Brunnbauer.
77538
77539 2004-01-20  Karl Berry  <karl@gnu.org>
77540
77541         * config/config.guess: update from config.
77542
77543         * config/srclistvars.sh: GNUWWWLICENSES for karl.
77544
77545 2004-01-20  Bruno Haible  <bruno@clisp.org>
77546
77547         Safer stack allocation.
77548         * lib/setenv.c: Include allocsa.h.
77549         (alloca): Remove fallback definition.
77550         (freea): Remove macro.
77551         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
77552         instead of freea.
77553
77554 2004-01-20  Bruno Haible  <bruno@clisp.org>
77555
77556         * m4/eealloc.m4: New file, from GNU gettext.
77557
77558 2004-01-20  Bruno Haible  <bruno@clisp.org>
77559
77560         * m4/allocsa.m4: New file, from GNU gettext.
77561
77562 2004-01-20  Bruno Haible  <bruno@clisp.org>
77563
77564         * lib/xallocsa.h: New file, from GNU gettext.
77565         * lib/xallocsa.c: New file, from GNU gettext.
77566
77567 2004-01-20  Bruno Haible  <bruno@clisp.org>
77568
77569         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
77570
77571 2004-01-20  Bruno Haible  <bruno@clisp.org>
77572
77573         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
77574         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
77575         specially.
77576
77577 2004-01-20  Bruno Haible  <bruno@clisp.org>
77578
77579         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
77580         patch.
77581
77582 2004-01-20  Bruno Haible  <bruno@clisp.org>
77583
77584         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
77585
77586 2004-01-20  Bruno Haible  <bruno@clisp.org>
77587
77588         * lib/eealloc.h: New file.
77589
77590 2004-01-20  Bruno Haible  <bruno@clisp.org>
77591
77592         * lib/binary-io.h: Avoid warnings on Cygwin.
77593
77594 2004-01-20  Bruno Haible  <bruno@clisp.org>
77595
77596         * lib/allocsa.h: New file, from GNU gettext.
77597         * lib/allocsa.c: New file, from GNU gettext.
77598
77599 2004-01-18  Karl Berry  <karl@gnu.org>
77600
77601         * doc/gpl.texi, doc/lgpl.texi: new files.
77602
77603 2004-01-18  Karl Berry  <karl@gnu.org>
77604
77605         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
77606         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
77607
77608 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77609
77610         Merge from coreutils.
77611
77612         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
77613         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
77614         (gl_DEFAULT_POSIX2_VERSION): Move
77615         the documentation from 'configure' into 'config.hin',
77616         so that 'configure --help' isn't burdened by it and
77617         we don't have to worry about its formatting there.
77618         Reword the documentation so that it's more succinct
77619         and can be run together into a single paragraph.
77620         * m4/same.m4 (gl_SAME): Check for pathconf.
77621
77622 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77623
77624         Merge from coreutils.
77625
77626         * lib/posixver.c: Include posixver.h.
77627
77628         * lib/same.c: Include <stdbool.h>, <limits.h>.
77629         (_POSIX_NAME_MAX): Define if not defined.
77630         (MIN): New macro.
77631         (same_name): If file names are silently truncated, report
77632         that the file names are the same if they are the same after
77633         the silent truncation.
77634
77635         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
77636         conversion function.
77637         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
77638         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
77639         longer needed.
77640
77641 2004-01-15  Jim Meyering  <jim@meyering.net>
77642
77643         Merge from coreutils.
77644
77645         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
77646         if no library is required.
77647         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
77648         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
77649         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
77650         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
77651         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
77652         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
77653         value, $ac_cv_search_crypt, if it's "none required".
77654         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
77655         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
77656         not gl_FUNC_GETLOADAVG.
77657         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
77658         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
77659
77660 2004-01-15  Jim Meyering  <jim@meyering.net>
77661
77662         Merge from coreutils.
77663
77664         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
77665         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
77666         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
77667
77668         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
77669         optional configure-time default.
77670
77671         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77672
77673         * lib/xreadlink.c (xreadlink): Correct outdated comment.
77674
77675 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
77676
77677         Merge from coreutils.
77678
77679         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
77680         value, $ac_cv_search_nanosleep, if it's "none required".
77681
77682 2004-01-14  Paul Eggert  <eggert@twinsun.com>
77683
77684         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
77685         with like-named macro in fnmatch.c.
77686         (EXT): Use an internal constant instead.
77687
77688         Merge fnmatch patches from glibc.
77689         * lib/fnmatch.c (mbsinit): Remove define.
77690         Add libc_hidden_ver (__fnmatch, fnmatch).
77691         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
77692         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
77693
77694 2004-01-14  Karl Berry  <karl@gnu.org>
77695
77696         * config/install-sh: update from automake.
77697
77698 2004-01-13  Karl Berry  <karl@gnu.org>
77699
77700         * config/install-sh: update from automake.
77701
77702 2004-01-09  Karl Berry  <karl@gnu.org>
77703
77704         * config/install-sh: update from automake.
77705
77706 2004-01-05  Karl Berry  <karl@gnu.org>
77707
77708         * config/config.{sub,guess}: update from config.
77709
77710 2003-12-31  Karl Berry  <karl@gnu.org>
77711
77712         * config/depcomp: update from automake.
77713
77714 2003-12-14  Karl Berry  <karl@gnu.org>
77715
77716         * lib/config.charset: update from gettext-runtime.
77717
77718 2003-12-03  Paul Eggert  <eggert@twinsun.com>
77719
77720         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
77721         Bug reported by Alfred M. Szmidt.
77722
77723 2003-12-03  Bruno Haible  <bruno@clisp.org>
77724
77725         * m4/gettext.m4: Upgrade from gettext-0.13.
77726         * m4/po.m4: Upgrade from gettext-0.13.
77727         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
77728         * m4/intmax.m4: New file, from gettext-0.13.
77729         * m4/printf-posix.m4: New file, from gettext-0.13.
77730
77731 2003-11-29  Karl Berry  <karl@gnu.org>
77732
77733         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
77734
77735 2003-11-25  Paul Eggert  <eggert@twinsun.com>
77736             Bruno Haible  <bruno@clisp.org>
77737
77738         * lib/printf-parse.h: Don't include sys/types.h.
77739         (ARG_NONE): New macro.
77740         (char_directive): Change type of *arg_index fields to size_t.
77741         * lib/printf-parse.c: Don't include sys/types.h.
77742         (SSIZE_MAX): Remove macro.
77743         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
77744         Remove unnecessary overflow check.
77745         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
77746         fields.
77747
77748 2003-11-25  Bruno Haible  <bruno@clisp.org>
77749
77750         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
77751
77752 2003-11-25  Bruno Haible  <bruno@clisp.org>
77753
77754         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
77755         gt_TYPE_SSIZE_T.
77756
77757 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77758
77759         * modules/alloca: Remove dependency on xalloc.
77760
77761 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77762
77763         * lib/alloca.c: Remove dependency on xalloc module.
77764         (xalloc_die): Remove.
77765         (memory_full) [!defined emacs]: New macro.
77766         [!defined emacs]: Don't include xalloc.h.
77767         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
77768         address arithmetic overflows.  Change datatypes a bit to avoid
77769         unnecessary casts.
77770
77771 2003-11-22  Jim Meyering  <jim@meyering.net>
77772
77773         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
77774         s/size/size_t/.
77775
77776 2003-11-21  Karl Berry  <karl@gnu.org>
77777
77778         * config/config.{sub,guess}: update from config.
77779
77780 2003-11-18  Karl Berry  <karl@gnu.org>
77781
77782         * config/config.{sub,guess}: update from config.
77783
77784         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
77785
77786 2003-11-17  Paul Eggert  <eggert@twinsun.com>
77787
77788         * README: Mention that S+T cannot overflow if S is the size of
77789         an existing object and T is sufficiently small.
77790
77791 2003-11-17  Jim Meyering  <jim@meyering.net>
77792
77793         On systems without utime and without a utimes function capable of
77794         dealing with a NULL struct utimbuf* argument, this utime replacement
77795         could -- in unusual circumstances -- leak a file descriptor.
77796         * lib/utime.c: Include <unistd.h> and <errno.h>.
77797         (utime_null): Be sure to close `fd' and to preserve errno.
77798         Reported by Geoff Collyer via Arnold Robbins.
77799
77800 2003-11-17  Bruno Haible  <bruno@clisp.org>
77801
77802         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
77803         (Depends-on): Add xsize.
77804
77805 2003-11-17  Bruno Haible  <bruno@clisp.org>
77806
77807         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
77808
77809 2003-11-17  Bruno Haible  <bruno@clisp.org>
77810
77811         * lib/vasnprintf.c (alloca): Remove fallback definition.
77812         (freea): Remove definition.
77813         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
77814         Reported by Paul Eggert.
77815
77816 2003-11-16  Paul Eggert  <eggert@twinsun.com>
77817             Bruno Haible  <bruno@clisp.org>
77818
77819         Protect against address arithmetic overflow.
77820         * lib/printf-args.h: Include stddef.h.
77821         (arguments): Change type of field 'count' to size_t.
77822         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
77823         'unsigned int' where appropriate.
77824         * lib/printf-parse.h: Include sys/types.h.
77825         (char_directive): Change type of *arg_index fields to ssize_t.
77826         (char_directives): Change type of fields 'count', max_*_length to
77827         size_t.
77828         * lib/printf-parse.c: Include sys/types.h and xsize.h.
77829         (SSIZE_MAX): Define fallback value.
77830         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
77831         instead of 'int' where appropriate. Check a_allocated, d_allocated
77832         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
77833         * lib/vasnprintf.c: Include xsize.h.
77834         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
77835         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
77836         overflow. Avoid wraparound when converting a width or precision from
77837         decimal to binary.
77838
77839 2003-11-16  Bruno Haible  <bruno@clisp.org>
77840
77841         Update from GNU gettext.
77842         * lib/printf-parse.c: Generalize to it can be compiled for wide
77843         strings.
77844         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
77845         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
77846         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
77847         SNPRINTF): New macros.
77848         Don't include <alloca.h> if the file is used inside libintl.
77849         (local_wcslen): New function, for Solaris 2.5.1.
77850         (VASNPRINTF): Use it instead of wcslen.
77851
77852 2003-11-16  Bruno Haible  <bruno@clisp.org>
77853
77854         * lib/xsize.h (xmax): New function.
77855         (xsum, xsum3, xsum4): Declare as "pure" functions.
77856
77857 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77858
77859         * modules/xalloc (Files): Undo latest change, since xalloc.h
77860         no longer needs SIZE_MAX or PTRDIFF_MAX.
77861
77862 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77863
77864         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
77865         gl_PTRDIFF_MAX.
77866
77867 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77868
77869         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
77870         "return", to pacify some unknown compiler.  Problem reported
77871         by Joerg Schilling.
77872
77873 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77874
77875         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
77876         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
77877         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
77878         heuristic is just as accurate as far as we know, and it removes a
77879         dependency on size_max.m4 and ptrdiff_max.m4.
77880
77881 2003-11-11  Bruno Haible  <bruno@clisp.org>
77882
77883         * modules/xsize (Files): Add m4/size_max.m4.
77884         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
77885
77886 2003-11-11  Bruno Haible  <bruno@clisp.org>
77887
77888         * m4/size_max.m4: New file.
77889         * m4/ptrdiff_max.m4: New file.
77890         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
77891         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
77892         (gl_XALLOC): Invoke it.
77893
77894 2003-11-11  Bruno Haible  <bruno@clisp.org>
77895
77896         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
77897         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
77898         defined.
77899
77900 2003-11-10  Paul Eggert  <eggert@twinsun.com>
77901
77902         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
77903         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
77904         rejected some allocations of exactly SIZE_MAX - 2 bytes.
77905         From Bruno Haible.
77906         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
77907         not (size_t) -1, since it's defined here.
77908
77909 2003-11-09  Karl Berry  <karl@gnu.org>
77910
77911         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
77912
77913 2003-11-06  Paul Eggert  <eggert@twinsun.com>
77914
77915         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
77916         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
77917         Reject sizes of exactly SIZE_MAX bytes.
77918         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
77919         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
77920
77921 2003-11-05  Bruno Haible  <bruno@clisp.org>
77922
77923         * lib/xsize.h: Include limits.h, to avoid a possible collision with
77924         SIZE_MAX defined in <limits.h> on Solaris.
77925
77926 2003-11-04  Jim Meyering  <jim@meyering.net>
77927
77928         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
77929         variable names, rather than @VAR@.
77930         * modules/poll: Likewise.
77931
77932 2003-11-04  Bruno Haible  <bruno@clisp.org>
77933
77934         * modules/xsize: New file.
77935         * modules/linebreak: Depend on xsize.
77936         * MODULES.html.sh (func_all_modules): Add xsize.
77937
77938 2003-11-04  Bruno Haible  <bruno@clisp.org>
77939
77940         * m4/xsize.m4: New file.
77941
77942 2003-11-04  Bruno Haible  <bruno@clisp.org>
77943
77944         * lib/xsize.h: New file.
77945         * lib/linebreak.c: Include xsize.h.
77946         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
77947         argument for overflow.
77948         Suggested by Paul Eggert.
77949
77950 2003-11-03  Karl Berry  <karl@gnu.org>
77951
77952         * config/config.{guess,sub}: update from config.
77953
77954 2003-11-03  Jim Meyering  <jim@meyering.net>
77955
77956         * modules/userspec (lib_SOURCES): Add userspec.h.
77957         (Include): Add "userspec.h".
77958         Improve description.
77959
77960 2003-11-03  Jim Meyering  <jim@meyering.net>
77961
77962         * lib/userspec.c: Include "userspec.h".
77963         * lib/userspec.h: New file.
77964
77965 2003-11-03  Bruno Haible  <bruno@clisp.org>
77966
77967         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
77968
77969 2003-11-03  Bruno Haible  <bruno@clisp.org>
77970
77971         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
77972         available, to avoid (extremely rare) race condition.
77973         Suggested by Paul Eggert.
77974
77975 2003-11-02  Karl Berry  <karl@gnu.org>
77976
77977         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77978
77979 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77980
77981         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77982         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77983         (read_filesystem_list): Set and use me_type_malloced.
77984         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77985         whatever the type happens to be), for brevity and consistency.
77986         Check for size calculation overflow on Alphas running OSF/1.
77987
77988 2003-10-31  Jim Meyering  <jim@meyering.net>
77989
77990         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77991
77992         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77993
77994 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77995             Bruno Haible  <bruno@clisp.org>
77996
77997         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77998         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77999
78000 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78001
78002         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
78003         netbsd*-gnu*.  Suggested by Robert Millan.
78004
78005 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78006
78007         * modules/group-member: Depend on stdbool.
78008
78009 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78010
78011         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
78012
78013 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78014
78015         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
78016         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
78017         after the 'gnu' in these cases.  This fixes some bugs in the
78018         previous change, and is based on suggestions by Robert Millan.
78019
78020 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78021
78022         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
78023         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
78024         no longer needed.
78025         * lib/quotearg.c (quotearg_n_options): Use it.
78026         * lib/group-member.c: Include <stdbool.h>.
78027         (free_group_info): Arg is now const *; don't free arg.
78028         (get_group_info): Now returns bool and accepts struct group_info *,
78029         rather than returning a malloc'ed struct group_info *.
78030         All uses changed.  Check for overflow in internal size calculation.
78031
78032         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
78033         rather than xmalloc/xrealloc.
78034         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
78035         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
78036         conformance bug: the old code used a pointer after freeing the
78037         storage that it addressed.
78038         * lib/hash.c (hash_initialize): Simplify the code by using
78039         xalloc_oversized rather than doing it by hand.
78040         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
78041         the buffer preserved.  Use free and xmalloc instead.
78042         * lib/quotearg.c (quotearg_n_options): Likewise.
78043         Use a simpler test for size overflow.  Don't use xalloc_oversized
78044         because unsigned int might be wider than size_t (!); this suggests
78045         that we should switch from unsigned int to size_t for slot numbers.
78046
78047 2003-10-28  Paul Eggert  <eggert@twinsun.com>
78048
78049         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
78050         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
78051         NetBSD kernels.  Requested by Richard Stallman.
78052
78053 2003-10-27  Paul Eggert  <eggert@twinsun.com>
78054
78055         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
78056         to allocate the returned structure.  Do not allocate a subarray,
78057         as x2nrealloc will do that.
78058         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
78059         instead of xnrealloc.
78060         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
78061
78062 2003-10-27  Bruno Haible  <bruno@clisp.org>
78063
78064         * lib/stdbool_.h: Better support for BeOS.
78065
78066 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78067
78068         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
78069         now uses inline.
78070
78071 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78072
78073         * lib/xalloc.h (xalloc_oversized): New static inline function, for
78074         callers that want to do their own size-overflow checking.  Include
78075         <stdbool.h>, since xalloc_oversized returns bool.
78076         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
78077         to use xalloc_oversized.
78078
78079         Add two functions x2realloc, x2nrealloc, for programs that grow
78080         arrays dynamically by doubling their sizes.
78081         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
78082         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
78083         New functions.
78084
78085         Port to C99 semantics for 'inline' of external functions.
78086         Bug reported by Bruno Haible.
78087         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
78088         with the old contents of xnmalloc.
78089         (xnmalloc, xmalloc): Use it.
78090         (xnrealloc_inline): New static inline function,
78091         with the old contents of xnrealloc.
78092         (xnrealloc, xrealloc): Use it.
78093
78094         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
78095         that.
78096
78097 2003-10-26  Karl Berry  <karl@gnu.org>
78098
78099         * config/srclist.txt (COPYING.DOC): no longer available from
78100         /gd/gnuorg; don't know where the ultimate source is.
78101
78102 2003-10-25  Paul Eggert  <eggert@twinsun.com>
78103
78104         Fix several address-calculation bugs in the hash modules,
78105         plus some minor code cleanup.
78106
78107         * lib/hash.h: Include <stdbool.h>, for bool.
78108         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
78109         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
78110         hash_get_n_entries, hash_get_max_bucket_length,
78111         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
78112         hash_rehash): Use size_t rather than unsigned.
78113         * lib/hash.c (struct hash_table, hash_get_n_buckets,
78114         hash_get_n_buckets_used, hash_get_n_entries,
78115         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
78116         hash_get_entries, hash_do_for_each, hash_string, is_prime,
78117         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
78118         Likewise.
78119         (SIZE_MAX): Define if not defined.
78120         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
78121         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
78122         hash_print):
78123         Use const * when possible.
78124         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
78125         (check_tuning): Fix bug: if tuning parameters were very close to
78126         0 or 1, rounding errors could have caused subscript violations.
78127         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
78128         (hash_initialize): Add 'fail:' label
78129         to free table and return NULL, and use it to simplify code.
78130         Use calloc rather than clearing the storage ourself.
78131         (hash_initialize, hash_rehash): Check for arithmetic overflow in
78132         buffer size calculations.
78133         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
78134         Include <stddef.h>, for size_t.
78135         * lib/hash-pjw.c (hash_pjw): Likewise.
78136         Switch to method described by Bruno Haible.
78137         Include <limits.h>, for CHAR_BIT.
78138         (SIZE_BITS): New macro.
78139
78140 2003-10-23  Paul Eggert  <eggert@twinsun.com>
78141
78142         * m4/getline.m4 (AM_FUNC_GETLINE):
78143         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
78144         hosts.  Problem reported by Derek Robert Price in
78145         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
78146         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
78147         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
78148
78149 2003-10-21  Paul Eggert  <eggert@twinsun.com>
78150
78151         * lib/getndelim2.c (getndelim2): When size calculation overflows,
78152         ceiling the allocation at NMAX bytes rather than silently
78153         discarding input bytes before NMAX is reached.  This makes
78154         a difference only if NMAX exceeds SIZE_MAX / 2.
78155
78156         * lib/obstack.c: Merge from glibc.
78157         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
78158         Add libc_hidden_def (_obstack_newchunk).
78159         (_obstack_free) [! defined _LIBC]: Remove.
78160         [defined _LIBC]: Make a strong alias from obstack_free, rather than
78161         a clone of the function body.
78162         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
78163         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
78164
78165         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
78166         glibc.
78167         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
78168         arg to memcpy.
78169
78170         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
78171         (obstack_ptr_grow_fast, obstack_int_grow_fast):
78172         Don't use lvalue casts, as GCC plans to remove support for them
78173         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
78174         was also present in the non-GCC version, indicating that this
78175         code had always been buggy and had never been widely used.
78176         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
78177         Use the fast variant of each macro, rather than copying the
78178         definiens of the fast variant; that way, we'll be more likely to
78179         catch future bugs in the fast variants.
78180
78181 2003-10-20  Bruno Haible  <bruno@clisp.org>
78182
78183         * modules/wait-process: New file.
78184         * MODULES.html.sh (func_all_modules): Add wait-process.
78185
78186 2003-10-20  Bruno Haible  <bruno@clisp.org>
78187
78188         * m4/wait-process.m4: New file.
78189
78190 2003-10-20  Bruno Haible  <bruno@clisp.org>
78191
78192         * lib/wait-process.h: New file, from GNU gettext.
78193         * lib/wait-process.c: New file, from GNU gettext.
78194
78195 2003-10-19  Jim Meyering  <jim@meyering.net>
78196
78197         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
78198         HPUX 10.20.
78199
78200 2003-10-18  Karl Berry  <karl@gnu.org>
78201
78202         * config/config.guess: update from config.
78203
78204 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78205
78206         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
78207         (getgroups): First arg is int, not size_t.
78208         Don't let 'free' mangle errno.
78209
78210 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78211
78212         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
78213
78214 2003-10-16  Karl Berry  <karl@gnu.org>
78215
78216         * config/config.{guess,sub}: update from config.
78217
78218 2003-10-16  Jim Meyering  <jim@meyering.net>
78219
78220         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
78221         memcpy.
78222
78223 2003-10-15  Paul Eggert  <eggert@twinsun.com>
78224
78225         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
78226         (SIZE_MAX): Remove.
78227         (new_exclude, add_exclude_file): Initial size no longer needs to
78228         be a power of 2.
78229         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
78230         our own address arithmetic overflow checking.
78231
78232         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
78233         (fnmatch): Do not alloca more than 2000 wide characters;
78234         instead, use malloc for large buffers.
78235         Check for address arithmetic overflow, and return -1
78236         with errno set to ENOMEM in that case.
78237         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
78238         (NEW_PATTERN): Do not alloca more than 8000 bytes;
78239         instead, return -1.  Check for address arithmetic overflow.
78240
78241 2003-10-14  Paul Eggert  <eggert@twinsun.com>
78242
78243         Handle invalid suffixes and overflow independently, so that
78244         callers can treat them independently as needed.  Fix some bugs in
78245         suffix handling, e.g., "100k@" was not diagnosed as an invalid
78246         suffix for a human-readable blocksize.  The major caller-visible
78247         change is the addition of a new
78248         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
78249         that both overflow and suffix chars were found.
78250
78251         * lib/human.c (humblock): Don't check separately for invalid suffix
78252         char; that is xstrtoumax's job (now that its bug is fixed).
78253         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
78254         INTMAX_MAX]: New macros.
78255         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
78256         TYPE_MAXIMUM): New macros.
78257         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
78258         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
78259         if overflow occurs, as it's what __strtol does and it's more useful
78260         in practice.
78261         (__xstrtol): If __strtol reports some error other than ERANGE,
78262         reflect it to the caller as LONGINT_INVALID.  If it reports
78263         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
78264         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
78265         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
78266         value.
78267         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
78268         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
78269         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
78270         [defined UINTMAX_MAX]: New macros.
78271
78272 2003-10-14  Bruno Haible  <bruno@clisp.org>
78273
78274         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
78275
78276 2003-10-14  Bruno Haible  <bruno@clisp.org>
78277
78278         * m4/sig_atomic_t: New file, from GNU gettext.
78279         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
78280
78281 2003-10-14  Bruno Haible  <bruno@clisp.org>
78282
78283         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
78284         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
78285         Also use volatile where needed.
78286
78287 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78288
78289         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
78290         Change maintainer from Bruno Haible to 'all'.
78291
78292 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78293
78294         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
78295
78296 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78297
78298         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
78299         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
78300         and define in terms of the other primitives.
78301         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
78302         (SIZE_MAX): Define if not already defined.
78303         (array_size_overflow): New function.
78304         (xalloc_die): Abort instead of exiting if 'error' returns.
78305         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
78306         (xmalloc, xrealloc): Use them.
78307         (xcalloc): Check for address arithmetic overflow.
78308         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
78309         a bit faster than strcpy.
78310
78311 2003-10-10  Simon Josefsson  <jas@extundo.com>
78312
78313         * modules/argp (Depends-on): Add restrict and strcase.
78314
78315 2003-10-10  Simon Josefsson  <jas@extundo.com>
78316
78317         * m4/argp.m4: Add AC_C_INLINE.
78318
78319 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78320
78321         Merge getpass from libc, plus a few fixes.
78322
78323         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
78324         Include <stdbool.h>.
78325         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
78326         __fsetlocking to empty.
78327         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
78328         do include <bits/libc-lock.h>.
78329         Do not include <fcntl.h>; not needed.
78330         [_LIBC]: Include <wchar.h>.
78331         (NOTCANCEL_MODE): New macro.
78332         (flockfile, funlockfile) [_LIBC]: New macros.
78333         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
78334         [!_LIBC]: New macros.
78335         (call_fclose): New function.
78336         (getpass): Use it.  Save tty stream separately; this simplifies the
78337         code and makes it more reliable if stdin happens to equal stdout.
78338         Invoke __fsetlocking on tty.
78339         Handle thread cancellation if needed.
78340         Namespace cleanup (use __tcgetattr, __getline).
78341         Use bool for Booleans.
78342         [USE_IN_LIBIO]: Handle wide streams.
78343         [!_LIBC]: Unconditionally do the fseek, since we don't know what
78344         stream might go where.
78345
78346         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
78347         doesn't have to include <stdio.h> before us.
78348         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
78349         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
78350         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
78351         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
78352         if not declared, so that we can use getpass.c code from libc without
78353         rewriting it.
78354         (flockfile, ftrylockfile, funlockfile): New macros.
78355
78356 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78357
78358         * modules/getpass: Depend on stdbool.
78359
78360 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78361
78362         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
78363
78364 2003-10-07  Karl Berry  <karl@gnu.org>
78365
78366         * config/config.{guess,sub}: update from config.
78367
78368 2003-10-06  Jim Meyering  <jim@meyering.net>
78369             Bruno Haible  <bruno@clisp.org>
78370
78371         This lets translators provide better translations for the
78372         "Written by ..." part of --version output.
78373         * lib/version-etc.h: Include stdarg.h.
78374         (version_etc_copyright): Declare as readonly.
78375         (version_etc): Make this function variadic with a NULL-terminated list
78376         of author name strings.
78377         (version_etc_va): New declaration.
78378         * lib/version-etc.c: Include stdarg.h, stdlib.h.
78379         (version_etc_copyright): Declare as readonly.
78380         (version_etc_va): New function. Provide a different translatable string
78381         for each possible number of authors < 10. Abbreviate when there are 10
78382         authors or more.
78383         (version_etc): Make this function variadic. Call version_etc_va.
78384         Suggestion from Gary V. Vaughan.
78385
78386         * lib/long-options.h (parse_long_options): Change prototype: the
78387         authors string is moved to the end and becomes variadic.
78388         * lib/long-options.c: Include stdarg.h.
78389         (parse_long_options): Make this function variadic, too.
78390         Call version_etc_va, not version_etc.
78391
78392 2003-10-06  Bruno Haible  <bruno@clisp.org>
78393
78394         * modules/version-etc-2: Remove file.
78395         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
78396
78397 2003-10-06  Bruno Haible  <bruno@clisp.org>
78398
78399         * modules/fatal-signal: New file.
78400         * MODULES.html.sh (func_all_modules): Add fatal-signal.
78401
78402 2003-10-06  Bruno Haible  <bruno@clisp.org>
78403
78404         * m4/fatal-signal.m4: New file.
78405         * m4/signalblocking.m4: New file, from GNU gettext.
78406
78407 2003-10-06  Bruno Haible  <bruno@clisp.org>
78408
78409         * lib/version-etc-2.h: Remove file.
78410         * lib/version-etc-2.c: Remove file.
78411
78412 2003-10-06  Bruno Haible  <bruno@clisp.org>
78413
78414         * lib/fatal-signal.h: New file, from GNU gettext.
78415         * lib/fatal-signal.c: New file, from GNU gettext.
78416
78417 2003-10-05  Paul Eggert  <eggert@twinsun.com>
78418
78419         * README: Rework advice for preventing empty .o files.
78420         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
78421         not <sys/types.h>.
78422
78423 2003-10-04  Karl Berry  <karl@gnu.org>
78424
78425         * lib/argp*: update from libc.
78426
78427 2003-10-04  Karl Berry  <karl@gnu.org>
78428
78429         * config/config.{guess,sub}: update from config.
78430
78431 2003-10-02  Bruno Haible  <bruno@clisp.org>
78432
78433         * modules/lchown (Include): Add lchown.h.
78434         * modules/time_r (Include): Use "..." syntax.
78435         * modules/xgetdomainname (Include): Add xgetdomainname.h.
78436
78437 2003-10-01  Simon Josefsson  <jas@extundo.com>
78438
78439         * MODULES.html.sh (func_all_modules): Move gethostname from section
78440         'based on' to section 'lacking' POSIX:2001.
78441
78442 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
78443
78444         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
78445         to output mode on the same stream.
78446
78447 2003-09-29  Paul Eggert  <eggert@twinsun.com>
78448
78449         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
78450         Fix arg typo in previous patch.
78451
78452 2003-09-28  Jim Meyering  <jim@meyering.net>
78453
78454         * lib/error.c: Correct cpp indentation.
78455
78456 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78457
78458         * modules/free: New file.
78459
78460 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78461
78462         * m4/free.m4: New file.
78463
78464 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78465
78466         * lib/minmax.h (MIN, MAX)
78467         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
78468         Omit the special code that used __typeof__, since we worry that
78469         it could be more trouble than it's worth.  See:
78470         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
78471         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
78472
78473         * lib/free.c: New file.
78474
78475 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
78476
78477         Trivial fixes to Makefile.am parts of module listings.
78478         * modules/strstr: Append strstr.h to lib_SOURCES.
78479         * modules/strcase: Likewise, for strcase.h.
78480
78481 2003-09-27  Karl Berry  <karl@gnu.org>
78482
78483         * config/mkinstalldirs: update from automake.
78484
78485 2003-09-26  Paul Eggert  <eggert@twinsun.com>
78486
78487         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
78488         (error_tail): Do not loop, reallocating temporary buffer, since
78489         the output cannot contain more wide characters than the input
78490         contains bytes, the size must be big enough already.  This avoids
78491         one potential size overflow calculation.  Check for size overflow
78492         when calculating temporary buffer size.  Free temporary buffer
78493         when done, if it was allocated with malloc; this plugs a memory
78494         leak.  Remove casts from void * to pointers, that are no longer
78495         needed now that we're assuming C89 or better.
78496
78497         Merge error changes from glibc.
78498
78499         * lib/error.c, error.h: Update copyright notice header to match glibc.
78500         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
78501         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
78502         Disable cancellation while printing error.
78503         * lib/error.h: Prepend __ to parameter names.
78504
78505 2003-09-26  Jim Meyering  <jim@meyering.net>
78506
78507         * lib/error.c (error_tail): Move some declarations
78508         into inner scope where the local variables are used.
78509
78510 2003-09-26  Bruno Haible  <bruno@clisp.org>
78511
78512         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
78513         stpncpy().
78514         Don't define stpncpy through config.h; it's now done through stpncpy.h.
78515
78516 2003-09-26  Bruno Haible  <bruno@clisp.org>
78517
78518         * lib/stpncpy.h (gnu_stpncpy): New declaration.
78519         (stpncpy): Define as alias for gnu_stpncpy.
78520         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
78521
78522 2003-09-25  Simon Josefsson  <jas@extundo.com>
78523
78524         * lib/xgetdomainname.h: New file.
78525         * lib/xgetdomainname.c: New file.
78526
78527 2003-09-25  Simon Josefsson  <jas@extundo.com>
78528             Bruno Haible  <bruno@clisp.org>
78529
78530         * modules/getdomainname: New file.
78531         * modules/xgetdomainname: New file.
78532         * MODULES.html.sh (func_all_modules): Add getdomainname,
78533         xgetdomainname.
78534
78535 2003-09-25  Simon Josefsson  <jas@extundo.com>
78536             Bruno Haible  <bruno@clisp.org>
78537
78538         * m4/getdomainname.m4: New file.
78539
78540 2003-09-25  Simon Josefsson  <jas@extundo.com>
78541             Bruno Haible  <bruno@clisp.org>
78542
78543         * lib/getdomainname.h: New file.
78544         * lib/getdomainname.c: New file.
78545
78546 2003-09-25  Karl Berry  <karl@gnu.org>
78547
78548         * lib/argp-fmtstream.c, argp-help.c: update from libc.
78549
78550 2003-09-25  Karl Berry  <karl@gnu.org>
78551
78552         * config/install-sh: update from automake.
78553
78554 2003-09-25  Bruno Haible  <bruno@clisp.org>
78555
78556         * modules/version-etc-2: New file, from modules/version-etc with
78557         modifications.
78558         * MODULES.html.sh (func_all_modules): Add version-etc-2.
78559
78560 2003-09-25  Bruno Haible  <bruno@clisp.org>
78561
78562         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
78563         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
78564
78565 2003-09-24  Simon Josefsson  <jas@extundo.com>
78566
78567         * modules/xgethostname: Add xgethostname.h.
78568
78569 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78570
78571         * lib/linebuffer.c (freebuffer): Don't free the argument, just
78572         the buffer associated with the argument.  Bug reported by
78573         Simon Josefsson.
78574
78575 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78576
78577         * README: Document assumptions that 'int' is at least 32 bits
78578         wide, that integer arithmetic is 2's complement without overflow,
78579         that there are no holes in integer values, that adding sizes of
78580         two nonoverlapping objects can't overflow, and that all-bits-zero
78581         yields scalar zero.  Fix spelling and capitalization typos.
78582
78583 2003-09-19  Karl Berry  <karl@gnu.org>
78584
78585         * lib/argp.h: update from libc.
78586
78587 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78588
78589         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
78590         to avoid spurious warnings like "AC_RUN_IFELSE was called before
78591         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
78592
78593 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78594
78595         * gnulib-tool: Use "test -h", not "test -L", for portability
78596         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
78597         (tags_regexp): Remove, since \| doesn't conform to POSIX.
78598         (sed_extract_prog): Issue s commands one-by-one, rather than
78599         using \| in one s command.
78600
78601 2003-09-16  Paul Eggert  <eggert@twinsun.com>
78602
78603         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
78604         input error, instead of returning NULL the next time we are called
78605         (and therefore losing track of errno).
78606
78607 2003-09-16  Bruno Haible  <bruno@clisp.org>
78608
78609         * gnulib-tool (func_create_testdir): Warn about duplicated
78610         dependencies.
78611
78612 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78613
78614         * modules/argmatch, modules/fatal, modules/obstack,
78615         modules/xalloc, modules/xgethostname: Sort dependencies by
78616         importance, not alphabetically.
78617
78618 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78619
78620         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
78621         fails, so that the caller gets the proper errno.
78622
78623         * lib/readutmp.c (read_utmp): Likewise.
78624         Check for fstat error.  Close stream and free storage
78625         when failing.
78626
78627 2003-09-14  Karl Berry  <karl@gnu.org>
78628
78629         * config/srclist.txt (strdup.c): disable for c89 changes.
78630
78631 2003-09-14  Jim Meyering  <jim@meyering.net>
78632
78633         * lib/getloadavg.c: Correct cpp indentation.
78634         * lib/strdup.c: Likewise.
78635         * lib/vasnprintf.c: Likewise.
78636
78637 2003-09-14  Bruno Haible  <bruno@clisp.org>
78638
78639         * modules/fwriteerror: New file.
78640         * MODULES.html.sh (func_all_modules): Add fwriteerror.
78641
78642 2003-09-14  Bruno Haible  <bruno@clisp.org>
78643
78644         * lib/fwriteerror.h: New file.
78645         * lib/fwriteerror.c: New file.
78646
78647 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78648
78649         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
78650         modules/xgethostname, modules/xalloc: Depend on exit.
78651
78652 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78653
78654         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
78655
78656         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
78657         and AC_MINIX, too, so that their extensions are available.
78658
78659         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
78660         This macro has been superseded by gl_BACKUPFILE.
78661
78662         More patches to assume C89 or better.
78663
78664         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
78665
78666         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
78667         unconditionally.
78668         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
78669         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
78670         Include <string.h>, <stdlib.h> unconditionally.
78671         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
78672         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
78673         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
78674         headers or for string.h.
78675         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
78676         or strtoul.
78677
78678         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
78679         headers.
78680         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
78681         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78682         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
78683         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
78684         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78685         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
78686         memcpy, memset.
78687         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
78688         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
78689         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
78690         strtol.
78691         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
78692         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
78693         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
78694         strtoul.
78695
78696 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78697
78698         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
78699         * lib/obstack.c [!defined _LIBC]: Likewise.
78700         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
78701         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
78702         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
78703
78704         More changes to assume C89 or better.
78705
78706         * lib/error.c (error_tail): Assume vprintf.
78707
78708         * lib/argmatch.c (getenv): Remove decl.
78709         * lib/progreloc.c (get_full_program_name): Define via prototype.
78710         * lib/setenv.c (clearenv): Likewise.
78711         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
78712         needed.
78713         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
78714         (malloc, memcpy): Remove decls.
78715         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
78716         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
78717         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78718         (memcpy): Remove macro.
78719         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
78720         (__P): Remove.  All uses removed.
78721         (PTR): Remove.  All uses changed to void *.
78722         (CHAR_BIT, NULL): Remove.
78723         (spaces, zeros, memset_space, memset_zero)
78724         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
78725         Remove.
78726         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
78727         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
78728         Define with prototype.
78729         Remove now-unnecessary prototype decl.
78730         (extra_args_spec): Assume ANSI C.  All uses changed.
78731         (extra_args_spec_iso): Remove.
78732         (my_strftime, emacs_strftimeu): Define via prototype.
78733         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
78734         unconditionally.
78735         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
78736         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
78737         (strtoul, strtol): Remove decls.
78738         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
78739         LONG_MAX): Remove.
78740         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78741         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
78742         (LOCALE_PARAM_PROTO): New macro.
78743         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
78744         (INTERNAL (strtol), strtol): Define with a prototype.
78745         (PARAMS): Remove.  All uses removed.
78746         * lib/tempname.c: Include <string.h> unconditionally.
78747         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
78748         * lib/xgethostname.c (main): Define with a prototype.
78749         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
78750         Include <stdlib.h> unconditionally.
78751         (calloc, malloc, realloc, free): Remove decls.
78752         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
78753         Include <stdlib.h> unconditionally.  Sort include file names.
78754         (strtod): Remove.
78755         (xstrtod): Define with a prototype.
78756         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
78757         (strtol, strtoul): Remove decls.
78758
78759 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78760
78761         More patches to assume C89 or better.
78762         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
78763         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
78764         string.h, memchr, STDC_HEADERS.
78765
78766 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78767
78768         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
78769         Include <stdlib.h>, <string.h> unconditionally.
78770         Remove now-unnecessary cast to char *.
78771         * lib/strnlen.c: Include <string.h> unconditionally.
78772         * lib/yesno.c (yesno): Define with a prototype.
78773
78774 2003-09-11  Bruno Haible  <bruno@clisp.org>
78775
78776         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
78777
78778 2003-09-10  Jim Meyering  <jim@meyering.net>
78779
78780         * lib/error.c: Correct indentation of cpp directives.
78781
78782 2003-09-10  Bruno Haible  <bruno@clisp.org>
78783
78784         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
78785         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
78786         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
78787         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
78788         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
78789         <stdlib.h> and <string.h> checks.
78790         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
78791         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
78792
78793 2003-09-10  Bruno Haible  <bruno@clisp.org>
78794
78795         * lib/strcspn.c: Include <string.h> unconditionally.
78796         * lib/strpbrk.c: Include <string.h> unconditionally.
78797         * lib/strstr.c: Include <string.h> unconditionally.
78798         * lib/unicodeio.c: Include <string.h> unconditionally.
78799         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
78800         * lib/unsetenv.c: Likewise.
78801         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
78802         * lib/yesno.c: Include <stdlib.h> unconditionally.
78803         (rpmatch): Add prototype.
78804
78805 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78806
78807         More patches to assume C89 or better.
78808         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
78809         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
78810         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
78811         or for string.h.
78812         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
78813         stdlib.h.
78814         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
78815         C headers.
78816         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
78817         string.h.
78818         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
78819         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
78820         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
78821         or for string.h.
78822         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
78823         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
78824         C headers.
78825         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
78826         memcpy.
78827         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
78828         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
78829         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
78830         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
78831         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
78832         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
78833         string.h, free.
78834         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
78835         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
78836         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
78837         C headers, or for string.h.
78838         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
78839         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
78840         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
78841         headers, memory.h, stdlib.h, string.h, strings.h.
78842         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
78843         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
78844         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
78845         strchr.
78846         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
78847         headers, memory.h, string.h.
78848         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
78849         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
78850         free.
78851         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
78852         headers.
78853         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
78854         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
78855         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
78856         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
78857         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
78858
78859 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78860
78861         More K&R removal.
78862
78863         * lib/acosl.c (main): Use a prototype.
78864         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
78865         tanl.c: Likewise.
78866
78867         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
78868
78869         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
78870         (getopt, etopt_long, getopt_long_only, _getopt_internal)
78871         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
78872         with a prototype.
78873         * lib/getopt.c (const): Remove macro.
78874         Include <string.h> unconditionally.
78875         (my_index): Remove; all uses changed to strchr.
78876         (strlen): Remove decl.
78877         (exchange): Remove forward decl; no longer needed.
78878         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
78879         Define with prototype.
78880         * lib/getopt1.c (const): Remove macro.
78881         (getopt_long, getopt_long_only, main): Define with prototype.
78882
78883         * lib/getugroups.c: Include <string.h> unconditionally.
78884
78885         * lib/getusershell.c: Include <stdlib.h> unconditionally.
78886         (getusershell, setusershell, endusershell, readname, main):
78887         Define with prototypes.
78888
78889         * lib/group-member.c: Include group-member.h first.
78890         Include <stdlib.h> unconditionally.
78891
78892         * lib/hard-locale.c: Include hard-locale.h first.
78893         Include <stdlib.h>, <string.h> unconditionally.
78894
78895         * lib/hash.c (free, malloc): Remove decls.
78896         Include <stdlib.h> unconditionally.
78897
78898         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
78899         (getenv): Do not declare.
78900
78901         * lib/idcache.c: Include <string.h> unconditionally.
78902
78903         * lib/long-options.c: Include long-options.h first, to test interface.
78904         Include <stdlib.h> unconditionally.
78905
78906         * lib/makepath.c: Include makepath.h first, to test interface.
78907         Include <stdlib.h> and <string.h> unconditionally.
78908
78909         * lib/linebuffer.c: Include <stdlib.h>.
78910         (free): Remove decl.
78911
78912         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
78913         stddef.h. rpl_malloc returns void *, not char *.
78914         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
78915         prototype.
78916
78917         * lib/md5.h: Include <limits.h> unconditionally.
78918         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
78919         (__P): Remove; all uses removed.
78920         * lib/md5.c: Include "md5.h" first.
78921         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
78922         md5_buffer, md5_process_bytes, md5_process_block):
78923         Define with prototypes.
78924         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
78925         * lib/sha.c: Include "sha.h" first.
78926         Include <stdlib.h>, <string.h> unconditionally.
78927
78928         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
78929         * lib/memcmp.c (__ptr_t): Likewise.
78930         * lib/memrchr.c (__ptr_t): Likewise.
78931         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
78932         Include <string.h> unconditionally.
78933         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
78934         * lib/memchr.c: Include <stdlib.h> unconditionally.
78935         * lib/memchr.c (LONG_MAX): Remove.
78936         * lib/memrchr.c (LONG_MAX): Likewise.
78937         * lib/memchr.c (__memchr): Define via a prototype.
78938         * lib/memrchr.c (__memrchr): Likewise.
78939         * lib/memcmp.c (__P): Remove, and remove all uses.
78940         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
78941         Remove forward decls; no longer needed.
78942         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
78943         Use types required by C89 in prototype.
78944
78945         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
78946         * lib/savedir.c: Likewise.
78947         * lib/mkdir.c (free): Remove decl.
78948         * lib/rmdir.c (rmdir): Define with a prototype.
78949         * lib/savedir.c: Include savedir.h first, to test interface.
78950
78951         * lib/mktime.c (STDC_HEADERS): Remove.
78952         Include <stdlib.h>, <string.h> unconditionally.
78953
78954         * lib/modechange.c: Include <stdlib.h> unconditionally.
78955         (malloc): Remove decl.
78956
78957         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
78958         (free): Remove decl.
78959
78960         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
78961         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
78962         (This type really should be intptr_t, but that's a C99ism.)
78963         (_obstack_memcpy): Remove: all uses changed to memcpy.
78964         Include <string.h> unconditionally.
78965         (struct obstack): Assume __STDC__ for types of members
78966         chunkfun, freefun, extra_arg.
78967         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
78968         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
78969         obstack_begin, obstack_specify_allocation,
78970         obstack_specify_allocation_with_arg, obstack_chunkfun,
78971         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
78972         Remove unprototyped decls and the macros that use them.
78973         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78974         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78975         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78976         (defined __STDC__ && __STDC__)]:
78977         Remove nonprototyped code.
78978         Include <stdlib.h> unconditionally.
78979         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78980         _obstack_allocated_p, _obstack_free, obstack_free,
78981         _obstack_memory_used, print_and_abort):
78982         Define using prototypes.
78983         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78984         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78985         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78986         obstack_next_free, obstack_object_size, obstack_room) [0]:
78987         Remove unused, unprototyped code.
78988
78989         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78990
78991         * lib/physmem.c (physmem_total, physmem_available, main): Define
78992         with prototypes.
78993
78994         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78995         (main): Define with a prototype.
78996
78997         * lib/posixver.c (getenv): Remove decl.
78998
78999         * lib/putenv.c (malloc): Returns void *, not char *.
79000         Include <string.h> unconditionally.
79001         (strchr, memcpy, NULL): Do not define.
79002
79003         * lib/readtokens.c: Include readtokens.h first, to test interface.
79004         Include <stdlib.h>, <string.h> unconditionally.
79005         (init_tokenbuffer): Define with a prototype.
79006
79007         * lib/regex.c (PARAMS): Remove.  All uses removed.
79008         All uses of _RE_ARGS removed, too.
79009         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79010         unconditionally.
79011         (bzero): Assume memset exists.
79012         (memcmp, memcpy, NULL): Remove.
79013         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
79014         char, or assignments to local vars of type signed char.
79015         (init_syntax_once, PREFIX(extract_number_and_incr),
79016         PREFIX(print_partial_compiled_pattern),
79017         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
79018         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
79019         PREFIX(regex_grow_registers), PREFIX(regex_compile),
79020         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
79021         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
79022         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
79023         wcs_compile_range, byte_compile_range, truncate_wchar,
79024         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
79025         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
79026         count_mbs_length, wcs_re_match_2_internal,
79027         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
79028         PREFIX(alt_match_null_string_p),
79029         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
79030         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
79031         regfree, PREFIX(extract_number)): Define with prototype.  Remove
79032         now-unnecessary declaration, if any.
79033         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
79034         regcomp, regexec):
79035         Remove now-unnecessary casts among pointer types.
79036         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
79037
79038         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
79039         (free): Remove decl.
79040
79041         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
79042
79043         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
79044         (free): Remove decl.
79045
79046         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
79047         * lib/xgetcwd.c: Likewise.
79048
79049         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
79050         (free): Remove decl.
79051
79052         * lib/strchrnul.c (strchrnul): Define with a prototype.
79053         Fix bug: c_in was not converted to char before searching.
79054
79055         The following changes are not K&R related:
79056
79057         * lib/group-member.h: Include <sys/types.h>, so that this file is
79058         self-contained.
79059         * lib/makepath.h: Likewise.
79060
79061         * lib/getusershell.c (readname, default_index, line_size, readname):
79062         Use size_t, not int, for sizes.
79063         (readname): If the size overflows, report an error instead of
79064         looping forever.
79065
79066 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79067
79068         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
79069         libc.
79070
79071 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79072
79073         * README: New section: portability guidelines.
79074
79075 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79076
79077         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
79078         C89 spec.
79079
79080 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79081
79082         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
79083
79084 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79085
79086         Assume C89 or better; remove K&R cruft.
79087         A few of these changes were first proposed by Derek Robert Price
79088         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
79089
79090         * lib/addext.c: Include <string.h> unconditionally.
79091         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
79092         Don't declare getenv or malloc.
79093
79094         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
79095         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
79096         (NULL): Remove.
79097         (find_stack_direction, alloca): Use prototypes.
79098
79099         * lib/atexit.c (atexit): Define using a prototype.
79100
79101         * lib/basename.c, dirname.c, stripslash.c:
79102         Include <string.h> unconditionally.
79103
79104         * lib/bcopy.c: Include <stddef.h>.
79105         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
79106
79107         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
79108
79109         * lib/error.h (error, error_at_line, error_print_progname)
79110         [! (defined (__STDC__) && __STDC__)]: Remove decls.
79111         * lib/error.c: Include error.h first, to check interface.
79112         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79113         (VA_START): Remove; all uses changeed to va_start.
79114         (exit, strerror): Remove decls.
79115         (error_print_progname): Prototype uncondionally.
79116         Don't include <errno.h>; no longer needed.
79117         (private_strerror): Remove.
79118         (error_tail): Always define.
79119         (error, error_at_line): Assume C89 or better; always use prototypes.
79120         * lib/fatal.c: Include "fatal.h" first, to test interface.
79121         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79122         (VA_START): Remove; all uses changed to va_start.
79123         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
79124         this case.
79125         (exit): Remove decl.
79126         (fatal): Prototype unconditionally.  Assume va_start works.
79127         Abort at end, to pacify gcc.
79128
79129         * lib/euidaccess.c (main): Define with a prototype.
79130
79131         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
79132
79133         * lib/exitfail.c: Include <stdlib.h> unconditionally.
79134
79135         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
79136         prototypes.
79137         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
79138         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
79139         (getenv): Remove decl.
79140         (fnmatch): Define using a prototype.
79141         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
79142         (FCT): Define using a prototype.
79143
79144         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
79145
79146         * lib/gethostname.c: Include <stddef.h>.
79147         (gethostname): Define with prototype.  Length is size_t, not int.
79148
79149 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79150
79151         Assume C89 or better; remove K&R cruft.
79152         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
79153         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
79154         string.h, getenv, malloc.
79155         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
79156         headers.
79157         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
79158         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
79159         do not check for strerror.
79160         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
79161         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
79162         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
79163         do not check for doprnt or vprintf.
79164         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
79165         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
79166
79167 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79168
79169         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
79170         getversion.c should have been removed then, but was accidentally
79171         preserved.
79172
79173         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
79174         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
79175
79176 2003-09-08  Karl Berry  <karl@gnu.org>
79177
79178         * config/config.sub, config.guess, srclistvars.sh: update from savannah
79179                 config, forget about prep.
79180
79181         * config/depcomp, missing: update from automake.
79182
79183 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79184
79185         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
79186         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79187
79188 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79189
79190         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
79191         copy_tm_result.  Bug reported by Simon Josefsson in
79192         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79193
79194 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79195
79196         * m4/time_r.m4: New file.
79197         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
79198         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
79199         is. Check for timegm declaration.
79200         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
79201         Do not check for gmtime_r.
79202         Replace mktime if __mktime_internal does not exist and if mktime
79203         hasn't been replaced already.
79204
79205 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79206
79207         * lib/time_r.c, lib/time_r.h: New files.
79208
79209         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
79210         __localtime_r.
79211         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
79212         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
79213
79214         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
79215         __gmtime_r.
79216         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
79217         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
79218         Include <time_r.h>.
79219
79220         * lib/timegm.c: Switch to glibc implementation, with the following
79221         changes:
79222         [defined HAVE_CONFIG_H]: Include <config.h>.
79223         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
79224         (__mktime_internal) [!defined _LIBC]: New decl.
79225         (__gmtime_r) [!defined _LIBC]: New macro and function.
79226         (timegm): Use a prototype, since gnulib assumes C89.
79227         Do not bother declaring tmp to be const, as it's not really usefu.
79228         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
79229         (timegm): Declare only if HAVE_DECL_TIMEGM.
79230
79231 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79232
79233         * MODULES.html.sh (func_all_modules): Add time_r.
79234         * modules/time_r: New file.
79235         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
79236         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
79237
79238 2003-09-03  Paul Eggert  <eggert@twinsun.com>
79239
79240         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
79241         Bug reported by Lute Kamstra in
79242         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
79243
79244         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
79245         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
79246         course with correspondingly smaller numbers for tomorrow and
79247         yesterday.  From Tadayoshi Funaba.  Originally installed into
79248         sh-utils on 1999-08-07, but the patch got lost (I guess during the
79249         coreutils merge?).
79250
79251 2003-08-31  Simon Josefsson  <jas@extundo.com>
79252
79253         * modules/timegm: New file.
79254         * MODULES.html.sh (func_all_modules): Add timegm.
79255
79256 2003-08-31  Simon Josefsson  <jas@extundo.com>
79257
79258         * m4/timegm.m4: New file.
79259
79260 2003-08-31  Simon Josefsson  <jas@extundo.com>
79261
79262         * lib/timegm.h: New file.
79263         * lib/timegm.c: New file.  Based on
79264         wget-1.8.2/src/http.c:mktime_from_utc.
79265
79266 2003-08-31  Karl Berry  <karl@gnu.org>
79267
79268         * lib/argp.h: update from libc.
79269
79270 2003-08-28  Bruno Haible  <bruno@clisp.org>
79271
79272         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
79273         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
79274         followed by '#define fnmatch fnmatch_posix' gives an error.
79275
79276 2003-08-28  Bruno Haible  <bruno@clisp.org>
79277
79278         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
79279         warning on QNX, which defines O_BINARY to 000000.
79280
79281 2003-08-27  Jim Meyering  <jim@meyering.net>
79282
79283         * m4/mkstemp.m4: Require that the system mkstemp be able to create
79284         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
79285         would fail after 32.  Reported by Danny Levinson.  Details here:
79286         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
79287
79288 2003-08-24  Bruno Haible  <bruno@clisp.org>
79289
79290         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
79291         MSVC7 <stdio.h> is included later.
79292
79293 2003-08-22  Simon Josefsson  <jas@extundo.com>
79294
79295         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
79296
79297 2003-08-20  Karl Berry  <karl@gnu.org>
79298
79299         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
79300
79301 2003-08-20  Bruno Haible  <bruno@clisp.org>
79302
79303         * modules/progname: New file.
79304         * MODULES.html.sh (func_all_modules): Add progname.
79305
79306 2003-08-20  Bruno Haible  <bruno@clisp.org>
79307
79308         * lib/progname.h: New file, from GNU gettext.
79309         * lib/progname.c: New file, from GNU gettext.
79310         * lib/progreloc.c: New file, from GNU gettext.
79311
79312 2003-08-19  Jim Meyering  <jim@meyering.net>
79313
79314         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
79315         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
79316
79317 2003-08-19  Bruno Haible  <bruno@clisp.org>
79318
79319         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
79320         more.
79321
79322 2003-08-19  Bruno Haible  <bruno@clisp.org>
79323
79324         * lib/xstrdup.c: Assume <string.h> exists.
79325
79326 2003-08-18  Paul Eggert  <eggert@twinsun.com>
79327
79328         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
79329         in makefile rules.
79330
79331 2003-08-18  Jim Meyering  <jim@meyering.net>
79332
79333         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
79334         * m4/lib-ld.m4: Likewise.
79335
79336 2003-08-18  Jim Meyering  <jim@meyering.net>
79337
79338         * lib/setenv.h: Indent nested cpp directive.
79339         * lib/vasnprintf.c: Remove trailing blanks.
79340
79341 2003-08-17  Simon Josefsson  <jas@extundo.com>
79342
79343         * modules/xstrndup: New file.
79344         * MODULES.html.sh (func_all_modules): Add xstrndup.
79345
79346 2003-08-17  Simon Josefsson  <jas@extundo.com>
79347
79348         * modules/argp: Fix autoconf macro name. Add more dependencies.
79349
79350 2003-08-17  Simon Josefsson  <jas@extundo.com>
79351
79352         * m4/xstrndup.m4: New file.
79353
79354 2003-08-17  Simon Josefsson  <jas@extundo.com>
79355
79356         * m4/argp.m4: New file.
79357
79358 2003-08-17  Simon Josefsson  <jas@extundo.com>
79359             Bruno Haible  <bruno@clisp.org>
79360
79361         * lib/xstrndup.h: New file.
79362         * lib/xstrndup.c: New file.
79363
79364 2003-08-17  Bruno Haible  <bruno@clisp.org>
79365
79366         * modules/strndup (Files, Include): Add lib/strndup.h.
79367
79368 2003-08-17  Bruno Haible  <bruno@clisp.org>
79369
79370         * modules/euidaccess (Files): Add lib/euidaccess.h.
79371
79372 2003-08-17  Bruno Haible  <bruno@clisp.org>
79373
79374         * lib/strndup.h: New file.
79375
79376 2003-08-17  Bruno Haible  <bruno@clisp.org>
79377
79378         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
79379         like AC_GNU_SOURCE.
79380         * modules/extensions (configure.ac): Comment out the invocation of
79381         gl_USE_SYSTEM_EXTENSIONS.
79382
79383 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79384
79385         Merges from coreutils, etc.
79386         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
79387         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
79388         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
79389         fixing a typo.
79390         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
79391         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
79392
79393 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79394
79395         Document merge from coreutils.
79396         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
79397         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
79398         * modules/utime: Add m4/utimes-null.m4.
79399
79400 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79401
79402         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
79403         space, undoing this 2003-08-12 change:
79404         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79405
79406 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79407
79408         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
79409         strtoul.c from libc, undoing this 2003-08-12 change:
79410         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79411
79412 2003-08-16  Jim Meyering  <jim@meyering.net>
79413
79414         Merges from coreutils.
79415         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
79416         prefix.  Adjust cache variables similarly.  Create 500 rather than
79417         just 300 files, to exercise bug on Darwin6.5, too.
79418         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
79419         $missing_dir.
79420         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
79421         AM_SYS_POSIX_TERMIOS.
79422         Reported by mkc@mathdogs.com.
79423         Also change use of $am_cv_sys_posix_termios
79424         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
79425         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
79426         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
79427         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
79428         in /proc/mounts until it finds one with matching device number.  This
79429         is unnecessary when the FILE argument *is* a mount point.  No stat call
79430         is necessary in that case.  So, disable the statvfs-testing code on
79431         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
79432         as RedHat bug# 84846.
79433         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79434         to 1MB, so as not to render systems with no stack size limit (e.g.,
79435         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79436         Include <unistd.h>.  On some systems,
79437         it is required for the definition of _SC_PAGESIZE.
79438
79439 2003-08-16  Jim Meyering  <jim@meyering.net>
79440
79441         Merge from coreutils.
79442         * lib/xstrtoimax.c: #else #if -> #elif.
79443         * lib/xstrtoumax.c: Likewise.
79444
79445 2003-08-16  Jim Meyering  <jim@meyering.net>
79446
79447         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
79448         * m4/utimes.m4: Removed.
79449         * m4/utimes-null.m4: Renamed from utimes.m4.
79450
79451         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79452         to 1MB, so as not to render systems with no stack size limit (e.g.,
79453         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79454         Include <unistd.h>.  On some systems,
79455         it is required for the definition of _SC_PAGESIZE.
79456
79457 2003-08-16  Jim Meyering  <jim@meyering.net>
79458         and Paul Eggert  <eggert@cs.ucla.edu>
79459
79460         Merges from coreutils, etc.
79461
79462         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
79463         using the latest version from cvs.  This avoids problems with #line
79464         directives using a vendor (Sun) compiler.
79465         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
79466         Don't set GETGROUPS_LIB here; now it's
79467         done via getgroups.m4's wrapper function.
79468         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
79469         rather than just in sh-util/configure.in, so that the
79470         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
79471         same.
79472         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
79473         AC_FUNC_GETLOADAVG where to find getloadavg.c.
79474         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
79475         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
79476         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
79477         Remove code that is now done by the newly-required macros.
79478         Append $(EXEEXT) to DF_PROG.
79479         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
79480         Do not invoke or require the following here,
79481         since prereq.m4 or some gnulib .m4 now does this for us:
79482         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
79483         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
79484         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
79485         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
79486         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
79487         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
79488         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
79489         AC_FUNC_OBSTACK.
79490         Do not replace the following functions, as this is now the job
79491         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
79492         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
79493         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
79494         atexit getpass, strdup, getpagesize.
79495         Replace 'raise'.
79496         Do not check for the following functions, as this is now the job
79497         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
79498         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
79499         setregid.
79500         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
79501         Check for sys/sysctl.h.
79502         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
79503         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
79504         of checking for ssize_t ourselves.
79505
79506         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
79507         Require every macro that gnulib/modules/* suggests for us.
79508         (jm_PREREQ_ADDEXT): New macro.
79509         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
79510         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
79511
79512         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
79513         (gl_PHYSMEM): Use it.
79514         Also check for `table' function.
79515         Check for new headers and functions.
79516         Add check for sys/sysmp.h.
79517         With suggestions from Kaveh Ghazi.
79518         Ignore headers that are present but cannot be compiled.  This
79519         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
79520         C 5.4.
79521
79522 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79523
79524         Document merge from coreutils.
79525         * modules/userspec: Depend on posixver.
79526         * modules/strftime: Depend on tzset.
79527
79528 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79529
79530         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
79531         rather than tab, after '#' in shell-script copyright notices.
79532         Suggested by Bruno Haible.
79533
79534 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79535
79536         * config/srclist-update: Use three spaces, rather than tab, after '#'
79537         in shell-script copyright notices.  Suggested by Bruno Haible.
79538         Remove unnecessary parenthesization in regular expression.
79539
79540 2003-08-15  Jim Meyering  <jim@meyering.net>
79541
79542         Merge from coreutils.
79543         * lib/xgethostname.c: Include <stdlib.h>.
79544         (xghostname): Don't exit for anything other than memory-related
79545         failure; just return NULL.
79546         * lib/userspec.c: Include "posixver.h".
79547         (parse_user_spec): Accept `.' as a separator only
79548         in pre-POSIX-200112 mode.
79549         * lib/strtoimax.c: Use #elif rather than #else #if.
79550         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
79551         Remove function, now that we can rely on a working tzset function.
79552         [!_LIBC]: Ensure that the required autoconf test has been run.
79553         [!defined _NL_CURRENT && HAVE_STRFTIME]:
79554         Use underlying_strftime for %r.
79555         * lib/sha.c: Merge in some clean-up and optimization changes from
79556         glibc.
79557         * lib/sha.c (sha_stream) [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/realloc.c: Update copyright date.
79562
79563 2003-08-15  Jim Meyering  <jim@meyering.net>
79564         and Paul Eggert  <eggert@twinsun.com>
79565
79566         Merge from coreutils.
79567         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
79568         member but strut utmpx does not.  Needed for AIX 4.3.3.
79569         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
79570
79571 2003-08-15  Jim Meyering  <jim@meyering.net>
79572         and Paul Eggert  <eggert@cs.ucla.edu>
79573
79574         Merges from coreutils, etc.
79575         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
79576         Require gl_FUNC_TZSET_CLOBBER.
79577         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
79578         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
79579         members.
79580
79581 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79582
79583         Help the merge from coreutils.
79584         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
79585         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
79586         * m4/tzset.m4: Use it too.
79587
79588 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79589
79590         * modules/tzset: New file.
79591
79592 2003-08-14  Jim Meyering  <jim@meyering.net>
79593
79594         Merges from coreutils.
79595         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
79596         variable names, rather than @FNMATCH_H@.
79597         * modules/alloca: Likewise for $(ALLOCA_H).
79598
79599         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
79600         the three copies of the literal target, `fnmatch.h'.
79601         * modules/alloca (alloca.h): Likewise.
79602
79603 2003-08-14  Jim Meyering  <jim@meyering.net>
79604
79605         Merge from coreutils.
79606         * m4/tzset.m4: New file.
79607         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
79608         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
79609         otherwise, AIX 5.1 systems would end up using the latter.
79610         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
79611         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
79612         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
79613         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
79614
79615 2003-08-14  Jim Meyering  <jim@meyering.net>
79616
79617         Merge from coreutils.
79618         * lib/obstack.h: Whitespace changes.
79619         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
79620         and xcalloc return values.
79621         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
79622         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
79623         hang on OSF/1 5.1 for DIR on both local and remote file systems.
79624         Reported by (and fix confirmed by) Nelson H. F. Beebe.
79625         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79626         error from mntctl.
79627         Use mntctl's return value to drive the entry-processing loop, since
79628         we can't rely on the value of the vmt_length member in the last
79629         entry.  On some systems doing so could result in exhausting
79630         virtual memory.  Based in part on a patch from Mike Jetzer.
79631
79632 2003-08-14  Jim Meyering  <jim@meyering.net>
79633         and Paul Eggert  <eggert@twinsun.com>
79634
79635         Merges from coreutils, plus other fixes.
79636         * lib/physmem.c: Merge in portability changes from gcc/libiberty
79637         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
79638         for credits and details.  Thanks to Kaveh Ghazi for helping
79639         to keep these files in sync.
79640         (ARRAY_SIZE): Define it.
79641         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
79642         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
79643         (memcasecmp): Don't assume size_t fits in unsigned int.
79644         Remove casts and duplicate code.
79645         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
79646         (memcpy): Remove definition.
79647         Merge in some clean-up and optimization changes from glibc.
79648         [BLOCKSIZE]: Move definition to top of file.
79649         Ensure that it is a multiple of 64.
79650         Rearrange loop exit tests so as to avoid performing an
79651         additional fread after encountering an error or EOF.
79652         * lib/md5.h (md5_uintptr): Define.
79653         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
79654         return to the initial working directory.  Preserve errno
79655         for caller.
79656         * lib/idcache.c: Include "xalloc.h".
79657         (xmalloc, xrealloc): Remove decls.
79658         (getuser): Remove casts no longer required in C89.
79659         * lib/human.c: Include stdio.h, for sprintf.
79660         * lib/group-member.c: Include "xalloc.h".
79661         (xmalloc, xrealloc): Remove decls.
79662         (get_group_info): Remove casts no longer required in C89.
79663         * lib/getusershell.c (readname): Remove casts no longer required in
79664         C89.
79665         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
79666         * lib/getline.c: Whitespace fix, from coreutils.
79667
79668 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79669
79670         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
79671         Check for isascii.
79672
79673         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79674         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79675         Undo previous (whitespace-only) change.
79676
79677 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79678
79679         * lib/exclude.c: Include <ctype.h>
79680         (IN_CTYPE_DOMAIN): New macro.
79681         (is_space): New fn.
79682         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
79683         and empty lines.
79684
79685         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79686         Undo previous (whitespace-only) change.
79687
79688 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79689
79690         * config/srclist-update: Change update back to the old behavior,
79691         leaving whitespace alone.  Use one 'sed' command rather than a
79692         pipeline.
79693         (fixlicense): Now a variable, not a function.
79694         (remove_trailing_blanks): Remove.
79695         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
79696         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79697         Undo previous (whitespace-only) change.
79698
79699 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79700
79701         Merge from coreutils.
79702         * modules/euidaccess: Add lib_SOURCES, include for new
79703         file euidaccess.h
79704
79705 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79706
79707         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79708         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79709         Normalize leading white space and remove trailing white space.
79710
79711         Merge from coreutils
79712         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
79713
79714         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
79715         0.12.1.  These files are now being upgraded automatically by
79716         ../config/srclist-update.
79717
79718 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79719
79720         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79721         Normalize leading white space and remove trailing white space.
79722         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
79723         notice, as per ../config/srclist-update.
79724
79725         Merge from coreutils.
79726         * lib/euidaccess.h: New file.
79727         * lib/euidaccess.c: Include it.
79728         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
79729         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
79730         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
79731
79732 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79733
79734         * config/srclist-update: Add copyright notice.
79735         (remove_id_lines, remove_trailing_blanks): New constants.
79736         (fixfile): Use them to normalize spacing a bit in copied files.
79737         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79738         Normalize leading white space and remove trailing white space.
79739
79740         * config/texinfo.tex: Sync with texinfo.
79741
79742         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
79743         strtoul.c from libc, to merge coreutils whitespace changes.
79744
79745         * config/srclist.txt: Get the following m4 files from gettext:
79746         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
79747         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
79748         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
79749         wint_t.m4.
79750
79751 2003-08-12  Karl Berry  <karl@gnu.org>
79752
79753         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
79754         been made.
79755
79756 2003-08-11  Paul Eggert  <eggert@twinsun.com>
79757
79758         * modules/gnu-source, m4/gnu-source.m4:
79759         Remove; we're assuming Autoconf 2.54 or later now.
79760         Suggested by Bruno Haible.
79761         * MODULES.html.sh (func_all_modules): Remove gnu-source.
79762
79763 2003-08-11  Bruno Haible  <bruno@clisp.org>
79764
79765         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
79766
79767 2003-08-11  Bruno Haible  <bruno@clisp.org>
79768
79769         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
79770         (vasnprintf): Use it instead of wcslen.
79771
79772 2003-08-11  Bruno Haible  <bruno@clisp.org>
79773
79774         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
79775         value to ensure that _Bool promotes to int. Use #define for _Bool when
79776         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
79777
79778 2003-08-10  Karl Berry  <karl@gnu.org>
79779
79780         * lib/regex.h: update from libc (whitespace fix).
79781
79782 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79783
79784         Merge some files from coreutils.  These changes were
79785         originally made by Jim Meyering.
79786         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
79787         many older Unixes require this.
79788         * lib/alloca.c (alloca): Remove cast to argument of free;
79789         no longer needed in C89.
79790         * lib/alloca_.h, regex.h: Fix white space to match
79791         what GNU indent does.
79792
79793 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79794
79795         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
79796         apparently Emacs's Unicode mode got confused before my 2003-08-05
79797         checkin.
79798
79799 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79800
79801         * m4/extensions.m4: New file.
79802         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
79803         Require gl_USE_SYSTEM_EXTENSIONS.
79804         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
79805         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
79806
79807 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79808
79809         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
79810         * modules/extensions, modules/gnu-source: New files.
79811         * modules/timespec, modules/unlocked-io: Depend on extensions.
79812
79813 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79814
79815         * modules/restrict: New file.
79816         * MODULES.html.sh (func_all_modules): Add restrict.
79817         * modules/regex: Depend on restrict.
79818
79819 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79820
79821         * m4/restrict.m4: New file.
79822         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
79823
79824 2003-08-07  Bruno Haible  <bruno@clisp.org>
79825
79826         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
79827         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
79828
79829 2003-08-07  Bruno Haible  <bruno@clisp.org>
79830
79831         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
79832         makes the module 'getndelim2' compatible with the module 'getline'.
79833
79834 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79835
79836         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
79837         byte with "\201" to avoid glitches when editing that source file
79838         with multi-gnome-terminal.
79839
79840 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79841
79842         * lib/bumpalloc.h: Remove.
79843
79844 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79845
79846         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
79847         * modules/bumpalloc: Remove.
79848
79849 2003-08-04  Paul Eggert  <eggert@twinsun.com>
79850
79851         * lib/getloadavg.c: Change copyright notice and spacing to conform to
79852         GNU coding style.
79853
79854         Merge from coreutils.
79855         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
79856         1. From glibc.
79857         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
79858         from Karl Berry, implemented by Jim Meyering.
79859         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
79860         from Dmitry V. Levin.
79861         Remove anachronistic cast of xrealloc.
79862         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
79863         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
79864         type. Otherwise, it wouldn't compile with at least /bin/cc on
79865         ymp-cray-unicos9.0.2.X.
79866         Combine two mostly-identical uses of alloca into one.
79867         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
79868
79869 2003-08-04  Dave Love  <d.love@dl.ac.uk>
79870
79871         [From Emacs.]
79872
79873         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
79874         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
79875         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
79876         obsolete NLIST_NAME_UNION.
79877         [__GNU__]: Undef BSD and FSCALE.
79878         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
79879
79880 2003-08-03  Paul Eggert  <eggert@twinsun.com>
79881
79882         * lib/stdbool_.h (_Bool): Make it signed char, instead of
79883         an enum type, so that it's guaranteed to promote to int.  See:
79884         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
79885
79886 2003-08-03  Karl Berry  <karl@gnu.org>
79887
79888         * config/depcomp: update from automake.
79889
79890 2003-07-31  Paul Eggert  <eggert@twinsun.com>
79891
79892         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
79893         (strerror): Don't assume that a printable int fits in 14 bytes.
79894
79895 2003-07-31  Bruno Haible  <bruno@clisp.org>
79896
79897         * modules/getpass-gnu: New file.
79898         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
79899
79900 2003-07-31  Bruno Haible  <bruno@clisp.org>
79901
79902         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
79903
79904 2003-07-24  Karl Berry  <karl@gnu.org>
79905
79906         * config/missing: update from automake.
79907
79908 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
79909             Bruno Haible  <bruno@clisp.org>
79910
79911         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
79912         * lib/getline.c (getline, getdelim): Likewise.
79913         Remove _GNU_SOURCE define; now it's defined in config.h through
79914         m4/getline.m4.
79915
79916 2003-07-23  Karl Berry  <karl@gnu.org>
79917
79918         * config/config.sub: update from prep.
79919
79920 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79921
79922         * modules/xalloc (Depends-on): Add exitfail.
79923         * modules/xmemcoll: Likewise.
79924
79925 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79926
79927         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
79928         over-parenthesization in macros.
79929
79930         Sync with coreutils.
79931
79932         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
79933         required by C99.
79934
79935         Use `exit_failure' for xalloc and xmemcoll instead of their own
79936         private exit-failure variables.
79937         * lib/xalloc.h (xalloc_exit_failure): Remove.
79938         * lib/xmalloc.c: Likewise.  Include exitfail.h.
79939         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
79940         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
79941         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
79942         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
79943
79944 2003-07-20  Jim Meyering  <jim@meyering.net>
79945
79946         * modules/closeout (Depends-on): Add exitfail.
79947         Suggestion from Bruno Haible.
79948
79949 2003-07-19  Karl Berry  <karl@gnu.org>
79950
79951         * config/config.sub: update from prep.
79952
79953 2003-07-18  Paul Eggert  <eggert@twinsun.com>
79954
79955         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
79956         Remove.
79957         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
79958         to test that it can stand by itself.  Include "exitfail.h".
79959         Clients should set exit_failure instead.
79960         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
79961
79962 2003-07-18  Bruno Haible  <bruno@clisp.org>
79963
79964         * modules/getndelim2: New file.
79965         * modules/getline: Share files with module getndelim2.
79966         * modules/getnline: Depend on getndelim2 instead of sharing files with
79967         it. Add getnline.c to lib_SOURCES.
79968         * MODULES.html.sh (func_all_modules): Add getndelim2.
79969
79970 2003-07-18  Bruno Haible  <bruno@clisp.org>
79971
79972         * m4/getndelim2.m4: New file.
79973         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79974         invoke gl_PREREQ_GETNDELIM2.
79975         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79976         gl_PREREQ_GETNDELIM2.
79977         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79978         gl_GETNDELIM2.
79979
79980 2003-07-18  Bruno Haible  <bruno@clisp.org>
79981
79982         * lib/getndelim2.h: New file.
79983         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79984         getndelim2.h.
79985         (getndelim2): Make non-static. Change return type to ssize_t.
79986         * lib/getline.h: Change argument names.
79987         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79988         * lib/getnline.c: Include getndelim2.h.
79989
79990 2003-07-18  Andreas Schwab  <schwab@suse.de>
79991
79992         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79993
79994 2003-07-17  Karl Berry  <karl@gnu.org>
79995
79996         * config/config.sub: update from prep.
79997
79998 2003-07-17  Bruno Haible  <bruno@clisp.org>
79999
80000         * modules/getnline: New file.
80001         * modules/getline: Add lib/getndelim2.c to source file list.
80002         * MODULES.html.sh (func_all_modules): Add getnline.
80003
80004 2003-07-17  Bruno Haible  <bruno@clisp.org>
80005
80006         * m4/getnline.m4: New file.
80007
80008 2003-07-17  Bruno Haible  <bruno@clisp.org>
80009
80010         * m4/Makefile.am.in: Remove file.
80011         * m4/Makefile.am: Remove file.
80012         * m4/Makefile.in: Remove file.
80013
80014 2003-07-17  Bruno Haible  <bruno@clisp.org>
80015
80016         * lib/getnline.h: New file.
80017         * lib/getnline.c: New file.
80018         * lib/getndelim2.c: New file, extracted from getline.c.
80019         (getndelim2): Renamed from getdelim2, with added nmax argument.
80020         * lib/getline.c: Include getndelim2.c.
80021         (getdelim2): Moved out to getndelim2.c.
80022         (getline, getdelim): Update.
80023
80024 2003-07-17  Bruno Haible  <bruno@clisp.org>
80025
80026         * lib/Makefile.am: Remove file.
80027         * lib/Makefile.in: Remove file.
80028
80029 2003-07-17  Bruno Haible  <bruno@clisp.org>
80030
80031         * configure.in: Remove file.
80032         * Makefile.in: Remove file.
80033
80034 2003-07-17  Bruno Haible  <bruno@clisp.org>
80035
80036         * MODULES.html.sh: Put the </BODY> right before </HTML>.
80037
80038 2003-07-16  Karl Berry  <karl@gnu.org>
80039
80040         * config/srclist-update: was running fixlicense twice, which caused
80041                 texinfo.tex to be nullified for some reason.  Simplify,
80042                 $gplsrc is no longer needed as far as I can see?
80043
80044 2003-07-16  Jim Meyering  <jim@meyering.net>
80045
80046         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
80047
80048 2003-07-15  Paul Eggert  <eggert@twinsun.com>
80049
80050         * config/srclist.txt: Get the following files from gettext-runtime/intl
80051         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
80052         ref-del.sin.  From Bruno Haible.
80053         * config/srclist-update (fixfile): Change grep pattern again, since the
80054         previous fix didn't work (there was another trailing $).  Use
80055         '[$]' to escape the $s.
80056
80057 2003-07-15  Karl Berry  <karl@gnu.org>
80058
80059         * lib/vasnprintf.c: update from gettext.
80060
80061 2003-07-15  Karl Berry  <karl@gnu.org>
80062
80063         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
80064         gets expanded when surrounded by '$'.
80065
80066 2003-07-15  Jim Meyering  <jim@meyering.net>
80067
80068         * modules/save-cwd: Don't depend on error.  From Derek Price.
80069
80070 2003-07-15  Jim Meyering  <jim@meyering.net>
80071
80072         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
80073
80074 2003-07-14  Simon Josefsson  <jas@extundo.com>
80075
80076         * modules/mempcpy: New file.
80077         * MODULES.html.sh (func_all_modules): Add mempcpy.
80078
80079 2003-07-14  Simon Josefsson  <jas@extundo.com>
80080
80081         * m4/mempcpy.m4: New file.
80082
80083 2003-07-14  Simon Josefsson  <jas@extundo.com>
80084
80085         * lib/mempcpy.h: New file.
80086         * lib/mempcpy.c: New file.
80087
80088 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80089
80090         * modules/getdate, modules/posixtm: Depend on mktime.
80091
80092 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80093
80094         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
80095         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
80096         unicodeio.c, unicodeio.h, unlocked-io.h:
80097         Switch from LGPL to GPL.
80098
80099 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80100
80101         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
80102         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
80103         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
80104         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
80105         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
80106         updated automatically by ../config/srclist-update.  This changes
80107         their license from LPGL to GPL.
80108
80109 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80110
80111         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
80112         assumed to refer to the root of the most recent stable gettext version.
80113         * config/srclistvars.sh: Add defaults for eggert.
80114         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
80115         Match "This program" as well as "The program".  This is needed
80116         for gettext.
80117
80118 2003-07-14  Jim Meyering  <jim@meyering.net>
80119
80120         Don't emit diagnostics.  Let callers do that.
80121         * lib/save-cwd.c: Don't include "error.h".
80122         (save_cwd): Don't call error.  Ensure that errno is valid
80123         when returning nonzero.
80124
80125         * lib/save-cwd.h (restore_cwd): Update prototype.
80126         * lib/save-cwd.c (restore_cwd): Remove two parameters.
80127         Simplify.  Don't call error upon failure.  Let callers do that.
80128         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
80129         when auditing is enabled.  But don't bother updating the #if.
80130
80131 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
80132
80133         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
80134         it breaks C++ compilation.
80135         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
80136
80137 2003-07-10  Simon Josefsson  <jas@extundo.com>
80138
80139         * modules/strchrnul (Makefile.am): Add strchrnul.h.
80140
80141 2003-07-10  Jim Meyering  <jim@meyering.net>
80142
80143         * m4/clock_time.m4: Remove trailing blank.
80144         * m4/intmax_t.m4: Likewise.
80145
80146 2003-07-10  Jim Meyering  <jim@meyering.net>
80147
80148         * lib/vasnprintf.c: Remove trailing blanks.
80149         Make cpp indentation consistent.
80150
80151 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80152
80153         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
80154         posixver.c, strftime.c, strnlen.c, strverscmp.c:
80155         Switch from LGPL to GPL.
80156
80157 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80158
80159         * config/srclist.txt: Sort sublists.  Add
80160         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
80161         that differ from gnulib for one reason or another; we'd like this list
80162         to be smaller but for now let's document what we have.
80163
80164 2003-07-08  Paul Eggert  <eggert@twinsun.com>
80165
80166         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
80167         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
80168         and sweeter "eval x=$x".
80169         * config/srclist.txt: Get lib/argp* from glibc.
80170
80171 2003-07-07  Paul Eggert  <eggert@twinsun.com>
80172
80173         * lib/mktime.c: Fix some boundary cases and remove need for floating
80174         point.
80175
80176         Issue a compile-time diagnostic if time_t is floating point, or if
80177         two's complement arithmetic is not in effect, or if arithmetic
80178         right shift does not propagate the sign.  These assumptions were
80179         all in the original code but they weren't checked.
80180
80181         (TIME_T_MIDPOINT, verify): New macros.
80182         (__isleap): Remove; it has integer overflow problems.
80183         (leapyear): New function, without those problems.
80184         (ydhms_tm_diff): Remove; splitting into two parts.
80185         (ydhms_diff): New function, containing the arithmetic part of
80186         the old ydhms_tm_diff function.  Issue a compile-time
80187         diagnostic if we are not using C99 integer division.
80188         Avoid casts when possible.
80189         (guess_time_tm): New function, containing the checking part of
80190         the old ydhms_tm_diff function.  Return the new value, rather than
80191         the difference between it and the old.  Accept a new argument T
80192         so that *T specifies the old value.  Check for overflow in the result.
80193
80194         (__mktime_internal): Use a time_t offset, not a long int offset.
80195         This undoes the 2003-06-04 change, which is no longer needed now
80196         that we have better overflow checking.
80197         (localtime_offset): Likewise.
80198
80199         (__mktime_internal): Avoid harmful overflow on hosts where time_t
80200         and long are 64-bit but int is only 32-bit.
80201         (ydhms_diff): Use long int to store year1 and yday1.
80202         Issue a compile-time diagnostic if long int is not wide enough.
80203
80204         (__mktime_internal): Use long int to store adjusted year and yday.
80205         Use plain C rather than preprocessor commands, if that doesn't
80206         affect efficiency.
80207         Check for overflow (and try to repair) after each probe
80208         rather than checking only at the very end.  This avoids some bugs
80209         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
80210         does not equal GMT offset at maximum time).
80211         Use integer to check for overflow rather than floating point; this
80212         is more portable to non-IEEE hosts, and is a tad faster.
80213         When we detect that we are oscillating between two values,
80214         don't check whether tm_isdst has the requested value, since
80215         we already know the answer.  When tm_isdst has the wrong value,
80216         use a different heuristic to find the right one, based on the
80217         extreme values actually observed in practice in tz2003a,
80218         rather than the (overly optimistic) "previous 3 calendar quarters".
80219
80220         (not_equal_tm, print_tm, check_result): Use "const T" rather than
80221         "T const" to accommodate glibc style.
80222         (check_result): Use less-confusing report format.  "long" -> "long int.
80223         (main): Likewise.
80224         Don't loop if the iteration overflows time_t.
80225         Allow a negative step in the iteration.
80226
80227 2003-07-06  Karl Berry  <karl@gnu.org>
80228
80229         * config/depcomp: update from automake.
80230         * config/config.sub: update from prep.
80231
80232 2003-07-03  Karl Berry  <karl@gnu.org>
80233
80234         * config/config.guess: update from prep.
80235
80236 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80237
80238         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
80239         xreadlink.c now includes it unconditionally.
80240
80241 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80242
80243         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
80244         having it depend on HAVE_SYS_TYPES_H.
80245
80246 2003-07-01  Bruno Haible  <bruno@clisp.org>
80247
80248         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
80249         <sys/types.h> should be sufficient.
80250         Reported by Paul Eggert.
80251
80252 2003-06-26  Karl Berry  <karl@gnu.org>
80253
80254         * config/depcomp: update from automake.
80255
80256 2003-06-26  Bruno Haible  <bruno@clisp.org>
80257
80258         * modules/human: Depend on module stdbool.
80259
80260 2003-06-25  Bruno Haible  <bruno@clisp.org>
80261
80262         * modules/readlink: New file.
80263         * modules/xreadlink: Depend on it.
80264         * MODULES.html.sh (func_all_modules): Add readlink.
80265
80266 2003-06-25  Bruno Haible  <bruno@clisp.org>
80267
80268         * m4/readlink.m4: New file.
80269
80270 2003-06-25  Bruno Haible  <bruno@clisp.org>
80271
80272         * lib/readlink.c: New file.
80273
80274 2003-06-22  Karl Berry  <karl@gnu.org>
80275
80276         * config/srclist.txt: update mkinstalldirs from automake.
80277         * config/mkinstalldirs: update.
80278
80279 2003-06-22  Bruno Haible  <bruno@clisp.org>
80280
80281         Portability to mingw32.
80282         * m4/ssize_t.m4: New file, from GNU gettext.
80283         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
80284         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
80285
80286 2003-06-22  Bruno Haible  <bruno@clisp.org>
80287
80288         * modules/safe-read: Add m4/ssize_t.m4.
80289         * modules/xreadlink: Add m4/ssize_t.m4.
80290
80291 2003-06-20  Bruno Haible  <bruno@clisp.org>
80292
80293         Assume C89, so PARAMS isn't needed.
80294         * lib/unicodeio.h (PARAMS): Remove.
80295         * lib/unicodeio.c: Don't use PARAMS.
80296
80297 2003-06-18  Karl Berry  <karl@gnu.org>
80298
80299         * config/config.{guess,sub}: update from prep.
80300
80301 2003-06-18  Jim Meyering  <jim@meyering.net>
80302
80303         Merge changes from coreutils.
80304         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
80305         Remove explicit declarations of xmalloc and realloc.
80306         Include xalloc.h.
80307         (read_utmp): Remove anachronistic cast of xmalloc.
80308
80309 2003-06-17  Paul Eggert  <eggert@twinsun.com>
80310
80311         Assume C89, so PARAMS isn't needed.
80312         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
80313         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
80314         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
80315         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
80316         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
80317         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
80318         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
80319         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
80320         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
80321         lib/xstrtod.h, lib/xstrtol.h: Likewise.
80322         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
80323         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
80324         no longer needed. Anyway, config.h should always be included before any
80325         other file.
80326
80327 2003-06-11  Simon Josefsson  <jas@extundo.com>
80328
80329         * modules/sysexits: New file.
80330         * MODULES.html.sh (func_all_modules): Add sysexits.
80331
80332 2003-06-11  Simon Josefsson  <jas@extundo.com>
80333
80334         * lib/sysexit_.h: New file.
80335
80336 2003-06-11  Derek Price  <derek@ximbiot.com>
80337
80338         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
80339         necessary.
80340
80341 2003-06-11  Bruno Haible  <bruno@clisp.org>
80342
80343         * m4/sysexits.m4: New file.
80344
80345 2003-06-10  Simon Josefsson  <jas@extundo.com>
80346
80347         * lib/argp.h: New file, from glibc.
80348         * lib/argp-ba.c: New file, from glibc.
80349         * lib/argp-eexst.c: New file, from glibc.
80350         * lib/argp-fmtstream.c: New file, from glibc.
80351         * lib/argp-fmtstream.h: New file, from glibc.
80352         * lib/argp-fs-xinl.c: New file, from glibc.
80353         * lib/argp-help.c: New file, from glibc.
80354         * lib/argp-namefrob.h: New file, from glibc.
80355         * lib/argp-parse.c: New file, from glibc.
80356         * lib/argp-pv.c: New file, from glibc.
80357         * lib/argp-pvh.c: New file, from glibc.
80358         * lib/argp-xinl.c: New file, from glibc.
80359
80360 2003-06-10  Simon Josefsson  <jas@extundo.com>
80361
80362         * modules/strchrnul: New file.
80363
80364 2003-06-10  Simon Josefsson  <jas@extundo.com>
80365
80366         * modules/argp: New file.
80367
80368 2003-06-10  Simon Josefsson  <jas@extundo.com>
80369
80370         * m4/strchrnul.m4: New file.
80371
80372 2003-06-10  Simon Josefsson  <jas@extundo.com>
80373
80374         * lib/strchrnul.h: New file.
80375         * lib/strchrnul.c: New file.
80376
80377 2003-06-10  Bruno Haible  <bruno@clisp.org>
80378
80379         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
80380
80381 2003-06-07  Karl Berry  <karl@gnu.org>
80382
80383         * config/config.{guess,sub}: update from prep.
80384
80385 2003-06-07  Jim Meyering  <jim@meyering.net>
80386
80387         * modules/strtod: Use $(...) notation, not @...@ for
80388         AC_REPLACE'd variables.
80389         * modules/localcharset: Likewise.
80390
80391 2003-06-07  Jim Meyering  <jim@meyering.net>
80392
80393         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
80394         in place of my name in the copyright comment.
80395         Remove definition and uses of __P.
80396
80397         From coreutils.
80398         * lib/stat.c: Don't declare xmalloc explicitly.
80399         Instead, include "xalloc.h".
80400         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
80401         xrealloc, and xcalloc return values.
80402         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
80403         Improve comment.
80404         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
80405
80406 2003-06-07  Bruno Haible  <bruno@clisp.org>
80407
80408         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
80409         avoid AC_CONFIG_LINKS.
80410         * modules/fnmatch (Makefile.am): Use explicit creation rule for
80411         fnmatch.h, to avoid AC_CONFIG_LINKS.
80412         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
80413
80414 2003-06-07  Bruno Haible  <bruno@clisp.org>
80415
80416         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
80417         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
80418         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80419         directory.
80420         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
80421         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80422         directory.
80423
80424 2003-06-06  Jim Meyering  <jim@meyering.net>
80425
80426         Merge from coreutils.
80427         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
80428         Consolidate declarations and initializations of *_base* locals.
80429
80430         Merge from coreutils.
80431         This avoids a core dump on systems without GNU putenv,
80432         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
80433         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
80434         (unsetenv): New static function, from GNU libc.
80435         (rpl_putenv): Use it.
80436
80437         * lib/modechange.c: Remove trailing blanks.
80438
80439         Merge from coreutils.
80440         * lib/fsusage.c: Remove declaration of statfs.
80441         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
80442
80443         * lib/posixtm.c: Include <stdbool.h> unconditionally.
80444
80445 2003-06-06  Jim Meyering  <jim@meyering.net>
80446
80447         * lib/stdbool_.h: Renamed from stdbool.h.in.
80448
80449 2003-06-06  Jim Meyering  <jim@meyering.net>
80450             Bruno Haible  <bruno@clisp.org>
80451
80452         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
80453         Adjust Makefile.am snippet not to redirect directly to target.
80454         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
80455
80456 2003-06-05  Paul Eggert  <eggert@twinsun.com>
80457
80458         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
80459         mismatch, look in future quarters as well as past.  This fixes a
80460         bug when processing fall-backwards gaps immediately after a long
80461         period of daylight-saving time.
80462
80463         * lib/mktime.c: Assume freestanding C89 or better.
80464         (HAVE_LIMITS_H): Remove.  Assume it's 1.
80465         (__P): Remove; not used.
80466         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
80467         (mktime, not_equal_tm, print_tm, check_result,
80468         main): Use prototypes.  Use const * where appropriate.
80469         (main): Fix typo in testing code that uncovered by above changes.
80470         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
80471
80472 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80473
80474         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
80475         locale.h, localeconv.  This merges changes from coreutils.
80476
80477         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
80478         It can be removed after the next Autoconf is released.
80479         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
80480         needed.
80481
80482 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80483
80484         * lib/mktime.c: Fix Debian bug 177940
80485         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
80486         (localtime_offset): Now long int, not time_t, because we want it
80487         to be guaranteed to be signed.  All uses changed.
80488         (__mktime_internal): If overflow would occur when adding offset,
80489         don't add it.
80490
80491         Merge 'human' changes from coreutils.  Rewrite to support
80492         locale-specific notations like thousands separators.
80493         * lib/human.c: Simplify authorship notice.
80494         Include human.h immediately after config.h.
80495         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
80496         <limits.h>: Do not include, since human.h does.
80497         (SIZE_MAX, UINTMAX_MAX): New macros.
80498         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
80499         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
80500         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
80501         (power_letter): Renamed from suffixes.
80502         (generate_suffix_backwards): Remove.
80503         (adjust_value): Now takes int style (because of human.h changes)
80504         and long double value (for greater precision on some platforms).
80505         (group_number): New function.
80506         (human_readable): Use it.  Use integer options, not enum.
80507         Put the options before the sizes in the arg list.
80508         Support all the new options.
80509         The old human_readable function has been removed;
80510         use inttostr.h instead.
80511         (human_readable, default_block_size, humblock):
80512         Use uintmax_t, not int, for block sizes.
80513         (human_readable_inexact, block_size_types): Remove.
80514         (block_size_opts): New constant.
80515         (human_options): Renamed from human_block_size, with new signature
80516         that allows block sizes up to UINTMAX_MAX.  All callers changed.
80517         * lib/human.h: Add copyright and authorship notice.
80518         Include <limits.h> and <stdbool.h> unconditionally.
80519         (PARAMS): Remove.  All uses removed.
80520         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
80521         (enum human_inexact_style): Remove tag; now a nameless enum.
80522         (human_floor, human_ceiling, human_round_to_even): Now have
80523         values 2, 0, 1 rather than -1, 1, 0.
80524         (human_group_digits, human_suppress_point_zero, human_autoscale,
80525         human_base_1024, human_SI, human_B): New constants.
80526         (human_readable_inexact, human_block_size): Remove.
80527         (human_readable): Size args are now uintmax_t, not int.
80528         (human_options): New decl.
80529
80530         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
80531         unnecessary now that we assume C89 or better.  This change
80532         imported from coreutils.
80533
80534         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80535         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
80536         in the 2003-05-30 sync from glibc.
80537
80538         .h files should stand alone, but we shouldn't include <sys/types.h>
80539         if we can get away with just <stddef.h>.
80540
80541         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
80542         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
80543         rather than <sys/types.h>, as we merely need size_t.
80544         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
80545         to get size_t.
80546         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
80547         Include <stdio.h>, to get FILE.
80548         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
80549         memcasecmp.h has included <stddef.h> and all we need is size_t.
80550         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
80551         our interface, instead of including <sys/types.h>
80552
80553 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80554
80555         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
80556         now, as glibc mktime is buggy on non-glibc systems.
80557
80558 2003-06-03  Karl Berry  <karl@gnu.org>
80559
80560         * config/config.sub: update from prep.
80561
80562 2003-06-02  Paul Eggert  <eggert@twinsun.com>
80563
80564         [from coreutils]
80565         Fix some minor time-related bugs with POSIX time arguments.
80566         Some valid time stamps were being rejected (notably -1, and
80567         time stamps before 1900 on 64-bit hosts).  And some invalid
80568         time stamps were being accepted, e.g. September 31.
80569
80570         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
80571         that we can return (time_t) -1 successfully.
80572         * lib/posixtm.c: Likewise.
80573         [HAVE_STDBOOL_H]: Include <stdbool.h>.
80574         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
80575         (t): Remove static var.
80576         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
80577         of static var.  All uses changed.
80578         (year): Do not reject years before 1900; they can occur with
80579         64-bit time_t.
80580         (posix_time_parse): Do not check for out-of-range components;
80581         that is now the caller's responsibility, since our checks were
80582         only approximations.
80583         (posixtime): Use mktime to check for out-of-range components,
80584         since it knows them exactly.
80585         If mktime returns (time_t) -1, check whether an error actually occurred
80586         by invoking localtime on -1.
80587         (main) [TEST_POSIXTIME]: Check for input data errors, and report
80588         posixtime failures better.
80589         Improve the test data (in comments only).
80590
80591 2003-06-02  Karl Berry  <karl@gnu.org>
80592
80593         * config/mkinstalldirs (version): new variable.
80594         (--version): new option.
80595         (usage): improve message.
80596
80597 2003-05-30  Karl Berry  <karl@gnu.org>
80598
80599         * lib/mktime.c: update from libc.
80600
80601 2003-05-30  Bruno Haible  <bruno@clisp.org>
80602
80603         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
80604         * config/config.rpath: Upgrade to gettext-0.12.1.
80605
80606 2003-05-30  Bruno Haible  <bruno@clisp.org>
80607
80608         * m4/gettext.m4: Upgrade to gettext-0.12.1.
80609         * m4/nls.m4: New file, from gettext-0.12.1.
80610         * m4/po.m4: New file, from gettext-0.12.1.
80611         * m4/progtest.m4: Upgrade to gettext-0.12.1.
80612
80613 2003-05-30  Bruno Haible  <bruno@clisp.org>
80614
80615         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
80616         * lib/localcharset.h: Likewise.
80617         * lib/localcharset.c: Likewise.
80618
80619 2003-05-29  Karl Berry  <karl@gnu.org>
80620
80621         * config/config.rpath: update from gettext.
80622
80623 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80624
80625         Assume the headers required for C89 freestanding compilers.
80626         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
80627         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
80628         * m4/human.m4 (gl_HUMAN): Likewise.
80629         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
80630         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
80631         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80632         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
80633         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80634         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
80635
80636 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80637
80638         Assume the headers required for C89 freestanding compilers.
80639         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
80640         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
80641         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
80642         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
80643         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
80644         define, since <limits.h> is guaranteed to do that.
80645         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
80646         * lib/exclude.c: Include <stdbool.h> unconditionally.
80647         * lib/tempname.c: Include <stddef.h> unconditionally.
80648         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
80649         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
80650         <stddef.h> does that.
80651         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
80652         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
80653         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
80654         needed.
80655         * lib/xstrtol.c: Likewise.
80656         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
80657         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
80658
80659         * lib/addext.c (addext): Use assignment rather than cast, to avoid
80660         warnings on some platforms.
80661
80662         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80663         arbitrarily.
80664
80665 2003-05-26  Jim Meyering  <jim@meyering.net>
80666
80667         Merge in a change from coreutils:
80668         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
80669         that is guaranteed to be `no'.  Use `no_such_member' to indicate
80670         that condition, rather than `-1' which is slightly misleading.
80671         Change the name of the cache variable to have the gl_ prefix.
80672         Prompted by a patch from Richard Dawe for DJGPP.
80673
80674 2003-05-24  Karl Berry  <karl@gnu.org>
80675
80676         * config/config.guess: update from prep.
80677
80678 2003-05-22  Karl Berry  <karl@gnu.org>
80679
80680         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
80681
80682 2003-05-20  Karl Berry  <karl@gnu.org>
80683
80684         * config/config.guess: update from prep.
80685
80686 2003-05-18  Karl Berry  <karl@gnu.org>
80687
80688         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
80689         might actually be set by the user.
80690
80691         * config/depcomp, install-sh, mdate-sh: update from automake.
80692
80693 2003-05-17  Bruno Haible  <bruno@clisp.org>
80694
80695         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
80696         invalid expansion for AC_EGREP_CPP.
80697         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
80698         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
80699         Suggested by Akim Demaille <akim@epita.fr> in
80700         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
80701
80702 2003-05-12  Jim Meyering  <jim@meyering.net>
80703
80704         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
80705         the space-padded-by-default conversion specifiers, %e, %k, %l.
80706
80707 2003-05-12  Bruno Haible  <bruno@clisp.org>
80708
80709         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
80710         the string is longer than 4 KB.
80711
80712 2003-05-11  Karl Berry  <karl@gnu.org>
80713
80714         * config/config.{guess,sub}: update from prep.
80715
80716 2003-05-09  Bruno Haible  <bruno@clisp.org>
80717
80718         * modules/error: Add m4/strerror_r.m4 to file list.
80719
80720 2003-05-03  Bruno Haible  <bruno@clisp.org>
80721
80722         Upgrade to Unicode-4.0.
80723         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
80724         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
80725         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
80726         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
80727         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
80728         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
80729         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
80730         Change width of U+E0100..U+E01EF from 1 to 0.
80731
80732 2003-04-25  Jim Meyering  <jim@meyering.net>
80733
80734         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
80735         of type size_t, not int.
80736
80737 2003-04-25  Bruno Haible  <bruno@clisp.org>
80738
80739         * lib/copy-file.c: Include <stddef.h>, for size_t.
80740
80741 2003-04-21  Paul Eggert  <eggert@twinsun.com>
80742
80743         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
80744         code which expansion is under static control.  Patch imported from
80745         Akim Demaille's patch to Bison; see
80746         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
80747
80748 2003-04-14  Bruno Haible  <bruno@clisp.org>
80749
80750         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
80751
80752 2003-04-11  Jim Meyering  <jim@meyering.net>
80753
80754         Merge changes from Coreutils.
80755
80756         2003-03-22  Jim Meyering  <jim@meyering.net>
80757
80758         * lib/strftime.c (widen): Cast alloca return value to proper type.
80759
80760         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
80761
80762         From GNU libc.
80763         * lib/strftime.c (my_strftime): Handle very large width
80764         specifications for numeric values correctly.  Improve checks for
80765         overflow.
80766
80767         2003-01-19  Jim Meyering  <jim@meyering.net>
80768
80769         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
80770         definitions.
80771         (nl_get_alt_digit) [! defined my_strftime]: Define.
80772         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
80773         _nl_get_alt_digit and _nl_get_walt_digit.
80774
80775         * lib/strftime.c (my_strftime): Merge in locale-related changes from
80776         libc. These changes have no effect outside of _LIBC.
80777
80778 2003-04-10  Bruno Haible  <bruno@clisp.org>
80779
80780         * modules/findprog: New file.
80781         * MODULES.html.sh (func_all_modules): Add it.
80782
80783 2003-04-10  Bruno Haible  <bruno@clisp.org>
80784
80785         * m4/findprog.m4: New file.
80786         * m4/eaccess.m4: New file.
80787
80788 2003-04-10  Bruno Haible  <bruno@clisp.org>
80789
80790         * lib/findprog.h: New file, from GNU gettext.
80791         * lib/findprog.c: New file, from GNU gettext.
80792
80793 2003-04-05  Jim Meyering  <jim@meyering.net>
80794
80795         Merge changes from Coreutils.
80796
80797         * lib/exclude.h (PARAMS): Remove definition and uses.
80798         * lib/exclude.c: Remove uses of `PARAMS'.
80799
80800         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
80801         Add test-cases for DOS filenames. Declare program_name.
80802         (main): Set up program_name.  Patch by Rich Dawe.
80803
80804         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80805         error from mntctl.
80806         Use mntctl's return value to drive the entry-processing loop, since
80807         we can't rely on the value of the vmt_length member in the last
80808         entry.  On some systems doing so could result in exhausting
80809         virtual memory.  Based in part on a patch from Mike Jetzer.
80810
80811 2003-04-04  Bruno Haible  <bruno@clisp.org>
80812
80813         * modules/linebreak: New file.
80814         * MODULES.html.sh (func_all_modules): Add it.
80815
80816 2003-04-04  Bruno Haible  <bruno@clisp.org>
80817
80818         * m4/linebreak.m4: New file.
80819
80820 2003-04-04  Bruno Haible  <bruno@clisp.org>
80821
80822         * lib/linebreak.h: New file, from GNU gettext.
80823         * lib/linebreak.c: New file, from GNU gettext with slight
80824         modifications.
80825         * lib/lbrkprop.h: New file, from GNU gettext.
80826
80827 2003-04-03  Bruno Haible  <bruno@clisp.org>
80828
80829         * modules/utf8-ucs4: New file.
80830         * modules/utf16-ucs4: New file.
80831         * modules/ucs4-utf8: New file.
80832         * modules/ucs4-utf16: New file.
80833         * MODULES.html.sh (func_all_modules): Add them.
80834
80835 2003-04-03  Bruno Haible  <bruno@clisp.org>
80836
80837         * m4/utf-ucs4.m4: New file.
80838         * m4/ucs4-utf.m4: New file.
80839
80840 2003-04-03  Bruno Haible  <bruno@clisp.org>
80841
80842         * lib/utf8-ucs4.h: New file, from GNU gettext.
80843         * lib/utf16-ucs4.h: New file, from GNU gettext.
80844         * lib/ucs4-utf8.h: New file, from GNU gettext.
80845         * lib/ucs4-utf16.h: New file, from GNU gettext.
80846
80847 2003-04-02  Bruno Haible  <bruno@clisp.org>
80848
80849         * modules/binary-io: New file.
80850         * MODULES.html.sh (func_all_modules): Add it.
80851
80852 2003-04-02  Bruno Haible  <bruno@clisp.org>
80853
80854         * lib/binary-io.h: New file, from GNU gettext.
80855
80856 2003-04-01  Bruno Haible  <bruno@clisp.org>
80857
80858         * modules/pathname: New file.
80859         * MODULES.html.sh (func_all_modules): Add it.
80860
80861 2003-04-01  Bruno Haible  <bruno@clisp.org>
80862
80863         * lib/pathname.h: New file, from GNU gettext.
80864         * lib/concatpath.c: New file, from GNU gettext.
80865
80866 2003-03-30  Bruno Haible  <bruno@clisp.org>
80867
80868         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
80869
80870 2003-03-30  Bruno Haible  <bruno@clisp.org>
80871
80872         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
80873         function chown() doesn't exist.
80874
80875 2003-03-28  Bruno Haible  <bruno@clisp.org>
80876
80877         * modules/copy-file: New file.
80878         * MODULES.html.sh (func_all_modules): Add it.
80879
80880 2003-03-28  Bruno Haible  <bruno@clisp.org>
80881
80882         * m4/copy-file.m4: New file.
80883
80884 2003-03-28  Bruno Haible  <bruno@clisp.org>
80885
80886         * lib/copy-file.h: New file, from GNU gettext.
80887         * lib/copy-file.c: New file, from GNU gettext.
80888
80889 2003-03-18  Jim Meyering  <jim@meyering.net>
80890
80891         * lib/quote.c (quote_n): Fix typo in comment.
80892
80893 2003-03-18  Bruno Haible  <bruno@clisp.org>
80894
80895         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
80896         checking.
80897         * m4/onceonly_2_57.m4: Likewise.
80898
80899 2003-03-17  Bruno Haible  <bruno@clisp.org>
80900
80901         * m4/onceonly.m4: Require autoconf 2.54 or newer.
80902         (m4_quote): Remove macro.
80903         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
80904
80905 2003-03-14  Jim Meyering  <jim@meyering.net>
80906
80907         Merge changes from Coreutils.
80908         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
80909         to be const, in order to avoid warnings.
80910         (obstack_room): Likewise.
80911         (obstack_empty_p): Likewise.
80912
80913 2003-03-14  Bruno Haible  <bruno@clisp.org>
80914
80915         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
80916         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
80917
80918 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80919
80920         Merge changes from Bison.
80921         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
80922         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
80923         when compiling Bison 1.875's `bitset bset = obstack_alloc
80924         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
80925         * lib/hash.c: Include <stdbool.h> unconditionally.
80926
80927 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80928
80929         * m4/onceonly.m4 (m4_quote): New macro.
80930         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
80931         Quote AC_FOREACH variable-expansions properly.
80932
80933 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80934
80935         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
80936
80937 2003-03-09  Paul Eggert  <eggert@twinsun.com>
80938
80939         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
80940         Reported by Bruce Becker; see:
80941         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
80942
80943 2003-03-03  Paul Eggert  <eggert@twinsun.com>
80944             Bruno Haible  <bruno@clisp.org>
80945
80946         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
80947         Reported by John Hughes, see
80948         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
80949
80950 2003-02-20  Bruno Haible  <bruno@clisp.org>
80951
80952         * MODULES.html.sh (func_all_modules): Add poll.
80953
80954 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80955
80956         * modules/poll: New file.
80957
80958 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80959
80960         * lib/poll_.h: New file.
80961         * lib/poll.c: New file.
80962
80963 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80964
80965         * m4/poll.m4: New file.
80966
80967 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80968
80969         * modules/mathl: New file.
80970
80971 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80972
80973         * lib/mathl.h: New file.
80974         * lib/acosl.c: New file.
80975         * lib/asinl.c: New file.
80976         * lib/atanl.c: New file.
80977         * lib/ceill.c: New file.
80978         * lib/cosl.c: New file.
80979         * lib/expl.c: New file.
80980         * lib/floorl.c: New file.
80981         * lib/frexpl.c: New file.
80982         * lib/ldexpl.c: New file.
80983         * lib/logl.c: New file.
80984         * lib/sincosl.c: New file.
80985         * lib/sinl.c: New file.
80986         * lib/sqrtl.c: New file.
80987         * lib/tanl.c: New file.
80988         * lib/trigl.c: New file.
80989         * lib/trigl.h: New file.
80990
80991 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80992
80993         * m4/mathl.m4: New file.
80994
80995 2003-02-18  Bruno Haible  <bruno@clisp.org>
80996
80997         * MODULES.html.sh (func_all_modules): Add mathl.
80998
80999 2003-02-17  Bruno Haible  <bruno@clisp.org>
81000
81001         * modules/mkdtemp: New module.
81002         * MODULES.html.sh (func_all_modules): Add it.
81003
81004 2003-02-17  Bruno Haible  <bruno@clisp.org>
81005
81006         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
81007
81008 2003-02-17  Bruno Haible  <bruno@clisp.org>
81009
81010         * lib/mkdtemp.h: New file, from GNU gettext.
81011         * lib/mkdtemp.c: New file, from GNU gettext.
81012
81013 2003-02-02  Jim Meyering  <jim@meyering.net>
81014
81015         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
81016         e.g. glibc-2.2.93.
81017
81018 2003-01-31  Bruno Haible  <bruno@clisp.org>
81019
81020         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
81021         'rpl_rename'.
81022         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
81023         'rpl_strnlen'.
81024         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
81025         'rpl_strtod'.
81026         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
81027         'rpl_utime'.
81028
81029 2003-01-31  Bruno Haible  <bruno@clisp.org>
81030
81031         * lib/rename.c: #undef rename before defining rpl_rename.
81032         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
81033
81034 2003-01-30  Bruno Haible  <bruno@clisp.org>
81035
81036         * modules/vasnprintf, modules/vasprintf: New modules.
81037         * MODULES.html.sh (func_all_modules): Add them.
81038
81039 2003-01-30  Bruno Haible  <bruno@clisp.org>
81040
81041         * m4/signed.m4: New file, from GNU gettext.
81042         * m4/longdouble.m4: New file, from GNU gettext.
81043         * m4/wchar_t.m4: New file, from GNU gettext.
81044         * m4/wint_t.m4: New file, from GNU gettext.
81045         * m4/vasnprintf.m4: New file.
81046         * m4/vasprintf.m4: New file.
81047
81048 2003-01-30  Bruno Haible  <bruno@clisp.org>
81049
81050         * lib/printf-args.h: New file, from GNU gettext.
81051         * lib/printf-args.c: New file, from GNU gettext.
81052         * lib/printf-parse.h: New file, from GNU gettext.
81053         * lib/printf-parse.c: New file, from GNU gettext.
81054         * lib/vasnprintf.h: New file, from GNU gettext.
81055         * lib/vasnprintf.c: New file, from GNU gettext.
81056         * lib/asnprintf.c: New file, from GNU gettext.
81057         * lib/vasprintf.h: New file, from GNU gettext with modifications.
81058         * lib/vasprintf.c: New file, from GNU gettext.
81059         * lib/asprintf.c: New file, from GNU gettext.
81060
81061 2003-01-29  Bruno Haible  <bruno@clisp.org>
81062
81063         * modules/stpncpy: New module.
81064         * MODULES.html.sh (func_all_modules): Add it.
81065
81066 2003-01-29  Bruno Haible  <bruno@clisp.org>
81067
81068         * m4/stpncpy.m4: New file.
81069
81070 2003-01-29  Bruno Haible  <bruno@clisp.org>
81071
81072         * lib/stpncpy.h: New file, from GNU gettext with modifications.
81073         * lib/stpncpy.c: New file, from GNU gettext with modifications.
81074
81075 2003-01-28  Bruno Haible  <bruno@clisp.org>
81076
81077         * modules/c-ctype: New module.
81078         * MODULES.html.sh (func_all_modules): Add it.
81079
81080 2003-01-28  Bruno Haible  <bruno@clisp.org>
81081
81082         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
81083         Paul Eggert.
81084         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
81085         Paul Eggert.
81086
81087 2003-01-27  Bruno Haible  <bruno@clisp.org>
81088
81089         * modules/xsetenv: New module.
81090         * MODULES.html.sh (func_all_modules): Add it.
81091
81092 2003-01-27  Bruno Haible  <bruno@clisp.org>
81093
81094         * lib/xsetenv.h: New file, from GNU gettext.
81095         * lib/xsetenv.c: New file, from GNU gettext.
81096
81097 2003-01-23  Jim Meyering  <jim@meyering.net>
81098
81099         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
81100         from working on systems without dirfd (at least Irix and OSF1/Tru64).
81101
81102 2003-01-23  Bruno Haible  <bruno@clisp.org>
81103
81104         * modules/minmax: New module.
81105         * MODULES.html.sh (func_all_modules): Add it.
81106
81107 2003-01-23  Bruno Haible  <bruno@clisp.org>
81108
81109         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
81110         Eggert.
81111
81112 2003-01-22  Bruno Haible  <bruno@clisp.org>
81113
81114         * modules/exit: New module.
81115         * MODULES.html.sh (func_all_modules): Add it.
81116
81117 2003-01-22  Bruno Haible  <bruno@clisp.org>
81118
81119         * lib/exit.h: New file, from GNU gettext.
81120
81121 2003-01-19  Bruno Haible  <bruno@clisp.org>
81122
81123         * gnulib-tool: Recognize option --extract-maintainer.
81124         (func_get_maintainer): New function.
81125         * modules/*: Add Maintainer entry.
81126
81127 2003-01-16  Jim Meyering  <jim@meyering.net>
81128
81129         * m4/regex.m4: The `regex' struct is both input and output.
81130         Initialize it before each use.  Patch by Tim Waugh.
81131
81132 2003-01-16  Bruno Haible  <bruno@clisp.org>
81133
81134         * MODULES.html.sh: Add a table of contents. Add the module name as
81135         leftmost column. Add hyperlinks.
81136
81137 2003-01-15  Bruno Haible  <bruno@clisp.org>
81138
81139         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
81140
81141 2003-01-15  Bruno Haible  <bruno@clisp.org>
81142
81143         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
81144         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
81145         suffix.
81146
81147 2003-01-15  Bruno Haible  <bruno@clisp.org>
81148
81149         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
81150
81151 2003-01-15  Bruno Haible  <bruno@clisp.org>
81152
81153         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
81154         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
81155
81156 2003-01-14  Jim Meyering  <jim@meyering.net>
81157
81158         * lib/same.c (same_name): Tweak a comment.
81159
81160 2003-01-14  Bruno Haible  <bruno@clisp.org>
81161
81162         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
81163         when a string comparison is sufficient.
81164
81165 2003-01-14  Bruno Haible  <bruno@clisp.org>
81166
81167         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
81168         'unsigned int'.
81169
81170 2003-01-14  Bruno Haible  <bruno@clisp.org>
81171
81172         * lib/hash-pjw.c: Add comment about low quality of this function.
81173
81174 2003-01-13  Bruno Haible  <bruno@clisp.org>
81175
81176         * modules/stpcpy: Distribute lib/stpcpy.h.
81177         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
81178
81179 2003-01-13  Bruno Haible  <bruno@clisp.org>
81180
81181         * modules/*: Add a description.
81182         * modules/strpbrk: Fix Makefile.am snippet.
81183         * modules/strtoimax: Fix dependencies.
81184         * modules/strtoumax: Likewise.
81185
81186 2003-01-13  Bruno Haible  <bruno@clisp.org>
81187
81188         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
81189         * modules/alloca (Makefile.am): All object files depend on alloca.h.
81190         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
81191
81192 2003-01-13  Bruno Haible  <bruno@clisp.org>
81193
81194         * gnulib-tool (func_create_testdir): Store config/* files in the main
81195         directory.
81196         * config.rpath: Move to ...
81197         * config/config.rpath: ... here.
81198         * modules/gettext: Contains config/config.rpath, not config.rpath.
81199         * modules/iconv: Likewise.
81200
81201 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81202
81203         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81204         to avoid collisions with libcurses and libreadline.
81205
81206         * m4/getstr.m4: Remove.
81207         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
81208
81209 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81210
81211         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81212         to avoid collisions with libcurses and libreadline.
81213
81214         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
81215         * lib/getstr.h, getstr.c: Remove.
81216         * lib/getline.c: Include "getline.h", to check interface.
81217         Move body of old getstr.c here: this defines MIN_CHUNK and
81218         declares getdelim2, which is renamed from getstr.
81219         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
81220
81221         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
81222         All uses changed.
81223         * lib/linebuffer.h: Likewise.
81224         (readline): Remove backward-compatibility macro.
81225
81226 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81227
81228         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81229         to avoid collisions with libcurses and libreadline.
81230         * getstr: Remove.
81231         * MODULES.html.sh: Remove getstr.
81232         * modules/getline: Depend on unlocked-io, not getstr.
81233
81234 2003-01-12  Jim Meyering  <jim@meyering.net>
81235
81236         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
81237
81238 2003-01-10  Bruno Haible  <bruno@clisp.org>
81239
81240         * modules/alloca: Change Makefile.am requirements. Simplify Include
81241         requirements. Add lib/alloca_.h to file list.
81242
81243 2003-01-10  Bruno Haible  <bruno@clisp.org>
81244
81245         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
81246
81247 2003-01-10  Bruno Haible  <bruno@clisp.org>
81248
81249         * lib/alloca_.h: New file.
81250         * lib/getdate.y: Unconditionally include alloca.h.
81251         * lib/makepath.c: Likewise.
81252         * lib/setenv.c: Likewise.
81253         * lib/userspec.c: Likewise.
81254
81255 2003-01-09  Karl Berry  <karl@gnu.org>
81256
81257         * MODULES.html.sh: include `dirname $0` in PATH, to find
81258         gnulib-tool.
81259
81260 2003-01-09  Bruno Haible  <bruno@clisp.org>
81261
81262         * modules/stdbool: Change configure.ac, Makefile.am requirements.
81263         Simplify Include requirements. Add lib/stdbool.h.in to file list.
81264
81265 2003-01-09  Bruno Haible  <bruno@clisp.org>
81266
81267         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
81268
81269 2003-01-09  Bruno Haible  <bruno@clisp.org>
81270
81271         * lib/stdbool.h.in: New file.
81272
81273 2003-01-09  Bruno Haible  <bruno@clisp.org>
81274
81275         * gnulib-tool (func_all_modules): Ignore files ending in ~.
81276         * MODULES.html.sh: Likewise.
81277
81278 2003-01-08  Jim Meyering  <jim@meyering.net>
81279
81280         * lib/full-write.c: Undefine and define-away `const' after inclusion
81281         of errno.h, not before.  Suggestion from Bruno Haible.
81282
81283 2003-01-08  Bruno Haible  <bruno@clisp.org>
81284
81285         * modules/full-read: Depend on full-write.
81286
81287 2003-01-08  Bruno Haible  <bruno@clisp.org>
81288
81289         * lib/safe-read.c: Include specification header first, to ensure its
81290         selfcontainedness.
81291         * lib/full-write.c: Likewise.
81292
81293 2003-01-07  Jim Meyering  <jim@meyering.net>
81294
81295         * lib/full-write.c: Rework so that it may serve to define full_read,
81296         too.
81297         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
81298
81299 2003-01-07  Bruno Haible  <bruno@clisp.org>
81300
81301         * lib/strtoimax.c: Include <stdint.h> as an alternative to
81302         <inttypes.h>.
81303         * lib/xstrtol.h: Likewise.
81304         * lib/xstrtoimax.c: Likewise.
81305         * lib/xstrtoumax.c: Likewise.
81306         * lib/human.h: Likewise.
81307
81308         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
81309         on systems that have <inttypes.h> but not <stdint.h>.
81310
81311 2003-01-07  Bruno Haible  <bruno@clisp.org>
81312
81313         * MODULES.html.sh: Add copyright notice.
81314         (missed_files): Omit CVS directory entries.
81315         (func_module): Make it work with sed-3.02.
81316         * MODULES.txt: Remove file.
81317
81318 2003-01-06  Jim Meyering  <jim@meyering.net>
81319
81320         * lib/version-etc.c: Update year in translatable copyright string.
81321
81322 2003-01-03  Karl Berry  <karl@gnu.org>
81323
81324         * config/config.{guess,sub}: update from prep.
81325
81326 2003-01-02  Karl Berry  <karl@gnu.org>
81327
81328         * doc/COPYING.DOC: belatedly updated to 1.2.
81329
81330 2003-01-01  Karl Berry  <karl@gnu.org>
81331
81332         * gnulib-tool (func_verify_module): report module name $module in
81333         error message, not $1.
81334         * gnulib-tool (create-testdir): don't complain if destdir couldn't
81335         be created, only if it doesn't exist.
81336         * gnulib-tool (last_checkin_date): don't expand the $Date here.
81337
81338 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81339
81340         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
81341
81342 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81343
81344         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
81345         memcmp if strcoll doesn't work.
81346
81347 2002-12-31  Bruno Haible  <bruno@clisp.org>
81348
81349         * lib/utime.c (utime_null): No need to call ftruncate if the file was
81350         nonempty.
81351
81352 2002-12-31  Bruno Haible  <bruno@clisp.org>
81353
81354         * lib/memcoll.c (STRCOLL): New macro.
81355         (memcoll): Use it.
81356
81357 2002-12-31  Bruno Haible  <bruno@clisp.org>
81358
81359         * lib/localcharset.h: New file.
81360         * lib/localcharset.c: Include it.
81361         * lib/unicodeio.c: Likewise.
81362
81363 2002-12-31  Bruno Haible  <bruno@clisp.org>
81364
81365         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
81366         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
81367
81368 2002-12-31  Bruno Haible  <bruno@clisp.org>
81369
81370         * lib/getline.h: Include <stddef.h>, for size_t.
81371
81372         * lib/unicodeio.h: Include <stddef.h>, for size_t.
81373         * lib/unicodeio.c: Don't include <stddef.h>.
81374
81375 2002-12-31  Bruno Haible  <bruno@clisp.org>
81376
81377         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
81378         HAVE_TM_ZONE.
81379
81380 2002-12-24  Karl Berry  <karl@gnu.org>
81381
81382         * config/config.guess: update from prep.
81383
81384 2002-12-24  Bruno Haible  <bruno@clisp.org>
81385
81386         General infrasructure.
81387         * m4/README: Rewritten.
81388         * m4/onceonly.m4: New file.
81389         * m4/onceonly_2_57.m4: New file.
81390
81391         Module atexit.
81392         * m4/atexit.m4: New file.
81393
81394         Module strtod.
81395         * m4/strtod.m4: New file.
81396
81397         Module strtol.
81398         * m4/strtol.m4: New file.
81399
81400         Module strtoul.
81401         * m4/strtoul.m4: New file.
81402
81403         Module memchr.
81404         * m4/memchr.m4: New file.
81405
81406         Module memcmp.
81407         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
81408         (jm_FUNC_MEMCMP): Invoke it.
81409
81410         Module memcpy.
81411         * m4/memcpy.m4: New file.
81412
81413         Module memmove.
81414         * m4/memmove.m4: New file.
81415
81416         Module memset.
81417         * m4/memset.m4: New file.
81418
81419         Module strcspn.
81420         * m4/strcspn.m4: New file.
81421
81422         Module strpbrk.
81423         * m4/strpbrk.m4: New file.
81424
81425         Module strstr.
81426         * m4/strstr.m4: New file.
81427
81428         Module strerror.
81429         * m4/strerror.m4: New file.
81430
81431         Module mktime.
81432         * m4/mktime.m4: Renamed from jm-mktime.m4.
81433         (gl_PREREQ_MKTIME): New macro.
81434         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
81435
81436         Module malloc.
81437         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
81438         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
81439         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
81440
81441         Module realloc.
81442         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
81443         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
81444         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
81445
81446         Module strftime.
81447         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
81448         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
81449         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
81450         gl_TM_GMTOFF.
81451         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
81452
81453         Module xalloc.
81454         * m4/xalloc.m4: New file.
81455
81456         Module alloca.
81457         * m4/alloca.m4: New file.
81458
81459         Module putenv.
81460         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
81461         (jm_FUNC_PUTENV): Invoke it.
81462
81463         Module setenv.
81464         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
81465         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
81466         when invoked twice.
81467         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
81468         gt_FUNC_SETENV.
81469
81470         Module memrchr.
81471         * m4/memrchr.m4: New file.
81472
81473         Module stpcpy.
81474         * m4/stpcpy.m4: New file.
81475
81476         Module strcase.
81477         * m4/strcase.m4: New file.
81478
81479         Module strdup.
81480         * m4/strdup.m4: New file.
81481
81482         Module strnlen.
81483         * m4/strnlen.m4: New file.
81484
81485         Module strndup.
81486         * m4/strndup.m4: New file.
81487
81488         Module xstrtod.
81489         * m4/xstrtod.m4: New file.
81490
81491         Module xstrtol.
81492         * m4/xstrtol.m4: New file.
81493
81494         Module getdate.
81495         * m4/getdate.m4: New file.
81496
81497         Module unlocked-io.
81498         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
81499         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
81500         * m4/jm-glibc-io.m4n: Remove file.
81501
81502         Module long-options.
81503         * m4/long-options.m4: New file.
81504
81505         Module md5.
81506         * m4/md5.m4: New file.
81507
81508         Module sha.
81509         * m4/sha.m4: New file.
81510
81511         Module getstr.
81512         * m4/getstr.m4: New file.
81513
81514         Module getline.
81515         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
81516         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
81517         <sys/types.h>, for size_t. Use the function name gnu_getline, not
81518         simply getline. Infoke gl_PREREQ_GETLINE.
81519
81520         Module obstack.
81521         * m4/obstack.m4: New file.
81522
81523         Module hash.
81524         * m4/hash.m4: New file.
81525
81526         Module readtokens.
81527         * m4/readtokens.m4: New file.
81528
81529         Module strverscmp.
81530         * m4/strverscmp.m4: New file.
81531
81532         Module stdbool.
81533         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
81534         OSF/1.
81535
81536         Module strtoll.
81537         * m4/strtoll.m4: New file.
81538
81539         Module strtoull.
81540         * m4/strtoull.m4: New file.
81541
81542         Module strtoimax.
81543         * m4/strtoimax.m4: New file.
81544
81545         Module strtoumax.
81546         * m4/strtoumax.m4: New file.
81547
81548         Module xstrtoimax.
81549         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
81550         jm_AC_PREREQ_XSTRTOIMAX.
81551         Moved the strtol prerequisites to strtol.m4.
81552         Moved the strtoll prerequisites to strtoll.m4.
81553         Moved the strtoimax prerequisites to strtoimax.m4.
81554
81555         Module xstrtoumax.
81556         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
81557         jm_AC_PREREQ_XSTRTOUMAX.
81558         Moved the strtoul prerequisites to strtoul.m4.
81559         Moved the strtoull prerequisites to strtoull.m4.
81560         Moved the strtoumax prerequisites to strtoumax.m4.
81561
81562         Module chown.
81563         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
81564         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
81565
81566         Module dup2.
81567         * m4/dup2.m4: New file.
81568
81569         Module ftruncate.
81570         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
81571         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
81572
81573         Module getgroups.
81574         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
81575         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
81576
81577         Module gettimeofday.
81578         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
81579         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
81580         gl_PREREQ_GETTIMEOFDAY.
81581
81582         Module mkdir.
81583         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
81584         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
81585
81586         Module mkstemp.
81587         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
81588         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
81589         jm_AC_TYPE_UINTMAX_T.
81590         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
81591
81592         Module stat.
81593         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
81594         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
81595
81596         Module lstat.
81597         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
81598         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
81599
81600         Module timespec.
81601         * m4/timespec.m4 (gl_TIMESPEC): New macro.
81602         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
81603         * m4/st_mtim.m4: Indentation.
81604
81605         Module nanosleep.
81606         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
81607         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
81608         gl_PREREQ_NANOSLEEP.
81609
81610         Module regex.
81611         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
81612         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
81613         (gl_REGEX): New macro.
81614
81615         Module rename.
81616         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
81617         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
81618
81619         Module rmdir.
81620         * m4/rmdir.m4: New file.
81621
81622         Module utime.
81623         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
81624         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
81625         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
81626
81627         Module dirname.
81628         * m4/dirname.m4: New file.
81629
81630         Module getopt.
81631         * m4/getopt.m4: New file.
81632
81633         Module unistd-safer.
81634         * m4/unistd-safer.m4: New file.
81635
81636         Module fnmatch.
81637         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
81638         declaration.
81639         (gl_PREREQ_FNMATCH_EXTRA): New macro.
81640         (gl_FUNC_FNMATCH_POSIX): New macro.
81641         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
81642         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
81643         simply fnmatch.
81644
81645         Module exclude.
81646         * m4/exclude.m4: New file.
81647
81648         Module human.
81649         * m4/human.m4: New file.
81650
81651         Module acl.
81652         * m4/acl.m4: Nop.
81653
81654         Module backupfile.
81655         * m4/backupfile.m4: New file.
81656         * m4/d-ino.m4: Indentation.
81657
81658         Module fsusage.
81659         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
81660         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
81661         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
81662
81663         Module dirfd.
81664         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
81665         requirements.
81666
81667         Module euidaccess.
81668         * m4/euidaccess.m4: New file.
81669
81670         Module file-type.
81671         * m4/file-type.m4: New file.
81672
81673         Module fileblocks.
81674         * m4/fileblocks.m4: New file.
81675
81676         Module filemode.
81677         * m4/filemode.m4: New file.
81678
81679         Module isdir.
81680         * m4/isdir.m4: New file.
81681
81682         Module lchown.
81683         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
81684         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
81685
81686         Module makepath.
81687         * m4/makepath.m4: New file.
81688
81689         Module modechange.
81690         * m4/modechange.m4: New file.
81691
81692         Module mountlist.
81693         * m4/mountlist.m4: New file.
81694         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
81695         Indentation.
81696
81697         Module path-concat.
81698         * m4/path-concat.m4: New file.
81699
81700         Module pathmax.
81701         * m4/pathmax.m4: New file.
81702
81703         Module same.
81704         * m4/same.m4: New file.
81705
81706         Module save-cwd.
81707         * m4/save-cwd.m4: New file.
81708
81709         Module savedir.
81710         * m4/savedir.m4: New file.
81711
81712         Module xgetcwd.
81713         * m4/xgetcwd.m4: New file.
81714         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
81715
81716         Module xreadlink.
81717         * m4/xreadlink.m4: New file.
81718
81719         Module safe-read.
81720         * m4/safe-read.m4: New file.
81721
81722         Module safe-write.
81723         * m4/safe-write.m4: New file.
81724
81725         Module closeout.
81726         * m4/closeout.m4: New file.
81727
81728         Module stdio-safer.
81729         * m4/stdio-safer.m4: New file.
81730
81731         Module getpass.
81732         * m4/getpass.m4: New file.
81733
81734         Module getugroups.
81735         * m4/getugroups.m4: New file.
81736
81737         Module group-member.
81738         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
81739         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
81740
81741         Module idcache.
81742         * m4/idcache.m4: New file.
81743
81744         Module userspec.
81745         * m4/userspec.m4: New file.
81746
81747         Module gettime.
81748         * m4/clock_time.m4: New file.
81749         * m4/gettime.m4: New file.
81750
81751         Module settime.
81752         * m4/settime.m4: New file.
81753
81754         Module posixtm.
81755         * m4/posixtm.m4: New file.
81756
81757         Module gethostname.
81758         * m4/gethostname.m4: New file.
81759
81760         Module canon-host.
81761         * m4/canon-host.m4: New file.
81762
81763         Module gettext.
81764         * m4/codeset.m4: New file, from gettext-0.11.5.
81765         * m4/gettext.m4: New file, from gettext-0.11.5.
81766         * m4/glibc21.m4: New file, from gettext-0.11.5.
81767         * m4/iconv.m4: New file, from gettext-0.11.5.
81768         * m4/intdiv0.m4: New file, from gettext-0.11.5.
81769         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
81770         * m4/inttypes.m4: New file, from gettext-0.11.5.
81771         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
81772         * m4/isc-posix.m4: New file, from gettext-0.11.5.
81773         * m4/lcmessage.m4: New file, from gettext-0.11.5.
81774         * m4/lib-ld.m4: New file, from gettext-0.11.5.
81775         * m4/lib-link.m4: New file, from gettext-0.11.5.
81776         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
81777         * m4/progtest.m4: New file, from gettext-0.11.5.
81778         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
81779         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
81780         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
81781
81782         Module localcharset.
81783         * m4/localcharset.m4: New file.
81784
81785         Module hard-locale.
81786         * m4/hard-locale.m4: New file.
81787
81788         Module mbswidth.
81789         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
81790         onceonly macros.
81791         * m4/mbrtowc.m4: Add comment.
81792
81793         Module memcasecmp.
81794         * m4/memcasecmp.m4: New file.
81795
81796         Module memcoll.
81797         * m4/memcoll.m4: New file.
81798
81799         Module unicodeio.
81800         * m4/unicodeio.m4: New file.
81801
81802         Module rpmatch.
81803         * m4/rpmatch.m4: New file.
81804
81805         Module yesno.
81806         * m4/yesno.m4: New file.
81807
81808         Module exitfail.
81809         * m4/exitfail.m4: New file.
81810
81811         Module c-stack.
81812         * m4/c-stack.m4 (gl_C_STACK): New macro.
81813         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
81814
81815         Module error.
81816         * m4/error.m4 (gl_ERROR): New macro.
81817         (jm_PREREQ_ERROR): Use onceonly macros.
81818
81819         Module fatal.
81820         * m4/fatal.m4: New file.
81821
81822         Module getloadavg.
81823         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
81824         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
81825
81826         Module getpagesize.
81827         * m4/getpagesize.m4: New file.
81828
81829         Module getusershell.
81830         * m4/getusershell.m4: New file.
81831
81832         Module physmem.
81833         * m4/physmem.m4: New file.
81834
81835         Module posixver.
81836         * m4/posixver.m4: New file.
81837
81838         Module quotearg.
81839         * m4/quotearg.m4: New file.
81840
81841         Module quote.
81842         * m4/quote.m4: New file.
81843
81844         Module readutmp.
81845         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
81846
81847         Module sig2str.
81848         * m4/sig2str.m4: New file.
81849
81850         Other.
81851         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
81852         ulonglong.m4.
81853         * m4/intmax_t.m4: New file.
81854         * m4/d-type.m4: Indentation.
81855         * m4/jm-macros.m4: Update.
81856         * m4/prereq.m4 (jm_PREREQ): Update.
81857         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
81858         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
81859         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
81860         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
81861         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
81862         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
81863         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
81864         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
81865         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
81866         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
81867         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
81868         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
81869         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
81870         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
81871         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
81872         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
81873         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
81874         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
81875         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
81876
81877 2002-12-24  Bruno Haible  <bruno@clisp.org>
81878
81879         * MODULES.txt: Update according to m4/ changes.
81880
81881         Module gettext.
81882         * config.rpath: New file, from gettext-0.11.5.
81883
81884         * modules/*: New module descriptions.
81885         * gnulib-tool: New file.
81886         * MODULES.html.sh: New file.
81887
81888 2002-12-21  Karl Berry  <karl@gnu.org>
81889
81890         * doc/fdl.texi: update to version 1.2.
81891
81892 2002-12-19  Karl Berry  <karl@gnu.org>
81893
81894         * config/config.guess: update from prep.
81895
81896 2002-12-18  Bruno Haible  <bruno@clisp.org>
81897
81898         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
81899         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
81900
81901 2002-12-17  Bruno Haible  <bruno@clisp.org>
81902
81903         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
81904         stdlib.h, string.h.
81905
81906 2002-12-17  Bruno Haible  <bruno@clisp.org>
81907
81908         * lib/canon-host.c (strdup): Remove unused declaration.
81909
81910         * lib/fsusage.c: Include full_read.h.
81911         (get_fs_usage): Use full_read instead of safe_read.
81912
81913         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
81914
81915 2002-12-12  Karl Berry  <karl@gnu.org>
81916
81917         * config/config.guess: update from prep.
81918
81919 2002-12-11  Bruno Haible  <bruno@clisp.org>
81920
81921         * m4/setenv.m4: New file, from gettext-0.11.5.
81922
81923 2002-12-11  Bruno Haible  <bruno@clisp.org>
81924
81925         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
81926         not unsetenv().
81927         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
81928         modifications:
81929
81930         2002-12-11  Bruno Haible  <bruno@clisp.org>
81931
81932                 * setenv.c (alloca): Fall back to malloc.
81933                 (freea): New macro.
81934                 (setenv): Use freea() to free memory allocated with alloca().
81935
81936         2002-11-13  Bruno Haible  <bruno@clisp.org>
81937
81938                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
81939                 function declarations.
81940                 * unsetenv.c (unsetenv): Likewise.
81941
81942         2002-03-04  Bruno Haible  <bruno@clisp.org>
81943
81944                 Portability to AIX 4.3.3.
81945                 * unsetenv.c: New file, extracted from setenv.c.
81946                 * setenv.c: Move the unsetenv() function to unsetenv.c.
81947
81948         2001-12-20  Bruno Haible  <bruno@clisp.org>
81949
81950                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
81951                 use malloc instead. For SunOS 4.
81952
81953         2001-12-11  Bruno Haible  <bruno@clisp.org>
81954
81955                 * setenv.c: Declare alloca.
81956                 (compar_fn_t): New typedef.
81957                 (KNOWN_VALUE, STORE_VALUE): Use it.
81958
81959         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
81960         setenv.h.
81961
81962 2002-12-10  Paul Eggert  <eggert@twinsun.com>
81963
81964         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
81965         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
81966         Choose values that are less likely to collide with system fnmatch
81967         options.
81968         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
81969         defined (e.g., a pure POSIX system).
81970         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
81971         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
81972
81973 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81974
81975         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81976         a pain in practice to deal with generated m4 files.  This change
81977         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81978
81979         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81980         and jm-glibc-io.m4, as they are no longer a special case.
81981         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81982         kludge and the auto-generation stuff.  Check only whether the
81983         functions are declared, not whether they exist, since older hosts
81984         that don't declare the functions can't use the optimization anyway.
81985
81986 2002-12-06  Jim Meyering  <jim@meyering.net>
81987
81988         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81989
81990         Merge in changes from libc's misc/error.c, in preparation
81991         for the merge of gnulib's changes back into libc.
81992
81993         * lib/error.c (_): Define only if not already defined.
81994         Move definition to follow all #include directives.
81995         Include unlocked-io.h only if !_LIBC.
81996         [_LIBC]: Include <libio/libioP.h>.
81997         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81998         (fflush): Tweak definition to use INTUSE.
81999         (putc): Define.
82000
82001 2002-12-05  Paul Eggert  <eggert@twinsun.com>
82002
82003         * lib/alloca.c [defined emacs]: Include "lisp.h".
82004         (xalloc_die) [defined emacs]: New macro.
82005         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
82006         [! defined emacs]: Include <xalloc.h>.
82007         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
82008         (pointer): Typedef to POINTER_TYPE *.
82009         (malloc): Remove decl; we now always use xmalloc.
82010         (alloca): Use old-style definition, since Emacs needs this.
82011         Check for arithmetic overflow when computing combined size.
82012
82013 2002-12-04  Paul Eggert  <eggert@twinsun.com>
82014
82015         Do not generate unlocked-io.h automatically, since it's easier to
82016         maintain it by hand.
82017
82018         * lib/unlocked-io.h: New file, from GNU diffutils,
82019         but with proper copyright notice and attribution.
82020         * lib/gen-uio: Remove.
82021         * lib/Makefile.am: Add copyright notice.
82022         (libfetish_a_SOURCES): Add unlocked-io.h.
82023         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
82024         (DISTCLEANFILES, io_functions): Remove macros.
82025         (EXTRA_DIST): Remove gen_uio.
82026         (unlocked-io.h): Remove rule.
82027
82028 2002-12-04  Jim Meyering  <jim@meyering.net>
82029
82030         Reflect the fact that stat.c and lstat.c are no longer generated.
82031         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
82032         (DISTCLEANFILES): Likewise.
82033         (EXTRA_DIST): Likewise.
82034         (all_local): Don't depend on stat.c or lstat.c.
82035         (stat.c, lstat.c): Remove rules.
82036         (EXTRA_DIST): Remove xstat.in.
82037
82038         * lib/xstat.in: Remove file.  Contents moved into stat.c.
82039         * lib/stat.c: New file.  Contents mostly from xstat.in.
82040         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
82041         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
82042
82043         * lib/safe-read.c: Rework so that it may serve to define safe_write,
82044         too.
82045         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
82046
82047 2002-12-03  Jim Meyering  <jim@meyering.net>
82048
82049         * lib/safe-read.c, safe-write.c: Change variable names and comments,
82050         but not semantics, to minimize the differences between these two files.
82051         (safe_read): Change comment to mention SAFE_READ_ERROR.
82052
82053         * lib/safe-read.c (IS_EINTR): Define.
82054         (safe_read): Use IS_EINTR in place of in-function cpp directives.
82055
82056 2002-12-02  Jim Meyering  <jim@meyering.net>
82057
82058         * lib/safe-read.c (EINTR): Define.
82059         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82060         (INT_MAX): Provide fallback.
82061         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
82062
82063         * lib/safe-read.h (SAFE_READ_ERROR): Define.
82064
82065 2002-12-02  Bruno Haible  <bruno@clisp.org>
82066
82067         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
82068         Define, taken from safe-read.c.
82069         (INT_MAX): Provide fallback.
82070         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
82071         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
82072
82073         * lib/safe-read.c (EINTR): Remove definition.
82074         (safe_read): Don't use EINTR if it is absent.
82075
82076 2002-12-01  Jim Meyering  <jim@meyering.net>
82077
82078         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
82079         zero.
82080         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
82081
82082 2002-11-27  Paul Eggert  <eggert@twinsun.com>
82083
82084         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
82085         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
82086         with `if (! (value < limit)) abort ();', for readability.
82087
82088 2002-11-26  Karl Berry  <karl@gnu.org>
82089
82090         * lib/strdup.c: copy from libc again, with jim's ok.
82091         * lib/.cppi-disable: re-add strdup.c
82092
82093 2002-11-25  Karl Berry  <karl@gnu.org>
82094
82095         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
82096         instead of "strtol.c".
82097
82098 2002-11-25  Karl Berry  <karl@gnu.org>
82099
82100         * config/install-sh: update from automake for variable quoting, $0 in
82101         error msgs, etc.
82102
82103         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
82104         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
82105         entry.
82106
82107 2002-11-25  Jim Meyering  <jim@meyering.net>
82108
82109         * lib/mktime.c: Sync from libc, now that it has the latest fix.
82110
82111 2002-11-24  Karl Berry  <karl@gnu.org>
82112
82113         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
82114         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
82115
82116 2002-11-24  Jim Meyering  <jim@meyering.net>
82117
82118         Update from coreutils:
82119
82120         * lib/mktime.c: Merge in changes from libc.
82121
82122         Avoid a link-time failure on some Linux systems.
82123         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
82124         (otherwise).
82125         (__mon_yday): Declare with the STATIC attribute.
82126         (__mktime_internal): Likewise.
82127         Based on a report from Greg Schafer.
82128
82129 2002-11-23  Jim Meyering  <jim@meyering.net>
82130
82131         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
82132         Use `unsigned', not `int', as type of index.
82133
82134         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
82135
82136         * lib/fsusage.c: Remove unneeded parentheses around operands of
82137         `defined'.
82138
82139 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82140
82141         * lib/quotearg.h: Allow multiple inclusion by surrounding with
82142         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
82143         so that we can be included first.
82144         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
82145         * lib/quotearg.c: Include quotearg.h immediately after config.h.
82146         No need to include stddef.h or sys/types.h any more.
82147         Surround local include files with "", not "<>".
82148         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
82149         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
82150         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
82151         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
82152         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
82153         (ISPRINT): Remove; no longer needed now that we assume C89.
82154
82155         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
82156         Preserve errno.
82157
82158         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
82159         quotearg_char): Use SIZE_MAX rather than
82160         (size_t) -1 when we are talking about "infinity".
82161
82162         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
82163
82164 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82165
82166         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
82167         hint that one should use `if (! x) abort ();' rather than `assert
82168         (x);', and anyway it's one less thing to worry about configuring.
82169         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
82170         hash_rehash, hash_insert): Use abort rather than assert.
82171
82172 2002-11-22  Bruno Haible  <bruno@clisp.org>
82173
82174         * lib/safe-read.h: Assume C89. Add comments.
82175         (safe_read): Change return type to size_t.
82176         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
82177         byte counts > SSIZE_MAX correctly.
82178         * lib/safe-write.h: New file.
82179         * lib/safe-write.c: New file.
82180         * lib/full-read.h: New file.
82181         * lib/full-read.c: New file.
82182         * lib/full-write.h: Assume C89. Add comments.
82183         * lib/full-write.c: Include safe-write.h.
82184         (full_write): Rewritten to use safe_write.
82185         Suggested by Jim Meyering and Paul Eggert.
82186
82187 2002-11-21  Jim Meyering  <jim@meyering.net>
82188
82189         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
82190
82191         Merge in changes from the coreutils.
82192
82193         2002-09-25  Paul Eggert  <eggert@twinsun.com>
82194         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
82195         <stdint.h>.
82196         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
82197         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
82198         int.  Work more efficiently if X is the same width as uintmax_t.
82199         Do not compare X to -1, to avoid bogus compiler warning.
82200         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
82201         Don't assume that f_frsize and f_bsize are the same type.
82202
82203         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
82204         warning on FreeBSD.
82205
82206         * lib/makepath.c (make_path): Restore umask *before* creating the final
82207         component.
82208         (make_path): Minor reformatting.
82209
82210         * lib/xmalloc.c: Adjust to work with new autoconf macros,
82211         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
82212         HAVE_MALLOC/HAVE_REALLOC.
82213
82214         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
82215         dummy ones.  At least on GNU/Linux systems, `auto' means something
82216         else.
82217         From Michael Stone.
82218
82219 2002-11-21  Bruno Haible  <bruno@clisp.org>
82220
82221         Remove case insensitive option matching.
82222         * lib/argmatch.h (argcasematch): Remove declaration.
82223         (ARGCASEMATCH): Remove macro.
82224         (__xargmatch_internal): Remove case_sensitive argument.
82225         (XARGMATCH): Update.
82226         (XARGCASEMATCH): Remove macro.
82227         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
82228         case_sensitive argument.
82229         (argcasematch): Remove function.
82230         (__xargmatch_internal): Remove case_sensitive argument.
82231         (main): Use XARGMATCH instead of XARGCASEMATCH.
82232
82233         * lib/xmalloc.c: Change compile-time error message. Add comment about
82234         required autoconf version.
82235
82236 2002-11-20  Paul Eggert  <eggert@twinsun.com>
82237
82238         Merge argmatch cleanups from Bison.  Assume C89.
82239
82240         * lib/argmatch.c: Include config.h here, not in argmatch.h.
82241         Include stdlib.h, for EXIT_FAILURE.
82242         Always include <string.h>, since we assume C89.
82243         (EXIT_FAILURE): Remove pre-C89 bug workaround.
82244         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
82245         Include <stddef.h> instead, since it's all we need for size_t.
82246         (PARAMS): Remove.  All uses removed.
82247         (ARRAY_CARDINALITY): Do not bother to #undef.
82248         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
82249         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82250         Remove unnecessary parentheses.
82251         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82252         Insert necessary parentheses.
82253         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
82254         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
82255
82256 2002-11-19  Bruno Haible  <bruno@clisp.org>
82257
82258         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
82259         * lib/mbswidth.h: Include <stddef.h>, for size_t.
82260
82261         * lib/mbswidth.h (PARAMS): Remove macro.
82262         (mbswidth, mbsnwidth): Use ANSI C function declarations.
82263         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
82264
82265         * lib/gcd.h (PARAMS): Remove macro.
82266         (gcd): Use ANSI C function declarations.
82267         * lib/gcd.c (gcd): Likewise.
82268
82269 2002-11-15  Bruno Haible  <bruno@clisp.org>
82270
82271         * lib/strcspn.c: Include <stddef.h>.
82272         (strcspn): Use ANSI C function declaration. Change return type to
82273         size_t. Use NULL.
82274         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
82275         (strpbrk): Use NULL.
82276         * lib/strpbrk.h (PARAMS): Remove macro.
82277         (strpbrk): Use ANSI C function declaration.
82278         * lib/strstr.c: Don't include <sys/types.h>.
82279         * lib/strstr.h (PARAMS): Remove macro.
82280         (strstr): Use ANSI C function declarations.
82281
82282 2002-11-14  Karl Berry  <karl@gnu.org>
82283
82284         * config/mkinstalldirs: `do' on separate line, instead of
82285         `for var; do'.
82286
82287 2002-11-06  Bruno Haible  <bruno@clisp.org>
82288
82289         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
82290         * lib/gcd.c (gcd): Likewise.
82291
82292 2002-11-05  Bruno Haible  <bruno@clisp.org>
82293
82294         * lib/gcd.h: New file, from gettext-0.11.5.
82295         * lib/gcd.c: New file, from gettext-0.11.5.
82296
82297 2002-11-05  Bruno Haible  <bruno@clisp.org>
82298
82299         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82300         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82301         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82302         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82303
82304         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
82305         <libintl.h>.
82306         * lib/makepath.c: Include gettext.h instead of <locale.h> and
82307         <libintl.h>.
82308
82309         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
82310         * lib/human.c: Include gettext.h instead of <libintl.h>.
82311         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
82312         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
82313         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
82314         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
82315         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
82316         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
82317         (textdomain): Remove definition.
82318         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
82319
82320         * lib/long-options.c: Remove include of <libintl.h> and definition of
82321         _.
82322         * lib/same.c: Remove include of <libintl.h> and definition of _.
82323
82324 2002-11-04  Owen Taylor  <otaylor@redhat.com>
82325
82326         * lib/config.charset: A few additions for Solaris.
82327
82328 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82329
82330         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
82331         * lib/localcharset.c (locale_charset): Declare as extern "C".
82332
82333 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82334
82335         * lib/config.charset: msdos in uk_UA uses CP1125.
82336
82337 2002-11-04  Bruno Haible  <bruno@clisp.org>
82338
82339         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
82340         * lib/strcase.h: New file, from GNU gettext-0.11.5.
82341         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
82342         * lib/strstr.h: New file, from GNU gettext-0.11.5.
82343         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
82344
82345 2002-11-04  Bruno Haible  <bruno@clisp.org>
82346
82347         * lib/localcharset.c (locale_charset): Don't return an empty string.
82348
82349 2002-11-04  Bruno Haible  <bruno@clisp.org>
82350
82351         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
82352         aliases.
82353
82354 2002-11-04  Bruno Haible  <bruno@clisp.org>
82355
82356         * lib/config.charset: Update for newest glibc. Add canonical names
82357         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
82358
82359 2002-11-04  Bruno Haible  <bruno@clisp.org>
82360
82361         * lib/config.charset: Add support for NetBSD.
82362
82363 2002-11-04  Bruno Haible  <bruno@clisp.org>
82364
82365         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
82366
82367 2002-11-01  Bruno Haible  <bruno@clisp.org>
82368
82369         * configure.in: Add AC_CONFIG_AUX_DIR call.
82370         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
82371         test/Makefile.
82372         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
82373
82374 2002-09-28  Karl Berry  <karl@gnu.org>
82375
82376         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
82377         installed automake until the next release, since changes have been
82378         made.
82379
82380 2002-09-25  Karl Berry  <karl@gnu.org>
82381
82382         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
82383         * lib/getopt*: copy from libc/posix.
82384         * lib/gettext.h: copy from gettext.
82385         * lib/.cppi-disable: add strdup.c, gettext.h.
82386
82387 2002-09-25  Karl Berry  <karl@gnu.org>
82388
82389         * config/srclist.txt: enable gettext.h check.
82390         * config/config.{guess,sub}: update from prep.
82391         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
82392                 from automake 1.6.3.
82393         See srclist*.
82394
82395 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
82396
82397         * regex.c (PATFETCH): Remove the translating fetch.
82398         (PATFETCH_RAW): Rename to PATFETCH.
82399         (set_image_of_range): New fun.
82400         (SET_RANGE_TABLE_WORK_AREA): Use it.
82401         (regex_compile): Don't translate the pattern chars so eagerly.
82402         Only do it when inserting an `exactn' bytecode or when handling
82403         a char-range.
82404         (mutually_exclusive_p): Avoid empty statement.
82405
82406 2002-07-06  Jim Meyering  <meyering@lucent.com>
82407
82408         * m4/README: Don't mention Makefile.am.in.
82409         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
82410
82411 2002-07-01  Jim Meyering  <meyering@lucent.com>
82412
82413         * lib/c-stack.c: Include sys/time.h.
82414         From Volker Borchert.
82415
82416 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82417
82418         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
82419
82420 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82421
82422         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
82423         New macro.  Use it uniformly instead of
82424         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
82425         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
82426         reported by Vin Shelton.
82427
82428 2002-06-22  Paul Eggert  <eggert@twinsun.com>
82429
82430         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
82431         Do not assume SA_SIGINFO behavior.
82432         Bug reported by Jim Meyering on NetBSD 1.5.2.
82433
82434 2002-06-22  Jim Meyering  <meyering@lucent.com>
82435
82436         * m4/c-stack.m4: New file, from diffutils-2.8.2.
82437         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
82438
82439         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
82440         now that configure.ac uses AC_GNU_SOURCE.
82441         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
82442         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
82443
82444         Update to latest tools.  Suggestions from Paul Eggert.
82445         * m4/stdbool.m4: New file, from diffutils-2.8.2.
82446         * m4/gnu-source.m4: Update from diffutils-2.8.2.
82447         * m4/fnmatch.m4: Likewise.
82448         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
82449         to AC_HEADER_STDBOOL
82450
82451 2002-06-22  Jim Meyering  <meyering@lucent.com>
82452
82453         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
82454         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
82455
82456 2002-06-22  Jim Meyering  <meyering@lucent.com>
82457
82458         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
82459
82460         * lib/exitfail.c, exitfail.h: Likewise.
82461         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
82462
82463         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
82464         of fnmatch.h.
82465         (EXTRA_DIST): Add fnmatch_loop.c.
82466         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
82467
82468         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
82469         * lib/fnmatch.c: Update from diffutils-2.8.2.
82470         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
82471         * lib/fnmatch.h: Remove file.
82472
82473 2002-06-21  Jim Meyering  <meyering@lucent.com>
82474
82475         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
82476         * m4/mbrtowc.m4: Likewise.
82477
82478         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
82479         * m4/mbswidth.m4: Reflect name change:
82480         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
82481         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82482
82483         * m4/lib-link.m4: Update from gettext-0.11.2.
82484         * m4/gettext.m4: Likewise.
82485
82486         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
82487         From Alfred M. Szmidt.
82488
82489 2002-06-18  Paul Eggert  <eggert@twinsun.com>
82490
82491         * lib/file-type.h: Report an error if neither S_ISREG nor
82492         S_IFREG is defined, instead of using a test specific to glibc
82493         2.2.  This should be safe, since POSIX requires S_ISREG and
82494         Unix Version 7 had S_IFREG.  We don't need to check for
82495         <sys/types.h> since we don't use any symbols that it defines.
82496
82497 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
82498
82499         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
82500         $@-t, so that each temporary file name is unique and valid in the first
82501         8 characters, for operation under DOS.
82502
82503 2002-06-15  Paul Eggert  <eggert@twinsun.com>
82504
82505         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
82506
82507 2002-06-15  Jim Meyering  <meyering@lucent.com>
82508
82509         Work even with DJGPP 2.03, which lacks support for symlinks.
82510         From Richard Dawe.
82511         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
82512         is defined.
82513         * lib/lchown.c (S_ISLNK): Likewise.
82514
82515 2002-06-15  Jim Meyering  <meyering@lucent.com>
82516
82517         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
82518         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
82519         have been included before this file.
82520
82521 2002-06-14  Jim Meyering  <meyering@lucent.com>
82522
82523         * lib/file-type.h: Use the version from diffutils-2.8.2.
82524         * lib/file-type.c: Likewise.
82525
82526 2002-06-07  Jim Meyering  <meyering@lucent.com>
82527
82528         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
82529         They're needed at least for NetBSD 1.5.2.
82530         ($statxfs_includes): Include those same headers.
82531         ($statxfs_includes): Include sys/vfs.h if available.
82532         ($statxfs_includes): Likewise for sys/statvfs.h.
82533         Check for the following members in both structs statfs and statvfs:
82534         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
82535
82536 2002-06-01  Jim Meyering  <meyering@lucent.com>
82537
82538         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
82539         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
82540
82541 2002-05-28  Jim Meyering  <meyering@lucent.com>
82542
82543         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
82544         Reported by Volker Borchert.
82545
82546 2002-05-27  Jim Meyering  <meyering@lucent.com>
82547
82548         Fix a problem seen only on nonconforming systems whereby ls.c's
82549         use of localtime, and then of gettimeofday would cause trouble:
82550         the localtime call used to initialize rpl_gettimeofday's save
82551         mechanism would clobber ls's current local time information so
82552         that in any long listing the first file would always be listed
82553         with date 1970-01-01.  Analysis by Volker Borchert.
82554
82555         * lib/gettimeofday.c (localtime): Undefine.
82556         (rpl_localtime): New function.
82557
82558 2002-05-27  Jim Meyering  <meyering@lucent.com>
82559
82560         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
82561         localtime.
82562
82563         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
82564         use the replacement function; it wouldn't resolve at link time.
82565         Reported by Volker Borchert.
82566
82567 2002-05-22  Jim Meyering  <meyering@lucent.com>
82568
82569         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
82570         file-type.h.
82571         * lib/file-type.h: New file.
82572         * lib/file-type.c (file_type): New file/function.  Extracted from
82573         diffutils.
82574
82575 2002-04-30  Jim Meyering  <meyering@lucent.com>
82576
82577         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
82578
82579 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82580
82581         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
82582
82583 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82584
82585         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
82586         Do not check for alloca.h (no longer used) or stdbool.h (was never
82587         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
82588
82589 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82590
82591         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
82592
82593 2002-04-29  Jim Meyering  <meyering@lucent.com>
82594
82595         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
82596         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
82597         Use AC_FUNC_STRNLEN here instead.
82598
82599         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
82600         With autoconf-2.53a, it's part of AC_PROG_CC.
82601
82602 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82603
82604         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
82605         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
82606
82607 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82608
82609         * lib/sig2str.h, lib/sig2str.c: New files.
82610         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
82611
82612 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82613
82614         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
82615         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
82616         of 127, since 64 is the largest conceivable number for ancient
82617         nonstandard hosts.
82618         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
82619
82620 2002-04-28  Jim Meyering  <meyering@lucent.com>
82621
82622         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
82623
82624 2002-04-24  Jim Meyering  <meyering@lucent.com>
82625
82626         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
82627         (jm_PREREQ): Use it.
82628
82629         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
82630         mach/mach.h fcntl.h.
82631         Check for this function: setlocale.
82632
82633 2002-04-24  Jim Meyering  <meyering@lucent.com>
82634
82635         * lib/gettext.h: New file, from Gettext.
82636         * lib/Makefile.am (INCLUDES): Remove -I../intl.
82637         (libfetish_a_SOURCES): Add gettext.h.
82638
82639 2002-04-16  Jim Meyering  <meyering@lucent.com>
82640
82641         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
82642         ut_pid, ut_id, ut_exit.
82643
82644 2002-04-16  Jim Meyering  <meyering@lucent.com>
82645
82646         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
82647         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
82648         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
82649
82650 2002-04-12  Jim Meyering  <meyering@lucent.com>
82651
82652         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
82653         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
82654         existence of the getmntinfo function.  Needed for Darwin 5.3.
82655
82656         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
82657         This is necessary at least on Darwin 5.3.
82658
82659         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
82660         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
82661         strnlen.o in the library, and that makes some versions of ranlib
82662         object.
82663
82664 2002-04-12  Jim Meyering  <meyering@lucent.com>
82665
82666         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
82667
82668 2002-04-09  Jim Meyering  <meyering@lucent.com>
82669
82670         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
82671         to be more precise.  Rather than saying we're checking whether the
82672         function `works', say what we're testing.
82673         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
82674         Reported by Bruno Haible.
82675
82676 2002-03-10  Jim Meyering  <meyering@lucent.com>
82677
82678         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
82679         Suggestion from Santiago Vila.
82680
82681 2002-03-08  Jim Meyering  <meyering@lucent.com>
82682
82683         * lib/rename.c: Mention that this wrapper is needed also on
82684         mips-dec-ultrix4.4 systems.
82685
82686 2002-03-02  Jim Meyering  <meyering@lucent.com>
82687
82688         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
82689         not HAVE_CLOCK_SETTIME.
82690
82691 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82692
82693         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
82694         Check for clock_settime.
82695
82696 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82697
82698         * lib/nanosleep.h: Rename to....
82699         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
82700
82701         * lib/gettime.c: New file.
82702         * lib/settime.c: New file.
82703         * lib/stime.c: Remove.
82704
82705         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
82706         timespec.h.  Remove nanosleep.h.
82707
82708 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82709
82710         * m4/acl.m4: New file.
82711         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
82712         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
82713
82714 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82715
82716         * lib/acl.c, lib/acl.h: New files.
82717         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
82718
82719 2002-02-24  Jim Meyering  <meyering@lucent.com>
82720
82721         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
82722         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
82723         cause trouble.  Reported by Nelson Beebe.
82724
82725 2002-02-23  Paul Eggert  <eggert@twinsun.com>
82726
82727         * lib/path-concat.c (xpath_concat): Reorder code to pacify
82728         compilers that don't know that xalloc_die never returns.
82729
82730 2002-02-20  Jim Meyering  <meyering@lucent.com>
82731
82732         * lib/getdate.c: Regenerate using bison-1.33.
82733
82734 2002-02-17  Jim Meyering  <meyering@lucent.com>
82735
82736         * config/config.guess (main): Don't use `head -1'; it's no longer
82737         portable. Use `sed 1q' instead.
82738
82739 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
82740
82741         * m4/codeset.m4: Upgrade to gettext-0.11.
82742         * m4/gettext.m4: Upgrade to gettext-0.11.
82743         * m4/glibc21.m4: Upgrade to gettext-0.11.
82744         * m4/iconv.m4: Upgrade to gettext-0.11.
82745         * m4/isc-posix.m4: Upgrade to gettext-0.11.
82746         * m4/lcmessage.m4: Upgrade to gettext-0.11.
82747         * m4/lib-ld.m4: New file, from gettext-0.11.
82748         * m4/lib-link.m4: New file, from gettext-0.11.
82749         * m4/lib-prefix.m4: New file, from gettext-0.11.
82750         * m4/progtest.m4: Upgrade to gettext-0.11.
82751
82752 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82753
82754         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
82755         (jm_PREREQ): Use it.
82756
82757 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82758
82759         * lib/posixver.c, lib/posixver.h: New files.
82760         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82761
82762 2002-02-02  Paul Eggert  <eggert@twinsun.com>
82763             Bruno Haible  <bruno@clisp.org>
82764
82765         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
82766         (fwrite_success_callback): New declaration.
82767         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
82768         print_unicode_char. Call failure callback instead of error.
82769         (fwrite_success_callback): New function.
82770         (exit_failure_callback): New function.
82771         (fallback_failure_callback): New function.
82772         (print_unicode_char): Call unicode_to_mb.
82773
82774 2002-01-26  Jim Meyering  <meyering@lucent.com>
82775
82776         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
82777         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
82778
82779 2002-01-26  Jim Meyering  <meyering@lucent.com>
82780
82781         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
82782
82783 2002-01-22  Paul Eggert  <eggert@twinsun.com>
82784
82785         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
82786
82787 2002-01-22  Jim Meyering  <meyering@lucent.com>
82788
82789         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
82790         Otherwise, some versions of automake would omit the rule that makes
82791         Makefile from Makefile.in.
82792
82793 2002-01-21  Paul Eggert  <eggert@twinsun.com>
82794
82795         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
82796         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82797         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
82798         (memcoll): Set errno to zero if there is no error.
82799
82800         * lib/quotearg.c (quotearg_buffer_restyled):
82801         Fix bug with quoting buffers containing NUL when backslashing escapes.
82802         This bug was exposed by the other changes in this patch.
82803         (quotearg_n_options): New arg ARGSIZE.
82804         All callers changed.
82805         (quoting_options_from_style): New function.
82806         (quotearg_n_style): Use it.
82807         (quotearg_n_style_mem): New function.
82808
82809         * lib/quotearg.h (quotearg_n_style_mem): New function.
82810
82811 2002-01-19  Jim Meyering  <meyering@lucent.com>
82812
82813         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
82814         Remove useless quotes: DF_PROG="df".
82815         * m4/strnlen.m4: New file.
82816
82817 2002-01-16  Paul Eggert  <eggert@twinsun.com>
82818
82819         * lib/backupfile.c (ISDIGIT): Comment fix.
82820         * lib/getdate.y (ISDIGIT): Likewise.
82821         * lib/posixtm.c (ISDIGIT, year): Likewise.
82822         * lib/strverscmp.c (ISDIGIT): Likewise.
82823         * lib/userspec.c (ISDIGIT): Likewise.
82824
82825 2002-01-16  Jim Meyering  <meyering@lucent.com>
82826
82827         * lib/getdate.y: Add three semicolons, each just before a closing
82828         brace. Bison (as of version 1.31) no longer papers over that mistake.
82829
82830 2002-01-05  Jim Meyering  <meyering@lucent.com>
82831
82832         * lib/version-etc.c (version_etc_copyright): Update copyright year.
82833
82834 2001-12-19  Paul Eggert  <eggert@twinsun.com>
82835
82836         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
82837         not silently exit merely because the output buffer happens to
82838         have nothing pending.
82839
82840 2001-12-18  Paul Eggert  <eggert@twinsun.com>
82841
82842         See the big note in ../ChangeLog.
82843         * lib/human.c (suffixes): Prefer K to k for 1024.
82844         (generate_suffix_backwards): New function.
82845         (human_readable_inexact): Use it.
82846         * lib/xstrtol.c (__xstrtol): If there is no number but there
82847         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
82848         Accept 'K' as well as 'k'.
82849
82850 2001-12-15  Jim Meyering  <meyering@lucent.com>
82851
82852         * lib/regex.h (__restrict_arr): Update from libc.
82853
82854         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
82855         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
82856         (STREQ): Define.
82857
82858 2001-12-14  Jim Meyering  <meyering@lucent.com>
82859
82860         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
82861         Suggestion from Bruno Haible.
82862
82863 2001-12-10  Jim Meyering  <meyering@lucent.com>
82864
82865         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
82866         xrealloc, Instead, include "xalloc.h".
82867         (initbuffer): Don't cast xmalloc return value to char*.
82868         (readline): Reword comment.
82869         Don't cast xrealloc return value to char*
82870         Return NULL, not 0.
82871
82872 2001-12-09  Jim Meyering  <meyering@lucent.com>
82873
82874         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
82875         about `signed and unsigned type in conditional expression'.
82876         * lib/posixtm.c (posix_time_parse): Likewise.
82877
82878         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
82879
82880         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
82881         to avoid a pedantic warning.
82882
82883         * lib/getstr.c: Don't include assert.h.
82884         (getstr): Remove warning-evoking assertions.
82885         Return -1 if offset parameter is out of bounds.
82886         Change the type of a local from int to size_t.
82887
82888         * lib/strftime.c (my_strftime_localtime_r): Include this function
82889         definition in the `#if ! HAVE_TM_GMTOFF' block.
82890
82891         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
82892         Include xalloc.h instead.
82893
82894 2001-12-02  Jim Meyering  <meyering@lucent.com>
82895
82896         * lib/tempname.c: Don't declare getenv, thus reverting the change of
82897         2001-11-18.  It's no longer necessary, now that stdlib.h is always
82898         included.
82899
82900         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
82901         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
82902
82903 2001-11-30  Akim Demaille  <akim@epita.fr>
82904
82905         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
82906         before being defined.
82907
82908 2001-11-27  Paul Eggert  <eggert@twinsun.com>
82909
82910         * lib/quotearg.h (quotearg_n, quotearg_n_style):
82911         First arg is int, not unsigned.
82912         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
82913         (SIZE_MAX, UINT_MAX): New macros.
82914         (quotearg_n_options): Abort if N is negative.
82915         Avoid overflow check on hosts where size_t is 64 bits and int
82916         is 32 bits, as overflow is impossible there.
82917         Fix off-by-one typo that caused unnecessary reallocation.
82918
82919 2001-11-27  Jim Meyering  <meyering@lucent.com>
82920
82921         * lib/tempname.c: Merge with version from libc.
82922         * lib/regex.c: Likewise.
82923
82924         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
82925         systems for which STDC_HEADERS is 0, it was not included, resulting in
82926         a warning about an integer-to-pointer conversion problem with getenv.
82927         Reported by Volker Borchert.
82928
82929 2001-11-26  Jim Meyering  <meyering@lucent.com>
82930
82931         * lib/gtod.h: Remove file.
82932         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
82933         * lib/gettimeofday.c: Don't include gtod.h.
82934         (GTOD_init): Remove function.
82935         (rpl_gettimeofday): Do its job here instead, rather than aborting.
82936         Suggestion from Volker Borchert.
82937
82938 2001-11-23  Jim Meyering  <meyering@lucent.com>
82939
82940         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
82941         it.
82942         * lib/hash.c (struct hash_table): Define it here instead.
82943
82944 2001-11-22  Jim Meyering  <meyering@lucent.com>
82945
82946         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
82947
82948 2001-11-20  Jim Meyering  <meyering@lucent.com>
82949
82950         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
82951         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
82952
82953 2001-11-19  Jim Meyering  <meyering@lucent.com>
82954
82955         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
82956         directory.  Use "conftestXXXXXX" as the template.
82957         Suggestion from Paul Eggert.
82958
82959         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
82960         immediately, so the test doesn't mistakenly hit the max-open-files
82961         limit.
82962
82963 2001-11-18  Paul Eggert  <eggert@twinsun.com>
82964
82965         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
82966         (TEMPORARIES): New macro.
82967         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
82968         removes an artificial limitation (e.g. HP-UX 10.20, where
82969         TMP_MAX is 17576).
82970
82971 2001-11-18  Jim Meyering  <meyering@lucent.com>
82972
82973         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82974
82975 2001-11-18  Jim Meyering  <meyering@lucent.com>
82976
82977         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82978         on SunOS 4.
82979
82980         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82981         files will be created before anything else.
82982
82983 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82984
82985         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82986         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82987
82988 2001-11-17  Jim Meyering  <meyering@lucent.com>
82989
82990         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82991         Prompted by a report from Bob Proulx.
82992
82993         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82994         Instead, require UTILS_FUNC_MKSTEMP.
82995
82996 2001-11-17  Jim Meyering  <meyering@lucent.com>
82997
82998         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82999         Now, that's done as part of AC_FUNC_STRTOD.
83000
83001 2001-11-17  Jim Meyering  <meyering@lucent.com>
83002
83003         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
83004         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
83005         rather than group writable.  Patch by Juan F. Codagnone.
83006
83007         * lib/readtokens.c: Remove explicit declarations of xmalloc and
83008         xrealloc, Instead, include "xalloc.h".
83009
83010         * lib/mountlist.c: Include unlocked-io.h after all system headers.
83011         Remove explicit declarations of xmalloc, xrealloc,
83012         and xstrdup.  Instead, include "xalloc.h".
83013
83014         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
83015         unlocked-io.h.
83016         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
83017         Likewise.
83018         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
83019
83020         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
83021         Reported by Padraig Brady.
83022
83023         * lib/mkstemp.c: #undef mkstemp.
83024         Include config.h.
83025         (rpl_mkstemp): Rename from mkstemp.
83026         Protoize.
83027
83028 2001-11-16  Jim Meyering  <meyering@lucent.com>
83029
83030         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
83031         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
83032         determine the amount of total physical memory, use pstat_getstatic.
83033         HPUX-11 doesn't define _SC_PHYS_PAGES.
83034         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
83035         If sysconf couldn't be used to determine the amount of available
83036         physical memory, use both pstat_getstatic and pstat_getdynamic.
83037         Based on a patch from Bob Proulx.
83038
83039 2001-11-10  Jim Meyering  <meyering@lucent.com>
83040
83041         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
83042         (jm_PREREQ): Use it.
83043
83044 2001-11-09  Jim Meyering  <meyering@lucent.com>
83045
83046         * m4/jm-macros.m4: Require autoconf-2.52f.
83047         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
83048         Use these AC_-prefixed names, not the AM_-prefixed ones.
83049
83050         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
83051
83052 2001-11-05  Jim Meyering  <meyering@lucent.com>
83053
83054         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
83055
83056 2001-11-04  Jim Meyering  <meyering@lucent.com>
83057
83058         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
83059         $DEFS.
83060
83061 2001-11-03  Jim Meyering  <meyering@lucent.com>
83062
83063         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
83064         of AC_DEFUN.
83065
83066         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
83067         know the name of the variable in the macro definition.
83068
83069 2001-11-03  Jim Meyering  <meyering@lucent.com>
83070
83071         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
83072         in argmatch_to_argument call.
83073
83074         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
83075         argument.
83076
83077         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
83078         e.g., a fault due to an attempt to free a NULL pointer.
83079
83080 2001-11-01  Jim Meyering  <meyering@lucent.com>
83081
83082         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
83083         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
83084
83085 2001-11-01  Jim Meyering  <meyering@lucent.com>
83086
83087         * lib/dirfd.c, lib/dirfd.h: New files.
83088         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
83089
83090         * lib/hash.c (hash_print) [TESTING]: Clean up.
83091
83092 2001-10-22  Paul Eggert  <eggert@twinsun.com>
83093
83094         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
83095         to avoid a warning if -Wall.
83096
83097 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
83098
83099         * README: New file
83100         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
83101         (per RMS's instructions, this is now the canonical source)
83102         * lgpl/, gpl/: New directories.
83103
83104 2001-10-21  Paul Eggert  <eggert@twinsun.com>
83105
83106         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
83107
83108 2001-10-21  Jim Meyering  <meyering@lucent.com>
83109
83110         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
83111         this code would end up calling gettext even in packages built
83112         with --disable-nls.
83113         * lib/getopt.c (_): Likewise.
83114         * lib/regex.c (_): Likewise.
83115
83116 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83117
83118         * m4/error.m4 (jm_PREREQ_ERROR):
83119         Do not invoke AC_CHECK_FUNCS with strerror_r, as
83120         AC_FUNC_STRERROR_R does that.
83121         Check for strerror declaration.
83122
83123         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
83124         are supposed to have them these days.
83125         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
83126         Merge changes from latest Autoconf CVS.
83127         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
83128         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
83129         POSIX decided to standardize on the int flavor of strerror_r.
83130
83131 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83132
83133         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
83134         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
83135         Use strerror_r that is only a macro, even if it is not a function.
83136         (strerror): Check for HAVE_DECL_STRERROR before declaring.
83137         (private_strerror): Use prototypes, not old-style function definition.
83138         (print_errno_message): New function.
83139         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
83140         char*-flavored one.
83141         (error_tail, error, error_at_line): Use it.
83142
83143 2001-10-11  Jim Meyering  <meyering@lucent.com>
83144
83145         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
83146         and quote_n (1, ... to avoid clobbering a buffer.
83147
83148 2001-10-05  Jim Meyering  <meyering@lucent.com>
83149
83150         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
83151         hash-pjw.h.
83152         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
83153         * lib/hash-pjw.h: New file.
83154
83155 2001-09-30  Jim Meyering  <meyering@lucent.com>
83156
83157         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
83158         `struct fsstat' has the `f_fstypename' member.
83159         Use that to define FS_TYPE, which is now used to make
83160         the getfsstat link test tighter.
83161
83162 2001-09-30  Jim Meyering  <meyering@lucent.com>
83163
83164         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
83165         Include <sys/ucred.h>, for Apple Darwin.
83166         Include sys/mount.h and sys/fs_types.h only if available.
83167         (FS_TYPE): Define.
83168         (read_filesystem_list): Use FS_TYPE.
83169
83170 2001-09-29  Paul Eggert  <eggert@twinsun.com>
83171
83172         * lib/exclude.c (excluded_filename): 0 -> false, since it's
83173         a boolean context.
83174
83175 2001-09-29  Jim Meyering  <meyering@lucent.com>
83176
83177         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83178         [one-argument getmntent function]): Include stdio.h before mntent.h.
83179         SunOS 4.1.x needs it for the declaration of `FILE'.
83180         Patch by Volker Borchert.
83181
83182         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83183         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
83184         sys/fs_types.h, and make the link-test for getfsstat guard #include
83185         directives with appropriate #if HAVE_*_H tests so that we can
83186         detect getfsstat on Apple Darwin1.3.7 systems.
83187         Reported by Nelson Beebe.
83188         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
83189
83190 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83191
83192         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83193         #defines strtoimax.  Also treat the other strto* functions
83194         like strtoimax.
83195
83196         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83197         Check for strtoul and strtoumax,
83198         as those declarations are made even in the signed case.
83199         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
83200         Likewise, for strtol and strtoimax.
83201
83202 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83203
83204         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83205         #defines strtoimax.  Also treat the other strto* functions
83206         like strtoimax.
83207
83208         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
83209         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
83210         (strtoimax, strtoumax): Do not declare if already defined as a macro.
83211
83212 2001-09-26  Jim Meyering  <meyering@lucent.com>
83213
83214         Most macros in unlocked-io.h had the wrong number of arguments.
83215         * lib/gen-uio: New script.
83216         (USE_UNLOCKED_IO): Define to 1 if not already defined.
83217         * lib/unlocked-io.hin: Remove file.
83218         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
83219         rather than trying to embed it here.
83220         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
83221         Reported by Padraig Brady.
83222
83223 2001-09-25  Volker Borchert  <bt@teknon.de>
83224
83225         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
83226         `result'.
83227
83228 2001-09-24  Jim Meyering  <meyering@lucent.com>
83229
83230         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
83231
83232 2001-09-23  Jim Meyering  <meyering@lucent.com>
83233
83234         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
83235         instead of the mere test for existence of mntent.h.  The latter
83236         would get a false-positive on AIX 3.4 systems.
83237         In the outer getmntent if-block, don't die if neither of the getmntent
83238         tests succeeds.  Instead, just fall through and continue with the
83239         remaining tests.
83240
83241 2001-09-23  Jim Meyering  <meyering@lucent.com>
83242
83243         * lib/mountlist.c: Remove useless parentheses in #if directives.
83244         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
83245         the deprecated MOUNTED symbol is no longer defined in mntent.h.
83246
83247 2001-09-22  Jim Meyering  <meyering@lucent.com>
83248
83249         * m4/gettext.m4: New file.  From gettext.
83250         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
83251         * m4/progtest.m4: Likewise
83252         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
83253         * m4/glibc21.m4: Likewise.
83254
83255         * m4/libintl.m4: Remove.  No longer used.
83256
83257 2001-09-22  Jim Meyering  <meyering@lucent.com>
83258
83259         * lib/localcharset.c: Update from latest gettext.
83260         * lib/config.charset: Likewise.
83261
83262 2001-09-20  Jim Meyering  <meyering@lucent.com>
83263
83264         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
83265         strtoimax.
83266         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
83267         strtoumax.
83268
83269 2001-09-20  Jim Meyering  <meyering@lucent.com>
83270
83271         * lib/xstrtol.c (strtoimax): Guard declaration with
83272         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
83273         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
83274         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
83275         (strtoumax): Likewise, for completeness (it wasn't necessary).
83276
83277 2001-09-17  Paul Eggert  <eggert@twinsun.com>
83278
83279         * lib/strtoimax.c (HAVE_LONG_LONG):
83280         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
83281         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
83282         to work around bug in IBM C compiler.
83283
83284 2001-09-17  Jim Meyering  <meyering@lucent.com>
83285
83286         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
83287         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
83288         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
83289         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
83290         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
83291         whenever the right hand side need not be expanded by the shell.
83292
83293 2001-09-16  Paul Eggert  <eggert@twinsun.com>
83294
83295         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
83296         library.  It's not correct, as some older glibcs are buggy.
83297         fnmatch wasn't fixed until glibc 2.2.
83298
83299         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
83300         special shell magic here.
83301
83302 2001-09-16  Jim Meyering  <meyering@lucent.com>
83303
83304         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
83305         * m4/jm-macros.m4: Require it.
83306
83307 2001-09-16  Jim Meyering  <meyering@lucent.com>
83308
83309         * lib/mkdir.c: New file.
83310
83311 2001-09-15  Jim Meyering  <meyering@lucent.com>
83312
83313         * m4/jm-macros.m4: Check for help2man.
83314
83315 2001-09-11  Jim Meyering  <meyering@lucent.com>
83316
83317         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
83318         The body, by Paul Eggert, was moved here from configure.in.
83319         * m4/jm-macros.m4: Require UTILS_HOST_OS.
83320
83321 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83322
83323         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
83324         (jm_PREREQ): Use it.
83325
83326 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83327
83328         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
83329         Use ssize_t, not int, to store result of readlink.
83330         Check for ssize_t overflow as well as size_t overflow,
83331         as POSIX says the result of readlink is implementation-defined
83332         when ssize_t overflows.
83333         Remove unnecessary cast to char*.
83334         Use free+malloc instead of realloc, as the storage doesn't need
83335         to be preserved and it's clearer and can be more efficient that way.
83336         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
83337         * lib/xreadlink.h (xreadlink): Update prototype.
83338
83339 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83340
83341         * lib/xgetcwd.c: Revert some of the previous change; intead,
83342         fix the HAVE_GETCWD_NULL code to behave more like the
83343         !HAVE_GETCWD_NULL code used to.
83344
83345         Include "xalloc.h".
83346         (xgetcwd): Do not return NULL when memory is exhausted; instead,
83347         invoke xalloc_die.
83348
83349 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83350
83351         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
83352         sys/param.h, as pathmax.h includes them.
83353
83354 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83355
83356         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
83357         (jm_PREREQ_XGETCWD): New macro.
83358
83359         * m4/getcwd.m4: New file.
83360
83361 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83362
83363         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
83364         like the HAVE_GETCWD_NULL code.
83365         Include pathmax.h if not HAVE_GETCWD.
83366         Do not include xalloc.h.
83367         (INITIAL_BUFFER_SIZE): New symbol.
83368         Do not use xmalloc / xrealloc, since the caller is responsible for
83369         handling errors.  Preserve errno around `free' during failure.
83370         Do not overrun buffer when using getwd.
83371
83372 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83373
83374         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
83375         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
83376         getcwd (NULL, 0).
83377
83378 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83379
83380         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
83381         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
83382         spotted by Jim Meyering.
83383
83384 2001-09-03  Jim Meyering  <meyering@lucent.com>
83385
83386         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
83387         failure.
83388
83389 2001-09-02  Jim Meyering  <meyering@lucent.com>
83390
83391         * lib/error.c: Update from GNU libc.
83392
83393 2001-09-01  Jim Meyering  <meyering@lucent.com>
83394
83395         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
83396         Used by df.
83397
83398 2001-09-01  Jim Meyering  <meyering@lucent.com>
83399
83400         * lib/xreadlink.c: New file.
83401         * lib/xreadlink.h: New file.
83402         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
83403         xreadlink.h.
83404
83405         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
83406         doesn't conflict with sparc Solaris 7's definition in
83407         /usr/include/sys/int_types.h.
83408
83409         * lib/exclude.c: Use `""', not `<>' to #include non-system header
83410         files.
83411         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
83412         and strncasecmp as r-values.  Unixware didn't have declarations.
83413
83414 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83415
83416         * lib/xstrtol.h: Add copyright notice.
83417         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
83418         LONGINT_INVALID_SUFFIX_CHAR.
83419
83420 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83421
83422         * lib/xstrtol.c (strtoimax): New decl.
83423
83424 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83425
83426         * lib/xgetcwd.c: Don't include pathmax.h.
83427         Include stdlib.h and unistd.h if available.
83428         Include xalloc.h.
83429         (xmalloc, xstrdup, free): Remove decls.
83430         (xgetcwd): Don't assume sizes fit in unsigned.
83431         Check for overflow when computing sizes.
83432         Simplify reallocation code.
83433
83434 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83435
83436         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
83437         a directory's st_size can have an arbitrary value, so the old
83438         usage could waste an arbitrary amount of memory.  All uses
83439         changed.
83440         * lib/savedir.h: Update prototype.
83441
83442 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83443
83444         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
83445
83446         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
83447         old strtoimax.c.
83448
83449         Also, make the following further changes to make this file's
83450         configuration more similar to that of strtol.c:
83451         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
83452         (strtoumax, uintmax_t, strtoull, strtol): Remove.
83453         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
83454         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
83455         changed to signed values.
83456
83457         And make the following changes as well:
83458         Fix copyright notice, as 1999 was missing.
83459         (verify): New macro.
83460         (strtoimax): Check sizes at compile-time, not run-time.
83461         Prefer strtol to strtoll if both work.
83462         (main): Remove; it was not that useful and was a pain to maintain.
83463
83464         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
83465
83466 2001-08-31  Jim Meyering  <meyering@lucent.com>
83467
83468         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
83469         Use an initial, malloc'd, buffer of length 128 rather than
83470         a statically allocated one of length 1024.
83471
83472 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83473
83474         Simplify code, partly by assuming autoconf 2.52 semantics.
83475
83476         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
83477
83478         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
83479         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
83480         All uses removed.
83481         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
83482         Move AC_REQUIRE to next-to-top level, to avoid confusion.
83483         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
83484         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
83485         jm_AC_HEADER_INTTYPES_H.
83486         * m4/jm-macros.m4 (jm_MACROS): Likewise.
83487
83488         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
83489
83490         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83491         Quote first arg of AC_DEFUN.
83492         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
83493         since they are needed to parse the include file even if we need
83494         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
83495         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
83496         but with opposite signedness.
83497
83498 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83499
83500         Merge 'exclude' changes from tar 1.13.22.
83501         This fixes one or two unlikely storage allocation overflow bugs,
83502         but doesn't change user-visible behavior otherwise.
83503
83504 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83505
83506         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
83507         (jm_PREREQ_EXCLUDE): New macro.
83508
83509 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83510
83511         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
83512         tm to be declared.
83513
83514 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83515
83516         * lib/hash.c: Remove '2001' from copyright notice.
83517
83518 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83519
83520         * lib/full-write.h: New file.
83521         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
83522         * lib/full-write.c: Correct credits, as cccp.c no longer
83523         exists and anyway it was so heavily changed from the old cccp
83524         code as to be unrecognizable.  Include full-write.h.
83525         (full_write): Return size_t, with short writes meaning failure.
83526         All callers changed.  This fixes a bug with large buffers
83527         on 64-bit hosts.
83528         * lib/utime.c: Include full-write.h.
83529
83530 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83531
83532         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
83533         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
83534         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
83535         Include if available.
83536         (<xalloc.h>): Include
83537         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
83538         (verify): New macro.  Use it to verify that EXCLUDE macros do not
83539         collide with FNM macros.
83540         (struct patopts): New struct.
83541         (struct exclude): Use it, as exclude patterns now come with options.
83542         (new_exclude): Support above changes.
83543         (new_exclude, add_exclude_file):
83544         Initial size must now be a power of two to simplify overflow checking.
83545         (free_exclude, fnmatch_no_wildcards): New function.
83546         (excluded_filename): No longer requires options arg, as the options
83547         are determined by add_exclude.  Now returns bool, not int.
83548         (excluded_filename, add_exclude):
83549         Add support for the fancy new exclusion options.
83550         (add_exclude, add_exclude_file): Now takes int options arg.
83551         Check for arithmetic overflow when computing sizes.
83552         (add_exclude_file): xrealloc might modify errno, so don't
83553         realloc until after errno might be used.
83554
83555         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
83556         New macros.
83557         (free_exclude): New decl.
83558         (add_exclude, add_exclude_file): Now takes int options arg.
83559         (excluded_filename): No longer requires options arg, as the options
83560         are determined by add_exclude.  Now returns bool, not int.
83561
83562 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83563
83564         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
83565
83566 2001-08-27  Jim Meyering  <meyering@lucent.com>
83567
83568         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
83569
83570         * lib/version-etc.c (N_): Remove definition.
83571         Revert most of last change.
83572         Instead, simply don't mark the `Copyright...' string for translation.
83573         Based on advice from Paul Eggert.
83574
83575         * lib/strtoxmax.c: Tweak comment.
83576
83577 2001-08-26  Jim Meyering  <meyering@lucent.com>
83578
83579         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
83580
83581         * m4/xstrtoimax.m4: New file.
83582         * m4/xstrtoumax.m4: Add comments explaining why we
83583         AC_REPLACE_FUNCS(strtol).
83584
83585 2001-08-26  Jim Meyering  <meyering@lucent.com>
83586
83587         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
83588         of copyright with `%s' so translators don't get an untranslated
83589         message in 2002.
83590         (COPYRIGHT_YEAR): Define.
83591         (version_etc): Use fprintf rather than fputs.
83592         Suggestion from Ulrich Drepper.
83593
83594         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
83595
83596         * lib/strtoll.c: New file, from GNU libc.
83597         * lib/xstrtoimax.c: New file.
83598
83599         * lib/xstrtol.h: Add xstrtoimax.
83600         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
83601         * lib/strtoimax.c: New file.  Likewise, but first define
83602         STRTOUXMAX_SIGNED.
83603
83604         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
83605         ...
83606         * lib/strtoxmax.c: ... then renamed to this.
83607
83608 2001-08-18  Paul Eggert  <eggert@twinsun.com>
83609
83610         * m4/inttypes.m4: Add AC_PREREQ(2.13).
83611         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
83612         (jm_AC_TYPE_INTMAX_T): New macro.
83613         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
83614
83615         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
83616
83617         * m4/longlong.m4: Renamed from ulonglong.m4.
83618         * m4/inttypes.m4: Renamed from inttypes_h.m4.
83619         * m4/uintmax_t.m4: Removed.
83620
83621 2001-08-13  Paul Eggert  <eggert@twinsun.com>
83622
83623         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
83624         Port to Solaris 8, where 'sed' requires a space after the 'r'
83625         command, and where sh dislikes "$/".  Clean up the spacing a bit.
83626         Redirect output to $tmp just once.
83627
83628 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
83629
83630         * lib/addext.c (<errno.h>): Include.
83631         (errno): Declare if not defined.
83632         (addext): Work correctly when pathconf returns -1 and leaves
83633         errno alone because there is no limit.  Also, work even if
83634         pathconf returns a value greater than SIZE_MAX.
83635
83636 2001-08-12  Jim Meyering  <meyering@lucent.com>
83637
83638         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
83639         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
83640         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
83641         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
83642         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
83643         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
83644         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
83645         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
83646         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
83647         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
83648         utime.m4, utimes.m4, xstrtoumax.m4:
83649         Quote the first argument in each use of AC_DEFUN.
83650
83651 2001-08-12  Jim Meyering  <meyering@lucent.com>
83652
83653         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
83654         Simply `return getcwd (NULL, 0);'.
83655         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
83656         Use 1300 as initial value for length, not PATH_MAX.
83657
83658         * lib/pathmax.h: Clean up cpp syntax.
83659
83660 2001-08-12  Jim Meyering  <meyering@lucent.com>
83661
83662         * lib/gettimeofday.c: New file.
83663         * lib/gtod.h: New file.
83664         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
83665
83666 2001-08-05  Jim Meyering  <meyering@lucent.com>
83667
83668         * m4/jm-macros.m4: Require autoconf-2.52.
83669
83670 2001-08-04  Jim Meyering  <meyering@lucent.com>
83671
83672         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
83673         stmt, to get in sync with glibc.
83674
83675 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83676
83677         The following changes are from gettext 0.10.39 as maintained by
83678         Bruno Haible.
83679
83680         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
83681         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
83682         with inverted sense.  All uses changed.
83683
83684         * lib/mbswidth.c: Don't include <limits.h>.
83685         Include <stdlib.h> and <string.h> unconditionally.
83686         (iswcntrl, mbsinit, ISCNTRL): New macros.
83687         (mbsnwidth): Use K&R style function declarations.
83688         Don't bother checking for MB_LEN_MAX == 1, since the compiler
83689         can optimize it when MB_CUR_MAX == 1.
83690         The width of control characters is zero, not 1.
83691
83692 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83693
83694         The following changes are from gettext 0.10.39 as maintained by
83695         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
83696
83697         * m4/codeset.m4: Upgrade to serial AM1.
83698         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
83699         all uses changed.  Quote first arg of AC_DEFUN.
83700         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
83701
83702         * m4/iconv.m4: Upgrade to serial AM2.
83703         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
83704         Add --with-libconv-prefix.
83705         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
83706         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
83707         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
83708         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
83709         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
83710
83711         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
83712         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
83713         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
83714         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
83715         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
83716         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
83717         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83718         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
83719         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
83720
83721         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
83722         string.h any more.
83723
83724         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
83725         not the default value.
83726
83727         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
83728         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
83729         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
83730         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
83731         Also check for iswcntrl, used for wcwidth fallback.
83732         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
83733         to Autoconf 2.13.
83734
83735 2001-08-03  Jim Meyering  <meyering@lucent.com>
83736
83737         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
83738         as it was in the original.  Reported by Paul Eggert.
83739
83740 2001-07-16  Jim Meyering  <meyering@lucent.com>
83741
83742         * m4/gettimeofday.m4: New file.
83743         Prompted by a report from Bernhard Baehr.
83744
83745 2001-07-15  Jim Meyering  <meyering@lucent.com>
83746
83747         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
83748         stuff. Now it's in ../Makefile.cfg.
83749
83750 2001-07-15  Jim Meyering  <meyering@lucent.com>
83751
83752         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
83753         (BUILT_SOURCES): Add unlocked-io.h.
83754         (io_functions): Define.
83755         (unlocked-io.h): New rule.
83756         (DISTCLEANFILES): Add unlocked-io.h.
83757         (all-local): Depend on unlocked-io.h, to ensure it is created.
83758
83759         * lib/unlocked-io.hin: New file
83760
83761         * lib/regex.c: Update from glibc.
83762
83763 2001-07-05  Jim Meyering  <meyering@lucent.com>
83764
83765         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
83766         recommendation.
83767         (libfetish_a_SOURCES): Put all .h files here instead.
83768         Remove a thus-exposed (better checks in automake) duplicate and
83769         two unnecessary .h files.
83770
83771 2001-07-04  Jim Meyering  <meyering@lucent.com>
83772
83773         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
83774         that generates jm-glibc-io.m4 so that it doesn't trigger any make
83775         distcheck failure.
83776
83777 2001-07-02  Jim Meyering  <meyering@lucent.com>
83778
83779         The following changes were prompted by suggestions from Bruno Haible.
83780
83781         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
83782         is now generated.
83783         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
83784         definition of EXTRA_DIST.
83785         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
83786         ensure that the generated file is created/updated whenever the list
83787         of $(unlocked_functions) is changed.
83788         (jm-glibc-io.m4): New rule.
83789         (unlocked-io.h): New rule -- currently unused.
83790
83791 2001-06-24  Jim Meyering  <meyering@lucent.com>
83792
83793         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
83794         unmatched right bracket, rather than kludging it with an extra,
83795         falsely-matching quote in a comment.  Patch by Akim Demaille.
83796
83797 2001-06-11  Jim Meyering  <meyering@lucent.com>
83798
83799         * lib/regex.c: Update from GNU libc.
83800
83801 2001-05-27  Jim Meyering  <meyering@lucent.com>
83802
83803         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
83804         Check for ut_type in struct utmp.
83805
83806 2001-05-27  Jim Meyering  <meyering@lucent.com>
83807
83808         * lib/readutmp.h (UT_TYPE): Define.
83809
83810 2001-05-24  Jim Meyering  <meyering@lucent.com>
83811
83812         * lib/argmatch.c: Include "quote.h".
83813         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
83814         quote function.  Reported by Göran Uddeborg.
83815
83816 2001-05-22  Jim Meyering  <meyering@lucent.com>
83817
83818         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
83819         now that we use the package-supplied version unconditionally.
83820         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
83821
83822 2001-05-21  Jim Meyering  <meyering@lucent.com>
83823
83824         * m4/regex.m4: Change a couple backticks to single quotes to avoid
83825         shell syntax errors.
83826
83827 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83828
83829         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
83830
83831 2001-05-20  Paul Eggert  <eggert@twinsun.com>
83832
83833         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
83834         Don't bother to check library strftime, since
83835         we'll be using our own my_strftime function anyway.
83836         Define my_strftime instead of strftime.
83837
83838 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
83839
83840         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
83841         which is not yet declared.
83842
83843 2001-05-15  Jim Meyering  <meyering@lucent.com>
83844
83845         * m4/regex.m4: Use proper quoting so brackets appear in the test
83846         program.
83847         Reported by, and with help from, Bruno Haible.
83848
83849 2001-05-13  Jim Meyering  <meyering@lucent.com>
83850
83851         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
83852         undefined.
83853
83854 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83855
83856         dirname code cleanup.  base_name now behaves more compatibly
83857         with POSIX basename when given file names that have trailing
83858         slashes, and similarly for dir_name.  Add new primitives
83859         base_len and dir_len.  Put the directory-name-related decls
83860         into dirname.h.
83861
83862         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
83863         * lib/backupfile.c (base_name): Likewise.
83864         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
83865         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
83866         * lib/makepath.c (strip_trailing_slashes): Likewise.
83867         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
83868         ISSLASH): Likewise.
83869         * lib/rename.c (strip_trailing_slashes): Likewise.
83870         * lib/same.c (base_name): Likewise.
83871         * lib/stripslash.c (ISSLASH): Likewise.
83872
83873         * lib/addext.c: Include <dirname.h> after size_t is defined.
83874         * lib/backupfile.c: Likewise.
83875
83876         * lib/addext.c (addext): Use base_len to trim redundant
83877         trailing slashes instead of doing it ourselves.
83878         But do not trim the last slash if it is not redundant.
83879
83880         * lib/backupfile.c (find_backup_file_name,
83881         max_backup_version): Use base_len instead of rolling it ourselves.
83882         Handle the case of "" and (on DOS) "C:" correctly.
83883
83884         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
83885         needed. Include <string.h>, <dirname.h>.
83886         (base_name): Allow file names ending in slashes, other than names
83887         that are all slashes.  In this case, return the basename followed
83888         by the slashes.  This is more general, and can be used in places
83889         where the original base_name purposely had an assertion failure.
83890         (base_len): New function.
83891
83892         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
83893         Do not include <assert.h>; no longer needed.
83894         Include xalloc.h.
83895         (memrchr): Remove decl.
83896         (dir_name_r): Remove.
83897         (dir_len): Renamed from dirlen.  All callers changed.
83898         Rewrite in terms of base_name, for simplicity and consistency.
83899         (dir_name): Never return NULL.  All callers changed.
83900         Do not include <stdlib.h> in test program; no longer needed.
83901         return 0; is fine for test program.
83902
83903         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
83904         New macros.
83905         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
83906
83907         * lib/path-concat.c (path_concat): Use base_len to compute
83908         base length, not strlen; this means we cannot rely on memcpy
83909         to null-terminate.
83910
83911         * lib/same.c (STREQ): Remove.
83912         (same_name): Handle the case where the basename ends in trailing '/'.
83913
83914         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
83915         a slash was stripped.  Do not strip the last slash after a
83916         file system prefix.
83917
83918 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83919
83920         * lib/Makefile.am (libfetish_a_SOURCES):
83921         Add strftime.c, since we now compile it on all hosts.
83922
83923         * lib/strftime.c (my_strftime):
83924         Define to nstrftime if emacs, but only if my_strftime is not defined.
83925         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
83926         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
83927         Add one more extra argument: a nanoseconds value.
83928         All uses changed.
83929         (ns): New macro.
83930         (my_strftime function): Add %N format.
83931         (emacs_strftimeu): Renamed from emacs_strftime,
83932         with extra ut argument.
83933
83934 2001-05-09  Paul Eggert  <eggert@twinsun.com>
83935
83936         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
83937
83938 2001-04-21  Jim Meyering  <meyering@lucent.com>
83939
83940         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
83941         doesn't interfere.
83942
83943 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83944
83945         * m4/ftruncate.m4: Check for chsize.
83946         Link with ftruncate.o unconditionally if ftruncate is missing.
83947         This was required when cross-compiling to i586-mingw32msvc.
83948
83949 2001-04-08  Jim Meyering  <meyering@lucent.com>
83950
83951         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
83952         recomputed; that's necessary when the offset spans a DST transition.
83953         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
83954
83955 2001-04-02  Jim Meyering  <meyering@lucent.com>
83956
83957         * lib/regex.h, regex.c: Update from GNU libc.
83958
83959 2001-03-24  Jim Meyering  <meyering@lucent.com>
83960
83961         * m4/jm-macros.m4: Require autoconf-2.49d.
83962
83963 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
83964
83965         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
83966
83967 2001-03-19  Paul Eggert  <eggert@twinsun.com>
83968
83969         * lib/version-etc.c (version_etc_copyright): Update to 2001.
83970
83971 2001-03-17  Jim Meyering  <meyering@lucent.com>
83972
83973         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83974         now that the version in autoconf is equivalent.
83975         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83976
83977         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83978         Suggestion from Akim Demaille.
83979
83980         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83981         (jm_PREREQ_TEMPNAME): New function.
83982
83983 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83984
83985         * lib/tempname.c (uint64_t): Define to uintmax_t if
83986         not defined, and if UINT64_MAX is not defined.
83987         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83988         Reported by John David Anglin.
83989
83990 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83991
83992         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83993         resolve alias if codeset is empty.
83994         * lib/config.charset (BeOS): Use wildcard syntax.
83995
83996 2001-03-13  Jim Meyering  <meyering@lucent.com>
83997
83998         * lib/path-concat.c (path_concat)
83999         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
84000         concatenating e.g., `C:' and `foo'.
84001         From Bruno Haible.
84002
84003 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
84004
84005         * lib/localcharset.c (locale_charset): Don't use
84006         setlocale(LC_CTYPE,NULL). Don't return NULL.
84007         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
84008
84009 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
84010
84011         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
84012         support for DOS/DJGPP.
84013
84014 2001-03-01  Paul Eggert  <eggert@twinsun.com>
84015
84016         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
84017         lacks mkstemp.  Compile our own tempname.c if we compile our own
84018         mkstemp.c, as mkstemp relies on tempname.
84019
84020 2001-03-01  Jim Meyering  <meyering@lucent.com>
84021
84022         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
84023         AH_VERBATIM really does output its argument verbatim.
84024
84025 2001-02-28  Paul Eggert  <eggert@twinsun.com>
84026
84027         * lib/Makefile.am (libfetish_a_SOURCES):
84028         Add dup-safer.c, fopen-safer.c.
84029         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
84030
84031         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
84032         * lib/unistd-safer.h: New files.
84033
84034 2001-02-25  Paul Eggert  <eggert@twinsun.com>
84035
84036         The mkstemp replacement is taken from glibc 2.2.2, with some
84037         portability fixes for use outside glibc, as follows:
84038
84039         * lib/tempname.c (struct_stat64): New macro.
84040         (direxists, __gen_tempname): Use it.
84041         This avoids a portability problem with Solaris 8.
84042
84043         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
84044         (<stddef.h>, <stdint.h>, <string.h>):
84045         Include only if STDC_HEADERS || _LIBC.
84046         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
84047         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
84048         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
84049         (__set_errno): Define this macro if <errno.h> doesn't.
84050         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
84051         Define these macros if <stdio.h> doesn't.
84052         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
84053         Define these macros if <sys/stat.h>
84054         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
84055         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
84056         __xstat64): Define if not _LIBC.
84057         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
84058         (__gen_tempname): Invoke gettimeofday only if
84059         HAVE_GETTIMEOFDAY || _LIBC;
84060         otherwise, fall back on plain "time".
84061         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
84062
84063         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
84064
84065         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
84066
84067 2001-02-18  Paul Eggert  <eggert@twinsun.com>
84068
84069         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
84070
84071 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84072
84073         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
84074         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
84075         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
84076         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84077
84078 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84079
84080         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
84081         Remove workaround macros for hosts that have mbrtowc but not
84082         mbstate_t, as we now insist on proper declarations for both
84083         before using mbrtowc.
84084
84085 2001-02-17  Jim Meyering  <meyering@lucent.com>
84086
84087         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
84088         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
84089         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
84090         UnixWare 7.1.1.
84091
84092         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
84093         rather than AC_CACHE_VAL.
84094
84095 2001-02-17  Jim Meyering  <meyering@lucent.com>
84096
84097         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
84098         around included file name.
84099
84100         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
84101
84102         * lib/strftime.c: Update from GNU libc (the only changes were to
84103         comments).
84104
84105 2001-02-17  Jim Meyering  <meyering@lucent.com>
84106
84107         * lib/regex.c: Update from libc.
84108
84109 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
84110
84111         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
84112         clash.
84113
84114 2001-02-16  Paul Eggert  <eggert@twinsun.com>
84115
84116         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
84117         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
84118         Reported by Mark Hounschell via Paul Eggert.
84119
84120 2001-02-07  Jim Meyering  <meyering@lucent.com>
84121
84122         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
84123
84124 2001-02-05  Jim Meyering  <meyering@lucent.com>
84125
84126         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
84127         it includes the patch required for `large file' support with at least
84128         HP-UX's 10.20 /bin/cc.
84129
84130 2001-02-03  Jim Meyering  <meyering@lucent.com>
84131
84132         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
84133         AS_IF, now that it works once again (mysteriously).
84134         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84135
84136 2001-01-30  Jim Meyering  <meyering@lucent.com>
84137
84138         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
84139         * m4/chown.m4: Rename conftestchown to conftest.chown.
84140         * m4/rename.m4: s/conftestdir/conftest.d1/ and
84141         s/conftestdir2/conftest.d2/.
84142         * m4/utimes.m4: s/conftestdata/conftest.data/
84143         Inspired by Pavel Roskin's change in autoconf.
84144
84145 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
84146
84147         * lib/config.charset: Update for FreeBSD 4.2.
84148
84149 2001-01-27  Jim Meyering  <meyering@lucent.com>
84150
84151         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
84152         a use of AS_IF.
84153         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84154
84155 2001-01-26  Jim Meyering  <meyering@lucent.com>
84156
84157         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
84158         quotearg.c includes it.
84159
84160 2001-01-26  Jim Meyering  <meyering@lucent.com>
84161
84162         * lib/quotearg.c: Include stddef.h.
84163         * lib/quote.c: Include stddef.h.
84164         Reported by Axel Kittenberger.
84165
84166         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
84167         line in double quotes so that it evokes a better diagnostic.
84168         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
84169         Reported by Axel Kittenberger.
84170
84171 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
84172
84173         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
84174         as if it was a `charset'.
84175
84176 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84177
84178         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
84179         has const.
84180
84181 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84182
84183         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
84184         to avoid a warning.  Add back 'const' to inptr.
84185
84186 2001-01-20  Jim Meyering  <meyering@lucent.com>
84187
84188         Be sure that headers are checked before used in code compiled
84189         for the type checks.
84190         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
84191         In place of that, invoke jm_CHECK_ALL_TYPES.
84192         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
84193         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
84194         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
84195         The check for ssize_t was mistakenly run before the test for unistd.h.
84196
84197         The configure-time check for stdbool.h was missing.
84198         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
84199         (jm_PREREQ_HASH): New function.
84200
84201 2001-01-17  Jim Meyering  <meyering@lucent.com>
84202
84203         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
84204         for autoconf-2.49c.
84205         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
84206
84207 2001-01-16  Jim Meyering  <meyering@lucent.com>
84208
84209         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
84210         From Bruno Haible.
84211
84212 2001-01-14  Jim Meyering  <meyering@lucent.com>
84213
84214         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
84215         foo and bar.  Create conftestdir/ in the script, not in the C code.
84216         Remove directories in the script, not in the C code.
84217         Remove conftestdir{,2} before trying to create the directory.
84218         Make the entire configure script fail if the mkdir fails.
84219
84220 2001-01-14  Jim Meyering  <meyering@lucent.com>
84221
84222         * lib/rename.c: New file.  From Volker Borchert.
84223         Include stdlib.h, string.h or strings.h, and xalloc.h.
84224         Use strip_trailing_slashes rather than open-coding it.
84225
84226 2001-01-03  Paul Eggert  <eggert@twinsun.com>
84227
84228         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
84229
84230 2001-01-03  Jim Meyering  <meyering@lucent.com>
84231
84232         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
84233         of local `inptr' to avoid warning with some system declarations of
84234         iconv.
84235
84236 2001-01-02  Volker Borchert  <bt@teknon.de>
84237
84238         * m4/rename.m4: New file.
84239         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
84240
84241 2001-01-01  Jim Meyering  <meyering@lucent.com>
84242
84243         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
84244         even on systems with utmpx.h.  It's necessary for the declaration of
84245         utmp's ut_user member.  Reported by Andreas Jaeger.
84246
84247         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
84248         available. They are required for the declarations of getgrgid and
84249         getpwuid resp.
84250         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
84251         Reported by Andreas Jaeger.
84252
84253 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
84254
84255         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
84256         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
84257         so `make install' also works in VPATH builds.
84258
84259 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
84260
84261         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
84262         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
84263         can be used in subdirectories.
84264
84265 2000-12-29  Paul Eggert  <eggert@twinsun.com>
84266
84267         * lib/modechange.c: Do not assume that mode_t uses the
84268         traditional octal encoding.  E.g. "chmod 1 FOO" should set
84269         the other-execute bit of FOO even if S_IXOTH != 1.
84270
84271         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
84272         WOTH, XOTH, ALLM): New macros.
84273         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
84274          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
84275         Use them.
84276         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
84277         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
84278         (mode_compile):
84279         No need to use uintmax_t; unsigned long is long enough.
84280         Don't bother to get suffix since we don't use it.
84281
84282 2000-12-26  Jim Meyering  <meyering@lucent.com>
84283
84284         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
84285         better with autoheader.
84286
84287 2000-12-24  Jim Meyering  <meyering@lucent.com>
84288
84289         * lib/hash.c (is_prime): Return explicit boolean values.
84290         (hash_get_first): Return NULL to appease Irix5.6's 89.
84291         Reported by Nelson Beebe.
84292
84293 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
84294
84295         * lib/localcharset.c (locale_charset): Add support for Win32.
84296
84297 2000-12-18  Paul Eggert  <eggert@twinsun.com>
84298
84299         * lib/physmem.h, lib/physmem.c: New files.
84300
84301         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
84302         (noinst_HEADERS): Add physmem.h.
84303
84304         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
84305         't' for compatibility with Solaris 8 sort.
84306
84307 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
84308
84309         * lib/config.charset: Add support for BeOS.
84310
84311 2000-12-17  Jim Meyering  <meyering@lucent.com>
84312
84313         * m4/dos.m4 (jm_AC_DOS): New file and macro.
84314         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
84315
84316 2000-12-16  Jim Meyering  <meyering@lucent.com>
84317
84318         This bug had a serious impact on chown: `chown N:M FILE' (for integer
84319         N and M) would have treated it like `chown N:N FILE'.
84320
84321         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
84322
84323 2000-12-16  Jim Meyering  <meyering@lucent.com>
84324
84325         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
84326         SHELLS_FILE to a file name that's useful on djgpp systems.
84327         Include stdlib.h.
84328         (ADDITIONAL_DEFAULT_SHELLS): Define.
84329         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
84330         Based mostly on a patch from Prashant TR.
84331
84332 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
84333
84334         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
84335         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
84336         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
84337
84338 2000-12-08  Andreas Schwab  <schwab@suse.de>
84339
84340         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
84341         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
84342
84343 2000-12-07  Jim Meyering  <meyering@lucent.com>
84344
84345         * lib/stripslash.c (ISSLASH): Define.
84346         (strip_trailing_slashes): Use ISSLASH rather than comparing against
84347         `/'.
84348         From Prashant TR.
84349
84350         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
84351         (dir_name_r): Declare this function as static.
84352         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
84353         manifest itself on a name containing a mix of slashes and
84354         backslashes.
84355         Make this function work with names starting with a DOS-style
84356         drive letter and colon prefix.
84357         (dir_name): Append `.' if necessary.
84358         Based mostly on patches from Prashant TR and Eli Zaretskii.
84359
84360         * lib/dirname.h (dir_name_r): Remove prototype.
84361
84362 2000-12-06  Paul Eggert  <eggert@twinsun.com>
84363
84364         * m4/off_t-format.m4: Remove this file.
84365         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
84366
84367 2000-12-06  Jim Meyering  <meyering@lucent.com>
84368
84369         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
84370         replacement strtoull, we may well need the replacement strtoul, too.
84371         Check for declarations of strtoul and strtoull.
84372         Check for strtol.  Mainly as a cue to cause automake to include
84373         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
84374         Check for limits.h -- strtol.c needs it.
84375
84376 2000-12-05  Jim Meyering  <meyering@lucent.com>
84377
84378         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
84379
84380 2000-12-04  Jim Meyering  <meyering@lucent.com>
84381
84382         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
84383         Also include memory.h, stdlib.h, unistd.h if appropriate.
84384         Reported by Andreas Jaeger (conflicting declaration of malloc).
84385
84386 2000-12-02  Jim Meyering  <meyering@lucent.com>
84387
84388         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
84389         * m4/jm-macros.m4 (jm_MACROS): require it.
84390
84391 2000-12-02  Jim Meyering  <meyering@lucent.com>
84392
84393         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
84394
84395 2000-12-01  Paul Eggert  <eggert@twinsun.com>
84396
84397         * lib/memrchr.c: Include <config.h> before any system include file.
84398
84399 2000-11-30  Jim Meyering  <meyering@lucent.com>
84400
84401         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
84402
84403 2000-11-30  Jim Meyering  <meyering@lucent.com>
84404
84405         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
84406
84407 2000-11-29  Paul Eggert  <eggert@twinsun.com>
84408
84409         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
84410
84411 2000-11-26  Jim Meyering  <meyering@lucent.com>
84412
84413         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
84414
84415 2000-11-22  Paul Eggert  <eggert@twinsun.com>
84416
84417         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
84418         size of (size_t) -1; it's not portable.
84419
84420 2000-11-17  Jim Meyering  <meyering@lucent.com>
84421
84422         * lib/strstr.c: Update from GNU libc.
84423
84424 2000-11-17  Akim Demaille  <akim@epita.fr>
84425
84426         * lib/obstack.h: Formatting changes.
84427         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
84428         prevent type checking.
84429         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
84430         cast the value to (void *): assigning a `foo *' to a `void *'
84431         variable is valid.
84432         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
84433
84434 2000-11-16  Jim Meyering  <meyering@lucent.com>
84435
84436         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
84437
84438 2000-11-11  Jim Meyering  <meyering@lucent.com>
84439
84440         * lib/error.c: Add a couple #includes, merging from GNU libc version.
84441
84442 2000-11-10  Jim Meyering  <meyering@lucent.com>
84443
84444         * lib/obstack.h: Update from GNU libc.
84445         * lib/obstack.c: Likewise.
84446
84447 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
84448
84449         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
84450
84451 2000-11-06  Paul Eggert  <eggert@twinsun.com>
84452
84453         * lib/getusershell.c (setusershell): Use rewind rather than
84454         fseek/fseeko, to avoid configuration hassles with fseeko.
84455         Don't bother opening SHELLS_FILE if shellstream is NULL;
84456         it's not necessary.
84457
84458 2000-11-05  Jim Meyering  <meyering@lucent.com>
84459
84460         * lib/makepath.h (make_dir): Declare.
84461         * lib/makepath.c (make_dir): Remove `static' attribute.
84462         Tweak a comment.
84463
84464 2000-11-04  Jim Meyering  <meyering@lucent.com>
84465
84466         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
84467
84468 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
84469
84470         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
84471         last one in a bucket, advance to the next bucket.
84472
84473 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
84474
84475         * lib/fnmatch.c: Do not comment out all the code if we are using
84476         the GNU C library, because in some cases we are replacing buggy
84477         code in the GNU C library itself.
84478
84479 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
84480
84481         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
84482         (regex_compile): Catch bogus \(\1\).
84483
84484 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84485
84486         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
84487         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
84488         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
84489
84490 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84491
84492         * lib/error.h, getline.h, modechange.h:
84493         Remove "2000" from Copyright line, as the file hasn't been
84494         changed this year other than in the copyright notice.
84495
84496         * lib/xalloc.h: Add "2000" to Copyright line, as this file
84497         was changed this year.
84498
84499 2000-10-29  Jim Meyering  <meyering@lucent.com>
84500
84501         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
84502         renaming.
84503         * m4/ls-mntd-fs.m4: Likewise
84504
84505 2000-10-29  Jim Meyering  <meyering@lucent.com>
84506
84507         * lib/xstat.in: Fix grammar in comment.
84508
84509 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
84510
84511         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
84512         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
84513         doesn't define __restrict_arr.
84514
84515 2000-10-28  Jim Meyering  <meyering@lucent.com>
84516
84517         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
84518         (jm_PREREQ_MEMCHR): New function.
84519
84520 2000-10-28  Jim Meyering  <meyering@lucent.com>
84521
84522         * lib/memchr.c: Update from libc.
84523         Adjust for portability:
84524         [HAVE_STDLIB_H]: Include stdlib.h.
84525         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
84526         Undef __memchr, too.
84527         [!weak_alias]: Define __memchr to memchr.
84528
84529         * lib/regex.c: Update from libc.
84530         * lib/regex.h: Likewise.
84531         * lib/getopt1.c: Likewise.
84532         * lib/memcmp.c: Likewise.
84533
84534         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
84535         Avoid using fseek, when possible -- it's broken by design.
84536         Patch by Ulrich Drepper.
84537
84538 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
84539
84540         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
84541         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
84542         Giving in to popular pressure to shut up the compiler with casts.
84543
84544 2000-10-26  Jim Meyering  <meyering@lucent.com>
84545
84546         * lib/strftime.c: Update from libc.
84547
84548 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
84549
84550         * regex.c: More `unsigned char' -> `re_char' changes.
84551         Also change several `int' into `re_wchar_t'.
84552         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
84553         (PUSH_FAILURE_POINTER): Don't cast any more.
84554         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
84555         We want GCC to complain, since this piece of code makes
84556         re_match non-reentrant, which *should* be fixed.
84557         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
84558         (EXTEND_BUFFER): Use RETALLOC.
84559         (SET_LIST_BIT): Don't cast.
84560         (re_wchar_t): New type.
84561         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
84562         that those two functions will always properly return.
84563         (IMMEDIATE_QUIT_CHECK): Cast to void.
84564         (analyse_first): Use recursion rather than an explicit stack.
84565         (re_compile_fastmap): Can't fail anymore.
84566         (re_search_2): Don't check re_compile_fastmap for failure.
84567         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
84568         Now also sets the new value (passed in a new argument).
84569         (re_match_2_internal): Use it.
84570         Also, use a new var `reg' of type size_t when looping through regs
84571         rather than reuse the inappropriate `mcnt'.
84572
84573 2000-10-25  Jim Meyering  <meyering@lucent.com>
84574
84575         * lib/obstack.c: Update from libc.
84576
84577 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
84578
84579         * regex.c (regex_compile): Change the way of handling a range from
84580         a char less than 256 to a char not less than 256.
84581
84582 2000-10-24  Andrew Innes  <andrewi@gnu.org>
84583
84584         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
84585         NT-Emacs only.
84586         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
84587         so that re_search functions only quit when callers expect them to.
84588
84589 2000-10-23  Jim Meyering  <meyering@lucent.com>
84590
84591         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
84592         wrong.  That set_locale call must not have any side effects.
84593         From Paul Eggert.
84594
84595 2000-10-22  Jim Meyering  <meyering@lucent.com>
84596
84597         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
84598         [CYCLIC]: Remove now-unused definition.
84599
84600         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
84601         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
84602         Suggestion from Ulrich Drepper.
84603
84604 2000-10-21  Jim Meyering  <meyering@lucent.com>
84605
84606         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
84607         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
84608         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
84609
84610 2000-10-21  Jim Meyering  <meyering@lucent.com>
84611
84612         * lib/dirname.c (memrchr): Declare if necessary.
84613         (dir_name): Remove the restriction that there be no
84614         trailing slashes.  Now, this code skips past them, effectively
84615         ignoring them.
84616         [TEST_DIRNAME] (main): New unit tests.
84617
84618         * lib/memrchr.c: New file from GNU libc.
84619         Undef __memrchr, too.
84620         [!weak_alias]: Define __memrchr to memrchr.
84621         Guard weak_alias use with `#ifdef weak_alias'.
84622
84623 2000-10-21  Jim Meyering  <meyering@lucent.com>
84624
84625         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
84626         (dir_name): Use dir_name_r.
84627         * lib/dirname.h (dir_name_r): Declare it.
84628
84629 2000-10-17  Jim Meyering  <meyering@lucent.com>
84630
84631         * lib/quote.h (PARAMS): Define and use.
84632         Reported by Akim Demaille.
84633
84634         * lib/getopt.c: Update from libc.
84635
84636 2000-10-16  Jim Meyering  <meyering@lucent.com>
84637
84638         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
84639         setlocale.
84640         From Jan Fedak.
84641
84642 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
84643
84644         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
84645
84646 2000-09-25  Jim Meyering  <meyering@lucent.com>
84647
84648         * lib/md5.h (rol): Define (from GnuPG).
84649
84650         * lib/sha.c: Give credit (GnuPG) where due.
84651         (M): Use rol rather than open-coding it.
84652         Add a FIXME comment.
84653
84654 2000-09-21  Jim Meyering  <meyering@lucent.com>
84655
84656         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
84657         Reported by Michael Stone.
84658
84659 2000-09-20  Jim Meyering  <meyering@lucent.com>
84660
84661         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
84662         (noinst_HEADERS): Add sha.h.
84663         Based on code from Scott G. Miller and from GnuPG.
84664
84665 2000-09-18  Jim Meyering  <meyering@lucent.com>
84666
84667         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
84668         LIBS. Otherwise, everyone ends up linking with -lelf for some
84669         configurations.
84670         Reported by Mike Stone.
84671
84672 2000-09-15  Jim Meyering  <meyering@lucent.com>
84673
84674         * lib/regex.c: Update from libc.
84675
84676 2000-09-10  Jim Meyering  <meyering@lucent.com>
84677
84678         * lib/getopt.c (_getopt_internal): Update from glibc.
84679
84680 2000-09-09  Jim Meyering  <meyering@lucent.com>
84681
84682         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
84683         think it should be used as a general replacement for isascii.
84684         * lib/fnmatch.c: Likewise.
84685         * lib/mbswidth.c: Likewise
84686         * lib/regex.c: Likewise.
84687
84688         Don't use atoi.
84689         * lib/userspec.c: Include sys/param.h and limits.h.
84690         Include xstrtol.h.
84691         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84692         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
84693         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
84694         UID, GID.  Check range.
84695
84696 2000-09-06  Jim Meyering  <meyering@lucent.com>
84697
84698         * lib/getopt.c (_getopt_internal): Update from glibc.
84699
84700 2000-08-30  Jim Meyering  <meyering@lucent.com>
84701
84702         * lib/strftime.c: Merge in changes from GNU libc.
84703
84704 2000-08-26  Jim Meyering  <meyering@lucent.com>
84705
84706         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
84707         * m4/fpending.m4: New file.
84708
84709 2000-08-26  Jim Meyering  <meyering@lucent.com>
84710
84711         * lib/closeout.c: Include "__fpending.h".
84712         (close_stdout_status): Return right away if there's nothing to flush.
84713
84714         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
84715         * lib/__fpending.c: New file.
84716         * lib/__fpending.h: New file.
84717
84718 2000-08-20  Jim Meyering  <meyering@lucent.com>
84719
84720         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
84721         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
84722         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
84723
84724 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
84725
84726         Improve fileutils installation on systems where running
84727         programs (like install) can't be unlinked.
84728         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
84729         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
84730
84731 2000-08-07  Paul Eggert  <eggert@twinsun.com>
84732
84733         Standardize on "memory exhausted" instead of "Memory exhausted"
84734         or "virtual memory exhausted".
84735         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
84736         "virtual memory exhausted".
84737         * lib/same.c (same_name): Invoke xalloc_die instead of printing
84738         our own message.
84739         * lib/userspec.c (parse_user_spec): Likewise.
84740         * lib/bumpalloc.h: comment fix
84741         * lib/same.c, userspec.c: Include xalloc.h.
84742
84743         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
84744         not char *const and pointing to a constant array.
84745         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
84746         (xrealloc): Comment fix.
84747
84748         * lib/userspec.c (parse_user_spec):
84749         Don't translate a message until just before returning,
84750         to avoid unnecessary translation.
84751
84752 2000-08-07  Jim Meyering  <meyering@lucent.com>
84753
84754         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
84755         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
84756         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
84757         getgroups.c, gethostname.c, getopt.h, group-member.c,
84758         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
84759         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
84760         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
84761         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
84762         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
84763         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
84764         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
84765         yesno.c: Back out Copyright date changes for each file with no change
84766         this year.  This eases coordination with other programs using the same
84767         source code modules.  From Paul Eggert.
84768
84769 2000-08-06  Paul Eggert  <eggert@twinsun.com>
84770
84771         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
84772         not char, for compatibility with glibc 2.1.3 strftime.c.
84773
84774 2000-08-03  Greg McGary  <greg@mcgary.org>
84775
84776         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
84777         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
84778         (EXTEND_BUFFER): Use them.
84779
84780 2000-08-01  Jim Meyering  <meyering@lucent.com>
84781
84782         * lib/dirname.c (ISSLASH): Define.
84783         (BACKSLASH_IS_PATH_SEPARATOR): Define.
84784         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
84785         both `\' and `/' may be use as path separators.
84786         Based on a patch from Prashant TR.
84787
84788 2000-07-31  Paul Eggert  <eggert@twinsun.com>
84789
84790         * lib/quotearg.c (quotearg_n_options): Don't make the initial
84791         slot vector a constant, since it might get modified.
84792
84793 2000-07-31  Jim Meyering  <meyering@lucent.com>
84794
84795         * lib/xmalloc.c: Use `virtual memory exhausted', not
84796         `Memory exhausted'.
84797         * lib/obstack.c (print_and_abort): Likewise.
84798
84799 2000-07-30  Paul Eggert  <eggert@twinsun.com>
84800
84801         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
84802         buffer, so that the caller can always quote one small
84803         component of a "memory exhausted" message in slot 0.
84804         From a suggestion by Jim Meyering.
84805
84806 2000-07-30  Jim Meyering  <meyering@lucent.com>
84807
84808         * lib/makepath.c (make_path): Quote the other instance, too.
84809
84810         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
84811         (STATIC_BUF_SIZE): Define.
84812         (quotearg_n_options): Use only statically allocated storage when
84813         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
84814         than STATIC_BUF_SIZE.
84815
84816 2000-07-29  Jim Meyering  <meyering@lucent.com>
84817
84818         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
84819         * lib/dirname.c (dir_name): Likewise.
84820
84821         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
84822         `/'.
84823
84824         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
84825         (dir_name): Assert that there are no trailing slashes.
84826
84827 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
84828
84829         * lib/mbswidth.h (mbswidth): Add a flags argument.
84830         (mbswidth): New declaration.
84831         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
84832         * lib/mbswidth.c (mbswidth): Add a flags argument.
84833         (mbsnwidth): New function.
84834
84835 2000-07-24  Jim Meyering  <meyering@lucent.com>
84836
84837         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
84838
84839 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84840
84841         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
84842
84843 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84844
84845         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
84846         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
84847         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
84848         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
84849         invoke multibyte primitives.
84850
84851 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84852
84853         * lib/quotearg.c:
84854         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
84855         so that mbstate_t is always defined.
84856
84857         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
84858         be 1 in at least one GCC installation, and this configuration
84859         error is likely to be common.  Ignoring MB_LEN_MAX hurts
84860         performance on hosts that have mbrtowc but have only unibyte
84861         locales, but I assume these hosts are rare.
84862
84863 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84864
84865         * lib/mbswidth.c (_XOPEN_SOURCE):
84866         Don't define; this causes problems on Solaris 7.
84867         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
84868
84869 2000-07-23  Jim Meyering  <meyering@lucent.com>
84870
84871         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
84872         too: getgrgid, getpwuid, getuid.
84873
84874 2000-07-23  Jim Meyering  <meyering@lucent.com>
84875
84876         * lib/basename.c (base_name): Add an assertion.
84877
84878 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
84879
84880         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
84881         shadow its mbsinit function.
84882
84883 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84884
84885         * lib/mbswidth.h: New file.
84886         * lib/mbswidth.c: New file.
84887         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
84888         (noinst_HEADERS): Add mbswidth.h.
84889
84890 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84891
84892         * lib/config.charset: Add support for FreeBSD. Improve support for
84893         HP-UX and IRIX 6.
84894
84895 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
84896
84897         * m4/mbswidth.m4: New file.
84898         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
84899
84900 2000-07-15  Jim Meyering  <meyering@lucent.com>
84901
84902         * lib/makepath.c: Include quote.h.
84903         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
84904         corresponding argument in a `quote (...)' call.
84905         Give better diagnostics.
84906
84907         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
84908         (noinst_HEADERS): Add quote.h.
84909
84910         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
84911         from tar's src/misc.c.
84912         * lib/quote.h: New file.  Prototypes for same.
84913
84914 2000-07-14  Paul Eggert  <eggert@twinsun.com>
84915
84916         From a suggestion by Bruno Haible.
84917         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
84918         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
84919         to decide whether to define the BeOS workaround macro;
84920         this adjusts to the change to AC_MBSTATE_T.
84921
84922 2000-07-14  Jim Meyering  <meyering@lucent.com>
84923
84924         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
84925         jm_AC_TYPE_UINTMAX_T.
84926
84927 2000-07-13  Paul Eggert  <eggert@twinsun.com>
84928
84929         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
84930
84931         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
84932         quotearg_buffer_restyled): Add support for
84933         clocale_quoting_style.  Undo previous change to
84934         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
84935         and "{RIGHT QUOTATION MARK}" msgids.
84936
84937 2000-07-10  Paul Eggert  <eggert@twinsun.com>
84938
84939         From a suggestion by Bruno Haible.
84940         * m4/mbstate_t.m4 (AC_MBSTATE_T):
84941         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
84942         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
84943         and mbstate_t, to a single-part test that simply defines mbstate_t.
84944         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
84945         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
84946
84947 2000-07-10  Jim Meyering  <meyering@lucent.com>
84948
84949         * m4/strerror_r.m4: Mirror the correction made in autoconf.
84950
84951         * m4/gnu-source.m4: Output to confdefs.h directly.
84952         Suggestion from Akim Demaille.
84953
84954 2000-07-09  Paul Eggert  <eggert@twinsun.com>
84955
84956         The old behavior of quoting `like this' doesn't look good with
84957         newer, ISO-style fonts.  See:
84958         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
84959
84960         Instead, quote "like this" by default.  Let the translator
84961         tailor the locale-specific quoting behavior by providing
84962         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
84963
84964         * lib/quotearg.c (N_): New macro.
84965         (gettext_default): New function.
84966         (quotearg_buffer_restyled): Use
84967         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
84968         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
84969
84970 2000-07-09  Jim Meyering  <meyering@lucent.com>
84971
84972         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
84973         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84974
84975         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84976         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84977
84978 2000-07-09  Jim Meyering  <meyering@lucent.com>
84979
84980         * lib/Most files: Update copyright dates to include 2000.
84981
84982 2000-07-08  Jim Meyering  <meyering@lucent.com>
84983
84984         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84985         if not defined.
84986         (xgethostname): Remove now-unnecessary #ifdef.
84987         Move declaration of `err' into loop where it's used.
84988
84989 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84990         and Bruno Haible  <haible@clisp.cons.org>
84991
84992         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84993         only if the test for an object-type mbstate_t fails.  This
84994         prevents us from mistakenly reporting that mbstate_t is a
84995         system object type after we "#define mbstate_t int" to work
84996         around its lack.
84997
84998 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84999         and Bruno Haible  <haible@clisp.cons.org>
85000
85001         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
85002
85003 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85004
85005         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
85006         to strerror_r.
85007         Include <ctype.h> for use of isalpha.
85008
85009 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85010
85011         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
85012         by allocating a larger buffer. Test the gethostname return value for
85013         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
85014         returns an error and ENAMETOOLONG isn't defined.
85015
85016 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85017
85018         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
85019         dimension.
85020
85021 2000-07-04  Jim Meyering  <meyering@lucent.com>
85022
85023         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
85024         of the deprecated AC_CHECKING.
85025
85026 2000-07-04  Jim Meyering  <meyering@lucent.com>
85027
85028         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
85029         Reported by Bruno Haible.
85030
85031 2000-07-04  Jim Meyering  <meyering@lucent.com>
85032
85033         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
85034         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
85035         lacks mbrtowc.
85036
85037 2000-07-03  Paul Eggert  <eggert@twinsun.com>
85038
85039         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
85040         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
85041
85042 2000-07-03  Paul Eggert  <eggert@twinsun.com>
85043         and Bruno Haible  <haible@clisp.cons.org>
85044
85045         * lib/quotearg.c (mbrtowc):
85046         Assign to *pwc, and return 1 only if result is nonzero.
85047         (iswprint): Use ISPRINT when substituting our own mbrtowc.
85048
85049 2000-07-03  Jim Meyering  <meyering@lucent.com>
85050
85051         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
85052
85053 2000-07-03  Jim Meyering  <meyering@lucent.com>
85054
85055         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
85056         This is necessary to get a definition of e.g., UTMP_FILE on
85057         HP-UX 10.20.
85058         From Bob Proulx.
85059
85060 2000-07-02  Jim Meyering  <meyering@lucent.com>
85061
85062         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
85063
85064         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
85065         AC_LIBOBJ(function_name).
85066         * m4/chown.m4: Likewise.
85067         * m4/fnmatch.m4: Likewise.
85068         * m4/ftruncate.m4: Likewise.
85069         * m4/getgroups.m4: Likewise.
85070         * m4/getline.m4: Likewise.
85071         * m4/group-member.m4: Likewise.
85072         * m4/jm-macros.m4: Likewise.
85073         * m4/lstat.m4: Likewise.
85074         * m4/malloc.m4: Likewise.
85075         * m4/memcmp.m4: Likewise.
85076         * m4/nanosleep.m4: Likewise.
85077         * m4/putenv.m4: Likewise.
85078         * m4/realloc.m4: Likewise.
85079         * m4/regex.m4: Likewise.
85080         * m4/stat.m4: Likewise.
85081         * m4/strftime.m4: Likewise.
85082
85083 2000-07-02  Jim Meyering  <meyering@lucent.com>
85084
85085         * lib/quotearg.c (mbstate_t): Don't define here.
85086
85087 2000-07-02  Jim Meyering  <meyering@lucent.com>
85088
85089         * lib/nanosleep.c (SIGCONT): Define if not already defined.
85090
85091 2000-07-01  Jim Meyering  <meyering@lucent.com>
85092
85093         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
85094
85095 2000-07-01  Jim Meyering  <meyering@lucent.com>
85096
85097         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
85098         problem.
85099
85100 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85101
85102         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
85103         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
85104
85105 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85106
85107         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
85108         per change in ../m4/ls-mntd-fs.m4.
85109         (read_filesystem_list): Ignore symbolic links.
85110
85111 2000-06-29  Jim Meyering  <meyering@lucent.com>
85112
85113         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
85114         for declaration of strcmp.
85115
85116         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
85117
85118         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
85119         Avoid warning by casting result to `char *' to remove `const'.
85120
85121 2000-06-28  Jim Meyering  <meyering@lucent.com>
85122
85123         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
85124         included by quotearg.c, for which we perform this test.  From
85125         Bruno Haible.
85126
85127 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85128
85129         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
85130         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
85131         <utmpx.h> exists, put readutmp.o into LIBOBJS.
85132
85133 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85134
85135         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
85136
85137 2000-06-26  Paul Eggert  <eggert@twinsun.com>
85138
85139         savedir now sets errno on failure and invokes xmalloc to get memory.
85140         Fix a couple of other minor bugs while we're at it.
85141
85142         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
85143         (NAMLEN): Remove macro.
85144         (malloc, realloc): Remove decls.
85145         (stpcpy): Likewise.
85146         ("xalloc.h"): Include.
85147         (NAME_SIZE_DEFAULT): New macro.
85148         (savedir): Use xmalloc / xrealloc to allocate memory.
85149         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
85150         Skip "" directory entries.
85151         Use strlen to calculate directory entry length, since the old method
85152         is rarely used these days and isn't worth supporting.
85153         Don't use a pointer after freeing it.
85154         Check for integer overflow when calculating allocation size.
85155         Use memcpy to copy entries, instead of stpcpy.
85156         Set errno properly when returning NULL.
85157         Check for readdir error.
85158
85159 2000-06-26  Jim Meyering  <meyering@lucent.com>
85160
85161         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
85162
85163 2000-06-25  Jim Meyering  <meyering@lucent.com>
85164
85165         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
85166         Linux header bug when _XOPEN_SOURCE is defined to 500.
85167
85168 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85169
85170         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
85171         deficiency.
85172
85173 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85174
85175         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
85176         Include xalloc.h.
85177         Don't include <stdlib.h>.  Don't declare malloc, realloc.
85178
85179 2000-06-24  Jim Meyering  <meyering@lucent.com>
85180
85181         * m4/strerror_r.m4: Revive this file -- to try out an experimental
85182         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
85183         for which strerror does return char*, but which lacks a conveniently
85184         accessible declaration of the function.  If the compile-test says
85185         strerror_r doesn't work, then resort to a `run'-test that works on
85186         BeOS and segfaults on DEC Unix.
85187
85188 2000-06-24  Jim Meyering  <meyering@lucent.com>
85189
85190         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
85191
85192 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85193
85194         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
85195         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
85196
85197 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85198
85199         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
85200         (mbrtowc, mbstate_t): Define substitutes if
85201         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
85202         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
85203         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
85204
85205 2000-06-23  Jim Meyering  <meyering@lucent.com>
85206
85207         * m4/afs.m4: Add missing AC_MSG_RESULT.
85208         Reported by Bruno Haible.
85209
85210         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
85211         Suggestion from Bruno Haible.
85212
85213 2000-06-23  Jim Meyering  <meyering@lucent.com>
85214
85215         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
85216
85217 2000-06-21  Jim Meyering  <meyering@lucent.com>
85218
85219         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
85220
85221 2000-06-21  Jim Meyering  <meyering@lucent.com>
85222
85223         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
85224         (noinst_HEADERS): Add getstr.h.
85225
85226         * lib/getline.c (getstr): Move into a separate file.
85227         * lib/getstr.c (getstr): New file, extracted from getline.c, with
85228         the following changes: new parameter, delim2; both delim[12]
85229         parameters have type `int', not `char'.  The latter would lose
85230         with 8-bit delimiters.
85231         * lib/getstr.h: New file.
85232
85233 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85234
85235         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
85236         than 1024, return a memory chunk of least possible size, instead
85237         of size PATH_MAX + 2. In the loop, increment the size proportionally.
85238         Use free/xmalloc instead of xrealloc to avoid copying for very long
85239         paths.
85240
85241 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85242
85243         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
85244         the empty string.
85245
85246 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85247
85248         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
85249         address, not strdup.  Include <stdlib.h> and don't declare free().
85250
85251 2000-06-19  Jim Meyering  <meyering@lucent.com>
85252
85253         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
85254
85255 2000-06-18  Jim Meyering  <meyering@lucent.com>
85256
85257         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
85258
85259         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
85260         `checking whether...' message to be consistent with that of the
85261         lstat test.
85262
85263 2000-06-18  Jim Meyering  <meyering@lucent.com>
85264
85265         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
85266         Besides, these days every porting target provides a mkdir function.
85267
85268         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
85269         needed. (this snippet comes from src/system.h).
85270
85271 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
85272
85273         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
85274
85275 2000-06-15  Paul Eggert  <eggert@twinsun.com>
85276
85277         * lib/human.c (adjust_value): New function.
85278         (human_readable_inexact): Apply rounding style even when
85279         printing approximate values.
85280
85281 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85282
85283         * lib/human.c (human_readable_inexact): Allow an input block
85284         size that is not a multiple of the output block size, and vice versa.
85285         Reported by Piergiorgio Sartor.
85286
85287 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85288
85289         * lib/getdate.y (get_date): Apply relative times after time
85290         zone indicator, not before.  Reported by Todd A. Jacobs.
85291
85292 2000-06-13  Jim Meyering  <meyering@lucent.com>
85293
85294         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
85295
85296         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
85297
85298 2000-06-12  Paul Eggert  <eggert@twinsun.com>
85299
85300         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
85301
85302 2000-06-12  Jim Meyering  <meyering@lucent.com>
85303
85304         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
85305         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
85306         optional argument.
85307         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
85308         the optional argument, `lib'.
85309
85310 2000-06-08  Jim Meyering  <meyering@lucent.com>
85311
85312         * m4/largefile.m4: Remove file (now that it's part of autoconf).
85313
85314 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85315
85316         Rewrite largefile configuration so that we don't need to run
85317         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
85318         AC_CANONICAL_HOST in configure.in -- jmm]
85319
85320         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
85321         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
85322         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
85323         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
85324         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
85325         All uses changed.
85326         Instead of inspecting the output of getconf, try to compile the
85327         test program without and with the macro definition.
85328         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
85329         for getconf.  Instead, check for the needed flags by compiling
85330         test programs.
85331
85332 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85333
85334         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
85335
85336 2000-06-04  Jim Meyering  <meyering@lucent.com>
85337
85338         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
85339         SunOS 4.1.4 for which gid_t is an unsigned type.
85340
85341 2000-06-03  Jim Meyering  <meyering@lucent.com>
85342
85343         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
85344         now that autoconf requires that.
85345
85346         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
85347         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
85348         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
85349
85350 2000-06-03  Jim Meyering  <meyering@lucent.com>
85351
85352         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
85353
85354 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85355
85356         * m4/glibc21.m4: New file.
85357         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
85358
85359 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85360
85361         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
85362         newer, don't install charset.alias.
85363         * lib/config.charset: Change the Linux/glibc rules so they become empty
85364         on glibc-2.1 or newer.
85365
85366 2000-06-02  Jim Meyering  <meyering@lucent.com>
85367
85368         * lib/mountlist.c: Back out last change.  Instead, do this...
85369         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
85370         me_dummy member using the same `ignore'-testing code.
85371         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
85372         fs_type strings.
85373         From Mark D. Roth.
85374
85375 2000-05-29  Jim Meyering  <meyering@lucent.com>
85376
85377         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
85378         mounts with the `ignore' attribute.  Based on a patch from
85379         Mark D. Roth.
85380
85381 2000-05-28  Jim Meyering  <meyering@lucent.com>
85382
85383         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
85384         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85385         * m4/stat.m4: Likewise.
85386         * m4/lstat.m4: Likewise.
85387         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
85388
85389         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
85390         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
85391
85392 2000-05-26  Jim Meyering  <meyering@lucent.com>
85393
85394         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
85395
85396 2000-05-24  Jim Meyering  <meyering@lucent.com>
85397
85398         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
85399         autoconf requires that.
85400         * m4/lib-check.m4: Likewise.
85401         * m4/jm-macros.m4: Likewise.
85402         * m4/strftime.m4: Likewise.
85403
85404         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
85405         AC_CHECK_DECLS, now that autoconf requires that.
85406
85407 2000-05-22  Jim Meyering  <meyering@lucent.com>
85408
85409         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85410         * m4/lstat.m4: Likewise.
85411
85412 2000-05-22  Jim Meyering  <meyering@lucent.com>
85413
85414         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
85415
85416 2000-05-20  Jim Meyering  <meyering@lucent.com>
85417
85418         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
85419         (jm_PREREQ): Use it.
85420
85421 2000-05-18  Jim Meyering  <meyering@lucent.com>
85422
85423         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
85424         back, too, since it may have been modified by allocate_entry.
85425         (hash_delete): Rewrite to use neither the assignment operator
85426         nor the comma operator in an if-expression.
85427
85428 2000-05-15  Paul Eggert  <eggert@twinsun.com>
85429
85430         * lib/closeout.c:
85431         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
85432         Remove; no longer needed.
85433         "quotearg.h": Add include.
85434         (file_name): Do not bother to explicitly initialize to NULL; it's less
85435         efficient on some hosts.
85436         (close_stdout_status): Remove test as to whether stdout was already
85437         closed; it breaks for the case "echo x | sort >&-".
85438         Quote file name colons.
85439         Do not assume that _("write error") lacks format strings.
85440
85441 2000-05-15  Jim Meyering  <meyering@lucent.com>
85442
85443         * lib/version-etc.c (version_etc_copyright): Update the copyright
85444         string used in all --version output.
85445
85446 2000-05-14  Jim Meyering  <meyering@lucent.com>
85447
85448         * lib/closeout.c (close_stdout_set_file_name): New function.
85449         (close_stdout_status): Use new file-scoped global.
85450         Return right away if fstat says the stdout file descriptor is invalid.
85451         * lib/closeout.h (close_stdout_set_file_name): Declare.
85452
85453 2000-05-10  Jim Meyering  <meyering@lucent.com>
85454
85455         * lib/closeout.c [default_exit_status]: New file-scoped variable.
85456         (close_stdout_set_status): New function.
85457         * lib/closeout.h (close_stdout_set_status): Declare.
85458
85459 2000-05-09  Jim Meyering  <meyering@lucent.com>
85460
85461         * m4/gettext.m4: Rename this...
85462         * m4/libintl.m4: ...to this.
85463
85464 2000-05-08  Jim Meyering  <meyering@lucent.com>
85465
85466         * lib/long-options.c: Don't include closeout.h.
85467         (parse_long_options): Don't call close_stdout for --version.
85468
85469 2000-05-06  Paul Eggert  <eggert@twinsun.com>
85470
85471         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
85472         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
85473         2.1.3 bug.  This avoids a clash when files like regex.c define
85474         _GNU_SOURCE.
85475
85476 2000-05-06  Jim Meyering  <meyering@lucent.com>
85477
85478         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
85479         (AC_REPLACE_FUNCS): Add strnlen.
85480
85481         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
85482         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
85483
85484         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
85485         AC_SEARCH_LIBS call for nanosleep.
85486         (LIB_NANOSLEEP): Set and AC_SUBST.
85487
85488 2000-05-06  Jim Meyering  <meyering@lucent.com>
85489
85490         * lib/strnlen.c: Undefine __strnlen and strnlen.
85491         [!weak_alias]: Define __strnlen to strnlen.
85492
85493         * lib/atexit.c: New file, from libiberty.
85494
85495 2000-05-06  Jim Meyering  <meyering@lucent.com>
85496
85497         * lib/closeout.c (close_stdout_status): Also check for errors on the
85498         stderr stream.
85499
85500 2000-05-05  Jim Meyering  <meyering@lucent.com>
85501
85502         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
85503         AC_SEARCH_LIBS call for clock_gettime.
85504         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
85505
85506         * m4/search-libs.m4: Update from autoconf.
85507
85508         su doesn't work on Solaris 2.6.
85509         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
85510         <shadow.h>.  Reported by Dragos Harabor.
85511
85512 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
85513
85514         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
85515         memcpy instead of xmalloc, xrealloc, path_concat.
85516         (locale_charset): Treat empty environment variables as absent.
85517         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
85518
85519 2000-05-04  Jim Meyering  <meyering@lucent.com>
85520
85521         * lib/getopt.c: Update from glibc.
85522         * lib/obstack.c: Likewise.
85523         * lib/obstack.h: Likewise.
85524         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
85525         file
85526
85527         * lib/regex.h: Likewise.
85528         * lib/strndup.c: Likewise.
85529         * lib/strnlen.c: New file, from glibc.
85530
85531 2000-05-03  Jim Meyering  <meyering@lucent.com>
85532
85533         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
85534
85535 2000-05-02  Paul Eggert  <eggert@twinsun.com>
85536
85537         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
85538         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
85539         compile-time test, rather than inspecting host and OS, to
85540         decide whether to define _LARGEFILE_SOURCE.
85541
85542 2000-05-01  Jim Meyering  <meyering@lucent.com>
85543
85544         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
85545
85546         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
85547         Based on a patch from Bruno Haible.
85548
85549 2000-05-01  Jim Meyering  <meyering@lucent.com>
85550
85551         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
85552
85553 2000-04-29  Jim Meyering  <meyering@lucent.com>
85554
85555         * lib/path-concat.c: Declare strdup only if it's not defined.
85556         * lib/canon-host.c: Likewise.
85557
85558 2000-04-28  Jim Meyering  <meyering@lucent.com>
85559
85560         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
85561         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
85562         is included first, then limits.h is included by locale.h by libintl.h.
85563         From John David Anglin.
85564
85565 2000-04-25  Jim Meyering  <meyering@lucent.com>
85566
85567         * lib/makepath.c (S_IRWXUGO): Define.
85568         (make_path): Always perform explicit chmod if MODE specifies any
85569         of the `special' permission bits.  Prompted by a bug report against
85570         install from Mate Wierdl and Joost van Baal.
85571
85572 2000-04-18  Jim Meyering  <meyering@lucent.com>
85573
85574         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
85575         (jm_PREREQ): Use it.
85576
85577 2000-04-18  Jim Meyering  <meyering@lucent.com>
85578
85579         * lib/README: New file.
85580
85581         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
85582         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
85583
85584 2000-04-17  Jim Meyering  <meyering@lucent.com>
85585
85586         Get it right :-)
85587         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
85588         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
85589         Suggestion from Akim Demaille.
85590
85591 2000-04-17  Jim Meyering  <meyering@lucent.com>
85592
85593         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
85594         the definition of it to rpl_strftime also defined-away the system's
85595         declaration.
85596
85597 2000-04-15  Jim Meyering  <meyering@lucent.com>
85598
85599         Use `C' to denote so-called `contiguous' files, the same way
85600         that tar does.
85601         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
85602         (ftypelet): Use S_ISCTG.
85603         From Michael Deutschmann.
85604
85605 2000-04-14  Jim Meyering  <meyering@lucent.com>
85606
85607         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
85608         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
85609         clobbered.
85610
85611 2000-04-14  Jim Meyering  <meyering@lucent.com>
85612
85613         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
85614
85615 2000-04-13  Jim Meyering  <meyering@lucent.com>
85616
85617         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
85618         AH_VERBATIM to insert required #ifndef into config.h.in.
85619         Suggestion from Akim Demaille.
85620
85621 2000-04-12  Jim Meyering  <meyering@lucent.com>
85622
85623         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
85624         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
85625         Christian Krackowizer.
85626
85627         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
85628         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
85629         (AC_SYS_LARGEFILE): Require.
85630         (AM_C_PROTOTYPES): Require.
85631
85632 2000-04-08  Jim Meyering  <meyering@lucent.com>
85633
85634         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
85635         names don't conflict.  Reported by Eli Zaretskii.
85636
85637 2000-04-07  Jim Meyering  <meyering@lucent.com>
85638
85639         * lib/putenv.c: Move inclusion of errno.h so it follows that of
85640         sys/types.h, to work around system header problems on AIX 3.2.5.
85641         From Bruno Haible.
85642
85643 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
85644
85645         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
85646         bug.  Deal with the different error behavior of Irix iconv.
85647
85648 2000-04-05  Paul Eggert  <eggert@twinsun.com>
85649
85650         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
85651         IRIX if the installer said otherwise.
85652
85653 2000-04-05  Jim Meyering  <meyering@lucent.com>
85654
85655         Portability tweaks required for ultrix4.3.
85656         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
85657         (jm_CHECK_DECLS): Add getutent to the list of functions.
85658         (_jm_DECL_HEADERS): Add utmpx.h.
85659         From John David Anglin.
85660
85661         * m4/strftime.m4: Back out the 2000-04-02 change.
85662         Instead of that change, simply undefine putenv in the test program.
85663
85664 2000-04-05  Jim Meyering  <meyering@lucent.com>
85665
85666         Portability tweaks required for ultrix4.3.
85667         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
85668         getutent.
85669         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
85670         * lib/canon-host.c: Declare strdup.
85671         * lib/path-concat.c: Likewise.
85672         From John David Anglin.
85673
85674 2000-04-04  Jim Meyering  <meyering@lucent.com>
85675
85676         Be more DOS 8.3-friendly.
85677         * lib/ref-add.sin: Renamed from ref-add.sed.in.
85678         * lib/ref-del.sin: Renamed from ref-del.sed.in.
85679         * lib/Makefile.am: Reflect renaming.
85680         Reported by Eli Zaretskii.
85681
85682         Use a temporary file name that won't clash with `charset.alias'
85683         in the DOS 8.3 name space.
85684         * lib/Makefile.am (charset_tmp): Define.
85685         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
85686         (uninstall-local): Likewise.
85687         Reported by Eli Zaretskii.
85688
85689 2000-04-03  Jim Meyering  <meyering@lucent.com>
85690
85691         * m4/gettext.m4: Fix typo in comment.
85692
85693         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
85694         textutils/configure.in).  Suggestion from Paul Eggert.
85695         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
85696
85697 2000-04-02  Paul Eggert  <eggert@twinsun.com>
85698
85699         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
85700         variable in the shell rather than using putenv, which isn't
85701         portable.  This avoids the configure-time inter-test dependency
85702         on the potentially-renamed putenv function.
85703
85704 2000-03-30  Paul Eggert  <eggert@twinsun.com>
85705
85706         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
85707         before checking struct stat.st_blksize, so that
85708         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
85709
85710 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85711
85712         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
85713         since strftime.c uses HAVE_STRFTIME to decide whether to use
85714         the underlying strftime.
85715
85716 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85717
85718         * lib/time/strftime.c (my_strftime): Make sure we call the system
85719         strftime, not ourselves, when invoking the underlying strftime.
85720
85721 2000-03-24  Jim Meyering  <meyering@lucent.com>
85722
85723         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
85724         (charset_alias): Define.
85725         (install-exec-local): Factor out common code.
85726         (uninstall-local): Split lines longer than 80.
85727         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
85728         (SUFFIXES): Define.
85729         (.sed.in.sed): New rule.  Don't redirect directly to $@.
85730         (CLEANFILES): Add ref-add.sed and ref-del.sed.
85731
85732 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
85733
85734         * lib/config.charset: Output a line containing "Packages using this
85735         file".
85736         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
85737         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
85738         ref-del.sed): New rules.
85739
85740 2000-03-17  Jim Meyering  <meyering@lucent.com>
85741
85742         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
85743         Otherwise, include <strings.h>
85744
85745 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
85746
85747         * lib/unicodeio.c (utf8_wctomb): New function.
85748         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
85749         format instead of in UCS-4 with platform dependent endianness.
85750
85751 2000-03-10  Jim Meyering  <meyering@lucent.com>
85752
85753         * m4/lib-check.m4: Look for getspnam in -lgen, too.
85754         From Marco Franzen.
85755
85756 2000-03-07  Paul Eggert  <eggert@twinsun.com>
85757
85758         * lib/savedir.c (savedir): Work even if directory size is
85759         negative; this can happen with some screwy NFS configurations.
85760
85761 2000-03-06  Jim Meyering  <meyering@lucent.com>
85762
85763         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
85764         if it's NULL (because we ran out of memory).  From Bruno Haible.
85765
85766 2000-03-05  Jim Meyering  <meyering@lucent.com>
85767
85768         * lib/localcharset.c ("path-concat.h"): Include.
85769         (get_charset_aliases): Use path_concat instead of ANSI string
85770         concatenation.
85771
85772         * lib/unicodeio.h (PARAMS): Define.
85773         Use it to guard prototype.
85774
85775 2000-03-04  Jim Meyering  <meyering@lucent.com>
85776
85777         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
85778         for lib/localcharset.c.
85779
85780 2000-03-04  Jim Meyering  <meyering@lucent.com>
85781
85782         * lib/Makefile.am (install-exec-local): Create $(libdir) before
85783         installing into it.
85784         (uninstall-local): Uncomment this rule so `make distcheck' works
85785         once again.
85786
85787         * lib/unicodeio.c (<errno.h>): Include it.
85788         (errno): Declare if not defined.
85789
85790         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
85791
85792         * lib/config.charset: New version, incorporating remarks from a linux
85793         i18n mailing list.  From Bruno Haible.
85794
85795 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
85796
85797         * m4/codeset.m4: New file.
85798         * m4/iconv.m4: New file.
85799         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
85800
85801 2000-03-03  Jim Meyering  <meyering@lucent.com>
85802
85803         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
85804
85805 2000-03-02  Jim Meyering  <meyering@lucent.com>
85806
85807         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
85808         the messages come out on separate lines.
85809
85810         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
85811         rather than jm_CHECK_DECLARATIONS.
85812         * m4/decl.m4: Remove now-unused file.
85813
85814         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
85815         geteuid.
85816
85817 2000-03-02  Jim Meyering  <meyering@lucent.com>
85818
85819         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
85820
85821 2000-03-01  Jim Meyering  <meyering@lucent.com>
85822
85823         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
85824         * lib/unicodeio.c: Likewise.
85825
85826 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
85827
85828         * lib/config.charset: New file.
85829         * lib/localcharset.c: New file.
85830         * lib/unicodeio.h, lib/unicodeio.c: New files.
85831         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
85832         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
85833         (noinst_HEADERS): Add unicodeio.h.
85834         (all-local, install-exec-local, charset.alias): New targets.
85835
85836 2000-02-28  Paul Eggert  <eggert@twinsun.com>
85837
85838         * lib/quotearg.c (ALERT_CHAR): New macro.
85839         (quotearg_buffer_restyled): Use it.
85840
85841 2000-02-27  Jim Meyering  <meyering@lucent.com>
85842
85843         * m4/check-decl.m4: Add getenv to the list.
85844
85845 2000-02-27  Jim Meyering  <meyering@lucent.com>
85846
85847         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
85848         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
85849
85850         * lib/backupfile.c: Guard inclusion of stdlib.h with
85851         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
85852         Declare malloc if needed.
85853
85854         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
85855         `#ifndef HAVE_DECL..'
85856         now that autoconf always defines the HAVE_DECL_ symbols.
85857         * lib/human.c: Likewise.
85858         * lib/same.c: Likewise.
85859         * lib/strtoumax.c: Likewise.
85860
85861         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
85862         declaration check was not run.
85863         * lib/hash.c: Likewise.
85864         * lib/human.c: Likewise.
85865         * lib/same.c: Likewise.
85866         * lib/strtoumax.c: Likewise.
85867
85868         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
85869         `.', then first look up the entire `.'-containing string as a login
85870         name.
85871
85872 2000-02-23  Jim Meyering  <meyering@lucent.com>
85873
85874         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
85875         in place of my hack.
85876
85877 2000-02-18  Paul Eggert  <eggert@twinsun.com>
85878
85879         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
85880         (textint): New typedef.
85881         (parser_control): Member year changed from int to textint.
85882         All uses changed.
85883         (YYSTYPE): Removed; replaced by %union with int and textint members.
85884         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
85885         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
85886         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
85887         (tSNUMBER, tUNUMBER): Now of type <textintval>.
85888         (date, number, to_year): Use width of number in digits, not its value,
85889         to determine whether it's a 2-digit year, or a 2-digit time.
85890         (yylex): Store number of digits of numeric tokens.
85891         Reported by John Kendall.
85892
85893         (parser_control): Changed from struct parser_control to typedef (for
85894         consistency).  All uses changed.
85895
85896         (tID): Removed; not used.
85897         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
85898
85899 2000-02-14  Paul Eggert  <eggert@twinsun.com>
85900
85901         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
85902         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
85903
85904 2000-02-12  Jim Meyering  <meyering@lucent.com>
85905
85906         * lib/userspec.c (ISDIGIT): Define it.
85907         (isdigit): Remove definition.
85908         (is_number): Use ISDIGIT, not isdigit.
85909         <libintl.h>: Include.
85910         (_ and N_): Define.
85911         (parse_user_spec): Mark translatable strings.
85912
85913 2000-02-10  Jim Meyering  <meyering@lucent.com>
85914
85915         With these changes, nanosleep.[ch] are finally enough like the other
85916         lib/* replacement files to compile on a few more losing systems.
85917
85918         * lib/nanosleep.h: Don't include config.h.
85919         Remove prototype from declaration of nanosleep.
85920         (PARAMS): Remove now-unneeded definition.
85921         * lib/nanosleep.c: #undef nanosleep.
85922         (rpl_nanosleep): Rename from nanosleep.
85923
85924 2000-02-10  Jim Meyering  <meyering@lucent.com>
85925
85926         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
85927         gnu_nanosleep to rpl_nanosleep.
85928
85929 2000-02-09  Jim Meyering  <meyering@lucent.com>
85930
85931         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
85932         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
85933
85934 2000-02-08  Akim Demaille  <akim@epita.fr>
85935
85936         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
85937         `[' and `]' and remove uses of `changequote'.
85938         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
85939         (AC_SYS_LARGEFILE): Likewise.
85940         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85941         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
85942         of changequote.
85943         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
85944         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
85945         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
85946         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
85947
85948 2000-02-05  Jim Meyering  <meyering@lucent.com>
85949
85950         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
85951         Remove explicit use of AC_HEADER_TIME.  It is required by
85952         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
85953         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
85954         in autoconf whereby the expansion of the latter ended up preceding
85955         the expansion of its prerequisite, AC_HEADER_TIME.
85956         Reported by Volker Borchert.
85957
85958 2000-02-03  Jim Meyering  <meyering@lucent.com>
85959
85960         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
85961
85962 2000-02-03  Jim Meyering  <meyering@lucent.com>
85963
85964         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
85965         rather than with `#if HAVE_UTMPNAME'.
85966
85967 2000-02-02  Jim Meyering  <meyering@lucent.com>
85968
85969         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
85970         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
85971         Reported by Eli Zaretskii.
85972
85973 2000-02-01  Jim Meyering  <meyering@lucent.com>
85974
85975         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85976
85977 2000-01-31  Jim Meyering  <meyering@lucent.com>
85978
85979         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85980         functions.  Add the time.h and sys/time.h headers along with the
85981         AC_REQUIRE'ment of AC_HEADER_TIME.
85982
85983 2000-01-31  Jim Meyering  <meyering@lucent.com>
85984
85985         * lib/nanosleep.h (nanosleep): Guard declaration with
85986         `#if ! HAVE_DECL_NANOSLEEP'.
85987         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85988         the declaration in that vendor's sys/timers.h.
85989         Reported by Christian Krackowizer.
85990
85991         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85992         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85993         (ISPRINT): Likewise.
85994         Reported by Tom Tromey.
85995
85996 2000-01-30  Jim Meyering  <meyering@lucent.com>
85997
85998         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85999
86000         * m4/prereq.m4 (utmp_includes): Define.
86001         Check for ut_user and ut_name members in both struct utmpx
86002         and struct utmp.
86003
86004 2000-01-30  Jim Meyering  <meyering@lucent.com>
86005
86006         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
86007         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
86008         header files where only utmpx.ut_user is declared.
86009
86010         * lib/readutmp.h (UT_USER): Define.
86011
86012 2000-01-29  Jim Meyering  <meyering@lucent.com>
86013
86014         * m4/lib-check.m4: New file containing library-related checks from
86015         fileutils and sh-utils (textutils had none).
86016
86017 2000-01-28  Jim Meyering  <meyering@lucent.com>
86018
86019         * m4/perl.m4: Change format of warning message to look more like that
86020         from the missing script.  Suggestion from François Pinard.
86021
86022 2000-01-25  Jim Meyering  <meyering@lucent.com>
86023
86024         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
86025         well as time.h in the compile check.
86026         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
86027         Fix typo in cross-compiling case: s/yes/no/.
86028
86029 2000-01-23  Jim Meyering  <meyering@lucent.com>
86030
86031         * m4/jm-macros.m4: Move df-related tests here from
86032         fileutils/configure.in
86033
86034         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
86035         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
86036
86037         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
86038         s/space/ac_fsusage_space/.
86039         (jm_FILE_SYSTEM_USAGE): Take two parameters.
86040
86041         * m4/ftruncate.m4: New file (derived from part of
86042         fileutils/configure.in).
86043         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
86044         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
86045
86046         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
86047         AC_SUBST these here, rather than just in sh-util/configure.in, so
86048         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
86049         all the same.
86050         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
86051         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
86052         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
86053         (AC_SUBST(POW_LIBM)): Likewise.
86054         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
86055
86056 2000-01-23  Jim Meyering  <meyering@lucent.com>
86057
86058         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
86059         obstack.c.
86060
86061 2000-01-22  Jim Meyering  <meyering@lucent.com>
86062
86063         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
86064
86065         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
86066
86067         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
86068         configure.in
86069         (AC_CHECK_HEADERS): Likewise for sh-utils.
86070         (AC_CHECK_HEADERS): Likewise for textutils.
86071         Merge the three lists of headers.
86072
86073         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
86074         from fileutils' configure.in.
86075
86076         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
86077         code. Moved tests into their own function (_jm_DECL_HEADERS) in
86078         check-decl.m4.
86079
86080         * m4/check-decl.m4: Use #if rather than #ifdef.
86081         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
86082         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
86083         (_jm_DECL_HEADERS): Define new function.
86084         (jm_CHECK_DECLARATIONS): Require it.
86085
86086 2000-01-22  Jim Meyering  <meyering@lucent.com>
86087
86088         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
86089         [! HAVE_DECL_STRTOULL]: Declare strtoull.
86090         Required for some AIX systems.  Reported by Christian Krackowizer.
86091         [TESTING] (main): New function.
86092
86093         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
86094         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
86095         letters.
86096
86097         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
86098         iswprint.
86099
86100         * lib/strverscmp.c (ISDIGIT): Define.
86101         (strverscmp): Use ISDIGIT, not isdigit.
86102
86103 2000-01-19  Jim Meyering  <meyering@lucent.com>
86104
86105         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
86106         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
86107         defines `struct timespec' in <sys/time.h>
86108
86109         * m4/c-bs-a.m4: Remove uses of changequote altogether.
86110         Thanks to Akim for explaining.
86111
86112 2000-01-17  Paul Eggert  <eggert@twinsun.com>
86113
86114         * lib/nanosleep.c (nanosleep):
86115         Don't use SA_INTERRUPT to decide whether to call sigaction, as
86116         POSIX.1 doesn't require SA_INTERRUPT and some systems
86117         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
86118         it's been part of POSIX.1 since day 1 (in 1988).
86119
86120 2000-01-17  Jim Meyering  <meyering@lucent.com>
86121
86122         * lib/interlock: Remove unused file.  Reported by François Pinard.
86123
86124 2000-01-16  Paul Eggert  <eggert@twinsun.com>
86125
86126         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
86127         alert, backslash, formfeed, and vertical tab unnecessarily in
86128         shell quoting style.
86129
86130 2000-01-16  Jim Meyering  <meyering@lucent.com>
86131
86132         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
86133         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
86134         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
86135         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
86136
86137 2000-01-16  Jim Meyering  <meyering@lucent.com>
86138
86139         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
86140         because the latter didn't work.
86141
86142 2000-01-15  Jim Meyering  <meyering@lucent.com>
86143
86144         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
86145         (AC_REPLACE_FUNCS): Add memcpy and memset.
86146         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
86147         Add strpbrk.
86148         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
86149
86150 2000-01-12  Jim Meyering  <meyering@lucent.com>
86151
86152         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
86153         (jm_PREREQ): Use it.
86154         (jm_PREREQ_READUTMP): New macro.
86155         (jm_PREREQ): Use it.
86156
86157 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86158
86159         Quote multibyte characters correctly.
86160         * m4/c-bs-a.m4: New file.
86161         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
86162         (jm_PREREQ): Use it.
86163
86164 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86165
86166         * m4/uintmax_t.m4: Port to autoconf 2.13.
86167
86168 2000-01-08  Jim Meyering  <meyering@ascend.com>
86169
86170         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
86171         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
86172
86173 2000-01-04  Jim Meyering  <meyering@ascend.com>
86174
86175         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
86176         jm_STRUCT_DIRENT_D_TYPE.
86177         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
86178         jm_STRUCT_DIRENT_D_INO.
86179         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
86180         jm_STRUCT_UTIMBUF.
86181         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
86182         renamings.
86183         * m4/utime.m4: Likewise.
86184
86185         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
86186         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
86187
86188 2000-01-03  Paul Eggert  <eggert@twinsun.com>
86189
86190         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
86191         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
86192
86193 2000-01-02  Jim Meyering  <meyering@ascend.com>
86194
86195         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
86196         remember if this is necessary.
86197
86198 1999-12-26  Jim Meyering  <meyering@ascend.com>
86199
86200         * m4/jm-macros.m4: Use it here.
86201         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
86202
86203 1999-12-23  Jim Meyering  <meyering@ascend.com>
86204
86205         * m4/jm-macros.m4: Check for clock_gettime (moved from
86206         fileutils/configure.in)
86207         Check for gettimeofday.
86208
86209 1999-12-20  Jim Meyering  <meyering@ascend.com>
86210
86211         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
86212         autoconf-2.14a-1999-12-20.
86213
86214 1999-12-19  Jim Meyering  <meyering@ascend.com>
86215
86216         * m4/lstat-slash.m4: New file.
86217         * m4/jm-macros.m4: Use the new macro:
86218         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86219
86220 1999-12-07  Jim Meyering  <meyering@ascend.com>
86221
86222         * m4/perl.m4: Require that File::Compare be available, too.
86223         Too many systems seem to lack it.
86224
86225         * m4/strftime.m4: Add checks for most of the cpp macros tested in
86226         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
86227
86228 1999-11-18  Paul Eggert  <eggert@twinsun.com>
86229
86230         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
86231         problem with the QNX 4.25 shell, which doesn't propagate exit
86232         status of failed commands inside shell assignments.
86233
86234 1999-11-17  Jim Meyering  <meyering@ascend.com>
86235
86236         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
86237
86238 1999-11-07  Jim Meyering  <meyering@ascend.com>
86239
86240         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
86241
86242 1999-11-06  Jim Meyering  <meyering@ascend.com>
86243
86244         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
86245         * m4/jm-macros.m4 (jm_MACROS): Use it here.
86246
86247 1999-11-05  Jim Meyering  <meyering@ascend.com>
86248
86249         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
86250         configure.in of textutils, fileutils, and sh-utils into this one
86251         (shared between those packages) file.
86252         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
86253         AC_STRUCT_ST_BLKSIZE.
86254
86255 1999-11-03  Jim Meyering  <meyering@ascend.com>
86256
86257         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
86258         of AC_CHECK_TYPE checks includes unistd.h.
86259         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
86260         Suggestion from Akim Demaille.
86261
86262 1999-10-30  Jim Meyering  <meyering@ascend.com>
86263
86264         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
86265         m4-quoted string.
86266         * m4/ls-mntd-fs.m4: Likewise.
86267         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
86268         * m4/jm-winsz1.m4: Likewise.
86269
86270         * m4/const.m4: Remove file, since the fix made it into the experimental
86271         version of autoconf.
86272         * m4/mktime.m4: Likewise.
86273
86274         * m4/check-type.m4: Remove file, now that the latest version of
86275         AC_CHECK_TYPE takes a third arg to specify additional #includes.
86276
86277         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
86278         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
86279         AC_CHECK_TYPE.
86280
86281 1999-10-04  Jim Meyering  <meyering@ascend.com>
86282
86283         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
86284
86285 1999-09-22  Paul Eggert  <eggert@twinsun.com>
86286
86287         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
86288         2.95.1 bug with HP-UX 10.20.
86289
86290 1999-09-17  Jim Meyering  <meyering@ascend.com>
86291
86292         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
86293         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
86294         due to missing strdup (against sh-utils-2.0).
86295
86296 1999-08-29  Jim Meyering  <meyering@ascend.com>
86297
86298         * m4/jm-macros.m4: Require jm_BISON.
86299         * m4/bison.m4: New file.
86300
86301 1999-08-17  Paul Eggert  <eggert@twinsun.com>
86302
86303         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
86304         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
86305
86306 1999-08-05  Jim Meyering  <meyering@ascend.com>
86307
86308         * m4/getline.m4: Rename test file from conftestdata to conftest.data
86309         to avoid conflicts with `conftest' on 8+3 filesystems.
86310         Suggestion from Eli Zaretskii.
86311
86312 1999-08-04  Jim Meyering  <meyering@ascend.com>
86313
86314         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
86315         fileutils and sh-utils (textutils's getline test was inadequate).
86316         (AM_FUNC_GETLINE): Run this test.
86317         (AC_CHECK_FUNCS): Check for getdelim.
86318         Reported by Bob Proulx.
86319
86320 1999-08-02  Jim Meyering  <meyering@ascend.com>
86321
86322         * m4/jm-macros.m4: Add a comment.
86323
86324 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86325
86326         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
86327         <inttypes.h> defines strtoumax as a macro (and not as a
86328         function).
86329
86330 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86331
86332         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
86333         that we can shift, multiply and divide unsigned long long
86334         values; Ultrix cc can't do it.
86335
86336 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86337
86338         * m4/mktime.m4: New file, which is a preview of what should appear
86339         in the next public autoconf release.
86340
86341 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86342
86343         * m4/lfs.m4: Remove this file.
86344         * m4/largefile.m4: New file.  It contains the old contents of
86345         lfs.m4, except that all names with prefix AC_LFS have been
86346         changed to use the prefix AC_SYS_LARGEFILE instead, to be
86347         compatible with future autoconf versions.  Also, some minor m4
86348         quoting problems have been fixed.
86349
86350 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86351
86352         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
86353         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
86354         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
86355         and simplify the shell code.
86356
86357 1999-08-01  Jim Meyering  <meyering@ascend.com>
86358
86359         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
86360         m4.
86361
86362 1999-07-20  Jim Meyering  <meyering@ascend.com>
86363
86364         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
86365
86366 1999-07-15  Jim Meyering  <meyering@ascend.com>
86367
86368         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
86369
86370 1999-05-22  Jim Meyering  <meyering@ascend.com>
86371
86372         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
86373
86374 1999-05-20  Jim Meyering  <meyering@ascend.com>
86375
86376         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
86377         Add a colon after each `then' in case $4 is empty.
86378
86379 1999-05-16  Jim Meyering  <meyering@ascend.com>
86380
86381         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
86382
86383 1999-05-10  Jim Meyering  <meyering@ascend.com>
86384
86385         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
86386
86387         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
86388         AC_FUNC_MKTIME.
86389
86390 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
86391
86392         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
86393
86394 1999-05-04  Paul Eggert  <eggert@twinsun.com>
86395
86396         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
86397         not CPPFLAGS, so that linking works correctly in IRIX.
86398
86399 1999-04-30  Paul Eggert  <eggert@twinsun.com>
86400
86401         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
86402
86403 1999-04-20  Paul Eggert  <eggert@twinsun.com>
86404
86405         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
86406         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
86407         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
86408         jm_AC_TYPE_UNSIGNED_LONG_LONG.
86409         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
86410
86411         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
86412
86413 1999-04-20  Jim Meyering  <meyering@ascend.com>
86414
86415         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
86416         AC_REPLACE xstroull if necessary.  From Paul Eggert.
86417         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
86418
86419 1999-04-18  Jim Meyering  <meyering@ascend.com>
86420
86421         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
86422         * m4/jm-macros.m4: Use it.
86423
86424 1999-04-06  Jim Meyering  <meyering@ascend.com>
86425
86426         * m4/strftime.m4: Remove test for %f.
86427
86428 1999-03-29  Jim Meyering  <meyering@ascend.com>
86429
86430         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
86431         superset of the AC_TYPE_* checks in the textutils, fileutils,
86432         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
86433         AC_TYPE_PID_T.
86434
86435 1999-03-28  Jim Meyering  <meyering@ascend.com>
86436
86437         * m4/jm-macros.m4: Define GNU_PACKAGE here.
86438         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
86439         replaced e.g., in the *.sh files of the sh-utils.
86440
86441 1999-03-20  Jim Meyering  <meyering@ascend.com>
86442
86443         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
86444         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
86445         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
86446
86447 1999-03-19  Jim Meyering  <meyering@ascend.com>
86448
86449         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
86450
86451 1999-03-12  Jim Meyering  <meyering@ascend.com>
86452
86453         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
86454
86455 1999-03-07  Jim Meyering  <meyering@ascend.com>
86456
86457         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
86458         declared.
86459
86460 1999-02-17  Jim Meyering  <meyering@ascend.com>
86461
86462         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
86463         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
86464
86465 1999-02-07  Jim Meyering  <meyering@ascend.com>
86466
86467         * m4/group-member.m4: New file -- extracted from sh-utils'
86468         configure.in.
86469
86470         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
86471         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
86472
86473 1999-02-06  Jim Meyering  <meyering@ascend.com>
86474
86475         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
86476         * m4/fnmatch.m4: Likewise.
86477         * m4/getgroups.m4: Likewise.
86478         * m4/lstat.m4: Likewise.
86479         * m4/malloc.m4: Likewise.
86480         * m4/putenv.m4: Likewise.
86481         * m4/realloc.m4: Likewise.
86482         * m4/regex.m4: Likewise.
86483         * m4/stat.m4: Likewise.
86484         * m4/strftime.m4: Likewise.
86485         Suggestion from Alain Magloire.
86486
86487         * m4/chown.m4: Use `.$ac_objext', not `.o'.
86488         * m4/fnmatch.m4: Likewise.
86489         * m4/getgroups.m4: Likewise.
86490         * m4/getline.m4: Likewise.
86491         * m4/lstat.m4: Likewise.
86492         * m4/malloc.m4: Likewise.
86493         * m4/memcmp.m4: Likewise.
86494         * m4/putenv.m4: Likewise.
86495         * m4/realloc.m4: Likewise.
86496         * m4/regex.m4: Likewise.
86497         * m4/stat.m4: Likewise.
86498         * m4/strftime.m4: Likewise.
86499         Suggestion from Alain Magloire.
86500
86501         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
86502         an argument.
86503
86504         * m4/regex.m4: Add a run-time Test for proper operation of
86505         re_compile_pattern.
86506
86507 1999-01-31  Jim Meyering  <meyering@ascend.com>
86508
86509         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
86510
86511 1999-01-30  Jim Meyering  <meyering@ascend.com>
86512
86513         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
86514
86515         * m4/jm-mktime.m4: Make this a wrapper around the official
86516         AM_FUNC_MKTIME rather than my private copy, now that the official one
86517         is up to date.
86518         * m4/mktime.m4: Remove file.
86519
86520         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
86521         * m4/uptime.m4: Likewise.
86522         * m4/uintmax_t.m4: Likewise.
86523
86524 1999-01-28  Jim Meyering  <meyering@ascend.com>
86525
86526         * m4/jm-macros.m4: Use jm_AFS.
86527         * m4/afs.m4: New file (from fileutils' configure.in).
86528
86529         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
86530         * m4/chown.m4: Likewise.
86531         * m4/d-ino.m4: Likewise.
86532         * m4/d-type.m4: Likewise.
86533         * m4/fnmatch.m4: Likewise.
86534         * m4/getgroups.m4: Likewise.
86535         * m4/gettext.m4: Likewise.
86536         * m4/jm-mktime.m4: Likewise.
86537         * m4/jm-winsz2.m4: Likewise.
86538         * m4/lcmessage.m4: Likewise.
86539         * m4/ls-mntd-fs.m4: Likewise.
86540         * m4/malloc.m4: Likewise.
86541         * m4/memcmp.m4: Likewise.
86542         * m4/putenv.m4: Likewise.
86543         * m4/realloc.m4: Likewise.
86544         * m4/st_mtim.m4: Likewise.
86545         * m4/strftime.m4: Likewise.
86546
86547 1999-01-16  Jim Meyering  <meyering@ascend.com>
86548
86549         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
86550         (ARGMATCH_DIE_DECL): Define.
86551
86552 1999-01-12  Jim Meyering  <meyering@ascend.com>
86553
86554         * m4/Makefile.am.in: Rewrite to avoid using fmt.
86555         Reported by Lars Hecking.
86556
86557 1999-01-10  Jim Meyering  <meyering@ascend.com>
86558
86559         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
86560         gross kludge.
86561         * m4/inttypes_h.m4: Likewise.
86562         * m4/lstat.m4: Likewise.
86563         * m4/malloc.m4: Likewise.
86564         * m4/readdir.m4: Likewise.
86565         * m4/realloc.m4: Likewise.
86566         * m4/st_dm_mode.m4: Likewise.
86567         * m4/stat.m4: Likewise.
86568         * m4/utimbuf.m4: Likewise.
86569         * m4/utimes.m4: Likewise.
86570
86571         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
86572         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
86573         comments in config.h.in are meaningful.
86574
86575         * m4/jm-macros.m4: Require autoconf-2.13 here.
86576
86577         * m4/regex.m4: By default, don't use the included regex.c on systems
86578         with glibc 2.  Suggestion from Uli Drepper.
86579
86580 1999-01-02  Jim Meyering  <meyering@ascend.com>
86581
86582         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
86583
86584 1998-12-18  Jim Meyering  <meyering@ascend.com>
86585
86586         * m4/Makefile.am.in (Makefile.am): Simplify rule.
86587         Based on a suggestion from Lars Hecking.
86588
86589 1998-11-16  Paul Eggert  <eggert@twinsun.com>
86590
86591         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
86592
86593 1998-11-16  Jim Meyering  <meyering@ascend.com>
86594
86595         * m4/lfs.m4: Double-quote the `uname...` expression.
86596
86597 1998-11-14  Jim Meyering  <meyering@ascend.com>
86598
86599         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
86600         * m4/stat.m4: Likewise.
86601
86602 1998-11-03  Jim Meyering  <meyering@ascend.com>
86603
86604         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
86605         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
86606
86607 1998-10-18  Jim Meyering  <meyering@ascend.com>
86608
86609         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
86610
86611 1998-10-17  Jim Meyering  <meyering@ascend.com>
86612
86613         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
86614         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
86615         calls for those previously hard-coded headers.  Instead, take a new
86616         parameter.
86617         (jm_CHECK_DECLARATIONS): Reflect interface change.
86618         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
86619         (jm_CHECK_DECL_LOCALTIME_R): New macro.
86620
86621         * m4/mktime.m4: Test for spring-forward gap before long-running test.
86622
86623 1998-10-14  Jim Meyering  <meyering@ascend.com>
86624
86625         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
86626         instead of "TZ=America/Vancouver".  From Paul Eggert.
86627
86628 1998-10-11  Jim Meyering  <meyering@ascend.com>
86629
86630         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
86631         This adds a test for a recently added compatibility fix for mktime.c.
86632         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
86633
86634 1998-09-27  Jim Meyering  <meyering@ascend.com>
86635
86636         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
86637
86638         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
86639         ../configure.in, including a change from Gordon Matzigkeit to allow
86640         cross-compiling for the Hurd.
86641
86642         * m4/glibc.m4: New file/macro to test for the GNU C Library
86643         versions 1 and 2.  From Gordon Matzigkeit.
86644         Indent.
86645
86646 1998-09-21  Jim Meyering  <meyering@ascend.com>
86647
86648         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
86649
86650 1998-08-18  Paul Eggert  <eggert@twinsun.com>
86651
86652         Port nanosecond-resolution times to UnixWare 2.1.2 and
86653         pedantic Solaris 2.6.
86654
86655         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
86656         AC_STRUCT_ST_MTIM.
86657         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
86658         Generate name of ns member, instead of just 1 or undef.
86659         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
86660
86661 1998-08-15  Jim Meyering  <meyering@ascend.com>
86662
86663         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
86664         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
86665         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
86666         instead of jm_TYPE_SSIZE_T.
86667
86668 1998-08-12  Jim Meyering  <meyering@ascend.com>
86669
86670         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
86671
86672 1998-08-02  Jim Meyering  <meyering@ascend.com>
86673
86674         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
86675         in acconfig.h manually.
86676
86677 1998-07-31  Paul Eggert  <eggert@twinsun.com>
86678
86679         * m4/st_mtim.m4: New file.
86680
86681 1998-07-28  Jim Meyering  <meyering@ascend.com>
86682
86683         * m4/utimes.m4: Undef stat.
86684
86685 1998-07-25  Jim Meyering  <meyering@ascend.com>
86686
86687         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
86688         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
86689
86690 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
86691
86692         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
86693         uid and gid actually remain unchanged.
86694
86695 1998-07-07  Jim Meyering  <meyering@ascend.com>
86696
86697         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
86698
86699 1998-07-04  Jim Meyering  <meyering@ascend.com>
86700
86701         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
86702         to prove that this macro can be used in packages without regex.c.
86703
86704 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
86705
86706         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
86707         is to be used.
86708
86709 1998-07-03  Jim Meyering  <meyering@ascend.com>
86710
86711         * m4/gettext.m4: Add -lintl if it's found to be necessary.
86712
86713         * m4/gettext.m4: New file -- from gettext-0.10.35.
86714         * m4/lcmessage.m4: Likewise.
86715         * m4/progtest.m4: Likewise.
86716
86717         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
86718         * m4/jm-macros.m4: Require the new macro.
86719
86720 1998-06-29  Jim Meyering  <meyering@ascend.com>
86721
86722         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
86723         for the definition of NGROUPS (used in a system header included
86724         by sys/mount.h).
86725
86726 1998-06-28  Jim Meyering  <meyering@ascend.com>
86727
86728         * m4/ls-mntd-fs.m4: New file.
86729         * m4/fstypename.m4: New file.
86730
86731         * m4/jm-macros.m4: Require the new macro.
86732         * m4/jm-glibc-io.m4: New file.
86733
86734 1998-05-19  Jim Meyering  <meyering@ascend.com>
86735
86736         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
86737         * m4/lchown.m4: New file.
86738
86739         * m4/Makefile.am.in: New file.
86740         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
86741
86742 1998-05-14  Jim Meyering  <meyering@ascend.com>
86743
86744         * m4/Makefile.am (EXTRA_DIST): Add them.
86745         * m4/jm-macros.m4: New file.
86746         * m4/utimbuf.m4: New file.
86747
86748 1998-05-12  Jim Meyering  <meyering@ascend.com>
86749
86750         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
86751
86752 1998-05-11  Jim Meyering  <meyering@ascend.com>
86753
86754         * m4/isc-posix.m4: New file.
86755
86756 1998-05-10  Jim Meyering  <meyering@ascend.com>
86757
86758         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
86759
86760 1998-05-09  Jim Meyering  <meyering@ascend.com>
86761
86762         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
86763         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
86764         with automake.
86765
86766         * m4/ssize_t.m4: New file.
86767         * m4/mktime.m4: Remove file -- the new automake has this now.
86768
86769 1998-04-26  Jim Meyering  <meyering@ascend.com>
86770
86771         * m4/assert.m4: New file.
86772         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
86773
86774 1998-04-05  Jim Meyering  <meyering@ascend.com>
86775
86776         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
86777         (jm_PREREQ): Use it here.
86778
86779 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
86780
86781         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
86782         in acconfig.h.
86783
86784 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
86785
86786         * m4/prereq.m4: New file.
86787         * m4/error.m4: New file.
86788         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
86789
86790 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
86791
86792         * m4/getline.m4: Don't set am_cv_func_working_getline before the
86793         cache-check for the same variable -- that defeated the purpose of
86794         the test; the test program was never run.  This was a problem only
86795         on systems with losing getline functions -- HP-UX 10.20 is one.
86796         Reported by Bjorn Helgaas.
86797
86798 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
86799
86800         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
86801
86802 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
86803
86804         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
86805
86806         * m4/const.m4: New file.  Use an initializer in this declaration
86807         typedef int charset[2]; const charset x;
86808         Reported by Bob Glickstein.
86809
86810 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
86811
86812         * m4/chown.m4: Fix reversed types on -1 args to chown.
86813         From Kaveh Ghazi.
86814
86815 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
86816
86817         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
86818         Add lseek and memchr.
86819
86820         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
86821         T.E.Dickey <dickey@clark.net> said that some older preprocessors
86822         have a 20-character limit on names.
86823
86824 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
86825
86826         * m4/inttypes_h.m4: New file.
86827         * m4/uintmax_t.m4: New file.
86828         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
86829
86830
86831         -----
86832
86833         Local Variables:
86834         coding: utf-8
86835         End:
86836
86837         Copyright (C) 1997-2011 Free Software Foundation, Inc.
86838
86839         Copying and distribution of this file, with or without
86840         modification, are permitted provided the copyright notice
86841         and this notice are preserved.